text stringlengths 2 1.04M |
|---|
import RC from '../build/module/lib/rc.js';
import RS from 'ramdasauce';
let chatsvc = new RC('http://localhost:3000');
chatsvc.login('admin1', 'test123');
chatsvc.getInfo();
chatsvc.getMe();
chatsvc.getTeams();
chatsvc.getRooms();
chatsvc.getUsers();
// chatsvc.getDiscussions();
// getStatus('http://localhost:30... |
import VueC3CombinationElement from './../../mixins/VueC3CombinationElement'
export default {
mixins: [VueC3CombinationElement],
name: "c3-spline",
data: function data() {
return {
type: 'spline'
}
}
} |
var express = require('express');
var passport = require('passport');
var flash = require('connect-flash');
var engines = require('consolidate');
module.exports = function() {
this.set('views', __dirname + '/../../app/views');
this.set('view engine', 'hjs');
this.set('layout', 'layout');
this.engine('hjs', eng... |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/ui/core/Renderer",
"sap/ui/core/library",
"sap/ui/core/Core",
"sap/ui/Device",
"sap/base/Log",
"./library",
"./ListItemBaseRenderer"
],
function(Renderer, coreLibrary, Core, Device, Log, library, ListItemBaseRenderer) {
"use strict";
// shortcut for sap.m.PopinDi... |
// jshint esversion: 6
function truthCheck (collection, pre) {
let cont = 0;
for (let i in collection) {
if (collection[i].hasOwnProperty(pre) && Boolean(collection[i][pre])) {
cont++;
}
}
if (cont === collection.length) {
return true;
} else {
return false;
}
}
console.log(truthChec... |
import serviceConfig from '../../../../../src/plugins/recordTypes/citation/serviceConfig';
chai.should();
describe('citation record serviceConfig', () => {
it('should have servicePath property', () => {
serviceConfig.should.have.property('servicePath').that.is.a('string');
serviceConfig.should.have.property... |
modules.push('template.navbar.left.actions', 20, 'tasks_header');
modules.push('template.navbar.left.menus', 20, {menu:'Swarm', action:'tasks_header2'});
Template.tasks_header.helpers({
isActive: function(){
return 'tasks_list' === Router.current().route.getName()?'active':false;
}
});
Template.tasks_header2.h... |
/**
* Implement a function that sorts an array of numbers using the "mergesort" algorithm.
*
* Mergesort is an optimized sorting algorithm which is a common choice to implement `sort`
* methods in standard libraries as an alternative to quicksort or heapsort. (For example,
* Firefox's Array.sort method uses a tune... |
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';
const upload = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z" />
</SVG>
);
export default upload; |
var f = [];
f[0] = "v0.0.9";
f[1] = "01.mp3";
f[2] = "02.mp3";
f[3] = "03.mp3";
f[4] = "04.mp3";
f[5] = "05.mp3";
f[6] = "06.mp3";
f[7] = "07.mp3";
f[8] = "08.mp3";
f[9] = "09.mp3";
f[10] = "10.mp3";
f[11] = "11.mp3";
f[12] = "12.mp3";
f[13] = "13.mp3";
f[14] = "14.mp3";
f[15] = "15.m... |
module.exports={A:{A:{"2":"J D E F A B qB"},B:{"1":"C K L G M N O P Q R S V W X Y Z a b c d e f g T H h"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB hB NB iB OB PB U QB RB SB TB UB VB WB XB YB ZB aB bB cB dB P Q R jB S V W X Y Z a b c d e f g T H h","2":... |
const { setJsonLdImageDimensions } = require('./helpers');
const ampHandler = require('./amp-handler');
const lazyLoadHandler = require('./lazy-load-handler');
const originalPostHandler = require('./original-post-handler');
const processGhostResponse = async (ghostRes, context) => {
// Process post / page
const pr... |
import { delay } from 'async-agent';
import keyCodes from 'keycodes';
import {
applySettings,
AUTO,
DockPoint,
enforceCssSize,
HUNDRED_PERCENT,
isString,
methodArray,
methodBoolean,
methodString
} from 'type-enforcer-ui';
import controlTypes from '../controlTypes';
import Div from '../elements/Div';
import Hea... |
import React from 'react'
import Label from 'ps-react-lib-cni/Label'
/** Optional label */
export default function ExampleRequired() {
return <Label htmlFor="test" label="test" required />
} |
import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/store.js'
new Vue({
el: '#app',
router,
store,
render: h => h(App)
}) |
import Ember from 'ember';
export default Ember.Object.extend({
_props: Ember.computed(function(){
return Ember.A();
}),
setUnknownProperty(key, value){
if (/^_/.test(key)) {
return;
}
Ember.defineProperty(this, key);
const attributeObject = Ember.Obje... |
var global = {};
global.applyIcheckStyle = function () {
//$('input[type="checkbox"], input[type="radio"]').iCheck({
// checkboxClass: "icheckbox_minimal-blue",
// radioClass: "iradio_minimal-blue"
//});
}
global.applyDatepicker = function (id, showtoday) {
$("input[id$='" + id + "']").in... |
import * as c from './Constants';
export default function checkError(error) {
if(error || error.response.status === 401) {
c.APP_TOKEN.remove();
document.location.reload();
}
} |
export const UPDATE_NATURAL_TEXT = 'UPDATE_NATURAL_TEXT';
export function updateNaturalText(text) {
return {
type: UPDATE_NATURAL_TEXT,
text,
};
} |
// @flow
import MainWindow from './main-window'
import devTools from './dev-tools'
import hello from '../../util/hello'
import installer from './installer'
import menuBar from './menu-bar'
import os from 'os'
import semver from 'semver'
import splash from '../../util/splash.desktop'
import storeHelper from './store-hel... |
var domains = {
'cu': 'Cuba',
'it': 'Italia',
'be': 'Bélgica',
'us': 'USA',
'fr': 'Francia',
'ca': 'Canadá',
'es': 'España',
'cn': 'China',
'ru': 'Rusia',
'uy': 'Uruguay',
'do': 'R.Dominicana',
'hr': 'Croacia',
'co': 'Colombia',
'pe': 'Perú',
'tz': 'Tanzania',... |
import React from 'react';
import { bool } from 'prop-types';
import { StyledMenu } from './Menu.styled';
const Menu = ({ open }) => {
return (
<StyledMenu open={open}>
<a href="#about">About Me</a>
<a href="#resume">Resume</a>
<a href="#projects">Projects</a>
... |
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const preloadedState = window.__PRELOADED_STATE__
const store = configureStore(preloadedState)
render(
<P... |
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}; |
import React from 'react';
import { TouchableOpacity,StyleSheet } from 'react-native';
import AppText from '././components/AppText';
function PickerItem({label,onPress}) {
return (
<TouchableOpacity onPress={onPress} >
<AppText style={styles.Text}>{label}</AppText>
</TouchableOpacity>
... |
const uuidv4 = require(`uuid/v4`);
const fs = require(`fs`);
const { buildSchema, printSchema } = require(`gatsby/graphql`);
const { transformSchema, introspectSchema, RenameTypes } = require(`graphql-tools-fork`);
const { createHttpLink } = require(`apollo-link-http`);
const fetch = require(`node-fetch`);
const invari... |
module.exports = {
nothing: {
description: 'Não move a tarefa.',
title: 'DO NOTHING'
},
'read-for-sprint': {
description: 'Move a tarefa para o campo de tarefas pendentes.',
title: 'TO DO'
},
'dev-in-progress': {
description: 'A tarefa está em desenvolvimento.',
title: 'DEV IN PROGRESS... |
'use strict';
var translationKeys = {
warnings: {
straightRow: 'straightRow',
keyPattern: 'keyPattern',
simpleRepeat: 'simpleRepeat',
extendedRepeat: 'extendedRepeat',
sequences: 'sequences',
recentYears: 'recentYears',
dates: 'dates',
topTen: 'topTen',
topHundred: 'topHundred',
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
/**
* Represents a single operation u... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import Header from './signature-request-header'
import Footer from './signature-request-footer'
import Message from './signature-request-message'
import { ENVIRONMENT_TYPE_NOTIFICATION } from './signature-request.constants'
import { getEnvi... |
const S4Text3Pics = () => {
return (
<section className="bg-blue-700">
<div className="px-4 py-16 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8 lg:py-20">
<div className="grid gap-10 lg:grid-cols-2">
<div className="flex flex-col justify-center md:pr-8 xl:pr-0 l... |
const checkPerm = require('../../lib/checkPerm');
const request = require('request-promise');
module.exports = (app) => {
app.perms.addPermListener('*.enrolled', async (context, perm) => {
const { params, data, existing } = context;
let { grantee, type } = existing || data;
const groupId = perm[0];
c... |
/*
* This is an attempt to provide quick metrics on the build time performance
* of BuckleScript within a Reason project.
*
* It requires following files in you package.json dependency list:
* - bs-platform
* - cloc (https://github.com/AlDanial/cloc)
*
* It also requires a bsconfig.json file to exist in the cur... |
'use strict';
var _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; };
import warning from 'warning';
import { parse,... |
import { theme as chakraTheme } from '@chakra-ui/core'
export const customTheme = {
...chakraTheme,
colors: {
...chakraTheme.colors,
mustard: '#f4b860',
sky: '#23D7DB',
strawberry: '#ed6555',
charcoal: '#555',
},
fonts: {
heading: 'PT Sans',
body: 'Arvo',
mono: 'Arvo',
},
fo... |
var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static('public'));
// app.use(express.static(__dirname + 'public/data'));
app.get('/', function(request, response) {
response.redirect('/public/index.html');
});
app.listen(app.get('port'), function(... |
'use strict';
angular.module('myApp.file-service', []).service('fileListService', function () {
return {
getFileList: getFileList,
updateFileList: updateFileList
};
function getFileList() {
let files = JSON.parse(localStorage.getItem("files") || '[]')
return files;
}
... |
import templateUrl from './assets.html';
export default {
title: 'Assets',
icon: 'web_asset',
groups: ['Digital Assets'],
templateUrl: templateUrl,
controllerAs: 'ctrl',
controller: function($scope, $view, $sdp, $controller, MbAction) {
'ngInject';
angular.extend(this, $controller('MbSeenAbstractCollection... |
/**
* formats the backend's response to data table format
* @param {arr} users the /users/all-users
*/
export const formatUserData = users => {
const data = users;
const dataLength = users.length;
const formatted = [];
for (let i = 0; i < dataLength; i += 1) {
const rolesLength = data[i].user_roles.leng... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { Toggle as FToggle } from '@fluentui/react/lib/Toggle';
class Toggle extends React.Component {
constructor(props) {
super(props);
//Track the checked state within the control
var checked = false;
if (this.props.isChe... |
import {
isStateDisqualification,
hasNonZeroForeignEarnedIncome
} from "./results";
describe("results middleware", () => {
describe("isStateDisqualification", () => {
test("should be false if no selection has been made", () => {
expect(isStateDisqualification("2016", [])).toBe(false);
});
test... |
const documentContainer = document.createElement("template");
documentContainer.setAttribute("style", "display: none;");
documentContainer.innerHTML = `<style>
@font-face {
font-family: "Roboto";
src: url(/static/fonts/roboto/Roboto-Thin.ttf) format("truetype");
font-weight: 100;
font-style: normal;
}
@font-face {
fon... |
/*
* 动画的核心处理类
*
* @author Mingli (guomilo@gmail.com)
* @vision 1.0.0
*
*
* from: 指定属性的初始值
* to: 指定属性的目标值
* start: 启动动画
* stop 停止动画
* getStates 获取动画的状态
* delay 设置动画延迟执行的时间
* onframe ... |
const express = require('express');
const path = require('path');
const Queue = require('bee-queue');
const ytdl = require('ytdl-core');
const crypto = require('crypto');
const router = express.Router();
const queue = new Queue('ytdl', {
redis: {
host: 'localhost',
port: 6379
}
});
const VIDEO_ITAG = [18,... |
import Vue from "vue";
import VueRouter from "vue-router";
const Home = () =>
import ('views/home/Home')
const Category = () =>
import ('/views/category/Category')
const Cart = () =>
import ('views/cart/Cart')
const Profile = () =>
import ('views/profile/Profile')
// 1.安装插件
Vue.use(VueRouter)
// 2.创建... |
/**
* profile.js
* Displays to users a profile of a given user.
* For order's sake:
* - vip, dev, customtitle, friendcode, and profile were placed in here.
* Updated and restyled by Mystifi; main profile restyle goes out to panpawn/jd/other contributors.
**/
'use strict';
let geoip = require('geoip-lite-country'... |
var express = require('express'),
app = express(),
port = process.env.PORT || 3000,
mongoose = require('mongoose'),
Game = require('./api/models/gameModel'),
Player = require('./api/models/playerModel'),
bodyParser = require('body-parser');
// mongoose config
mongoose.Promise = global.Promise;
... |
// tests sharding with replica sets
s = new ShardingTest( "rs1" , 3 /* numShards */, 1 /* verboseLevel */, 2 /* numMongos */, { rs : true , chunksize : 1 } )
s.adminCommand( { enablesharding : "test" } );
s.config.settings.find().forEach( printjson )
db = s.getDB( "test" );
bigString = ""
while ( bigString.length ... |
var webpack = require('webpack');
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'inline-source-map',
entry: {
app: './src/main.js'
},
output: {
// filename: path.resolve(__dirname, 'dist')
filename: '[name].js',
path: path.resolv... |
var express = require('express')
var app = express()
app.use('/public', express.static('./static'))
app.get('/', function (req,res) {
res.send("hello express")
})
app.get('/about', function (req,res) {
res.send("hello express about")
})
app.listen(3000, function () {
console.log("app is running at port... |
(function (enyo, scope) {
/**
* @private
*/
var callbacks = [],
roots = [];
/**
* @private
*/
enyo.roots = roots;
/**
* Invokes all known callbacks (if any) against the root view once it has been rendered.
* This method is not likely to be executed very often.
*
* @private
*/
function invoke (r... |
import hasOwnProp from 'utils/hasOwnProp';
export default function sortModules ( entry, moduleLookup ) {
var seen = {},
ordered = [];
function visit ( mod ) {
// ignore external modules, and modules we've
// already included
if ( !mod || hasOwnProp.call( seen, mod.id ) ) {
return;
}
seen[ mod.id ] =... |
var _ = require('lodash');
module.exports = function(userId, objectIntents, scope) {
const {flags, bulkFlags} = scope;
flags.forEach(i => {
i._parsed = i.data.split("|");
i._parsed = _.map(i._parsed, j => j.split("~"));
});
if(objectIntents.removeFlag) {
_.forEach(objectInten... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactTestRenderer = require('react-test-renderer');
var _reactTestRenderer2 = _interopRequireDefault(_reactTestRenderer);
var _Wrapper = require('../../__mocks__/Wrapper');
var _Wrapper2 = _interopRequireDefault(_Wrapp... |
let circle1;
let circle2;
let circle3;
let paddle;
let circle_Green;
function preload() {
stone_slide_s = loadSound("/Puzzle/Assets/Stone.wav");
move_s = loadSound("/Puzzle/Assets/move.mp3");
scale = 0;
if (innerWidth <= innerHeight)
scale = innerWidth;
else
scale = innerHeight;
... |
import React, { Component } from 'react'
import NavigationService from 'App/Services/NavigationService'
import AppNavigator from 'App/Navigators/AppNavigator'
import { View } from 'react-native'
import styles from './RootScreenStyle'
import { connect } from 'react-redux'
import { PropTypes } from 'prop-types'
class Ro... |
import React from 'react';
import VenDetailHeader from './VenDetailHeader'
import Divider from '@material-ui/core/Divider';
import Grid from '@material-ui/core/Grid';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCel... |
process.env.NETEASE_CLOUDMUSIC_PATH = [
'C:\\Users\\nhn\\AppData\\Local\\Netease\\CloudMusic\\Cache\\Cache\\',
]; |
// View request button
const viewRequestHandler = async (event) => {
event.preventDefault();
let request_id = event.target.getAttribute('data-id');
document.location.replace(`/api/request/${request_id}`);
};
document
.querySelectorAll('.view-req-btn').forEach((element) => {
element.addEventListener... |
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import postcss from 'rollup-plugin-postcss'
import localResolve from 'rollup-plugin-local-resolve';
import livereload from 'rollup-plugin-livere... |
/**
* DevExtreme (esm/ui/pivot_grid/ui.pivot_grid.chart_integration.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import $ from "../../core/renderer";
imp... |
const vha = {
install(Vue, options) {
document.addEventListener('deviceready', () => {
try {
if (typeof window.navigator.device.capture != 'undefined') {
Vue.prototype.$vha.capture = window.navigator.device.capture
} else {
throw "cordova-plugin-media-capture"
}
... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a ... |
import React from "react";
import cn from "classnames";
function Icon({ className, name, size = "medium" }) {
return <i className={cn("material-icons", "size", className)}>{name}</i>;
}
export default Icon; |
import $ from 'jquery';
import moment from 'moment';
import humanize from 'humanize';
let wallInterval = null;
const defaultClspUrls = [
'clsp://172.28.12.248:9001/testpattern',
'clsp://172.28.12.247:9001/testpattern',
'clsps://sky-qa-dionysus.qa.skyline.local/testpattern',
'clsp://172.28.12.57:9001/FairfaxVi... |
// For inputString = "abacaba" and distance = 1, the output should be
// countDistantPairs(inputString, distance) = 3.
// Let's list them as a pairs of indices (0-based): [0, 2]: "a" and "a", [2, 4]: "a" and "a" and [4, 6]: "a" and "a".
function countDistantPairs(inputString, distance) {
var count = 0;
for (var i ... |
const trialDivision = (number) => {
let esPrimo = true;
if(number <= 1) return false;
if((number % 1) > 0) return false;
if(number == 2) return true;
let less_numbers = defineMinorItems(number);
less_numbers.forEach(function(element1){
less_numbers.forEach(function(element2){
... |
/*!
* Modernizr v2.6.2
* www.modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
* Available under the BSD and MIT licenses: www.modernizr.com/license/
*/
/*
* This has been modified to _not_ include html5shiv - you're expected to include that separately
*/
/*
* Modernizr tests which native C... |
import request from '@/utils/request'
export function login(data) {
return request({
url: '/v1/ldc/face/FaceSecurity/login',
method: 'post',
data
})
}
export function getInfo(token) {
return request({
url: '/user/info',
method: 'get',
params: { token }
})
}
export function logout() {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('material-ui/SvgIcon');
var _SvgIcon2 = _interopReq... |
// 수야네로 들1어온 주소에 대해서 blog.suyane24.com 로 리다이렉트 시켜주기
// const locationEntity = location;
// const mainDomain = "suyane24.com";
// const currentHOST = locationEntity.host;
// const httpProtocol = "https://";
// let redirectURL = locationEntity.href;
// // 현재 호스트가 메인 호스트와 같다면 리다이렉트 시켜주기
// if (mainDomain === currentHOS... |
/*
Copyright (c) 2018-2020 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
export { default as ButtonGroup } from './button-group.js';
export { default as StatefulButtonGroup } from './stateful-button-group.js';
export {... |
/**
* This script automates generating the content of API Management developer portals from the snapshot.
* In order to run it, you need to:
*
* 1) Clone the api-management-developer-portal repository:
* git clone https://github.com/Azure/api-management-developer-portal.git
*
* 2) Install NPM packages:
* ... |
const moneyMap = {
'ONE HUNDRED': 100,
TWENTY: 20,
TEN: 10,
FIVE: 5,
ONE: 1,
QUARTER: 0.25,
DIME: 0.1,
NICKEL: 0.05,
PENNY: 0.01,
};
const getTotalCid = (cid) =>
cid.reduce((total, [unit, amount]) => total + amount, 0);
const safelyRoundMoney = (amount) => Math.round(... |
function initializevbox1288931495159() {
vbox1288931495159 = new kony.ui.Box({
"id": "vbox1288931495159",
"isVisible": true,
"orientation": constants.BOX_LAYOUT_VERTICAL,
"position": constants.BOX_POSITION_AS_NORMAL
}, {
"containerWeight": 100,
"layoutType": const... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
export function HeaderMenuItem() { }
if (false) {
/**
* A command identifier to be passed to the onCommand event callback handlers.
* @type {?}
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chalk_1 = require("chalk");
const fs = require("fs");
var prompt = require('prompt-sync')();
class Start {
constructor(file, verbose, debug = false, input = '') {
this.verbose = verbose;
this.debug = debug;
th... |
"use strict"
import { Button, Glyphicon, Modal, Col, Row, Form, FormGroup, FormControl } from 'react-bootstrap'
let React = require('react'),
Promise = require('bluebird'),
_ = require('lodash'),
TaskLogic = require('../task-logic')
// components..
let TaskEditor = require('./task-editor'),
TaskRenderer = re... |
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
// Check user actually gave something.
if (!args || args.length < 1) return message.reply(":no_entry: | Error! You must provide an ID to ban. To acquire one please right click on the user and select 'Copy ID'");
// Def... |
"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... |
/* Copyright (c) 2015 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Use in source and binary forms, redistribution in binary form only, with
* or without modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions in binary form, except as embedded into a... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'source-map',
entry: [
'webpack-hot-middleware/client',
'./client/reduxstagram'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new ... |
const constants = require('../helpers/constants.js');
// Private fields
let modules,
self;
/**
* Main transfer logic.
* @memberof module:transactions
* @class
* @classdesc Main transfer logic.
*/
// Constructor
function ReferTransfer() {
self = this;
}
// Public methods
/**
* Binds input parameters to ... |
var ImageNode = require("./image-node"),
ParagraphNode = require("piotr/nodes/paragraph-node"),
CF = require("piotr/commands/command-factory"),
Range = require("piotr/range"),
Surface = require("piotr/surface"),
ToolbarComponent = require("piotr/toolbar/toolbar-component");
/**
* Button that creat... |
import http from "./httpService";
// const apiEndPointPro = "http://cghrportal.herokuapp.com/api/employee/profile";
const apiEndPointJob = "/employee/post/add/jobExperiences";
const tokenkey = "token";
export function getJwt() {
return localStorage.getItem(tokenkey);
}
http.setJwt(getJwt());
export function reg... |
// Copyright © 2020–2021, Stewart Smith. See LICENSE for details.
/*
You might imagine a “Param” as an archetypal Voice.
To the graphic interface user they indeed feel the same.
But under the hood each Bank drives its own set of
unique Voices. So a Param represents a single Voice
from EACH Bank. For example,... |
import Cookies from 'js-cookie'
const TokenKey = 'client-token'
const RefreshTokenKey = 'client-refresh-token'
export function getToken() {
return Cookies.get(TokenKey)
}
export function setToken(token) {
return Cookies.set(TokenKey, token)
}
export function removeToken() {
return Cookies.remove(TokenKey)
}
... |
function solve(args) {
let output = [];
for (let i = 0; i < args.length; i++) {
let input = args[i].split(' ->');
let studentObj = {
name: input[0],
age: Number(input[1]),
grade: Number(input[2]).toFixed(2)
};
output.push(studentObj);
}... |
/**
* log information on a special div
* @namespace Log
*/
var Log = {};
(function() {
"use strict";
// see if it is setup
Log.isReady = false;
Log.idName = "messageLogger";
Log.divName = Log.idName + "div";
/**
* setup of the logging div, and other things
* @method Log.setup
... |
import React from 'react'
import {UserCheck} from 'react-feather'
import Page from '../../layouts/main'
import Head from '../../components/head'
import Validator from '../../components/bases-locales/validator'
const title = 'Le validateur BAL'
export default () => (
<Page>
<Head title={title} icon={<UserCheck ... |
// Copyright (c) 2013 Titanium I.T. LLC. All rights reserved. See LICENSE.txt for details.
/*global $, jQuery, TouchList, Touch */
(function() {
"use strict";
var browser = require("./browser.js");
var capturedElement = null;
/* Constructors */
var HtmlElement = module.exports = function(domElement) {
var ... |
(function () {
'use strict';
function TreeNodeController ($scope) {
const vm = this;
vm.$onInit = () => {
if (!$scope.node) {
$scope.node = {id: -1, label: 'none', children: []};
}
};
vm.onNodeClicked = (id) => {
console.log("tree node controller add this node", id);
}... |
module.exports = {
extends: ['./index'],
plugins: [],
rules: {
'import/no-dynamic-require': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
}; |
module.exports = {
semi: false,
trailingComma: "all",
singleQuote: true,
printWidth: 120,
tabWidth: 2,
jsxSingleQuote: true,
endOfLine: "auto",
useTabs: true,
} |
defineClass('Tada.Git.CommandQueue', 'Consoloid.Base.Object',
{
__constructor: function(options)
{
this.__base($.extend({
queue: options.queue || options.container.get("async_function_queue")
}, options));
},
createChildQueue: function()
{
return this.create('Tada.Git.Co... |
define([], function() {
return { a: "a", b: "b" };
}); |
sap.ui.controller("testapp.view.Master", {
onInit: function() {
this.list = this.byId('places');
sap.ui.getCore().getEventBus().subscribe("placeSelected", this.onPlaceSelected, this);
},
handleListSelect: function(oEvent) {
sap.ui.getCore().getEventBus().pub... |
const THREE = require('three');
const MathEx = require('js-util/MathEx');
export default class BgLine {
constructor() {
this.uniforms = {
time: {
type: 'f',
value: 0
},
wave1: {
type: 'f',
value: 0
},
wave2: {
type: 'f',
value: 0
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.