text stringlengths 2 1.05M |
|---|
const { verify } = require('jsonwebtoken');
module.exports = (req, res, next) => {
const token = req.get('X-native-auth');
if (!token || token === '') {
req.isAuth = false;
res.status(401).send('Authorization failed..');
return next();
} else {
let decoded;
try {
... |
/*
artifact generator: /wizzi/lib/artifacts/js/module/gen/main.js
primary source IttfDocument: c:\my\wizzi\v4\apps-wizzi\v4-solutions\formbuilder\ittf\webpacks\formbuilder\src\demos\reduxform\wizardform3.js.ittf
utc time: Mon, 10 Jul 2017 12:31:59 GMT
*/
'use strict';
import React from 'react';
import { Fie... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{12:function(e,t,n){e.exports=n(23)},22:function(e,t,n){},23:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n(3),s=n(5),r=n(4),u=n(6),c=n(0),o=n.n(c),l=n(9),m=n(11),h=n(1),d=n.n(h),v=n(10),f=n.n(v),p=n(7),S=n.n(p),O=function(e){function t(e){var n;return Object(... |
require('@babel/register');
({
ignore: /node_modules/
});
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
let mnemonic = 'gloom kiwi office spot edge rescue spawn punch install deputy frame spirit';
let testAccounts = [
"0x5807a138697e2c8d3d72cf5c037c84ec6762bca92f8f36... |
module.exports = {
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
chainWebpack: (config) => {
config.module
.rule('js')
.include
.add('/packages/')
.end()
.use('babel')
.loader('babel-loader'... |
import React from "react"
import { useTranslation } from "gatsby-plugin-react-i18next"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Banner from "../components/Banner/Banner.js"
import H2Article from "../components/Article/H2Article"
import BenefitsCard from "../components/Benefit... |
import { VERIFICATION_STATUSES } from '../../src';
import FIXTURES from '../fixtures';
const verifier = require('../../dist/verifier');
describe('verifier build test suite', function () {
it('works as expected with a v1 certificate', async function () {
const certificate = new verifier.Certificate(FIXTURES.Testn... |
var classv8_1_1internal_1_1_reg_exp_macro_assembler =
[
[ "GlobalMode", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198", [
[ "NOT_GLOBAL", "classv8_1_1internal_1_1_reg_exp_macro_assembler.html#a8c5dd9fba6bb0f236a08e824e5b83198a94ecd2a35d97feb8324107e8d04027ff", null ],... |
'use strict';
// Configuring the Articles module
//angular.module('articles').run(['Menus',
// function(Menus) {
// Set top bar menu items
// Menus.addMenuItem('topbar', 'Articles', 'articles', 'dropdown', '/articles(/create)?');
// Menus.addSubMenuItem('topbar', 'articles', 'List Articles', 'articles');
// Menus... |
const path = require('path');
// Implement the Gatsby API “createPages”. This is called once the
// data layer is bootstrapped to let plugins create pages from data.
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions;
// Query all tours from contentful
const result ... |
define(
//begin v1.x content
({
insertEntity: "แทรกสัญลักษณ์"
})
//end v1.x content
);
|
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/layout'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Home',
component: Layout,
redirect: '/index',
children: [
{
path: '/index',
name: 'Index',
component: () => import('@/views... |
// This is a JavaScript file
$(document).on("click","#camera",function(){
navigator.camera.getPicture(onSuccess, onFail, {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
correctOrientation: true,
saveToPhotoAlbum: true,
});
function onSuccess(imageURI) {
var image = docume... |
import React,{useState,useEffect} from "react";
//import React,{useState} from "react";
// @material-ui/core components
import Button from '@material-ui/core/Button';
import {Redirect,Switch,Route}from 'react-router-dom';
import { makeStyles } from "@material-ui/core/styles";
import { connect } from 'react-redux';
impo... |
import React from "react";
import { Route, Navigate } from "react-router-dom";
import { auth } from '../auth';
import * as awsAuth from '../auth/aws-auth';
import { connect } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import posed, { PoseGroup } from "react-pose";
import { ren... |
export default class Product {
constructor(divId) {
if (divId) {
this.divContainerId = divId;
} else {
this.divContainerId = document;
}
}
init() {
this.addToWishlistClick();
this.addToSharedCartClick();
this.addToCartClick();
... |
define("add",[],function(){return function(e,t){return e+t}}),define("minus",[],function(){return function(e,t){return e-t}}),define("pub/ten",[],function(){return function(e){return e*100}}),requirejs(["add","minus","pub/ten"],function(e,t,n){var r=1,i=2,s=e(r,i),o=t(r,i),u=n(r);console.log(s,o,u)}),define("app/index"... |
const path = require('path');
const slash = require('slash');
exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions;
return new Promise((resolve, reject) => {
resolve(
graphql(`
{
allProjectsJson {
edges {
node {
name
... |
const { nanoid } = require('nanoid');
const notes = require('./notes');
const addNoteHandler = (request, h) => {
const { title, tags, body } = request.payload;
const id = nanoid(16);
const createdAt = new Date().toISOString();
const updatedAt = createdAt;
const newNote = {
title, tags, bo... |
(this.webpackJsonpadmin=this.webpackJsonpadmin||[]).push([[43,57],{625:function(e,t,c){"use strict";c.d(t,"a",(function(){return u}));var n=c(43),r=c(158),s=c(1),a=c.n(s),i=c(621),o=c(20),j=function(e){var t=e.name,c=e.text,s=Object(r.a)(e,["name","text"]),a=t?"https://coreui.io/react/docs/components/".concat(t):e.href... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: 'eslint-loader... |
/**
* @module Hiori.test.js
* @author cloudiirain
* @description Unit tests for Hiori class
*/
'use strict';
const chai = require('chai');
const expect = chai.expect;
const { Hiori } = require('../../index.js');
// Run tests
describe('Hiori', function () {
describe('constructor', function () {
context('... |
var searchData=
[
['allowescapecharacter_755',['AllowEscapeCharacter',['../namespacedaw_1_1json.html#a75daffb79d06d1d88576d3de104f3b05',1,'daw::json']]]
];
|
/**
* @author astrodud / http://astrodud.isgreat.org/
* @author zz85 / https://github.com/zz85
* @author bhouston / http://clara.io
*/
// points - to create a closed torus, one must use a set of points
// like so: [ a, b, c, d, a ], see first is the same as last.
// segments - the number of circumference segme... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import $ from 'jquery';
import dateSerialization from 'core/utils/date_serialization';
import Tooltip from 'ui/tooltip';
import tooltip from 'ui/tooltip/ui.tooltip';
import resizeCallbacks from 'core/utils/resize_callbacks';
import fx from 'animation/fx';
import dateLocalization from 'localization/date';
import message... |
/*
* 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 ... |
import React from 'react';
import $ from 'jquery';
import {Link} from 'react-router-dom';
import {API_ROOT} from "../Constants";
import {Form, Icon, Input, Button, message} from 'antd';
const FormItem = Form.Item;
class NormalLoginForm extends React.Component {
handleSubmit = (e) => {
e.preventDefault();... |
import Build from "../Build/BuildModule.js";
const babelConfig = Build.getReactAppBabelOption();
export default babelConfig; |
import React, { useEffect } from 'react'
import Editor from 'react-simple-code-editor'
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
import json from 'react-syntax-highlighter/dist/cjs/languages/hljs/json'
import a11yDark from 'react-syntax-highlighter/dist/cjs/styles/hljs/a11y-dark'
import a11y... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.21.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
var mongoose = require("mongoose");
var japri_config = require("../japri_config.json");
var userModel = require("../models/user.js");
var tagModel = require("../models/tag.js");
// Make sure app's config file has both username and password
// Because mongoDB access control allows anonymous login
// By making sure mon... |
/**
* 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
*/
import type {Fiber} from 'react-reconciler/src/ReactFiber';
import {
getListener,
runExtractedPluginEventsInBatch... |
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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... |
import Event from './Event';
import Modal from './Modal';
import Socket from './Socket';
import Toast from './Toast';
import User from './User';
export {
Event,
Modal,
Socket,
User,
Toast
};
|
module.exports={C:{"52":0.00881,"60":0.00881,"78":0.02644,"86":0.00881,"91":0.03084,"92":0.01762,"93":0.12777,"94":0.8063,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71... |
(function (window) {
'use strict';
/**
* Takes a model and view and acts as the controller between them
*
* @constructor
* @param {object} model The model instance
* @param {object} view The view instance
*/
function Controller(model, view) {
var self = this;
self.model = model;
self.view = view;
... |
const QR = require('./qrcode.js');
const GD = require('./gradient.js');
export const penCache = {
// 用于存储带 id 的 view 的 rect 信息
viewRect: {},
textLines: {},
};
export const clearPenCache = id => {
if (id) {
penCache.viewRect[id] = null;
penCache.textLines[id] = null;
} else {
penCache.viewRect = {... |
const { resolve } = require('path');
const root = (path = '') => {
return resolve('.', path);
};
module.exports= {
root
}
|
export type User = {
name: string;
};
export default function demo (input: User): string {
return input.name;
} |
const producer = require("../dataproducer");
//希尔排序
function shellSort(ary) {
var n = ary.length;
//计算分组增量
var stepInc = parseInt(n/2);
//
while(stepInc > 0) {
for(var i = 0; i < stepInc; i++) {
for( var j = i + stepInc; j < n; j += stepInc) {
if(ary[j] < ary[j -... |
import React from 'react'
import { Link } from 'react-router-dom'
import Exception from 'Components/Exception'
export default () => (
<Exception type='500' style={{ minHeight: 500, height: '80%' }} linkElement={Link} />
)
|
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
module.exports = function(app) {
// User Routes
var users = require('../../app/controllers/users.server.controller');
// Setting up the users profile api
app.route('/api/users/me').get(users.me);
app.route('/api/users').put(users.... |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for yo... |
const path = require('path');
module.exports = {
dev: {
filename: '[name].bundle.js',
publicPath: '',
pathinfo: true,
chunkFilename: "[id].chunk.js",
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, '../client')
},
prodWebsite: {
... |
function moduleController($scope, $http) {
$scope.moduleInit = function() {
this._init();
};
$scope.moduleInit.prototype = {
_init: function() {
this.getModule(); //获取模块列表
this.change_option(); //模块上传,列表切换
this.submit_module(); //上传模块
... |
dojo.provide("dojo.nls.dojo-ext_fr-fr");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.fr_fr");dojo.nls.colors.fr_fr={"lightsteelblue":"bleu acier clair","orangered":"rouge orangé","midnightblue":"bleu nuit","cadetblue":"bleu pétrole","seashell":"coquillage","slategrey":"gris ... |
// import the gql tagged template function
const { gql } = require('apollo-server-express');
// create our typeDefs
const typeDefs = gql`
type Query {
user: User
}
type User {
_id: ID!
username: String
email: String
password: String
bookCount: Int
savedBooks: [Book]
}
type Mutation {
... |
var searchData=
[
['data_2emd_726',['data.md',['../data_8md.html',1,'']]],
['database_2ecpp_727',['Database.cpp',['../_database_8cpp.html',1,'']]],
['database_2eh_728',['Database.h',['../_database_8h.html',1,'']]],
['database_2emd_729',['database.md',['../database_8md.html',1,'']]],
['datamanager_2ecpp_730',[... |
"use strict"
var fs = require("fs");
var bundle = require("./bundle")
var minify = require("./minify")
var aliases = {o: "output", m: "minify", w: "watch", a: "aggressive"}
var params = {}
var args = process.argv.slice(2), command = null
for (var i = 0; i < args.length; i++) {
if (args[i][0] === '"') args[i] = JSON... |
/*! formstone v0.8.26 [dropdown.js] 2015-11-01 | MIT License | formstone.it */
!function(a,b,c){"use strict";function d(){I=b.$body}function e(d){d.multiple=this.prop("multiple"),d.disabled=this.is(":disabled"),d.multiple?d.links=!1:d.external&&(d.links=!0);var e=this.find("[selected]").not(":disabled"),f=this.find(":... |
TC.control = TC.control || {};
if (!TC.Control) {
TC.syncLoadJS(TC.apiLocation + 'TC/Control');
}
TC.Consts.event.BEFOREFEATUREMODIFY = "beforefeaturemodify.tc";
TC.Consts.event.FEATUREMODIFY = "featuremodify.tc";
TC.Consts.event.FEATURESSELECT = "featuresselect.tc";
TC.Consts.event.FEATURESUNSELECT = "featuresun... |
export default {
isoName: 'de',
nativeName: 'Deutsch',
label: {
clear: 'Leeren',
ok: 'Ok',
cancel: 'Abbrechen',
close: 'Schließen',
set: 'Setzen',
select: 'Auswählen',
reset: 'Zurücksetzen',
remove: 'Löschen',
update: 'Aktualisieren',
create: 'Erstellen',
search: 'Suche... |
import "../styles/navbar.css";
const Navbar = () => {
return (
<div className="navbar">
<div className="content">
<div className="brand item">
<a href="/" className="">
CoviData
</a>
</div>
</div>
</div>
);
};
export default Navbar;
|
var jsm = require('../lib/jsmidgen.js');
console.log('Listing notes by MIDI pitches...');
for (var i=21; i<109; i++) {
console.log(i, jsm.Util.noteFromMidiPitch(i));
}
console.log('Done!');
console.log('Reference: http://newt.phys.unsw.edu.au/jw/notes.html'); |
Ext.define('Penggajian.view.transaksi.hitungpendapatan.PerhitunganPendapatanController', {
extend: 'Ext.app.ViewController',
alias: 'controller.hitungpendapatan'
,onShow:function(){
var refstore=Ext.getCmp('idhitungpendapatanlist').store;
var app = Penggajian.getApplication();
... |
function solve(input){
let words = input.toUpperCase().split(/[\W+]/).filter(word => word.length > 0).join(', ');
console.log(words);
}
solve('Hi, how are you?'); |
// @flow
import { call, put } from 'redux-saga/effects'
import { getToken } from 'containers/LoginModal/saga'
import * as api from 'services/api'
import type { Response } from 'services/api'
import * as actions from './actions'
export function* post(endpoint: string, data: Object): Generator<*, void, *> {
const toke... |
'use strict';
// Forms controller
angular.module('forms').controller('ListFormsController', ['$rootScope', '$scope', '$stateParams', '$state', 'GetForms', 'CurrentForm', '$http', '$uibModal', 'myForms', '$window',
function($rootScope, $scope, $stateParams, $state, GetForms, CurrentForm, $http, $uibModal, myForms, $wi... |
CodeMirror.defineMode("plasm", function(conf, parserConf) {
var ERRORCLASS = 'error';
function wordRegexp(words) {
return new RegExp("^((" + words.join(")|(") + "))\\b");
}
var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]");
var singleDelimiters = new RegExp('^[\\(\\)\\[\\... |
{"project": [null,null,[[0,false,false,false,false,false,false,false,false,false],[1,true,false,false,false,false,false,false,false,false],[2,true,false,false,false,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,false,true,true,false,true,true,true,true,true],[5,false,true,t... |
(self.webpackChunksatabios=self.webpackChunksatabios||[]).push([[589],{1589:function(t,e,n){"use strict";n.r(e),n.d(e,{getCLS:function(){return s},getFCP:function(){return v},getFID:function(){return p},getLCP:function(){return l},getTTFB:function(){return h}});var i=function(t,e){return{name:t,value:void 0===e?-1:e,de... |
jQuery(function($) {
Vue.component('editable', {
data: function() {
return {
editing: false,
savedValue: ''
}
},
props: ['value', 'hide-trash'],
template: `
<div class="editable" v-bind:class="{ editing: editing }">
<div
v-if="!editing"
v-on:mousedown="edit"
class="value... |
import _ from 'lodash';
import bytes from 'bytes';
import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
const ICON_EXTS = [
'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg'... |
var path = require('path');
var fs = require('fs');
module.exports = function (grunt) {
grunt.registerTask('prefix', function () {
var buildDir = path.resolve(__dirname, '..', 'build');
// Check whether build folder exists
if (!fs.existsSync(buildDir)) {
grunt.fail.fatal('Mixins folder does not exist.');
}... |
// Copyright 2008 The Closure Library Authors. 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 requ... |
/*
* Copyright (C) 2017-2019 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 l... |
import Form from '../form';
import dateSerialization from '../../core/utils/date_serialization';
import messageLocalization from '../../localization/message';
import devices from '../../core/devices';
import './ui.scheduler.recurrence_editor';
import './timezones/ui.scheduler.timezone_editor';
import '../text_area';
i... |
describe('Add REP', () => {
it('should create REP', () => {
cy.visit('/rep/cadastro');
cy.get('#typeOrigin').click();
cy.get('ul:first-child>li:first-child').click();
cy.get('#numberOrigin').type('123');
cy.get('#foundation').click();
cy.get('ul:first-child>li:first-child').click();... |
class AppError extends Error {
constructor(statusCode, message, isOperational = true, stack = '') {
super(message);
this.statusCode = statusCode;
this.isOperational = isOperational;
if (stack) {
this.stack = stack;
} else {
Error.captureStackTrace(this, this.constructor);
}
}
}
... |
define([
'../ThirdParty/when',
'./defined',
'./isDataUri',
'./loadBlob',
'./loadImage'
], function(
when,
defined,
isDataUri,
loadBlob,
loadImage) {
'use strict';
var xhrBlobSupported = (function() {
try {
v... |
/**
* Galleria Flickr Plugin 2012-04-04
* http://galleria.io
*
* Licensed under the MIT license
* https://raw.github.com/aino/galleria/master/LICENSE
*
*/
(function($) {
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The Flickr Plugin requires Galleria version 1.2.5 or later.');
// The script ... |
import { attachComponent, detachComponent } from '../../utils/framework-delegate';
import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays';
import { getClassMap } from '../../utils/theme';
import { deepReady } from '../../utils/transition';
import { iosEnterAnimation } from './animations/ios.... |
import * as p from '../../src';
test('many0 and doParse work together', () => {
const parse = p.build(p.many0(p.doParse({
a: p.char('a'),
b: p.char('b'),
}, (result) => {
return {
a: result.a.getResult(),
b: result.b.getResult(),
}
})));
const re... |
exports.menu3 = (id, A187, tampilTanggal, whatsapp, youtube, tampilWaktu, instagram, nomer, aktif) => {
return `
❉──────────❉
*${F007}*
❉──────────❉
📆 *${tampilTanggal}*
📌STATUS BOT AKTIF: *${aktif}*
╔════════════════
║ *MENU3*
╠════════════════
║╭──❉ *18+* ❉──
║│➸ _*!indohot*_
║│➸ ... |
/*
* This file is part of the ZombieBox package.
*
* Copyright © 2012-2021, Interfaced
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const fse = require('fs-extra');
const http = require('http');
const {URL} = require('url');
con... |
import { TabView } from "./bookmark/TabView.js";
import { TabViewImport } from "./bookmark/TabViewImport.js";
import { TabViewExport } from "./bookmark/TabViewExport.js";
class Application
{
#tabViewImport = new TabView(new TabViewImport());
#tabViewExport = new TabView(new TabViewExport());
init()
{
th... |
'use strict'
const Bleacon = require('bleacon')
const startedAt = new Date().getTime()
function isBean(beacon) {
return beacon.uuid.match('^a495....c5b14b44b5121370f02d74de$')
}
function pad(str, len) {
while (str.length < len) {
str = '0' + str
}
return str
}
Bleacon.on('discover', (beacon) => {
con... |
// mojo/public/js/ts/bindings/tests/export3.test-mojom.externs.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 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.
/** @type { !number } */... |
const STATE_ENUM = { HIDDEN: 0, SHOWN: 1 };
class DropdownMenu {
constructor ({
select, dropdown, callback = () => {}, duration = 200
}) {
this.TRIM_LENGTH = 6;
this._select = select;
this._dropdown = dropdown;
this._options = [...this._dropdown.firstElementChi... |
/*!
* template-push <https://github.com/jonschlinkert/template-push>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
/* deps: mocha */
require('should');
var through = require('through2');
var verb = require('verb');
var push = require('./');
var verbPush = push(verb);
... |
import _ from "lodash";
import React from "react";
import PropTypes from "prop-types";
import {
Modal,
Button,
Glyphicon,
OverlayTrigger,
Tooltip
} from "react-bootstrap";
import SelectionBasedComponent from "./selection_based_component";
import LocationChooserMap from "./location_chooser_map";
import SavedLo... |
'use strict';
define({
setSlow: setSlow,
isSlow: isSlow,
addListener: addListener,
});
var deviceIsSlow = false;
var listeners = [];
function setSlow() {
deviceIsSlow = true;
$('.hide-when-slow').hide();
$('.show-when-slow').show();
for (var i in listeners) {
listeners[i]();
}
}
function isSlow(... |
// Copyright (c) 2012 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.
// Custom binding for the Permissions API.
var binding = require('binding').Binding.create('permissions');
var Event = require('event_bindings').Eve... |
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import Footer from '../common/Footer'
import 'semantic-ui-css/semantic.min.css'
import '../../styles/global.scss'
class DesktopContainer extends Component {
render() {
const { children } = this.props
return (
<div className='... |
const app = require('./app');
const port = process.env.PORT | 3333;
app.listen(port, () => console.log(`Running at ${port}`)) |
/*
* 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... |
// Copyright 2019 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `General_Category=Unassigned`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
... |
// Generated by CoffeeScript 2.4.1
(function() {
// Basic omniscient debugger
define(['./base', 'bluebird'], function(Base, Bluebird) {
var ODB, Promise, clearEntries, currentOdb, deleteEntries, dumpTraceValues, flushTraceLog, getCallGraphEntry, getCallGraphInfo, getContextDef, getEntry, getLambdaDef, getLatest... |
import expect from 'expect';
import React from 'react';
import { DocumentRole } from '../../src/components/document/DocumentRole';
import { shallow } from 'enzyme';
describe('role documents component', () => {
const props = {
actions: {
loadDoc: () => Promise.resolve(),
loadRoleDocuments: () => Promi... |
'use strict'
var composestats = require('../')
// var composestats = require('connect-composer-stats')
var compose = require('connect-composer')
// get new stats object
var statsGlb = composestats()
var statsMw = composestats()
var statsFn = composestats()
// to globally inject stats use:
compose.options = { stats: s... |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : unary_expression.js
* Created at : 2017-08-18
* Updated at : 2017-08-20
* Author : jeefo
* Purpose :
* Description :
_._._._._._._._._._._._._._._._._._._._._.*/
// ignore:start
/* globals */
/* exported */
// ignore:end
var argument_handler = fu... |
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
navigator.serviceWorker.register("service-worker.js").then(
function (registration) {
console.log("ServiceWorker registration successful with scope: ", registration.scope);
}, function (... |
/**
* TARA-Stat - Mikroteenus TARA statistika kogumiseks ja
* vaatamiseks
*
* Veebirakenduse kogu kood on siinses failis.
*
* Node.js callback-de tõttu
* on peamine töötsükkel asetatud MongoDB-ga ühenduse võtmise
* callback-i sisse. Kõigepealt luuakse ühendus MongoDB-ga. Seejärel
* käivitatakse Express vee... |
import React, { useEffect, useState } from 'react';
import TodoForm from './TodoForm';
import TodoList from './TodoList';
import { getAllTodos } from '../services/todo.service';
const Todo = () => {
const [todos, setTodos] = useState([]);
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
... |
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Renders any kind of widget. If you have a widget and you want to have it rendered, use this directive. It will
* display a name on top and the actual widget below. ... |
import Vue from 'vue';
import Vuex from 'vuex';
import VuexDynamicModule from '@/plugins/vuex-dynamic-module';
import structure from './structure';
Vue.use(Vuex);
Vue.use(VuexDynamicModule);
const store = new Vuex.Store({
modules: {
structure: structure
}
});
export default store; |
var express = require('express');
var router = express.Router();
const sqlite3 = require('sqlite3').verbose();
// open the database
let db = new sqlite3.Database('./database/salgozi.sqlite3', sqlite3.OPEN_READWRITE, (err) => {
if(err) {
console.error(err.message);
}
console.log('Connected to the salgozi datab... |
const base64Decode = require('fast-base64-decode')
const getRandomBase64 = require('./getRandomBase64')
class TypeMismatchError extends Error {}
class QuotaExceededError extends Error {}
let warned = false
function insecureRandomValues (array) {
if (!warned) {
console.warn('Using an insecure random number gener... |
function setup() {
console.log("Hello World!")
}
function draw() {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.