code stringlengths 2 1.05M |
|---|
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
chalk = require('chalk');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Bootstrap db connection
var db = mong... |
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, ltsvlogger = require('../index.js')
, http = require('http')
, fs = require('fs')
, path = require('path');
// select tokens
var ltsv = [];
ltsv.push("time");
ltsv.push("host");
ltsv.push("X-Forwarded-For");
... |
var gulp = require('gulp'),
merge = require('merge-stream'),
htmlreplace = require('gulp-html-replace'),
minifyHTML = require('gulp-minify-html')
;
var conf = require('../conf').conf;
var js_all = require('../conf').js_all;
var js_vendor = require('../conf').js_vendor;
var css_file_min = require('../conf').css_fi... |
/*eslint-disable no-var*/
/**
* Generates a template when compiled with HtmlWebpackPlugin.
*
* The template will include:
* - The title
* - An optional meta description
* - An optional meta keywords
* - Any links to css files
* - An optional react root id
* - An optional isomorphic template in the react root ... |
// declare namespace object
var content = {};
// declare and initialize text prototype object
content.text = {
// how many text instances have been created
count: 0,
// index number
index: null,
// text content
string: null,
// jquery reference to page element
element: null,
// define n... |
// In-Class Group assignment
// there are a couple of assignments listed in comments below
var app = {};
app.TodoModel = Backbone.Model.extend({});
app.TodosCollection = Backbone.Collection.extend({
model: app.TodoModel,
comparator: 'cid'
});
app.todosCollection = new app.TodosCollection();
app.todosCollection... |
export function clamp(num, min, max) {
return Math.max(min, Math.min(max, num));
}
export function maybe(cond, value) {
if (!cond) return '';
return (typeof value === 'function') ? value() : value;
}
export function range(start, stop, step) {
let count = 0, old = start;
let initial = n => (n > 0 && n < 1) ?... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
import serifPreview from './class/serif_preview_class.js';
export default option => {
// セリフフォームを取得
const $serifList = document.querySelectorAll("tr.LG");
$serifList.forEach($tr => {
const $parent = $tr.querySelector('td');
const preview = new serifPreview($parent, option);
... |
/**
* Created by lonso on 14-11-13.
* liusc@polyvi.com
*/
'use strict';
var Promise = require('bluebird');
var crypto = require('crypto');
var util = require('../utils/util.js');
var md5 = function (val) {
return new Promise(function (resolve, reject) {
resolve(crypto.createHash('md5').update((val).toString(),... |
import {Inferno, Component} from './../infernowrapper';
import {Link} from './../components/link';
const NestedStateless = (props) => (<section class={props.class}>{props.children}</section>);
export class InputViewConainer extends Component {
constructor(props) {
super(props);
this.state = {
... |
var Pattern = require('hexo-util').Pattern;
var moment = require('moment');
function isTmpFile(path){
var last = path[path.length - 1];
return last === '%' || last === '~';
}
function isHiddenFile(path){
if (path[0] === '_') return true;
return /\/_/.test(path);
}
exports.ignoreTmpAndHiddenFile = new Pattern... |
var infinityListView = new infinity.ListView($('#poly-ed-scroll'));
var theFilters = {};
$(".filterBtn").on("click", function(event){
theFilters.metadata.startYear = $(".poly-ed-startYear");
theFilters.metadata.startYear = $(".poly-ed-endYear");
/////need to break up strings into arrays to search properly
theFi... |
var dragSrcEl = null;
var svg = null;
var x = null;
var y = null;
function handleDragStart(e) {
this.style.opacity = '0.4'; // this / e.target is the source node.
dragSrcEl = this;
e.dataTransfer.effectAllowed = 'move';
e.dataTransfer.setData('text/html', this.innerHTML);
}
function handleDragOver(e... |
/* jshint -W069 */
var assert = require('assert')
, path = require('path')
, fs = require('fs')
, data = require(path.join(__dirname, 'server/observerData.json'))
var attributeCheck = function (data) {
it('should copy <html> attributes', function () {
assert.equal(data.cdvLoaderReady.html['data-ex-1'], 'nu... |
(function(){
"use strict";
var app = angular.module("pynative");
app.directive("radiogroupview", function() {
return {
controller: "ViewController",
templateUrl: "/static/angular-templates/radiogroup.html",
restrict: "E",
scope: {
vie... |
'use strict';
/* eslint-disable global-require */
require('../dist/pixi');
PIXI.utils.skipHello(); // hide banner
describe('PIXI', function ()
{
it('should exist as a global object', function ()
{
expect(PIXI).to.be.an('object');
});
require('./core');
require('./interaction');
requir... |
module.exports = function (grunt) {
grunt.initConfig({
sass: {
dist: {
options: {
style: 'compressed',
sourcemap: 'none'
},
files: {
'css/styles.min.css': 'scss/styles.scss',
... |
(function () {
'use strict';
angular
.module('loopbackAdmin.login.authentication')
.config(config);
/** @ngInject */
function config($httpProvider) {
// This functionality was taken from https://github.com/beeman/loopback-angular-admin/issues and modified
// Thanks to http://stackoverflow.com/... |
/**
* Given an array of numbers (`arr`), find the item in the array closest
* to a given number (`num`).
*
* @param {Array.<number>} arr An array of numbers.
* @param {number} num Close number to search from.
* @return {?number} The closest number in the array.
*/
export default function closest(arr, num) {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import {
createStore,
applyMiddleware
} from 'redux';
import {
Provider
} from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-eve... |
var should = require('chai').should()
|
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { colors } from 'global-colors';
import FormFieldHeading from 'components/FormFieldHeading';
import FormFieldWrapper from 'components/FormFieldWrapper';
const StyledTextInputContainer = styled.div`
width: ${... |
version https://git-lfs.github.com/spec/v1
oid sha256:76e69fba44e96859b3bc4a0c5b8b0c3a5baf15633892c13e802aff0baa92ea58
size 122298
|
version https://git-lfs.github.com/spec/v1
oid sha256:f7c48c8b07ed19fd26ce685209569de468d586c127bd87c6f8354506055bf1e3
size 15495
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
function numbers() {
for ( var arg of arguments ) {
console.log(arg);
}
}
numbers();
numbers(1);
numbers(1, 2, 3); |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import Location from '../../core/Location';
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || ev... |
const fa_hourglass_end = 'M1536 128q0 261-106.5 461.5t-266.5 306.5q160 106 266.5 306.5t106.5 461.5h96q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1472q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h96q0-261 106.5-461.5t266.5-306.5q-160-106-266.5-306.5t-106.5-461.5h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1472q14 0 23 9t9 23v64q0 14-9 23t-2... |
function extractQueryParams() {
var params = {};
location.search.substr(1).split('&').forEach(function(item) {
params[item.split('=')[0]] = decodeURIComponent(item.split('=')[1]);
});
return params;
};
function clearQueryString() {
var uri = window.location.toString();
if (uri.indexOf('?') > 0) {
v... |
require('dotenv').config()
const db = require('../models')
module.exports = db
|
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var eslint = require('gulp-eslint');
var staticTransform = require('connect-static-transform');
var buildDirectory = 'dist';
var pkg = require('./package.json');
gulp.task('build', function() {
gulp.src('jquery.t... |
/*
Copyright (c) 2016 Joseph B. Hall [@groundh0g]
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 rights
to use, copy, modify, merge, pub... |
function saveapplication(){
var instcode = document.getElementById("instcode").value;
var datereceived = document.getElementById("datereceived").value;
var programname = document.getElementById("programname").value;
var yearlevel = document.getElementById("yearlevel").value;
var schoolyear = document.getElementB... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="19.5" cy="19.5" r="1.5" /><path d="M11 18.03V8.98l4.22-2.15c.73-.37.73-1.43-.01-1.79l-4.76-2.33C9.78 2.38 9 2.86 9 3.6V19c0 .55-.45 1-1 1s-1-.45-1-1v-.73c-1.79.35-3 .99-3 1.73 0 1.1... |
/* eslint-disable no-console */
'use strict'
const Libp2p = require('../../')
const TCP = require('libp2p-tcp')
const Mplex = require('libp2p-mplex')
const SECIO = require('libp2p-secio')
const { NOISE } = require('libp2p-noise')
const CID = require('cids')
const KadDHT = require('libp2p-kad-dht')
const all = require... |
'use Strict';
var WhoAmI = function() {
this.getMe = function(ipaddress, lang, os) {
return {
"ipaddress" : ipaddress || 'null',
"language" : lang || 'null',
"software" : os || 'null'
}
}
}
function Controller() {
this.process = function(req) {
var ip,lang,os;
//get ip
ip = req.header('x-forwar... |
/** the Last Crusade - Ep. 1 (medium) https://www.codingame.com/training/medium/the-last-crusade-episode-1
* This puzzle makes you use an associative array that make a link between
* arbitrary types and directions. You also need to store some values in a
* 2D array.
*
* Statement:
* The goal of this puzzle is to... |
$(function () {
'use strict';
/* start ready */
$('#cardNumber').inputmask('9999 - 9999 - 9999 - 9999');
$('#expiryDate').inputmask('99 / 9999');
$('#cvv2').inputmask('999');
$('button[data-action="modal"][data-type="complete"]').animatedModal({
modalTarget: 'completeModal',
animatedIn: 'fadeIn',
animatedO... |
/**
* Created by mars on 2015/10/11.
*/
import React, {
Component,
ToolbarAndroid,
StyleSheet
}
from 'react-native';
export default class Toolbar extends Component {
constructor(props) {
super(props);
}
render() {
const {dispatch, navIconClicked, title, type} = this.props;
... |
(function() {
'use strict';
angular
.module('save-a-selfie.common')
.service('updateEula', updateEula);
updateEula.$inject = ['$http', '$cordovaDevice', 'apiUrl'];
function updateEula($http, $cordovaDevice, apiUrl) {
var service = {
post: post
};
return service;
function post(... |
!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r){var t=document.getElementById("app");t.innerHTML="Hi"}]); |
module.exports = function ({ $incremental, $lookup }) {
return {
object: function () {
return function (object) {
return function ($buffer, $start, $end) {
let $_, $i = []
if ($end - $start < 10) {
return $increment... |
var _ = require("lodash");
var rx_1 = require("rx");
var fetch = require('node-fetch');
var filter = require('fuzzaldrin').filter;
//https://skimdb.npmjs.com/registry/_design/app/_view/browseAll?group_level=1
function search(text) {
return rx_1.Observable.fromPromise(fetch("https://skimdb.npmjs.com/registry/_design... |
const webpack = require('webpack');
const Merge = require('webpack-merge');
const WebpackShellPlugin = require('webpack-shell-plugin');
const CommonConfig = require('../common/webpack.server.common.js');
module.exports = Merge(CommonConfig, {
devtool: 'inline-source-map',
plugins: [
new WebpackShellPlugin({onB... |
"use strict"
class MSCP{
async init(apiPath){
this.apiPath = apiPath ? apiPath : typeof MSCP_API_PATH === "string" ? MSCP_API_PATH : '/api'
this.def = await this.apireq("")
this.mscp_request_include_always_parms = {}
if(this._isLocalStorageAvailable() === true && this.def.error !== undefined && loca... |
version https://git-lfs.github.com/spec/v1
oid sha256:daebf9ab467cf02d6a37c6eef3f9e173f25b03529e3b616a6e5f2bd4e9c666fb
size 3952
|
/** @flow */
export type PositionInfo = {
x: number,
y: number
};
export type ScrollPosition = {
scrollLeft: number,
scrollTop: number
};
export type SizeAndPositionInfo = {
height: number,
width: number,
x: number,
y: number
};
export type SizeInfo = {
height: number,
width: number
};
|
var path = require('path');
var fs = require('fs');
var taskRunner = require('task-nibbler').nibbler;
var glob = require('glob');
var ROOT_DIR = path.resolve(__dirname, '../');
var TERRAFORM_FILE = ROOT_DIR + '/snippets/terraform.json';
function snippetsProcessor(pathToNewJsonSnippetsFile) {
return new Promise(fu... |
import Immutable from 'seamless-immutable';
const initialState = Immutable({
counter: 0,
});
export default (state = initialState, action) => {
switch (action.type) {
case 'INCREASE_COUNTER': {
return state.set('counter', state.counter + 1);
}
default: {
return state;
}
}
};
|
let aToCSV = require('array-to-csv'),
format = require('../lib/format');
module.exports = function formatCSV(data){
let d = format.dataFlatten(data, ' ');
return aToCSV(d);
}
|
/*! DexterJS - v0.5.4 - * https://github.com/leobalter/DexterJS
* Copyright (c) 2014 Leonardo Balter; Licensed MIT, GPL */
(function() {
var Dexter = {
stored: []
},
timerArray = [],
restore, actions,
originalTimeout = setTimeout,
originalInterval = setInterval,
originalClearTimeout = clearTimeout,
originalC... |
var searchData=
[
['zerocalibrate',['zeroCalibrate',['../class_i_t_g3200.html#a184c12df0419953cbeaea27313a35947',1,'ITG3200']]]
];
|
(function () {
'use strict';
angular.module('OpenSlidesApp.openslides_proxyvoting.site', [
'OpenSlidesApp.openslides_proxyvoting'
])
.config([
'mainMenuProvider',
'gettext',
function (mainMenuProvider, gettext) {
mainMenuProvider.register({
'ui_sref': 'openslides_proxyvoting.deleg... |
require('dotenv').config();
const http = require('http');
const Bundle = require('bono/bundle');
const AccountingBundle = require('./bundle');
const config = require('./config')();
const PORT = process.env.PORT || 3000;
const app = new Bundle();
app.use(require('bono/middlewares/logger')());
app.bundle('/accountin... |
import React, { Component } from 'react';
export default class HowItWorks extends Component {
render() {
return (
<div className="text-slide">
<p>React = (state) => View</p>
<ul>
<li>On every change of state and props re-renders the entire view </li>
<ul>
<li... |
(function() {
'use strict';
angular
.module('app')
.service('mainService', mainService);
mainService.$inject = ['$q', 'apiUrl', 'wsUrl', '$mdDialog'];
/* @ngInject */
function mainService($q, apiUrl, wsUrl, $mdDialog) {
// Promise-based API
var DEVICE_URL = apiUrl ... |
/*
JSPrime v0.1 beta
=================
The MIT License (MIT)
Copyright (c) 2013 Nishant Das Patnaik (nishant.dp@gmail.com)
Copyright (c) 2013 Sarathi Sabyasachi Sahoo (sarathisahoo@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation fil... |
var searchData=
[
['ramcost',['RamCost',['../interface_pathfinder_1_1_executable_1_1_i_interface.html#aa68a2b955d6ff745afc3448778ac2c55',1,'Pathfinder::Executable::IInterface']]],
['reader',['Reader',['../class_pathfinder_1_1_event_1_1_load_computer_xml_read_event.html#a4fdbd3e2d8b775425b1f698a568258f9',1,'Pathfind... |
var redis = require('redis');
var meld = require('meld');
var when = require('when');
var nodefn = require('when/node/function');
var bind = require('lodash.bind');
var uniqueId = require('lodash.uniqueid');
function createCacher(client, query, name, period){
var cacher = meld.around(query, function(methodCall){
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var baseConfig = require('./webpack.config');
var NODE_ENV = process.env.NODE_ENV === 'production' ? 'production' : 'development'
module.exports = Object.assign(baseConfig, {
mode: NODE_ENV,
context: __dirname + '/examples',
dev... |
/** @module test-export-20190914020335 */
class _NotExported {
}
/**
*
*/
function _foo() {
}
/**
* Default export with 'module.exports ='.
*/
module.exports = _foo;
/**
* Wrong 'exports.name =' export.
* @type {number}
* @constant
*/
exports.bar = 0;
exports = module.exports
/**
* Good 'exports.name =' ex... |
import { Future, resolve, reject } from './Promise'
import CancelToken from './CancelToken'
import Action from './Action'
// -------------------------------------------------------------
// ## Coroutine
// -------------------------------------------------------------
// coroutine :: Generator e a -> (...* -> Promise ... |
import React from 'react'
import { IndexLink, Link } from 'react-router'
import './HomeView.scss'
const styles = {};
let data = require('../assets/data.json');
class Results3 extends React.Component {
constructor (props) {
super(props);
this.state = {
heroImage: require(`../../../img... |
ElementStore.ZeptoAdapter = {
prototype: {
parseHTML: function parseHTML(html) {
return $(html);
},
querySelector: function querySelector(selector, element) {
return this.returnNative
? $(element || this._root).find(selector)[0]
: $(element || this._root).find(selector).eq(0);
},
querySelec... |
import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Pa Concept' />
)
|
var foo=123; |
/*!
* Retina.js v1.3.0
*
* Copyright 2014 Imulus, LLC
* Released under the MIT license
*
* Retina.js is an open source script that makes it easy to serve
* high-resolution images to devices with retina displays.
*/
(function() {
var root = (typeof exports === 'undefined' ? window : exports);
var config... |
'use strict';
angular.module('bucleApp.core')
.service('Cc', [
'CC',
function (CC) {
return {
get: function (type) {
var license = CC.filter( function(obkLicense) {
return obkLicense.type == type;
});
return license[0];
}
}
}
]);
|
// bgmusic.js
bgmusic = {
setup: function(){
this.songStack = [];
this.playing = '';
},
play: function(song, volume, currentTime) {
volume = (typeof volume === "undefined") ? 0.7 : volume;
currentTime = (typeof currentTime === "undefined") ? 0 : currentTime;
if(!(song in resources.music))
... |
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import OrganizationExplorer from './organization-explorer';
import OrganizationDetails from './organization-details';
import NotFound from '../not-found'
import { connector as organizationListConnector } from './organization-explorer'
export ... |
var path = require('path');
var fs = require('fs');
var os = require('os');
var hrobj = require('../build/Release/hcaptha.node');
var dir = require('./dir.js');
var timer = require('./timer.js');
var gen_func = require('./gen.js');
//ccap.create("abcdef","/usr/local/nodejs/hcaptha/test.jpeg",6,256,40,40,50);
... |
// Compiled by ClojureScript 1.9.293 {}
goog.provide('cljs.reader');
goog.require('cljs.core');
goog.require('goog.string');
goog.require('goog.string.StringBuffer');
/**
* @interface
*/
cljs.reader.PushbackReader = function(){};
/**
* Returns the next char from the Reader,
* nil if the end of stream has been rea... |
const path = require('path');
const { paths, rootResolution } = require('../../context');
const internalRegex = `^(${paths.src
.map((srcPath) => path.basename(srcPath))
.join('|')})/`;
const rootResolutionConfig = {
settings: {
'import/internal-regex': internalRegex,
},
};
module.exports = {
...(rootRe... |
var AnsTypeView = Backbone.View.extend({
initialize: function(args){
_.bindAll(this, 'render');
this.template_begin = _.template(args.template_begin);
this.template_finish = _.template(args.template_finish);
this.generate_choice = args.generate_choice;
if (args.render)
... |
function saveOptions(e) {
e.preventDefault();
var openInTabs = document.getElementsByName("openInTab");
var selected = "";
for (var i = 0; openInTabs.length; i++) {
if (openInTabs[i].checked === true) {
selected = openInTabs[i].value;
break;
}
}
browser.... |
$(function(){ // on dom ready
var cy = cytoscape({
container: document.getElementById('cy'),
boxSelectionEnabled: false,
autounselectify: true,
style: [
{
selector: 'node',
css: {
'content': 'data(id)',
'text-valign': 'center',
'text-halign': 'center'
}
}... |
/**
* Created by DELL on 8/21/2016.
*/
angular.module('myApp')
.controller('ProductController', function ($scope, $stateParams, $filter, ProductService, $rootScope, HomeService) {
$scope.format = {
brand: 'Độ thoáng:', product_code: 'Thoải mái:',
reward_point: 'Chất liệu:', guarant... |
'use strict';
import React, {
Component,
Picker,
} from 'react-native';
class PickerButton extends Component {
render(){
return (
<Picker
onValueChange={(lang)=> this.setState({language:lang})}>
<Picker.Item label="Java" value="java" />
<Picker.Item label="JavaScript" value="js" />
... |
import * as React from 'react';
import Button from '@mui/material-next/Button';
export default function MultilineButtonNext() {
return (
<Button variant="contained" style={{ width: 400 }}>
{[
'Contained buttons are rectangular-shaped buttons.',
'They may be used inline.',
'They lift... |
const assert = require("assert")
describe("black algo", function () {
const black = require("./black")
it("", function () {
const result = black([
[false, true, false],//0 1
[true, true, false],//1 0 //1 1
[false, true, true]//2 1 // 2 2
])
assert.deepEqual(result, [
{comman... |
'use strict';
const KeyboardCharacters = require('./keyboard-characters');
const split = require('split');
const KeyboardBase = require('./keyboard-base');
class KeyboardLines extends KeyboardBase {
constructor(options) {
super(KeyboardCharacters, options);
this.device.pipe(split()).on('data', data => this... |
version https://git-lfs.github.com/spec/v1
oid sha256:2f070953c9114c1610f420fda1c3556e49a9da7b99ec24ffec5a0501e531a4ee
size 3963
|
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { addScalarDependencies } from './dependenciesAddScalar.generated';
import { isIntegerDependencies } from './dependenciesIsInteger.generated';
import { isNegativeDependencies } from './dependenciesIsNegative.generated';
import { stirlingS2Dependen... |
var SlackNotifierAdmin = {
validate : function(){
try{
var teamName = document.forms["slackNotifierAdminForm"]["teamName"].value;
var token = document.forms["slackNotifierAdminForm"]["token"].value;
var iconUrl = document.forms["slackNotifierAdminForm"]["iconUrl"].value;... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../../../../core/tsSupport/assignHelper ../../../../Color ../../../../core/compilerUtils ../../../../core/maybe ../../../../core/screenUtil... |
/*
* Fingerpointer jQuery plugin
* version 1.1
* author: Damien Antipa
* http://github.com/dantipa/jquery.fingerpointer
*/
(function ($, window, undefined) {
var isTouch = 'ontouchstart' in window;
$.fn.finger = function () {
if (isTouch) {
this.on.apply(this, arguments);
}
... |
'use strict';
var keystone = require('keystone');
var Types = keystone.Field.Types;
//schema
var User = new keystone.List('User');
User.add({
name: { type: Types.Name, required: true, index: true },
email: { type: Types.Email, initial: true, required: true, index: true },
password: { type: Types.Password... |
/*jshint laxcomma: true, smarttabs: true, node:true, unused:true, esnext:true */
'use strict';
/**
* Mixin class providing functionality for detail endpoints
* @module tastypie/lib/resource/detail
* @author Eric Satterwhite
* @since 1.0.1
* @requires boom
* @requires mout/collection/forEach
* @requires tastypie/... |
/*record the operation of admin on users*/
const Sequelize = require('sequelize');
module.exports = (db) => {
return db.define('admin_log',{
content:{
type: Sequelize.TEXT, allowNull: false
}
});
};
|
const { format } = require('prettier');
const Analyser = require('../analyser');
const { parseAssign, parseFunc, getCompletionItemsAtScope, getSignatureItemsAtScope } = require('../tableItemHelper');
const luaCode = `CS.LuaBehaviour = {}
function CS.LuaBehaviour(abc, cbd) end
CS.LuaBehaviour.luaScript = nil`;
functio... |
'use strict';
var nopt = require('nopt');
var chalk = require('chalk');
var path = require('path');
var camelize = require('../utilities/string').camelize;
var getCallerFile = require('../utilities/get-caller-file');
var isGitRepo = require('../utilities/git-repo');
var Promise ... |
/* eslint-disable no-implicit-coercion, no-shadow */
var Promise = require('lie');
var loader = require('little-loader');
var cache = global.__requireAsyncCache = global.__requireAsyncCache || {};
function createBundlePromise ( opts, _require, urlRoot ) {
return Promise.resolve()
.then(function () {
return _re... |
'use strict';
/**
* Module dependencies
*/
const fs = require('fs');
const path = require('path');
const util = require('util');
const File = require('vinyl');
const ansi = require('ansi');
const Emitter = require('component-emitter');
const Benchmark = require('benchmark');
const define = require('define-property'... |
import Ember from "ember-metal/core";
import { get } from "ember-metal/property_get";
import EmberError from "ember-metal/error";
import run from "ember-metal/run_loop";
import jQuery from "ember-views/system/jquery";
import Test from "ember-testing/test";
/**
* @module ember
* @submodule ember-testing
*/
var helper ... |
/**
* DepositoryVersion Manager module.
* @module resource-managers/depository-version-manager
* @see module:resource-managers/resource-manager
*/
'use strict';
var console = require('../utils/console');
var ResourceManager = require('./resource-manager');
/**
* DepositoryVersion Manager Object
*
* Class repre... |
version https://git-lfs.github.com/spec/v1
oid sha256:8d212c4923076ea6312c861f6baba6066b830dcacc2a3fcc1e6a21731667c813
size 8096
|
/**
* Created by Pillar on 2015/6/4.
*/
console.log('I am storage.js');
sb = 123; |
export { default } from 'ember-flexberry-designer/serializers/fd-dev-uml-dpd';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.