text stringlengths 2 1.04M |
|---|
/* *******************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org/en... |
import axios from 'axios'
import {config} from './config'
let apiRequest = null,
handleOnlineStateChange = (method, url, data) => {
if (apiRequest) {
apiRequest[method](url, data).then(() => {}).catch(() => {})
}
},
setApiConfig = (url) => {
apiRequest = axios.create({
baseURL: url,
... |
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import configureStore from 'redux-mock-store';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import { ParentLoadingComponent } from '../components/common';
import AddChildContainer... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../chunk-cf203200.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var Hdr16 =
/*#__PURE__*/
React.forw... |
exports.ids = ["react-syntax-highlighter_languages_highlight_rib"];
exports.modules = {
/***/ "./node_modules/react-syntax-highlighter/node_modules/highlight.js/lib/languages/rib.js":
/*!**********************************************************************************************!*\
!*** ./node_modules/react-syntax... |
var express = require('express');
var router = express.Router();
/*
router.use(function timeLog(req, res, next) {
console.log('Time: ', Date.now());
console.log("/"+req.method);
next();
});
*/
/* GET home page. */
router.get('/', function(req, res) {
res.render('./pages/index', function(err, html) {
res.sen... |
import { html } from '@polymer/lit-element';
import CSS from './_components.input-css';
const Input = ({ onInput = () => {}, isValid = true } = {}) => {
// TODO: better handle this dynamic class (cf npm classnames)
const inputClass = `demo-input ${isValid ? '' : 'is-invalid'}`;
return html`
${CSS}
<labe... |
const mongoose = require('../../index')(require('mongoose'));
const isV6pl = require('mongoose/package.json').version > '6';
const assert = require('assert');
describe('Description: Schema.jsonSchema()', () => {
it('should add description when it is specified (as description)', () => {
const aDescrription = 'Jus... |
(function($) {
module('jQuery#placeholder');
test('caches results of feature tests', function() {
strictEqual(typeof $.fn.placeholder.input, 'boolean', '$.fn.placeholder.input');
strictEqual(typeof $.fn.placeholder.textarea, 'boolean', '$.fn.placeholder.textarea');
});
if ($.fn.placeholder.input && $.fn.plac... |
define('dummy/app', ['exports', 'ember', 'dummy/resolver', 'ember-load-initializers', 'dummy/config/environment'], function (exports, _ember, _resolver, _emberLoadInitializers, _environment) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var App = void 0;
_ember.default... |
import { userConstants } from "../actions/constants"
const initState = {
error:null,
message:'',
loading:false
}
export default (state=initState,action)=>{
console.log(action);
switch(action.type){
case userConstants.USER_REGISTER_REQUEST:
state = {
...state,
... |
var helper = require('./helpers.js');
validateFilter = function(filter) {
return filter === 'start_date' || filter === 'end_date' || filter === 'value';
};
validateDate = function(date) {
return helper.isInt(date);
};
validateAggregate = function(aggregate) {
return aggregate === 'sum' || aggregate === 'count'... |
(function () {
'use strict';
const cardShareToggleButton = document.querySelector(
'.js-cardShareToggleButton'
);
const shareOptionsElement = document.querySelector(
'.js-shareOptionsElement'
);
const openShareOptionsElement = () => {
shareOptionsElement.removeAttribute('hidden');
cardShare... |
import ajax from 'ghost/utils/ajax';
import ValidationEngine from 'ghost/mixins/validation-engine';
var SetupController = Ember.ObjectController.extend(ValidationEngine, {
blogTitle: null,
name: null,
email: null,
password: null,
submitting: false,
// ValidationEngine settings
validationTy... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'table', 'oc', {
border: 'Talha de la bordadura',
caption: 'Títol del tablèu',
cell: {
menu: 'Cellula',
insertBefore: 'Inse... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import LoginForm from './login-form';
describe('<LoginForm />', () => {
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(
<BrowserRouter... |
import{UIController} from './UI.js';
/*
Rules:
1. Keep your code dry
*/
export function eventController (UIClass){
// 3-1. global variables
let inputClass, inputBtn;
inputClass = UIClass();
inputBtn = inputClass.getClass();
const displayCreateTask = () =>{
setTimeout(() => {
... |
import React from 'react'
import Layout from '../../components/Layout'
export default () => (
<Layout>
<section className="section">
<div className="container">
<div className="content">
<h1>ブログに興味を持っていただき誠にありがとうございます。</h1>
<p>後日ご返信させていただきますので少々お待ち頂けますと幸いです。</p>
</div>
... |
import React from 'react';
import SimpleList from '../src';
import './index.scss';
class Example extends React.Component {
render() {
let items = [
{
id: 1,
title: 'Verify your email address',
subtitle: 'Verification email sent',
icon: '/Email-Logo.png'
},
{
... |
/* @flow */
import hubspotWebhookHandler from "../../../server/handlers/hubspot-webhook-handler";
const _ = require("lodash");
process.env.CLIENT_ID = "1234";
process.env.CLIENT_SECRET = "1234";
const testScenario = require("hull-connector-framework/src/test-scenario");
import connectorConfig from "../../../server/co... |
'use strict';
var origSymbol = global.Symbol;
var hasSymbolSham = require('./shams');
module.exports = function hasNativeSymbols() {
if (typeof origSymbol !== 'function') { return false; }
if (typeof Symbol !== 'function') { return false; }
if (typeof origSymbol('foo') !== 'symbol') { return false; }
if (typeof S... |
var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var cssmin = require('gulp-cssmin');
gulp.task('js', function() {
return gulp.src([
'assets/src/js/prism.js',
'assets/src/js/index.js'
])
.pipe(concat('in... |
require('babel-register');
require('babel-polyfill');
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*"
}
}
}; |
class C {
}
class C2 extends C {
}
class D {
}
function F(x) {
return 42;
}
var M;
(function(M1) {
class A {
}
M1.A = A;
function F2(x) {
return x.toString();
}
M1.F2 = F2;
})(M || (M = {}));
// all of these are errors
for(var a;;){}
for(var a = 1;;){}
for(var a = 'a string';;){}
for... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","zh-cn",{title:"辅助功能说明",contents:"帮助内容。要关闭此对话框请按 ESC 键。",legend:[{name:"常规",items:[{name:"编辑器工具栏",legend:"按 ${toolbarFocus} 导航到工具栏,使用 TAB 键... |
import {getLyric} from 'api/song'
import {ERR_OK} from 'api/config'
import {Base64} from 'js-base64'
export default class Song {
constructor({id, mid, singer, name, album, duration, image, url}) {
this.id = id
this.mid = mid
this.singer = singer
this.name = name
this.album = album
this.duration = duration... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Commerce Program Manager", "CONTRIBUTION AMOUNT (F3L Bundled)": "90.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Mylan Inc.", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "144 Lamplighter Dr", "CONTRIBUTOR MIDDLE NAME": "D", "DONOR CANDIDATE FEC ID"... |
const BASE_URL = "https://www.google.com/maps/search/?api=1&query=";
chrome.extension.onMessage.addListener(function(req, sender, callback) {
if (sender.tab) {
if (req.text !== undefined) {
const url = encodeURI(`${BASE_URL}${req.text}`);
const properties = { url: url };
chrome.tabs.create(prope... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import PropTypes from 'prop-types';
import createConnector from '../core/createConnector';
import { find } from '../core/utils';
import { cleanUpValue, refineValue, getCurrentR... |
import {assert} from 'chai';
import {truncate} from '../../../../modules/object-utils/internals/truncate.js';
import {getObject} from '../../../__utils__/get-object.js';
/** @see module:core/modules/object-utils/truncate */
function truncateTest() {
describe('truncate()', () => {
it('Should truncate object... |
"use strict";
var _interopRequireWildcard = function (obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (typeof obj === "object" && obj !== null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; }... |
import { v4 as uuidv4 } from "uuid";
import { tileMapDirectory } from "../Utils/tileMapDirectory";
import {
MOVE_CHARACTER,
CREATE_MAP,
SET_OBJECT,
TOGGLE_EDIT_MODE,
SELECT_OBJECT,
SET_CHARACTER,
END_TURN,
SET_TURN,
RESET_TURN,
NO_ACTION,
UPDATE_CHARACTER_INFO,
DELETE_CHARACTER,
ADD_CHARACTER... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _styledComponents = require("../../styledComponents");
var _temp;
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null... |
import { assign, map } from 'lodash'
import faker from 'faker/locale/zh_CN'
import { service, request, serviceForMock, requestForMock, mock } from './service'
import * as tools from './tools'
const files = require.context('./modules', false, /\.js$/)
const generators = files.keys().map(key => files(key).default)
expo... |
/**
* Copyright 2013-2019 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/**
* Provide a built-in WebServer used to service Duktape commands. Primarily
* a REST service provider. The following are exposed:
*
* POST /run - Execute the JavaScript code supplied in the POST data.
* GET /run/<name> - Execute the contents of the file named.
* GET /files - Return a JSON encoded list of ... |
import { createStore, applyMiddleware, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import { composeWithDevTools } from 'redux-devtools-extension';
import auth from './auth/reducer';
const rootReducer = combineReducers({ auth });
const store = createStore(
rootReducer,
composeWithDevTools(app... |
(function() {
'use strict';
/**
* SimpleUndo is a very basic javascript undo/redo stack for managing histories of basically anything.
*
* options are: {
* * `provider` : required. a function to call on `save`, which should provide the current state of the historized object through the given "done" callback
* *... |
/*
* Copyright 2013 Mozilla Foundation
*
* 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 applicable law or agr... |
(function ($) {
if (!$.fn.tree) {
throw "Error jqTree is not loaded.";
}
$.fn.jqTreeContextMenu = function (menuElement, callbacks) {
//
// TODO:
// * Make sure the useContextMenu option is set in jqTree, either complain or set it automatically
// * Make menu fade in/out
//
var self = this;
var $el ... |
import D3Plot from './plot';
const d3Plot = new D3Plot();
export default d3Plot;
export * from './util'; |
export default function createIpc (events = {}) {
if (typeof events !== 'object') {
throw new TypeError(`createIpc expects an events object as its first parameter, you passed type "${typeof events}"`);
}
Object.keys(events).forEach(key => {
if (typeof events[key] !== 'function') {
throw new TypeErr... |
describe("Chips Plugin", function () {
beforeEach(function() {
loadFixtures('chips/chipsFixture.html');
$('.chips').material_chip();
$('.chips-initial').material_chip({
data: [{ tag: 'Apple' }, { tag: 'Microsoft' }, { tag: 'Google' }],
});
$('.chips-placeholder').material_chip({
place... |
function CuilNoNumerico2(cuil)
{
for (i=0; i < cuil.length; i++) {
caracter=cuil.charAt(i);
if ( caracter.charCodeAt(0) >= 48 && caracter.charCodeAt(0) <= 57 ) {
}
else
{
return false;
}
}
return true;
}
function CuilIncorrecto2(cuil) {
x=i=dv=... |
export default class Book {
constructor(title, author) {
this.title = title;
this.author = author;
}
} |
/// <reference path="/Scripts/crossroads/crossroads.js" />
define(["jquery","knockout", "crossroads", "hasher"], function ($, ko, crossroads, hasher) {
return new Router({
routes: [
{ url: '', params: { page: 'users' } },
{ url: 'users', params: { page: 'users' } },
{ u... |
const nodeFetch = require('node-fetch');
const TokenValidator = require('twilio-flex-token-validator').functionValidator;
const updateSyncDoc = (context, event) => {
const client = context.getTwilioClient();
const syncService = client.sync.services(context.TWILIO_SYNC_SERVICE_SID);
return new Promise(function (re... |
'use strict';
const AWS = require('aws-sdk');
const randomNumber = (size) => () => Math.floor(Math.random() * size);
const senderId = randomNumber(100);
const assetCount = randomNumber(5);
const generate = () => {
const sender = senderId();
const created = new Date();
const messageId = created.getTim... |
'use strict'
const prettier = require('prettier')
const promise = require('bluebird')
const fs = promise.promisifyAll(require('fs'))
const path = require('path')
const camelcase = require('camelcase')
const colors = require('colors')
const json5 = require('json5')
const enabledCalls = json5.parse(fs.readFileSync(path.j... |
import React,{Component} from "react";
import {connect} from "react-redux";
import {fetchPosts} from "../actions";
import _ from "lodash";
import {Link} from "react-router-dom";
class PostsIndex extends Component{
componentDidMount(){
this.props.fetchPosts();
}
renderPosts(){
return _.map (... |
fdm.ProxyAPI = {
wrap: function(target, source, prop) {
var rawApi = source[prop];
target[prop] = {_rawApi: rawApi};
this.wrapProperties(target[prop], rawApi, prop);
},
wrapProperties: function(target, source, sourceName){
// reflect all original properties as getter proxies
for (var prop in source){
... |
import { Route, Switch } from 'react-router-dom'
import styled from 'styled-components/macro'
import AppFooter from './app/AppFooter'
import AppHeader from './app/AppHeader'
import useGameData from './app/useGameData'
import CreatePage from './create/CreatePage'
import DetailsPage from './details/DetailsPage'
import Ed... |
import Controller from '@ember/controller';
import Ember from 'ember';
export default Controller.extend({
date: Ember.computed('model', function(){
let createdDate = this.get('model.createdDate');
return new Date(createdDate - 60000).toLocaleString('en-US');
}),
isOpen: Ember.computed('mode... |
import test from 'tapava';
import {inject} from '../lib';
test('addDev() default', function * (t) {
const getPackage = function (arg) {
t.is(arg, 'packageName');
return Promise.resolve({
name: 'packageName',
version: '1.2.3'
});
};
const {addDev} = inject(getPackage);
const actual = y... |
function textarea_auto() {
//TODO Update before 2.2.0 Release to use Ti.UI.AUTOLINK constants
var win = Ti.UI.createWindow();
win.backgroundColor = 'white';
var currentDetection;
var ta = Ti.UI.createTextArea({
autoLink:Ti.UI.iOS.AUTODETECT_ALL,
left:5, top: 5, right: 5, height: 80,
editable: false, // t... |
/**
* Parsed resources (snippets, abbreviations, variables, etc.) for Emmet.
* Contains convenient method to get access for snippets with respect of
* inheritance. Also provides ability to store data in different vocabularies
* ('system' and 'user') for fast and safe resource update
* @author Sergey Chikuyonok (se... |
boomerang.directive('gplusPostVideo', function ($sce) {
return {
link: function (scope, element) {
scope.videoUrl = $sce.trustAsResourceUrl(scope.attachment.embed.url);
scope.getDynamicHeight = function () {
return (element.prop('clientWidth') * 0.6) + 'px';
... |
var data = {
"body": "<path d=\"M12 3c-.46 0-.93.04-1.4.14c-2.76.53-4.96 2.76-5.48 5.52c-.48 2.61.48 5.01 2.22 6.56c.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28a1.98 1.98 0 0 0 3.44 0H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46A6.956 6.956 0 0 0 19 10c0-3.87-3.13-7-7-7zm.5 11h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.6... |
'use strict';
var request = require('request');
var grunt = require('grunt');
exports.stop = function( options, done ){
request( { 'url' : options.endpoint + '/selenium-server/driver/?cmd=shutDownSeleniumServer' }, function( err, data ){
//console.log('got response', err,data);
if ( data && data.body === op... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { saveUser } from "../../../redux/actions";
import Helper from "../../../utils/Helper";
import "./pending-access.scss";
const mapStateToProps = (state) => {
return {
authUser: state.global.authUser,
};
};
class PendingAcc... |
import anime from 'animejs';
export var animateBG = (el, colors, t) =>{
let animation = [];
for (let i = 0; i < colors.length; i++){
let j = i + 1
animation[animation.length] = anime({
targets: el,
backgroundColor: [colors[i], colors[j] || colors[0]],
easing:... |
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-g... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const core_1 = require("@angular-devkit/... |
const chai = require('chai');
const chaiHttp = require('chai-http');
const should = chai.should();
const server = require('../app');
chai.use(chaiHttp);
describe('Node Server', () => {
it('(GET /) anasayfayı döndürür', (done) => {
chai.request(server)
.get('/')
.end((err, res) => {
... |
import Ember from 'ember';
import {request as ajax} from 'ic-ajax';
export default Ember.Controller.extend({
dropdown: Ember.inject.service(),
ghostPaths: Ember.inject.service('ghost-paths'),
notifications: Ember.inject.service(),
actions: {
confirmAccept: function () {
var user = ... |
const fs = require('fs');
const pem = require('pem');
let readFile = function (filename) {
return new Promise(function (resolve, reject) {
fs.readFile(filename, function (err, data) {
if(err){
reject(err);
}else {
resolve(data.toString().trim());
... |
/**
* The Get Element Property command will return the result of getting a property of an element.
*
* @alias browser.getElementProperty
* @see https://w3c.github.io/webdriver/#dfn-get-element-property
* @param {string} elementId the id of an element returned in a previous call to Find Element(s)
* @param {strin... |
'use strict'
require('./models/database');
const express = require('express');
const morgan = require('morgan');
const bodyParser = require('body-parser');
const flash = require('express-flash');
const {
v4: uuidv4
} = require('uuid');
const session = require('express-session');
const cookieParser = require('cookie-... |
var mdParser = mdParser || (function(){
var _args = {};
return {
init : (Args) => {
_args = Args;
path = _args[0];
locId = _args[1];
//function mdParse (file,locId) {
var target = document.getElementById(locId);
//var target = docu... |
macDetailCallback("000495000000/24",[{"d":"2000-12-04","t":"add","a":"1st Floor, Zone 2\nKhanija Bhavan\n49, Race Course Road\n","c":"Bangalore - 560001 INDIA","o":"Tejas Networks"},{"d":"2001-10-24","t":"change","a":"1st Floor, Zone 2\nKhanija Bhavan 49, Race Course Road\n\n","c":"Bangalore - 560001 INDIA","o":"Tejas... |
/**
* chroma.js - JavaScript library for color conversions
*
* Copyright (c) 2011-2019, Gregor Aisch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code ... |
function biggestOfThree(args) {
var firstNumber = +args[0],
secondNumber = +args[1],
thirdNumber = +args[2],
result;
if (firstNumber > secondNumber) {
if (secondNumber > thirdNumber || firstNumber > thirdNumber) {
result = firstNumber;
}
else {
result = thirdNumber;
}
}
else {
if (firstNumber... |
/**
* External dependencies
*/
import { truncate } from 'lodash';
/**
* WordPress dependencies
*/
import { useSelect } from '@wordpress/data';
import { getBlockType, __experimentalGetBlockLabel as getBlockLabel } from '@wordpress/blocks';
/**
* Renders the block's configured title as a string, or empty if the tit... |
require('./bootstrap');
window.Vue = require('vue');
import Buefy from 'buefy';
Vue.use(Buefy);
//Vue.component('example-component', require('./components/ExampleComponent.vue'));
/* const app = new Vue({
el: '#app'
}); */ |
import { _ as _defineProperty, b as _typeof, d as _toConsumableArray } from './chunk-1fafdf15.js';
import { getValueByPath, toCssWidth, isCustomElement, createAbsoluteElement, removeElement } from './helpers.js';
import { F as FormElementMixin } from './chunk-905f0937.js';
import { _ as __vue_normalize__ } from './chun... |
var data = {
"body": "<circle fill=\"#FFC627\" cx=\"128\" cy=\"180.374\" r=\"103.632\"/><path d=\"M169.255 211.537l-38.761-75.62c-3.415-6.663-11.6-9.304-18.28-5.886c-6.664 3.423-9.305 11.605-5.89 18.27l16.185 31.554l-28.969 28.887c-5.315 5.303-5.315 13.896-.029 19.21a13.558 13.558 0 0 0 9.609 3.988c3.476 0 6.94-1.335 ... |
var sys = require("util")
, assert = require("assert")
, XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
, http = require("http")
, xhr;
// Test server
var server = http.createServer(function (req, res) {
// Check request method and URL
assert.equal(methods[curMethod], req.method);
asser... |
/*
* Copyright (C) 2017 Dremio Corporation
*
* 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 applicable law or... |
/* eslint-disable camelcase */
'use strict'
/* globals describe it beforeEach cli */
let expect = require('chai').expect
let nock = require('nock')
let certs = require('../../../../commands/webhooks/events/info')
const unwrap = require('../../../unwrap')
describe('heroku webhooks:events:info', function () {
beforeE... |
export default {
MOVE: 'move',
SCALE: 'scale',
DELETE: 'delete',
}; |
/**
* Copyright 2016 Intel Corporation
*
* 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 applicable law or agr... |
/// <reference types="cypress" />
import { createVisualTests } from '../../support/utils/visualTesting';
describe('Lozenge visual tests', () => {
const pageId = 'graphics-lozenge--default';
const stories = ['story--graphics-lozenge--default-story', 'story--graphics-lozenge--story-variants'];
// Example how to s... |
'use strict';
const path = require('path');
const fs = require('fs-extra');
const Mocha = require('mocha');
const Chai = require('chai');
const { Test, Suite } = Mocha;
const { expect } = Chai;
const moduleSuite = new Suite('mobileconfig module tests');
// ----- module export tests ----- //
const exportSuite = new ... |
import { useEffect, useState } from 'react'
import Head from 'next/head'
function PageBody({ data }){
return(
<>
<h1>teste = {data.id}</h1>
<h1>teste = {data.full_name}</h1>
</>
)
}
function PageHead({ name }){
return(
<Head>
<meta charSet="UTF-8"/>
<meta name="author" conten... |
import * as env from "@env";
import * as sys from "@sys";
import {encode,decode} from "@sciter";
var path;
var list = []; // list of persistable objects
// persistable settings
export async function store()
{
if(!path)
return;
var file;
try {
file = await sys.fs.open(path,"w+",0o666);
var data ... |
/**
* @license
* MOST Web Framework 2.0 Codename Blueshift
* Copyright (c) 2017, THEMOST LP All rights reserved
*
* Use of this source code is governed by an BSD-3-Clause license that can be
* found in the LICENSE file at https://themost.io/license
*/
///
function previousStateListener(event, callback) {
var... |
import toInteger from '../_lib/toInteger/index.js';
import addWeeks from '../addWeeks/index.js';
import requiredArgs from '../_lib/requiredArgs/index.js';
/**
* @name subWeeks
* @category Week Helpers
* @summary Subtract the specified number of weeks from the given date.
*
* @description
* Subtract the specified ... |
describe('Stomp', function () {
describe("Stomp's ability", function () {
beforeEach(function () {
this.setupTest({
player1: {
house: 'saurian',
hand: ['stomp'],
inPlay: ['terrordactyl', 'dextre']
},
... |
function SvgBusinessCenterSharp(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path d='M0 0h24v24H0V0z' fill='none' />
<path d='M10 16v-1H3.01v6H21v-6h-7v1h-4zm12-9h-6V5l-2-2h-4L8 5v2H2v7h8v-2h4v2h8V7zm-... |
/* exported aikey */ window.aikey = function () { return "2f12afed-6139-456e-9de3-49003d3a1fb1"; }; |
import LocationMap from './LocationMap';
export default LocationMap; |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
module.exports = {
rules: {
// require braces in arrow function body
'arrow-body-style': 0,
// require parens in arrow function argume... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { compose } from 'ramda';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import IconButton from '@material-ui/core/IconButton';
import List from '@material-ui/core/List';
impo... |
import { Table, TableRow, TableCell, Text, theme } from '@aragon/ui'
import CID from 'cids'
import IPFS from 'ipfs-http-client'
import IPLD from 'ipld'
import IPLDGit from 'ipld-git'
import React from 'react'
import styled from 'styled-components'
import Display from '../components/Browser/Display'
const EMPTY_REPO = ... |
zr.controller('TournamentsListController', ['$scope', 'tournamentResources', function($scope, tournamentResources) {
$scope.pastTournaments = [];
$scope.activeTournaments = [];
var allTournaments = tournamentResources.data.rows;
var now = Date.now();
for(var i = allTournaments.length; i--; ) {
var t = allTournam... |
const gm = require('gm');
const path = require('path');
exports.UploadImg = async (req, res) => {
console.log(req.files);
const imgs = [];
const tumb = [];
req.files.map((e) => {
imgs.push(e.filename);
const filePath = path.join('public', e.filename);
gm(filePath).resize(480, 480, '!')
.write... |
const fs = require('fs');
(function mainline() {
process.nextTick(() => {
console.log('A');
});
console.log('B');
// delay 0 or 3 or 10 ?
setTimeout(() => {
console.log('C');
}, 3);
setImmediate(() => {
console.log('D');
});
fs.readdir('./', 'utf8', (err, fil... |
/**
* @Author: Micheal
* @Date: 2017-03-27 10:44:57
* @Last Modified by: Micheal
* @Last Modified time: 2017-03-31 21:34:21
* @GitHub: https://github.com/maxsmu
*/
module.exports = {
development: {
hostname: ['localhost:40000'],
dbname: 'company_site',
username: 'chaoyang',
password: '123456qwe'
... |
export const SALES_SORT_CRITERIA = {
sortTypeDefaultPage: '0',
sortTypeMostFounded: '1',
sortTypeByEndTime: '2',
sortTypeByPopularity: '3',
sortTypeStartTime: '4',
} |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var AddToDOM = require('../dom/AddToDOM');
var AnimationManager = require('../animations/AnimationManager');
var Cache... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.