text stringlengths 2 1.04M |
|---|
/**
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy... |
import React from "react"
import styled from "styled-components"
const FlexContainer = props => {
return (
<Container props={props}>{props.children}</Container>
)
}
const Container = styled.section`
${props => props.props.flex && `display: flex;`}
justify-content: ${props => props.props.sp... |
!function(t){const i=t.gu=t.gu||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":" વિચાર ટાંકો",Bold:"ઘાટુ - બોલ્ડ્",Code:"",Italic:"ત્રાંસુ - ઇટલિક્",Strikethrough:"",Subscript:"",Superscript:""}),i.getPluralForm=function(t){return 1!=t}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); |
const doesFileExist = require('./does-file-exist');
const { doesUrlExist, isUrlExist } = require('./does-url-exist');
const readJsonFileSync = require('./read-json-file-sync');
const writeJsonFileSync = require('./write-json-file-sync');
const util = require('./util');
const typeOf = require('./type-of');
const langHel... |
import path from 'path'
import { defineConfig } from 'vite'
import includeAll from 'rollup-include-all'
export default defineConfig({
plugins: [includeAll()],
root: 'examples',
resolve: {
alias: {
'react-ogl': path.resolve(process.cwd(), 'src'),
},
},
build: {
minify: false,
outDir: pat... |
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'Basic';
config.extraPlugins = 'more,uploadimage,uploadwidget';
config.uploadUrl = 'plug.php?ajx=ckeditor';
config.filebrowserUploadUrl = '/plug.php?ajx=ckeditor&fl=filebrowser';
config.htmlEncodeOutput = false;
config.entities = false;
confi... |
const initState = () => ({
searchResults: [],
noResult: '',
searchedTerm: '',
searchedCuisine: 'All Cuisines',
allRestaurants: [],
});
const searchReducer = (state = initState(), action) => {
// console.log(action);
switch (action.type) {
case 'SEARCH_RESULT_SET':
return {
...state, // ... |
"use strict";
const hasEmptyBlock = require("../hasEmptyBlock");
const postcss = require("postcss");
it("hasEmptyBlock", () => {
expect(postcssCheck("a {}")).toBeTruthy();
expect(postcssCheck("a { }")).toBeTruthy();
expect(postcssCheck("a {\n}")).toBeTruthy();
expect(postcssCheck("@media print {}")).toBeTruth... |
// function copied from http://detectmobilebrowsers.com/
function isMobileOrTablet() {
var check = false;
return check;
}
window.isMobileOrTablet = window.isMobileOrTablet || isMobileOrTablet; |
import gulp from 'gulp'
import gulpLoadPlugins from 'gulp-load-plugins'
import del from 'del'
import runSequence from 'run-sequence'
import {stream as wiredep} from 'wiredep'
const $ = gulpLoadPlugins()
gulp.task('extras', () => {
return gulp.src([
'app/*.*',
'app/_locales/**',
'app/styles/**',
'app... |
"use strict";
var callable = require("es5-ext/object/valid-callable")
, isValue = require("es5-ext/object/is-value");
var filter = Array.prototype.filter;
module.exports = function (controlsFilter) {
if (isValue(controlsFilter)) callable(controlsFilter);
return filter.call(this.querySelectorAll("input, textarea... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/pages/Home.vue'
// import login from '@/pages/login.vue'
// const Home = () => import('@/pages/Home.vue')
// 任务台
const Work = () => import('@/pages/MyWork/myWork.vue')
// 流程中心
const ProcessCenter = () => import('@/pages/ProcessCenter/processC... |
import React from 'react';
import EmailAddress from 'react-bot-buster-email-obfuscation';
const Contact = () => {
const team = [
{
id: 'anthony',
name: 'Anthony Catalfo',
email: 'tonycatalfo@gmail.com',
github: 'https://github.com/AnthonyCatalfo',
linkedin: 'https://www.linkedin.com... |
const namespaces = {
SET: 'cards'
};
export {
namespaces
}; |
require('@babel/register');
({
ignore: /node_modules/
});
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
let mnemonic = 'hope clock bridge silver normal note soccer mixture gesture brave forget tell';
let testAccounts = [
"0x5fd72266f972c9dde7128b44b0ca3fa7c6f66a5c2de... |
const getComment = require('./lib/getComment')
const defaultConfig = require('./lib/defaultConfig')
const PullRequestBodyChecker = require('./lib/PullRequestBodyChecker')
const getConfig = require('probot-config')
module.exports = app => {
app.on('installation_repositories.added', learningLabWelcome)
app.on(['pull... |
var Web3 = require("web3");
var {productABI} = require("./ABI/productABI");
var {productContractAddress,quorumServer, ganacheServer, nodeIdentity, nodeOrganization, nodeOrganizationUnit, nodeSubject,protocol} = require("./config");
// Smart contract address
const fromAddress = nodeIdentity;
console.log(fromAddress);
... |
require('./partials/navbar');
require('./partials/upload'); |
#!./node_modules/.bin/babel-node
import get from '../helpers/get';
import fibonacci from '../../fibonacci';
console.info(get('even', fibonacci(1000))); |
module.exports = {
NODE_ENV: '"development"', // 这里必须带双引号,不然启动命令无法适配到此配置
ENV_CONFIG: '"dev"',
BASE_API: '"/api"'
} |
(function () {
'use strict';
/* global _, async */
admiral.controller('dashboardNewCtrl', ['$scope', '$stateParams', '$q',
'$state', '$interval', '$timeout', '$location', 'admiralApiAdapter',
/* jshint camelcase:false */
'popup_horn', dashboardNewCtrl
/* jshint camelcase:true */
]);
functio... |
const Masthead = () => (
<section className="masthead">
<h1>Headless WordPress on the JAMstack</h1>
<style jsx>{`
section.masthead {
width: 100%;
height: 90vh;
overflow: hidden;
text-align: center;
display: flex;
justify-content: center;
align-item... |
import { css } from '@emotion/core';
export const linearGradientBoxShadow = props => css`
background: linear-gradient(to right, ${props.theme.colors.card2}, ${props.theme.colors.card1});
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
`;
export const flexColumnCenter = css`
display: flex;
flex-flow: column;
ju... |
var moment = require("../../index");
exports["America/Blanc-Sablon"] = {
"1918" : function (t) {
t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:59:59+00:00 should be 01:59:59 AST");
t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Blan... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.naclVerify = naclVerify;
var nacl = _interopRequireWildcard(require("tweetnacl"));
var _util = require("@polkadot/util");
var _wasmCrypto = ... |
var searchData=
[
['get_5fdistance',['get_distance',['../classSteeringControl.html#abf86c529e73e50fa87cf25be79f3d7f4',1,'SteeringControl']]],
['get_5ffront_5fcoordinate',['get_front_coordinate',['../classSteeringControl.html#a0fdca7f565d9484877850f8be65e02cc',1,'SteeringControl']]],
['get_5fleft_5fcoordinate',['g... |
const basePath = process.cwd();
const { MODE } = require(`${basePath}/constants/blend_mode.js`);
const { NETWORK } = require(`${basePath}/constants/network.js`);
const network = NETWORK.eth;
// General metadata for Ethereum
const namePrefix = "Your Collection";
const description = "Remember to replace this descriptio... |
import GasTiming from '@c/app/gas-timing';
import TransactionDetailItem from '@c/app/transaction/detail-item/transaction-detail-item.component';
import TransactionDetail from '@c/app/transaction/detail/transaction-detail.component';
import InfoTooltip from '@c/ui/info-tooltip';
import Typography from '@c/ui/typography'... |
let Event = new Vue()
let alertSound = document.querySelector('#alert-sound')
new Vue({
el: '#todo-app',
data: {
list: [],
current: {},
count: 0
},
mounted() {
this.count = Lit.read("count") || this.count
this.list = Lit.read("todo-list") || this.list
... |
const path = require('path')
const {
sassLoaderVersion
} = require('@dcloudio/uni-cli-shared/lib/scss')
const {
getPartialIdentifier
} = require('./util')
function resolve (dir) {
return path.resolve(__dirname, '..', dir)
}
module.exports = function chainWebpack (platformOptions, vueOptions, api) {
const {
... |
import React, { useState } from 'react';
import styled from 'styled-components';
import {Link} from 'react-router-dom';
import * as FaIcons from 'react-icons/fa';
import * as AiIcons from 'react-icons/ai';
import { SideBarData } from './SideBarData';
import SubMenu from './SubMenu';
import { IconContext } from 'react-... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.0-rc6-master-f73ef23
*/ |
var paths = require('./paths.js');
var entry = {};
entry = {
styles: paths.styles,
scripts: paths.scripts,
login: paths.login,
logout: paths.logout,
index: paths.index,
projects: paths.projects,
queries: paths.queries,
project: paths.project,
project_home: paths.project_home,
p... |
/*
* @project: TERA
* @version: Development (beta)
* @license: MIT (not for evil)
* @copyright: Yuriy Ivanov (Vtools) 2017-2020 [progr76@gmail.com]
* Web: https://terafoundation.org
* Twitter: https://twitter.com/terafoundation
* Telegram: https://t.me/terafoundation
*/
'use strict';
global.PROCESS_NAME = "MAI... |
const { ImageCode } = require('photobox')
const Jimp = require('jimp')
module.exports = class resizeTo extends ImageCode {
async process(msg) {
let img = await Jimp.read(msg.url)
let w = img.bitmap.width
let h = img.bitmap.width
msg.ogWidth = w
msg.ogHeight = h
img.resize(msg.width,msg.height... |
// Update this constant with your ServiceNow credentials
const options = {
url: 'https://dev100951.service-now.com/',
username: 'admin',
password: 'c1bXWvd5uGGB'
};
/**
* Import the Node.js request package.
* See https://www.npmjs.com/package/request
*/
const request = require('request');
// We'll use this... |
import vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ELEMENTUI from 'element-ui';
if (process.env.NODE_ENV !== 'production') {
require('element-ui/lib/theme-chalk/index.css')
}
import './styles/index.scss'
vue.config.productionTip = false
//
import initEdi... |
// export const TOKEN = '3189f88ada8a43ffb035933771d109ea';
export const TOKEN = 'ce7c7f0482b646cea97621fbb13f16b4';
export const BaseURL = 'https://api.planetos.com/v1/datasets/cams_nrt_forecasts_global/point'; |
import { html } from 'lit-element';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import marked from 'marked';
import { expandedEndpointBodyTemplate } from '~/templates/expanded-endpoint-template';
import '~/components/api-request';
import '~/components/api-response';
import componentsTemplate from '~/t... |
import { CHANGE_AUTH } from "../actions/types";
export default function (state = false, action ){
switch (action.type){
case CHANGE_AUTH:
return action.payload;
}
return state;
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
export { _Math as Math } from './Math.js';
export { QuaternionLinearInterpolant } from './interpolants/QuaternionLinearInterpolant.js';
export { LinearInterpolant } from './interpolants/LinearInterpolant.js';
export { DiscreteInterpolant } from './interpolants/DiscreteInterpolant.js';
export { CubicInterpolant } from '... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.init = init;
exports.shouldUpdateScroll = shouldUpdateScroll;
exports.RouteUpdates = void 0;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = crossFade;
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? o... |
// import Vue from 'vue'
// import Vuex from 'vuex'
// import getters from './getters'
// import app from './modules/app'
// import settings from './modules/settings'
// import user from './modules/user'
// Vue.use(Vuex)
// const store = new Vuex.Store({
// modules: {
// app,
// settings,
// user
// }... |
/**
* Draws HAPPY BIRTHDAY over the birthday pal
*/
export default (g, x, y) => {
g.save()
g.font = '40px Comic Sans MS'
g.fillStyle = 'mediumpurple'
g.textAlign = 'center'
g.fillText('HAPPY BIRTHDAY', x, y)
g.restore()
} |
/**
* Sudoku field 3x3 block
*
* @copyright Nikolay V. Nemshilov aka St. <nemshilov%gmail#com>
*/
Sudoku.Field.Block = new Class({
initialize: function(x, y) {
this.element = $E('div', {'class': 'rs-block'});
this.x = x;
this.y = y;
this.cells = [];
for (var i=0; i < 9; i++) {
... |
import React from "react"
import Layout from "../components/layout"
import { graphql } from "gatsby"
export default ({ data }) => {
const post = data.wordpress.post
console.log(post)
return (
<Layout>
<div className="container">
<h1>{post.title}</h1>
<div
className="content"
... |
const mongoose = require("mongoose");
const locationSchema = new mongoose.Schema({
name: {
type: String,
trim: true,
required: true,
maxLength: 32,
},
district: {
type: String,
trim: true,
required: true,
maxLength: 32,
},
});
module.exports = mongoose.model("Location", location... |
'use-strict'
exports.games = function(req, res) {
res.json({ "result": "JSON OBJECT FOR GAMES" });
}; |
import React from "react";
import "antd/dist/antd.css";
import { Col, Row } from "antd";
import SignupForm from "../components/SignupForm";
function SignUp(props) {
return (
<Row>
<Col xs={24}>
<SignupForm></SignupForm>
</Col>
</Row>
);
}
export default SignUp; |
'use strict';
/*
* Copyright IBM Corp All Rights Reserved
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Chaincode Invoke(체인 코드 호출)
*/
var hfc = require('fabric-client');
var path = require('path');
var util = require('util');
var options = {
wallet_path: path.join(__dirname, './creds'),
user_id: 'PeerAdmi... |
import React from "react";
// reactstrap components
import { Button, Container, Row, Col } from "reactstrap";
function OtherHeader() {
return (
<>
<div
className="header pb-8 pt-5 pt-lg-8 d-flex align-items-center"
style={{
minHeight: "250px",
backgroundImage:
... |
/*
* vue-cbsc | v1.0.0
* http://arthurvasconcelos.com.br
* by Arthur Vasconcelos.
*/
export default function plugin (Vue, options = {}) {
if (options && options.constructor !== Object) throw 'Options must be a object';
const version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;
/* istan... |
/// <reference path="../../../typings/ue.d.ts">/>
// ; typing info for auto-completion in Visual Studio Code
"use strict"
var JsCsManager = require('CsScript/Managers/CsManager.js');
var me;
module.exports = class JsCsManager_WidgetActor extends JsCsManager
{
constructor()
{
super();
me = t... |
var mes =prompt("ingrese el numero del mes")
switch(mes){
case "1":
alert("invierno")
break;
case "2":
alert("invierno")
break;
case "3":
alert("primavera")
break;
case "4":
alert("primavera")
break;
case "5":
alert("primavera")
break;
case "6":
alert("veran... |
;(function ( $, window, undefined ) {
var pluginName = 'dragDrop',
document = window.document,
defaults = {
draggableSelector: ".draggable",
droppableSelector: ".droppable",
appendToSelector: false
};
function Plugin( element, options ) {
this.element = element;
this.options = $.ext... |
"use strict";var s=Object.defineProperty;var n=(r,e)=>s(r,"name",{value:e,configurable:!0});const t=require("./../connection-error");class o extends t{constructor(e){super(e);this.name="SequelizeConnectionRefusedError"}}n(o,"ConnectionRefusedError"),module.exports=o;
//# sourceMappingURL=connection-refused-error.js.map |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.10-master-82d51e3b6
*/ |
'use strict';
const Path = require('path');
const Http = require('http');
const express = require('express');
const webdriver = require('selenium-webdriver');
const PUBLIC_DIR = Path.join(__dirname, '..');
module.exports = function createServer() {
var app = express();
app.use(express.static(PUBLIC_DIR));
co... |
function linkExpander() {
return {
expand () {
const l = d3.select(this);
l.style('stroke-width', '4px')
.style('stroke', '#c0392b');
},
shrink () {
const l = d3.select(this);
l.style('stroke-width', '1.5px')
.style('stroke', '#e6e6e6');
}
};
}; |
import { Router } from 'express';
import { AuthMiddleware } from '../../middlewares';
import { UserController } from '../../controllers';
const { authenticate } = AuthMiddleware;
const { fetch, fetchTeamProjects } = UserController;
const router = Router();
router.use(authenticate);
router.get('/', fetch);
router.ge... |
#!/usr/bin/env node
/* eslint-disable */
try {
Object.freeze({}).detectStrictMode = true;
} catch (error) {
throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`);
}
var __non_webpack_mo... |
import Model, { attr, hasMany } from '@ember-data/model';
import { map, sort } from '@ember/object/computed';
export default Model.extend({
name: attr('string'),
downloads: attr('number'),
recent_downloads: attr('number'),
created_at: attr('date'),
updated_at: attr('date'),
max_version: attr('string'),
n... |
var zTree;
var contentIframe;
var isTitle = false;
var setting = {
view: {
dblClickExpand: false,
showLine: true,
selectedMulti: false,
expandSpeed: ($.browser.msie && parseInt($.browser.version)<=6)?"":"fast"
},
data: {
simpleData: {
enable:true,
idKey: "id",
pIdKey: "pId",
rootPId: ""
}
},... |
/**
* Enables support for passing parameters as comma separate values
* @param {*} query
*/
function parseQueryParameters(query){
const parsed = JSON.parse(JSON.stringify(query))
for(p in parsed){
if(parsed.hasOwnProperty(p)){
let arr = parsed[p].split && (parsed[p]).split(',')
... |
import { assert, expect } from 'chai';
import { run, generateMeta } from '@syncano/test';
const meta = generateMeta('scraping');
let args = {};
describe('WEBPAGE SCRAPING WITH XPATH AND CSS SELECTORS', () => {
describe('scrape webpage using xpath selector and return json or xml', () => {
const url = 'https://fu... |
/**
* 这个文件主要是跟前端进行交互的js文件,主要是用户UI操作
* Author:Frank.Wu
* Date:2019-05-29
* Version 1.0
*/
/**
* 打开文件选择对话框
*/
function initFileModal()
{
getFileTree(function(){
$("#fileModal").modal({
backdrop:"static", //点击背景不关闭
keyboard: false //触发键盘esc事件时不关闭
});
});
}
/*... |
module.exports = {
semi: true,
tabWidth: 2,
printWidth: 80,
singleQuote: true,
bracketSpacing: true,
trailingComma: 'es5',
quoteProps: 'consistent',
arrowParens: 'always',
}; |
import mysql from '../../lib/mysql'
import {
getUserAllianceID,
getAllianceBasicData,
getAllianceMembers,
getAllianceResearchs,
getAllianceResources,
getAllianceResourcesLog,
getAllianceResearchShares,
getAllianceBuffsData,
getUserAllianceRank,
getAllianceResearchLog,
} from '../../lib/db/alliances'... |
/*global jQuery:false */
(function ($) {
$(window).load(function(){
$("#navigation").sticky({ topSpacing: 0 });
});
wow = new WOW(
{
animateClass: 'animated',
offset: 0
}
);
wow.init();
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-men... |
const { shell } = require('electron');
const { exec } = require('child_process');
const color = require('color');
const afterAll = require('after-all-results');
const tildify = require('tildify');
exports.decorateConfig = (config) => {
const colorForeground = color(config.foregroundColor || '#fff');
const colo... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/c... |
import React from 'react';
import { ReactMic } from 'react-mic';
import FileSaver from 'file-saver';
import DiffText from 'diff-text';
import './Form.css';
var diffText = (str1,str2)=>{
let results = DiffText(str1.replace(/ */g,''),str2.replace(/ */g,''))
let str = ""
let resultsFormat = results.map(arr=>{... |
/*!
Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Created By: brad@reciprocitylabs.com
Maintained By: brad@reciprocitylabs.com
*/
(function(can, $) {
/* RefreshQueue
*
* enqueue(obj, force=fa... |
/**
* @license
* Copyright (C) 2018 The Libphonenumber Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"controller"},{"l":"model"},{"l":"testsUnitaires"},{"l":"view"}] |
import React from 'react';
import PropTypes from 'prop-types';
const TextInput = ({
label,
onChange,
onBlur,
error,
placeholder,
value,
disabled,
showErrorMessage,
name,
className,
sideLinkText,
sideLinkOnClick,
maxCharNumber,
}) => {
const inputProps = {
name,
placeholder,
onCh... |
function h() {
const y = 1;
function i() {
const x = y + 1;
return x;
}
return i();
}
h();
// expected: 2.000000 |
/*
jQuery UI Slider plugin wrapper
*/
angular.module('ui.slider', []).value('uiSliderConfig',{}).directive('uiSlider', ['uiSliderConfig', '$timeout', function(uiSliderConfig, $timeout) {
uiSliderConfig = uiSliderConfig || {};
return {
require: 'ngModel',
compile: function () {
... |
var searchData=
[
['combinedmodel_5f',['combinedModel_',['../classface_1_1_a_a_m_body.html#ab1cd0c3ef41c718da6351cd26520574b',1,'face::AAMBody']]],
['currentshape_5f',['currentShape_',['../classface_1_1_a_a_m_body.html#a0fcceda3adb09e14d32811824be0b509',1,'face::AAMBody']]]
]; |
define(
({
_widgetLabel: "Šoninės juostos valdiklis"
})
); |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
const sass = require('node-sass');
module.exports = grunt => {
require('load-grunt-tasks')(grunt);
let port = grunt.option('port') || 8000;
let root = grunt.option('root') || '.';
if (!Array.isArray(root)) root = [root];
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*25) Escrever um programa para exibir os números de 1 até 50 na tela. */
for(let i = 0; i <= 50; i++){
console.log(`${i}`)
} |
/*
Route360° JavaScript API v0.0.9 (0fe38c7), a JS library for leaflet maps. http://route360.net
(c) 2014 Henning Hollburg and Daniel Gerber, (c) 2014 Motion Intelligence GmbH
*/ |
import React from 'react'
import Link from 'gatsby-link'
const IndexPage = () => (
<div>
<p><strong>My name is k.</strong> I love keyboards. If you're here it means you probably do too.</p>
<p><Link to="/log">Update log</Link></p>
<hr/>
<h2>My current boards</h2>
<ul>
<li>Anne Pro with modded... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGener... |
/*
* mobile init tests
*/
(function($){
var loader, ns,
mobilePage = undefined,
libName = 'jquery.mobile.init.js',
coreLib = 'jquery.mobile.core.js',
extendFn = $.extend,
setGradeA = function(value) { $.mobile.gradeA = function(){ return value; }; },
reloadCoreNSandInit = function(){
$.testHelper.relo... |
/*TDS.js contains the code for TDS component, it shows the TDS level of water.*/
import React from "react";
import Skeleton, { SkeletonTheme } from "react-loading-skeleton";
import { Line } from "react-chartjs-2";
const Graph = (graphData) => {
const data = (canvas) => {
const ctx = canvas.getContext("2d");
... |
$(function(){
// nav收缩展开
$('.nav-item>a').on('click',function(){
if (!$('.nav').hasClass('nav-mini')) {
if ($(this).next().css('display') == "none") {
//展开未展开
$('.nav-item').children('ul').slideUp(300);
$(this).next('ul').slideDown(300);
... |
import styled from "styled-components";
import { motion } from "framer-motion";
import theme from "../../utils/theme";
export const Container = styled.div`
width: 100%;
max-width: 1120px;
height: 100vh;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
@media (max-width: 42... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import {
ImageCover,
BigSpan,
} from "./index.styled"
import Img from "gatsby-image"
function MatesCard({ theme }) {
const data = useStaticQuery(
graphql`
query {
image1: file(relativePath: { eq: "Prince.jpg" }) {
... |
"use strict";
const logger = require("../../config/logger");
const User = require("../../models/User");
const output = {
home : (req, res) => {
logger.info(`GET / 304 "홈 화면으로 이동"`);
res.render("home/index");
},
login : (req, res) => {
logger.info(`GET /login 304 "로그인 화면으로 이동"... |
function ImageRenderer() {
this.images = {
boatImage: new Image(),
smallShark: new Image(),
smallSharkReverse: new Image(),
smallShrimp: new Image(),
smallShrimpReverse: new Image(),
bullet: new Image(),
ocean: new Image()
};
}
ImageRenderer.prototype.init = function() {
this.images.b... |
makeColorVisionStimuli = function(){
let stimuli = [];
let base = wall('w_center', SCENE.w/2, SCENE.h/2, PROPS.walls.w,
PROPS.walls.h, {'render': {'fillStyle': cols.grey}})
let cols_blocks = cols.test_blocks.concat(cols.train_blocks);
for(var trial=0; trial<cols_blocks.length; trial++) {
let id = 'color... |
var Utils = /** @class */ (function () {
function Utils() {
}
/**
* Generate a UUID.
*/
Utils.generateUUID = function () {
var d = new Date().getTime(); //Timestamp
var d2 = (performance && performance.now && (performance.now() * 1000)) || 0; //Time in microseconds since page-l... |
/**
* This file provides functions to reduce the size of an array of objects of the same structure in JSON.
*/
const pushFn = Array.prototype.push;
function isObject(value) {
return Object.prototype.toString.call(value) === '[object Object]';
}
/**
* Makes human readable config used to pack/unpack array of objec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.