text stringlengths 2 1.04M |
|---|
"use strict";
require("6to5/polyfill");
var _ = require("lodash");
var should = require("should");
var Promise = (global || window).Promise = require("bluebird");
var __DEV__ = process.env.NODE_ENV !== "production";
var __PROD__ = !__DEV__;
var __BROWSER__ = typeof window === "object";
var __NODE__ = !__BROWSER__;
if ... |
$(function() {
function setCorrectness(correctness) {
var prediction_id = $("#prediction_id").html();
$.ajax({
type: "POST",
url: "/correctness",
data: JSON.stringify({
prediction_id: prediction_id,
correctness: correctness
... |
const path = require('path')
const express = require('express')
const session = require('express-session')
// session 存储方式
// 1. 内存
// 2. mongodb 放在数据库里
// 函数柯里化
const MongoStore = require('connect-mongo')(session);
const flash = require('connect-flash')
const config = require('config-lite')(__dirname)
con... |
import firebase from 'firebase';
const config = {
apiKey: "AIzaSyAfeSpKeC4HUU9ZAz1QawQbdnw3tXISspI",
authDomain: "earnest-star-265609.firebaseapp.com",
databaseURL: "https://earnest-star-265609.firebaseio.com",
projectId: "earnest-star-265609",
storageBucket: "earnest-star-265609.appspot.com",
... |
import React from 'react';
import {
Col,
Label,
Input,
FormGroup
} from 'reactstrap';
import './formGroup.css';
export default class FormGroup3_9Select extends React.Component {
onChanged(event) {
this.props.onChanged(event)
}
render () {
return (
<For... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.input = {
title: 'Example Schema',
type: 'object',
properties: {
'`foo`': {
type: 'string'
},
"'bar'": {
type: 'string'
},
'"baz"': {
type: 'string... |
/* eslint-disable no-unused-vars */
const ApiService = require('../api.service');
module.exports = class AdminApiService extends ApiService {
getBasicPath() {
return `${Cypress.config('baseUrl')}/api`;
}
/**
* Renders an header to stdout including information about the available flags.
... |
var isWebHelp = false;
var isSdkBeta = false;
var fpPrintCSS = "rsrc/htmlprint.css";
function getLang () {
return "en";
}
function modBetaSearchForm () {
} |
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
'no-console': 'off',
'no-useless-escape': 0,
'no-empty': 0
}
}; |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
RegExp.prototype.exec behavior depends on global property.
If global is true next exec calling start to match from lastIndex position
es5id: 15.10.6.2_A4_T12
descrip... |
'use strict';
var duplexer = require('plexer');
var svgicons2svgfont = require('gulp-svgicons2svgfont');
var svg2ttf = require('gulp-svg2ttf');
var ttf2eot = require('gulp-ttf2eot');
var ttf2woff = require('gulp-ttf2woff');
var ttf2woff2 = require('gulp-ttf2woff2');
var cond = require('gulp-cond');
var filter = requir... |
// const yargs=require('yargs')
// const argv=yargs.options({
// module:{
// alias:"m",
// type:['string'],
// describe: '模块',
// default:"commonjs"
// }
// }).argv
// const module=argv.module=='false'?false:argv.module;
//从下到上
let presets = [
[
"@babel/preset-env",
{
/**
... |
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Geometry/Collection.js
* @requires OpenL... |
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout... |
import slack from 'slack'
export default {
api: {
slack
}
} |
const Discord = require("discord.js")
module.exports.run = async(bot,message,args)=>{
const target = message.mentions.users.first() || message.author
const avatar = target.displayAvatarURL({dynamic:true,size:1024})
embed = new Discord.MessageEmbed()
.setImage(avatar)
.setDescription(`${target} Avat... |
/**
* Uber API
* Move your app forward with the Uber API
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (t... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'undo', 'fr-ca', {
redo: 'Refaire',
undo: 'Annuler'
} ); |
/*! For license information please see index.js.LICENSE.txt */ |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
/*!
* FlexMasonry
* Version: 0.2.3
* Author: Gilbert Pellegrom <gilbert@pellegrom.me>
* License: MIT
*/ |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import classNames from 'classnames';
import React, { useContext } from 'react';
import useEventCallback from '@restart/hooks/useEventCallback';
import warning f... |
const mockResponse = () => {
const res = {};
res.locals = {};
res.redirect = jest.fn();
res.render = jest.fn();
res.status = jest.fn().mockReturnValue(res);
res.json = jest.fn().mockReturnValue(res);
res.send = jest.fn().mockReturnValue(res);
return res;
};
module.exports = mockResponse; |
// @flow
import { BrowserTestCase } from '@findable/webdriver-runner/runner';
import { getExampleUrl } from '@findable/webdriver-runner/utils/example';
import Page from '@findable/webdriver-runner/wd-wrapper';
/* Url to test the example */
const urlTextfields = getExampleUrl('core', 'form', 'text-fields');
/** Css se... |
const path = require('path');
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:vue/essential',
'airbnb-base',
],
settings: {
'import/resolver': {
webpack: {
config: path.resolve(__dirname, './build/webpack.base.conf.js')
}
}
... |
import React from "react";
function List(props) {
console.log(props)
const notPurchased= props.gorceries.filter(item => !item.purchased)
return (
<ul className="list-group">
{props.groceries.map(item => (
<li key = {item.id}>
{item.name}
</li>
))}
</ul>
);
}
export... |
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
/**
* Created by 惠波 on 2015/7/31.
*/
var deps = [require('./b')]; // 数组请求测试
var deps2 = (require('./b')); // 括弧请求测试(因为多匹配一个字符导致的问题)
var b = require('./b');
var tpl = require('../template/test.ejs');
var c = myrequire('mod'); //测试方法带有关键字时匹配不许通过
function myrequire(mod) {
return mod;
}
exports.test = function () ... |
/*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 0.14.3 - 2015-10-23
* License: MIT
*/ |
import React, { useState, useEffect } from "react";
import axios from "axios";
import { Link } from "react-router-dom";
import { url } from "config";
import { connect } from "react-redux";
import { categoryAction } from "../../actions";
import "./category.scss";
import {
Badge,
Button,
Card,
Navbar,
Nav,
T... |
const mongoose = require('mongoose');
const glob = require('glob');
const winston = require('winston');
mongoose.Promise = global.Promise;
const config = require('../config');
const chalk = require('../config/chalk');
const DBURI = config.db;
const options = {
reconnectTries: Number.MAX_VALUE,
reconnectInterval:... |
const AWS = require('aws-sdk')
const support = new AWS.Support({
apiVersion: '2013-04-15',
region: 'us-east-1' // AWS Support API is only accessible from the us-east-1 region
})
const utilities = {
/*
These checks are being removed on November 18, 2020
See: https://docs.aws.amazon.com/awssupport/latest/u... |
System.register([],(function(e){"use strict";return{execute:function(){var a=e("c","display-if-is");var r=e("b","display-if-exists");var d=e("a","definedProperties");var l=e("f","definedEvents");var n=e("g","definedControllers");var o=e("D","data-define-props");var i=e("d","data-define-events");var v=e("e","data-define... |
var config = require('../../../../config');
const logger = require('../../../logger');
const Router = require("koa-router");
const router = new Router({ prefix: "/api" });
const api = require('./api');
logger.info("Socialytics Instagram backend API and Router initialized...");
router.get("/etl-health-check", async (ctx... |
// Import vue component
import component from './vue-let-it-snow.vue';
// install function executed by Vue.use()
// export function install(Vue) {
// if (install.installed) return;
// install.installed = true;
// Vue.component(component.name, component);
// }
component.install = function(Vue) {
if (component.ins... |
/*!
* jquery.inputmask.bundle.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.11
*/
|
module.exports = {
pathPrefix: `/`,
siteMetadata: {
title: `Frameboi`,
siteUrl: `https://frame.dscnitrourkela.org`,
description: `Profile Picture Frame Generator for HackNITR 3.0 `,
canonicalUrl: `https://frame.dscnitrourkela.org`,
author: {
name: `Frameboi`,
description: `Profile Pi... |
import React from 'react'
import { storiesOf } from '@storybook/react'
import { Post } from 'components'
storiesOf('Molecules/Post', module)
.add('default', () => (
<Post title="Hello" body="Ullamco et reprehenderit magna cillum ullamco consectetur et enim aliqua." />
)) |
/*jslint node: true, vars: true, nomen: true */
'use strict';
var util = require('util');
var MasterElement = require('./masterElement');
var schema = require('../schema');
var _proto = require('./_proto');
function Targets(doc, tagId, start, length) {
MasterElement.call(this, doc, tagId, schema.byName.Targets, sta... |
(function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:expor... |
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
//# sourceMappingURL=4.06aae7d3240d7bdde5fa.js.map |
var Tag = require("../../src/node/tag");
var Text = require("../../src/node/text");
function h(context, children) {
var context = context || {};
var children = children || [];
if (typeof context === "string") {
return new Text(context);
}
var tagName = (context.tagName || "div").toLowerCase();
delete ... |
import React from 'react';
import ReactDOM from 'react-dom';
import Vue from 'vue';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol... |
'use strict'
const moduleConfig = require('../utils/module-config')
module.exports = (arg) => {
const send = moduleConfig(arg)
return {
add: require('./add')(send),
addReadableStream: require('./add-readable-stream')(send),
addPullStream: require('./add-pull-stream')(send),
cat: require('./cat')(... |
/**
* Vuex State object
* */
const state = {
progressIndex: 0,
answeredQuestions: 0,
theme: {
primaryColor: 'teal',
},
survey: {
title: '',
pages: [],
numberOfQuestions: 0,
},
};
export default state; |
/* global assert, process, setup, suite, test */
var entityFactory = require('../helpers').entityFactory;
var THREE = require('index').THREE;
var SRC = '/base/tests/assets/box/Box.gltf';
var SRC_NO_DEFAULT_SCENE = '/base/tests/assets/box/Box_no_default_scene.gltf';
suite('gltf-model', function () {
setup(function (... |
const router = require('express').Router();
const { Product, Category, Tag, ProductTag } = require('../../models');
// The `/api/products` endpoint
// get all products
router.get('/', async (req, res) => {
// find all products
// be sure to include its associated Category and Tag data
try {
const data = awa... |
import * as React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Checkbox from '@material-ui/core/Checkbox';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCe... |
const { spawnSync } = require('child_process')
onmessage = function (e) {
const taskId = e.data.taskId
const command = e.data.command
const args = e.data.args
const input = e.data.input
const customEnv = e.data.customEnv
const maxBuffer = e.data.maxBuffer
try {
const process = spawnSync(command, arg... |
/*!
* Bootstrap v4.6.0 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
//# sourceMappingURL=bootstrap.bundle.min.js.map |
// Start of diagramsTemplate template
//calculates the view to render
Template.diagramsTemplate.helpers({
isDefaultView: function() {
var user_diagram = UserVersionSettings.findOne({versionId: Session.get("versionId")});;
if (user_diagram && user_diagram["view"] == "Tree")
return false;
else {
$(".popove... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Test timeline aggregated details.\n`);
await TestRunner.loadModule('timeline'); await TestRunner.loadTestMod... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var bytes_1 = require("@420integrated/bytes");
function decode(textData) {
textData = atob(textData);
var data = [];
for (var i = 0; i < textData.length; i++) {
data.push(textData.charCodeAt(i));
}
return bytes_1.ar... |
/*!
* Dashmix - v1.4.0
* @author pixelcave - https://pixelcave.com
* Copyright (c) 2018
*/
! function(e) {
var n = {};
function r(t) {
if (n[t]) return n[t].exports;
var i = n[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(i.exports, i, i.exports, r), i.l = !0, i.exports
... |
'use strict'
const { lstatSync, statSync, Stats } = require('fs')
const { join, dirname, basename, extname } = require('path')
exports.remove = require('rimraf').sync
exports.join = join
exports.resolve = ( ...args ) => {
return join(__dirname, '..', ...args)
}
exports.stat = path => {
var stats = null
try {... |
//////////////////////////////////////////////////////
// Collection Hooks //
//////////////////////////////////////////////////////
/**
* Generate HTML body from Markdown on user bio insert
*/
Users.after.insert(function (userId, user) {
// run create user async callbacks
Telesc... |
const convertToFloat = (value) => {
if (value) {
const vl2 = value.replace(',', '.')
return parseFloat(vl2).toFixed(2)
} else {
return ''
}
}
const convertStringToDateSped = (value) => {
if (value.length == 8) {
const dia = value.substring(0, 2)
const mes = parseInt(value.substring(2, 4)) -... |
var http = require('http');
var fs = require('fs');
var _ = require('underscore');
var express = require('express');
var WebSocketClient = require('websocket').client;
var Log = require('./app/models/log.js');
var SemanticLogging = require('./app/libs/semanticlogging.js');
var PlainText = require('./app/libs/sinks/plai... |
import React from 'react';
import styles from './SocialLoginButton.scss';
import classNames from 'classnames/bind';
import FacebookIcon from 'react-icons/lib/io/social-facebook';
import GoogleIcon from 'react-icons/lib/io/social-googleplus';
const cx = classNames.bind(styles);
const SocialLoginButton = ({
onSocialL... |
class ContentTopController {
constructor(auth, $scope, $rootScope,$location,$state) {
'ngInject';
this.name = 'ContentTop';
$scope.auth = auth;
$scope.isAuthenticated = $rootScope.isAuthenticated;
$scope.$on('userProfileSet', function(event, userProfile) {
$scope.profile = userProfile;
... |
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License file under the project root for license information.
//----------------------------------------------------------------------------... |
/**
* @name exports
* @summary ClaimDiagnosis Class
*/
module.exports = class ClaimDiagnosis {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, '_id', {
enumerable: tr... |
(function (window, $, factory) {
if (typeof define === 'function') {
// 如果define已被定义,模块化代码
define('app/role/edit', function (require, exports, module) {
module.exports = factory(window, $);
});
} else {
// 如果define没有被定义,正常执行
return factory(window, $);
}
... |
var Asynchrony = require('../src');
var should = require('should');
describe('Async Dependency Injection', function() {
it('Basic Scenario', function(done) {
var asynchrony = new Asynchrony();
var rand = (Math.random()*99387593793);
var count = 0;
asynchrony.add('thing1', [function(done) {
se... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[308],{3015:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.icon=void 0,t(10);var o=function(e){return e&&e.__esModule?e:{default:e}}(t(0));function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=argum... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
import Card from '@material-ui/core/Card';
import CardHeader from '@material-ui/core/CardHeader';
import CardMedia from '@material-ui/core/CardMedia';
import CardCon... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = (0, _createIcon["defaul... |
'use strict';
// Builder
// -------
var _ = require('lodash');
var inherits = require('inherits');
var EventEmitter = require('events').EventEmitter;
var Raw = require('../raw');
var helpers = require('../helpers');
var JoinClause = require('./joinclause');
// Typically called from `kn... |
'use strict'
var apm = require('elastic-apm').start({
// Set required app name (allowed characters: a-z, A-Z, 0-9, -, _, and space)
appName: 'nodejs-testapp',
// Use if APM Server requires a token
secretToken: '',
// Set custom APM Server URL (default: http://localhost:8200)
serverUrl: '',
flushInterv... |
import React from "react";
import { graphql } from "gatsby";
import { getImageUrl } from "takeshape-routing";
import Layout from "../layouts/default";
export const ProjectMetadata = ({ startDate, endDate, client }) => {
const startYear = new Date(startDate).getFullYear();
const endYear = endDate ? new Date(endDat... |
const webpack = require('webpack');
const path = require('path');
const config = require('./config');
const mode = require('./lib/mode');
const Jarvis = require("webpack-jarvis");
const JS_DEV = path.resolve(config.root.dev, config.js.dev);
const JS_DIST = path.resolve(config.root.dist, config.js.dist);
const publicP... |
define({
"_widgetLabel": "Varrimento",
"swipeText": " Selecionar a(s) camada(s) que pretende varrer",
"spyglassText": "Seleccionar a camada a aparecer dentro do óculo de alcance",
"disableTips": "Clique para desativar a ferramenta de varrimento",
"enableTips": "Clique para ativar a ferramenta de varrimento",
... |
describe("chorus.dialogs.ChangeWorkfileSchemaDialog", function() {
beforeEach(function() {
this.model = backboneFixtures.workfile.sql();
this.dialog = new chorus.dialogs.ChangeWorkfileSchema({ model: this.model });
this.dialog.render();
});
describe("#render", function () {
... |
/**
* @license
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apa... |
import React from 'react';
import { Render } from 'matter-js';
export default class MatterDebug extends React.Component {
static propTypes = {
width: React.PropTypes.number.isRequired,
height: React.PropTypes.number.isRequired,
engine: React.PropTypes.object.isRequired,
};
componentWillUnmount() {
... |
/*
* Copyright 2018 Expedia Group
*
* 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... |
const axios = require("axios");
exports.handler = async function (event, context) {
const API_KEY = process.env.API_KEY;
const city = event.queryStringParameters.city;
const response = await axios.get(`https://api.waqi.info/search/?token=${API_KEY}&keyword=${city}`);
const cityNameData = response.data.data[0].... |
require('dotenv').config();
const fs = require('fs');
const Stats = require('./stats');
const api = require('./api');
const tracker = api.statTracker;
const Discord = require('discord.js');
const bot = new Discord.Client();
const TOKEN = process.env.TOKEN;
const channelFiles = '.channels';
const defaultChannels =... |
/**
*
* Asynchronously loads the component for FavoritesScreen
*
*/
import loadable from 'utils/loadable';
export default loadable(() => import('./index')); |
import React, { Component } from 'react';
import api from '../api';
import { shared } from '../constants';
import styled from 'styled-components';
const Title = styled.h1.attrs({
className: 'h1',
})``;
const Wrapper = styled.div.attrs({
className: 'form-group',
})`
margin-top: 0 30px;
`;
const Label ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... |
import React from "react";
// import Card from "react-bootstrap/Card";
// import CardGroup from "react-bootstrap/CardGroup";
import "../Style/Aboutus.css";
// import Image1 from "../components/teamimg/h.jpg";
// import Image2 from "../components/teamimg/omar.jpeg";
// import Image3 from "../components/teamimg/issapic.p... |
function Calcular() {
const numero = parseFloat(window.prompt('Digite um número: '))
const res = document.getElementById('res')
dobro = numero * 2
metade = numero / 2
res.innerHTML = `O dobro de <mark>${numero}</mark> é <mark>${dobro}</mark> e a metade é <mark>${metade}</mark>!`
} |
import './local-storage.test.js'; |
import { jQuery as $, JoubelUI } from './globals';
import {addClickAndKeyboardListeners} from "./utils";
const SummarySlide = (function () {
/**
* Constructor for summary slide
* @param {H5P.CoursePresentation} coursePresentation Course presentation parent of summary slide
* @param {$} $summarySlide Summar... |
var WindowManager = require('helper/WindowManager');
var Utils = require('helper/Utils');
var Cloud = require('ti.cloud');
exports['External Unlink'] = function(evt) {
var win = WindowManager.createWindow({
backgroundColor: 'white'
});
var content = Ti.UI.createScrollView({
top: 0,
contentHeight: 'auto',
lay... |
// db/graphql/utils.js
const getProjection = fieldASTs =>
fieldASTs.fieldNodes[0].selectionSet.selections.reduce((projections, selection) => {
const newProjections = projections;
newProjections[selection.name.value] = true;
return newProjections;
}, {});
const validMember = (user, spotifyId = '') => !... |
import get from "lodash/get"
export const getThemeVal = path => {
return props => get(props, `theme.${path}`)
}
export const bold = () => `font-weight: 600;`
export const semibold = () => `font-weight: 500;`
export const regular = () => `font-weight: 400;` |
export const SET_CHILDREN = 'modules/questionnaire-app/SET_CHILDREN';
export const CLEAR_CHILDREN = 'modules/questionnaire-app/CLEAR_CHILDREN';
export const setChildren = value => ({
type: SET_CHILDREN,
value,
});
export const clearChildren = () => ({
type: CLEAR_CHILDREN,
});
export const inputChildrenR... |
const express = require('express');
const router = express.Router();
const https = require("https");
const parseString = require('xml2js').parseString;
const fs = require('fs');
const Steam = require('steam');
const ethUtil = require('ethereumjs-util');
const async = require('async');
const Tx = require('ethereumjs-tx'... |
import React from 'react'
import PropTypes from 'prop-types'
import { Link, graphql } from 'gatsby'
import Layout from '../components/Layout'
import Features from '../components/Features'
import BlogRoll from '../components/BlogRoll'
export const IndexPageTemplate = ({
image,
title,
heading,
subheading,
mai... |
const url = window.location.pathname
const page = url.substr(15)
function setHtmlValue(id, value) {
document.getElementById(id).innerHTML = value
}
function setInputValue(id, value) {
document.getElementById(id).value = value
}
function getInputValue(id) {
return document.getElementById(id).value
}
func... |
"use strict";
/*
* PluginBase.ts
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Base export for the Android implementation of the plugin.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Video_1 = require("../native-common/Video");
exports.defaul... |
var ListScene = require("./scenes/list");
var LiveScene = require("./scenes/live");
var StatisticScene = require("./scenes/statistic");
var LiveAction = require("./actions/live");
var StatisticAction = require("./actions/statistic");
var loading = require("./util").loading;
var App = module.exports = function (chann... |
// This is a main entry point. It bootstraps and starts application and all
// initializers. Workflow as follows:
//
// -> runner.bootstrap
// -> initialize
// -> read main config and configs of all sub-applications
// -> init logger
// -> init all applications
// -> exec cli
// ... |
/**
* Created by hasan on 6/22/2019.
*/
Player.prototype.draw = function(x, y){
this.x = x; //required for CreatuteTextAnimation
this.y = y; //required for CreatuteTextAnimation
context.drawImage(this.portrait, x, y, this.width, this.height);
this.hpVisual.draw(x, y);
context.fillStyle = "blac... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.vueIonicons = factory());
}(this, (function () { 'use strict';
var A_ROTATE = 'rotate';
var A_BEAT = 'beat';
var A... |
/*!
* Master Slider – Responsive Touch Swipe Slider
* Copyright © 2015 All Rights Reserved.
*
* @author Averta [www.averta.net]
* @version 2.9.4
* @date Feb 2015
*/ |
module.exports={A:{A:{"1":"I D F E A B","2":"oB"},B:{"2":"C O H P J K L Z MB M R S N U V W"},C:{"2":"0 1 2 3 4 5 6 7 8 9 nB cB G a I D F E A B C O H P J K L b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB TB IB JB KB LB T NB OB PB QB RB HB Y XB UB VB WB SB Z MB M mB R S N U V vB yB"},D:{"2":"0 1 ... |
import { makeStyles } from '@material-ui/styles';
import Divider from '@material-ui/core/Divider';
import FormControl from '@material-ui/core/FormControl';
import FormHelperText from '@material-ui/core/FormHelperText';
import FormLabel from '@material-ui/core/FormLabel';
import PropTypes from 'prop-types';
import React... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.