text stringlengths 2 1.04M |
|---|
var firedbLink = 'https://xxxxxxxx.firebaseIO.com'; // put your fireBase DB link here (i.e.: 'https://xxxxx.firebaseIO.com') |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Container,
Header, Title,
Content, Button,
Card,
Icon, Left,
View,
Right,
Body,
Text,
Input,
Item,
Spinner,
Thumbnail,
Subtitle } from 'native-base';
import { Actions } from 'react-native-router... |
var itunes = require('../common/itunes');
exports.getActor = function (req, res) {
itunes.lookup({
id: req.params.id,
entity: 'movieArtist'
}, res, 'single');
};
exports.getActorMovies = function (req, res) {
itunes.lookup({
id: req.params.id,
entity: 'movie'
}, res, 'm... |
import ReactGA from 'react-ga';
const TrackingID = 'UA-138903307-1'
function isProduction(){
return window.location.host === 'manager.ens.domains'
}
export const setup = () => {
if(isProduction()){
ReactGA.initialize(TrackingID);
}
}
export const pageview = () => {
const page = window.location.pathname... |
function signup() {
//extract input data from all 5 inputs
const firstName = document.getElementsByName("firstName")[0].value;
const lastName = document.getElementsByName("lastName")[0].value;
const email = document.getElementsByName("email")[0].value;
const password = document.getElementsByName("p... |
define(['redux', './analyzing', './buckets', './dumps', './uploader', './loadOlderDumps'],
function(Redux, Analyzing, Buckets, Dumps, Uploader, LoadOlderDumps) {
return Redux.combineReducers({
Analyzing,
Buckets,
Dumps,
Uploader,
LoadOlderDumps,
});
}); |
// 自己的借口呀:用户的注册和登录等服务,注意所有的接口应该都现在index.js里面注册,方便统一管理
import api from './index'
import { axios } from '../utils/request'
export function login (parameter) {
return axios({
url: api.UserLogin,
method: 'post',
data: parameter
})
}
export function register (parameter) {
return axios({
url: api.Use... |
module.exports = (devServerDefault) => {
return {
...devServerDefault,
proxy: {
...devServerDefault.proxy,
'/rest': {
target: 'https://dev.mapstore.geo-solutions.it/mapstore',
secure: false,
headers: {
host: ... |
// file for writing reviews
const mongoose = require("mongoose");
const Review = require("./reviewSchema");
const User = require("./userSchema");
async function getAggregate(productId) {
const rating = await Review.aggregate([
{
$match: {
productId: mongoose.Types.ObjectId(productId),
},
... |
const {readFileSync} = require('fs');
const fetchMock = require("fetch-mock");
const {stringToHTML, mockLocalStorage} = require('../utils');
const {CONTRIBUTION_LANGUAGE,SPEAKER_DETAILS_KEY} = require('../../build/js/common/constants');
const {showFucntionalCards, hasUserRegistered} = require('../../build/js/common/com... |
var mongodb = require('./db');
function Message(name, time, content){
this.name = name;
this.time = time;
this.content = content;
}
module.exports = Message;
// 存储留言
Message.prototype.save = function(callback){
// var date = new Date();
var message = {
name: this.name,
time: this.... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.editor} class, which is the base
* for other classes representing DOM objects.
*/
/**
* Represents a DOM object. This c... |
'use strict';
import Graph from '../../../../src/js/controls/Graph/Graph';
import Line from '../../../../src/js/controls/Line';
import { COLORS, SHAPES } from '../../../../src/js/helpers/constants';
import styles from '../../../../src/js/helpers/styles';
import { getSVGAnimatedTransformList } from '../../../../src/js/... |
import { observable, observer, useStrict } from 'mobx';
useStrict(true);
@observer
export default class Customer {
@observable id;
@observable customerName;
@observable addressLine1;
@observable addressLine2;
@observable city;
@observable state;
@observable zip;
@observable website;
... |
/*! weixin-ui 2015-06-12 */
/* author:zhanwangye */ |
import { SET_ACTIVE_ITEM } from '../action_names';
import menuData from '../menuData';
const INITIAL_MENU_STATE = {
activeItem: [-1, -1],
menuItems: menuData,
};
const menuReducer = (state = INITIAL_MENU_STATE, action) => {
switch (action.type) {
case SET_ACTIVE_ITEM:
const [parentItemId, itemId] = ac... |
const zulip = require('../../lib/');
let recipient = process.env.ZULIP_USERNAME;
if (process.env.ZULIP_TYPING_RECIPIENT) {
recipient = process.env.ZULIP_TYPING_RECIPIENT;
}
const config = {
username: process.env.ZULIP_USERNAME,
apiKey: process.env.ZULIP_API_KEY,
realm: process.env.ZULIP_REALM,
};
zulip(confi... |
var validateActionType = require('../../validator/actionTypeValidator.js');
describe('ActionType', function() {
describe('get', function() {
it('should return list of actionTypes', function(done) {
gladys.actionType
.get()
.then(function(result) {
validateActionType(result);
... |
//= require_tree .
//= require bootstrap |
amis.define('src/utils/api.ts', function(require, exports, module, define) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearApiCache = exports.setApiCache = exports.getApiCache = exports.isSameApi = exports.isEffectiveApi = exports.isValidApi = exports.isApiOutdated = e... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{
/***/ "../../node_modules/@ionic/core/dist/esm/ion-app_8-md.entry.js":
/*!************************************************************************!*\
!*** /opt/app/node_modules/@ionic/core/dist/esm/ion-app_8-md.entry.js ***!
\*********************... |
/* <li class="collection-item" id="new-item" title="New Item">A new list<a class="secondary-content"><i class="material-icons">grade</i></a></li> */
const li = document.createElement('li')
li.className = 'collection-item'
li.id = 'new-item'
li.setAttribute('title', 'New Item')
li.appendChild(document.createTextNode('A... |
import analyseConfig from '../../helpers/analyseConfig';
const dispatchTo = (name, requestName, { payload, ...callback }, internalProps) => {
if (!internalProps) throw SyntaxError('Component Name and Request Name must be defined.');
const configs = name && analyseConfig.get(name, requestName);
const { beforeDi... |
/*!
* OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/ui/thirdparty/jquery','sap/ui/Global'],function(q){"use strict";q.fn.control=function(i,I){var c=this.map(function(){var C;if(I){var $=q(this).closes... |
module.exports = function(grunt) {
var distribution = "openseadragon.js",
sources = [
"src/openseadragon.js",
"src/eventhandler.js",
"src/mousetracker.js",
"src/control.js",
"src/controldock.js",
"src/viewer.js",
"src/n... |
'use strict'
const { Client } = require('../../../index')
const { statSync } = require('fs')
const { join } = require('path')
const { bench, beforeEach, afterEach } = require('../suite')({
report: {
url: process.env.ES_RESULT_CLUSTER_URL,
username: process.env.ES_RESULT_CLUSTER_USERNAME,
password: proces... |
export const mapO = {"viewBox":"0 0 2048 1792","children":[{"name":"path","attribs":{"d":"M2020 11q28 20 28 53v1408q0 20-11 36t-29 23l-640 256q-24 11-48 0l-616-246-616 246q-10 5-24 5-19 0-36-11-28-20-28-53v-1408q0-20 11-36t29-23l640-256q24-11 48 0l616 246 616-246q32-13 60 6zM736 146v1270l576 230v-1270zM128 363v1270l544... |
/*
* 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... |
/**
* iterateObject
* Iterates an object. Note the object field order may differ.
*
* @name iterateObject
* @function
* @param {Object} obj The input object.
* @param {Function} fn A function that will be called with the current value, field name and provided object.
* @return {Function} The `iterateObject` fun... |
define("@glimmer/low-level", ["exports"], function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.Stack = _exports.Storage = void 0;
var Storage =
/*#__PURE__*/
function () {
function Storage() {
this.array = [];
this.next = 0;
... |
"use strict";
const { Managers, Crypto, Utils } = require("@arkecosystem/crypto");
const utils = require("./utils");
const shared = require("./shared");
const testUtils = require("../../../../lib/utils/test-utils");
const { TransactionFactory } = require('../../../../../helpers/transaction-factory');
const { htlcSecre... |
'use strict';
// Load modules
const Fs = require('fs');
const Path = require('path');
const Language = require('../lib/language');
// Declare internals
const internals = {
API: Fs.readFileSync(Path.join(__dirname, '../API.md'), 'utf8'),
startString: '<!-- errors -->',
endString: '<!-- errorsstop -->',
... |
/* ============================================================================
Copyright (C) 2006-2018 Talend Inc. - www.talend.com
This source code is available under agreement available at
https://github.com/Talend/data-prep/blob/master/LICENSE
You should have received a copy of the agreement
along wit... |
/*
* Copyright 2003-2006, 2009, 2017, 2020 United States Government, as represented
* by the Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASAWorldWind/WebWorldWind platform is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use t... |
export default class MoveArticleCommand {
name = 'move-article';
constructor(model) {
this.model = model;
}
canExecute() {
return true;
}
execute(controller, besluitUri, articleElement, moveUp) {
const subjectNodes = controller.datastore
.match(`>${besluitUri}`, 'prov:value', null)
... |
/**
* Tests that the $indexstats aggregation pipeline returns timeseries index statistics.
*
* @tags: [
* requires_fcv_51
* ]
*/
(function() {
load("jstests/core/timeseries/libs/timeseries.js");
const st = new ShardingTest({shards: 2});
if (!TimeseriesTest.shardedtimeseriesCollectionsEnabled(st.shard0)) {
... |
import axios from 'axios'
const instance = axios.create({
baseURL: process.env.API_URL
})
export default instance |
export const APP_START = 'APP_START';
/* Auth */
export const AUTH_LOGGED_IN = 'AUTH_LOGGED_IN';
export const AUTH_LOGGED_OUT = 'AUTH_LOGGED_OUT';
export const LOGOUT = 'LOGOUT';
export const ACCOUNTS = 'ACCOUNTS';
/* Keycloak */
export const RECEIVE_KEYCLOAK_CONFIG = 'RECEIVE_KEYCLOAK_CONFIG';
export const ERROR_REC... |
/*!
=========================================================
* Material Dashboard React - v1.8.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (h... |
// Aquí como es NodeJS se usa 'require' en vez de 'import'
const slugify = require('slugify');
// Reemplazamos los espacios por '-' y lo ponemos en minusculas
const sligifyOptions = {
replacement: '-',
lower: true
}
// Le pasamos el slug a los node
exports.sourceNodes = ({ actions }) => {
actions.createTy... |
class Circulo extends Figura {
constructor(posX , posY, radius,fill,contexto){
super(posX,posY,fill,contexto);
this.radius = radius;
}
draw(){
super.draw();
this.contexto.beginPath();
this.contexto.arc(this.posX , this.posY,this.radius,0,2*Math.PI);
this.cont... |
const quizAttemptDao = require('../daos/quiz-attempts-dao')
module.exports = (app) => {
app.post('/api/quizzes/:qid/attempts', (req, res) =>
quizAttemptDao.createAttempt( req.params['qid'], req.body)
.then(attempt => res.send(attempt)))
app.get('/api/quizzes/:qid/attempts', (req, res) =>
... |
/*
@author Alberto Hartzet
*
*I wouldn't mind if you use this piece of code in your project as long
as you give credit with a link to my site. www.albertohartzet.com
*
Licence (CC BY-NC-SA 4.0) http://creativecommons.org/licenses/by-nc-sa/4.0/
*/ |
import moment from 'moment';
export const formatDate = value => moment(String(value)).format('YYYY-MM-DD');
export const formatDateTime = value => moment(String(value)).format('YYYY-MM-DD HH:mm');
export const toLowerCase = value => String(value).toLowerCase();
export const toUpperCase = value => String(value).... |
import { getString, setString } from 'tns-core-modules/application-settings'
const tokenKey = 'token'
/**
* Parent service class. Has common configs and methods.
*/
export default class BackendService {
isLoggedIn() {
return !!getString(tokenKey)
}
get token() {
return getString(tokenKey)
}
set... |
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!... |
/**
* @license
* Copyright 2014 The Emscripten Authors
* SPDX-License-Identifier: MIT
*/
var LibraryHTML5 = {
$JSEvents__deps: ['$withStackSave'],
$JSEvents: {
/* We do not depend on the exact initial values of falsey member fields - these fields can be populated on-demand
to save code size.
(but still ... |
/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=6438057ffc495582c856)
* Config saved to config.json and https://... |
$(document).ready(function () {
initControlValues();
});
function initControlValues() {
try{
$("#includelinktext_inp")[0].checked = JSON.parse(localStorage.getItem("include_link_text"));
$("#furigana_display").val(localStorage.getItem("furigana_display"));
$("#filter_okurigana")[0].checked = JSON.parse(localSt... |
/**
* 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... |
/*! @license Firebase v3.7.8
Build: rev-44ec95c
Terms: https://firebase.google.com/terms/ */
'use strict';
var FirebaseTokenGenerator = require('./token-generator');
var fs = require('fs');
var firebase = require('../app-node');
var credential = require('./credential.js');
function getServiceAccount(app_) {
var se... |
export { default } from '@tradegecko/warehousing/components/nav-tabs'; |
let fn = require('./index').handler;
let context = JSON.parse(process.env.__ARC_CONTEXT__);
let event = '';
process.stdin.on('data', chunk => event += chunk);
process.stdin.on('close', () => {
event = JSON.parse(event);
let cwd = process.cwd();
let missing = [];
Object.keys(require.cache).forEach(mod => {
... |
import React from 'react';
import { PersistGate } from 'redux-persist/integration/react';
import { Provider } from 'react-redux';
import { StatusBar } from 'react-native';
import './config/ReactotronConfig';
import { store, persistor } from './store';
import App from './App';
export default function Index() {
retu... |
/**
* @overview ccmjs-based web component for chat
* @author André Kless <andre.kless@web.de> 2020-2021
* @license The MIT License (MIT)
* @version 2.3.0
* @changes
* version 2.3.0 (12.07.2021):
* - text editor can also be a textarea
* - focus text editor after submit of a new message
* version 2.2.1 (16.04.20... |
import {mix} from 'polished'
export const airtable = 'https://airtable.com/shrXnZYAhGdE7smf2/tblPs6Tw5iTzlHLEE/viwUolPzfWOY5z3bh'
export const columns = 12
export const containerWidth = '70rem'
export const breakpoints = {
xs: {width: '0rem', gutter: 1.0},
sm: {width: '30rem', gutter: 1.5},
md: {width: '48rem', gu... |
module.exports = {
User: require("./User"),
Strength: require("./Strength"),
Cardio: require("./Cardio"),
Brand: require("./Brand"),
Image: require("./Image"),
Featured: require("./Featured"),
}; |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, InvalidNonce, AuthenticationError, OrderNotFound } = require ('./base/errors');
// ----------------------------------------------------------------------... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/exte... |
class HomeChart extends React.Component{
constructor(props){
super(props);
this.state = {
mychart: null,
data: [],
loading: false,
yaxis: [],
labels: [],
labels2: [],
series: [],
series2: [],
... |
/*!
* PSPDFKit for Web 2021.2.0 (https://pspdfkit.com/web)
*
* Copyright (c) 2016-2019 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEME... |
const translations = {
// English
'en': {
trigger: 'Press Space or Enter to login',
password: 'Password',
shutdown: 'Shutting down...',
hibernate: 'Hibernating...',
suspend: 'Suspending...',
restart: 'Rebooting...',
setup: 'Setup',
theming: 'Them... |
import expressJwt from 'express-jwt';
export default expressJwt({
secret: process.env.TOKEN_SECRET,
algorithms: ['HS256'],
}); |
import babelify from 'babelify'
import browserify from 'browserify-middleware'
import keystone from 'keystone'
import { packages } from '../client/packages'
const importRoutes = keystone.importer(__dirname)
// Load Routes
const routes = {
views: importRoutes('./views')
}
// Setup Route Bindings
export default fun... |
'use strict';
var inherits = require('inherits');
var RuleProvider = require('../../../../../lib/features/rules/RuleProvider');
function ConnectRules(eventBus) {
RuleProvider.call(this, eventBus);
}
ConnectRules.$inject = ['eventBus'];
inherits(ConnectRules, RuleProvider);
module.exports = ConnectRules;
Conn... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _utils = require('./utils');
var fadeInRight = {
from: {
opacity: 0,
transform: (0, _utils.translate3d)('100%', 0, 0)
},
to: {
opacity: 1,
transform: 'none'
}
};
exports.default = fadeInRight; |
define({ "api": [
{
"type": "put",
"url": "/api/v1/admin/change/:token",
"title": "Change admin password",
"name": "Change",
"description": "<p>This is where an admin password is changed.</p>",
"group": "Admin",
"parameter": {
"fields": {
"Parameter": [
{
... |
/**
* @fireguard/vue-snotify v3.2.3
* (c) 2020 artemsky <mr.artemsky@gmail.com>
* @license MIT
*/ |
/* @flow */
import type { CreateTemplate } from '../../types';
module.exports = (createTemplate: CreateTemplate) => createTemplate`
{
"/": {
"component": "src/apps/main/Index.js",
"routes": "src/apps/main/routes.js",
"reducers": "src/apps/main/reducers"
}
}
`; |
export default (() => {
let o;
return Jymfony.Component.VarExporter.Internal.Hydrator.hydrate(
o = [
(new ReflectionClass('Jymfony.Component.DateTime.Internal.RuleSet')).newInstanceWithoutConstructor(),
(new ReflectionClass('Jymfony.Component.DateTime.Internal.Rule')).newInstance... |
(function(){
var app = angular.module('xschen-angular-ui-module');
var service = function($log, $uibModal){
var spin = function(message, title){
var size = 'lg';
var modalInstance = $uibModal.open({
animation: true,
template: "<div><div class='modal-header modal-header-info'><h3 class='moda... |
export class tilemap {
constructor(scene, json, side, scale, tileImages, hoffset = 0, voffset = 0) {
this.scene = scene;
this.tileMap = this.scene.add.tilemap(json);
let pos = ((11 * side) - ((side * scale) * 11)) / 2;
let DungeonTiles = this.tileMap.addTilesetImage(tileImages);
... |
function formatDate ( date ) {
let now = new Date();
const hourLocale = ( time ) => {
return time.toLocaleTimeString( undefined, { hour: 'numeric', minute: 'numeric' } )
};
const day = 1000 * 60 * 60 * 24;
var nowAtMorning = Date.UTC( now.getFullYear(), now.getMonth(), now.getDate() );
... |
var searchData=
[
['defaultcameracontroller',['DefaultCameraController',['../classgame_1_1_default_camera_controller.html',1,'game']]],
['dynamicentity',['DynamicEntity',['../classgame_1_1_dynamic_entity.html',1,'game']]],
['dynamicshapephysics',['DynamicShapePhysics',['../classgame_1_1_dynamic_shape_physics.html... |
// Icon: Linear.GestureZoom2
import React from 'react';
import defaultProps from 'components/common-ui/Icon/defaultProps';
export default props => (
<svg {...defaultProps} {...props}>
<g>
<path d="M819.2 896c0 14.138-11.462 25.6-25.6 25.6s-25.6-11.462-25.6-25.6c0-14.138 11.462-25.6 25.6-25.6s2... |
import { getCurrentUser } from "./queries";
import User from "./User";
const state = {
currentUser: null,
};
const getters = {
// Store user as plain json props so we can
// persist it easily in localStorage or something,
// hydrate with model object using the getter
currentUser(state) {
c... |
//// [file.tsx]
declare module JSX {
interface Element { }
interface IntrinsicElements {
test1: { "data-foo"?: string };
test2: { "data-foo"?: string };
}
}
// Invalid names
<test1 32data={32} />;
<test2 -data={32} />;
//// [file.jsx]
// Invalid names
<test1 />;
32;
data = { 32: } / > ;
<test2 /> - data;
{
... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
//# sourceMappingURL=2916.53d45f4cdbd463decbac.js.map |
export const addItem = function(itemAndAmount) {
return {
type: "ADD_ITEM",
payload: itemAndAmount,
}
}
export const removeItem = function(item) {
return {
type: "REMOVE_ITEM",
payload: item,
}
}
export const changeAmount = function(itemAndAmount) {
return {
... |
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const appConfig = require('../config/webConfig')
const { merge } = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin =... |
var request = require('request');
var util = require('util');
var status_code;
function GAuthifyError(message, error_code) {
this.message = message;
this.error_code = error_code;
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
function ApiKeyError(message, error_code) {
... |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=18fe57e93ef0c027c3df5b34723d49d3)
* Config saved to config.jso... |
'use strict'
const { getPubsubRouting } = require('./utils')
const withTimeoutOption = require('ipfs-core-utils/src/with-timeout-option')
/**
* @param {Object} config
* @param {import('../../../ipns')} config.ipns
* @param {import('../../init').ConstructorOptions<any, any>} config.options
*/
module.exports = ({ i... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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 appli... |
deepmacDetailCallback("001670000000/24",[{"d":"2005-11-24","t":"add","a":"Fontana Shinyokohama\nShinyokohama 2,17,2 kohoku-ku\nYokohama Kanagawa 222-0033\n","c":"JAPAN","o":"SKNET Corporation"},{"d":"2015-08-27","t":"change","a":"Fontana Shinyokohama Yokohama Kanagawa JP 222-0033","c":"JP","o":"SKNET Corporation"}]); |
'use strict';
var ViewEvents = function() {
Utils.loadDomIds(this, [
'selectPageContentOverlay',
'currentMusicContentOverlay',
'gotoSelectMusicPage',
'toggleCurrentMusicPageView',
'nowPlayingInfo',
'nowPlayingControls'
]);
this.router = new Router(this);
this.router.declareRoutes(... |
import api from "../api/api";
import store, { persistor, history } from "../store";
import actions from ".";
export const postIdea = (
_userId,
_projectId,
title,
description
) => async _dispatch => {
await api.fetchAndDispatch("POST", "idea", "IDEA", {
_userId,
_projectId,
title,
description... |
/**
* Created by LamDo on 4/24/16.
*/
jest.autoMockOff();
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const KanbanBoard = require('../app/KanbanBoard.jsx');
describe('KanbanBoard', () => {
var kanbanBoard = TestUtils.renderIntoDocument(<KanbanBo... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
export default "M20,16V10H22V16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H16V4H8V16H20M10.91,7.08L14,10.17L20.59,3.58L22,5L14,13L9.5,8.5L10.91,7.08M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16Z" |
const webpack = require("webpack");
const path = require("path");
const { ElmTigersharkWebpackPlugin } = require("elm-tigershark");
module.exports = (env, argv) => ({
entry: {
index: "./src/index.ts",
tigersharkCLI: "./src/tigersharkCLI.ts"
},
target: "node",
output: {
path: path.resolve(__dirname,... |
import React, { Component } from 'react'
import { get, put } from '../utils/httpAgent'
import Alert from '../shared/alert'
import Button from '../components/button'
import Spinner from '../components/spinner'
import ControlGroup from '../components/control-group'
import TextControl from '../components/text-control'
cl... |
const Animated = require('Animated');
const React = require('React');
const View = require('View');
import type { Foo } from 'Foo';
function MyComponent(): Foo {
return React.createElement(Animated.View);
}
MyComponent.propTypes = {
style: View.propTypes.style
};
module.exports = MyComponent; |
if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
//FORMATO DE DOCUMENTAÇÃO DE UMA ROTA
/**
* @swagger
* /cliente:
* get:
* description: Use para obter a lista completa de clientes.
* responses:
* '200':
* description: Uma resposta de sucesso.
*/
exports.get = async (req, res, next) => {
await res.status(200).send("Lista de Clientes!");
}... |
import React, { useState } from 'react';
import { storiesOf } from '@storybook/react';
import { grommet } from 'grommet/themes';
import { deepMerge } from 'grommet/utils';
import { Box, Text, ThemeContext, Grommet, Select } from 'grommet';
const customTheme = deepMerge(grommet, {
global: {
focus: {
border... |
const assert = require('assert');
const convert = require('../src/originalConvert');
const tests = {};
tests.measures = function () {
const actual = convert().measures();
const expected = [
'length',
'area',
'mass',
'volume',
'each',
'temperature',
'time',
'digital',
'partsPer'... |
var fs = require('fs')
, http = require('http')
, socketio = require('socket.io');
var express = require('express');
var app = express();
app.use(express.static(__dirname))
var server = http.createServer(app).listen(8080, function() {
console.log('- - - Listening at: http://localhost:8080 - - -');
});
var ... |
/*jslint node: true */
"use strict";
var log = require( './log.js' );
var _ = require('lodash');
var async = require('async');
var db = require('./db.js');
var conf = require('./conf.js');
// Functions for reading headers commissions and witnessing outputs.
// In all functions below, type=(headers_commission|witne... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.