text stringlengths 2 1.04M |
|---|
// REACT
import React from 'react';
// REDUX
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// ==========
class EstimatorProduct extends React.Component {
constructor (props) {
super(props);
this.state = {
id: 'default',
qty: 0
};
};
render () {
... |
'use strict';
const utils = require( '../utils.js' );
module.exports = utils.createUtilMethodRule(
'unique',
'Prefer `$.uniqueSort` to `$.unique`',
{
fixable: 'code',
fix: function ( node, fixer ) {
return fixer.replaceText( node.callee.property, 'uniqueSort' );
}
}
); |
/*!
* URI.js - Mutating URLs
*
* Version: 1.11.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.com/URI.js/
*
* Licensed under
* MIT License http://www.opensource.org/licenses/mit-license
* GPL v3 http://opensource.org/licenses/GPL-3.0
*
*/
(function (root, factory) {
// https://github.com/u... |
// Again, thanks to [The Perfect Lil' Bot](https://gist.github.com/eslachance/3349734a98d30011bb202f47342601d3)
module.exports = async (client, message, command, args) => {
// Calculates ping between sending a message and editing it, giving a nice round-trip latency.
// The second ping is an average latency between... |
/**
* This factory produces a worker function that checks if a value is empty. This
* works for string, array, and object.
* @factory
*/
function _IsEmpty() {
/**
* @worker
* @type {assertion}
* @param {any} value The value to test for emptiness
* @returns {boolean}
*/
return function IsEmpty(value) {
... |
var Script = function () {
// $.validator.setDefaults({
// submitHandler: function() { alert("submitted!"); }
// });
$().ready(function() {
// validate the comment form when it is submitted
$("#feedback_form").validate();
// validate signup form on keyup and submit
... |
/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2018 the original author or authors.
*
* 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/li... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ChangeDetectionStrategy, Component, ContentChildren, Directive, ElementRef, EventEmitter, Inject, InjectionT... |
// #todo
'use strict';
/*
a user can input a non-empty string and all characters which are not letters will be removed
- given the user cancels, they will be prompted again
- given the input is empty, they will be prompted again
- given their input is valid, the loop will exit and the extra characters w... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'en', {
title: 'Mathematics in TeX',
button: 'Math',
dialogInput: 'Write your TeX here',
docUrl: 'https://brainannex.org/viewer.php?ac=... |
import React, {useState} from "react";
import UploadService from "./upload-files.service";
const UploadFiles = () => {
const [selectedFiles,setSelectedFiles] = useState(undefined)
const [currentFile,setCurrentFile] = useState(undefined)
const [progress,setProgress] = useState(0)
const [message,setMess... |
import Vue from 'vue'
import { shallowMount, mount } from '@vue/test-utils'
import CoreuiVue from '@coreui/vue'
import CakePhp from '@/views/base/CakePhp'
Vue.use(CoreuiVue)
describe('CakePhp.vue', () => {
it('has a name', () => {
expect(CakePhp.name).toBe('CakePhp')
})
it('is CakePhp', () => {
const wr... |
'use strict';
/**
* @ngdoc object
* @name conferenceApp
* @requires $routeProvider
* @requires conferenceControllers
* @requires ui.bootstrap
*
* @description
* Root app, which routes and specifies the partial html and controller depending on the url requested.
*
*/
var app = angular.module('conferenceApp',
... |
app.factory('ApiService', function ($http, $q, LocalStorage, Upload) {
var photo_url = '.';
var authentication_url = '.';
var profile_url = '.';
var vote_url = '.';
var comment_url = '.';
var settings = {
debug: true
};
function composeAuthenticationUrl(url) {
return au... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
*
* Return true or false if the selected DOM-element currently has focus.
*
* <example>
:index.html
<input name="login" autofocus="" />
:hasFocus.js
it('should detect the focus of an element', function () {
... |
import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import '../imports/api/tasks.js';
import '../imports/startup/accounts-config.js';
import App from '../imports/ui/App.jsx';
Meteor.startup(() => {
render(<App />, document.getElementById('render-target'));
}); |
'use strict';
function Scanner() {
}
function checkObject(target) {
return Object.prototype.toString.call(target) === '[object Object]';
}
Scanner.prototype.startScan = function (extension, config, callback, router) {
var serialport = require('../../serialport');
var self = this;
self.router = router;
self.conf... |
module.exports = new Date(2029, 0, 12) |
import { expect } from 'chai'
import { shallowMount, createLocalVue } from '@vue/test-utils'
import Vuex from 'vuex'
import store from '@/store'
import CardList from '@/components/card/CardList.vue'
const localVue = createLocalVue()
localVue.use(Vuex)
describe('CardList.vue', () => {
it('renders at least one card',... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
'use strict';
var bitcore = require('bitcore-lib-dash');
var async = require('async');
var TxController = require('./transactions');
var Common = require('./common');
function AddressController(node) {
this.node = node;
this.txController = new TxController(node);
this.common = new Common({log: this.node.log});
... |
//# sourceMappingURL=chunk-660bd039.4fd7a690.js.map |
var app_firebase = {};
(function(){
var firebaseConfig = {
apiKey: "AIzaSyAISMs217Hfy1KlnN-2yTV-DN0zkWSO0s8",
authDomain: "digiwar-beta.firebaseapp.com",
databaseURL: "https://digiwar-beta.firebaseio.com",
projectId: "digiwar-beta",
storageBucket: "digiwar-beta.appspot.com",
messagingSenderId:... |
let FraTrans;
let expect = require('expect.js');
let src = "ça, est un exemple."
let exp = {
"morse": {
"rev": "CA, EST UN EXEMPLE.",
"dst": "-.-. .- --..-- . ... - ..- -. . -..- . -- .--. .-.. . .-.-.-"
}
};
describe("French Transliteration", function(){
before(async () => {
let module... |
/*global define:false */
/**
* Copyright 2016 Craig Campbell
*
* 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 app... |
Meteor.methods({
'uploadFile': function(fileid,filename){
var fs = Meteor.npmRequire('fs');
var file = Uploads.find({_id:fileid});
Meteor.setTimeout(function(){
var filepath = "./imports/uploads-" + fileid + "-" + filename;
count = 0;
CSV().from.stream(
fs.createReadStream(filepath),
{'escap... |
describe('mdRadioButton component', function() {
var CHECKED_CSS = 'md-checked';
beforeEach(module('material.components.radioButton', 'ngAria'));
describe('md-radio-group', function() {
it('should have `._md` class indicator',inject(function($compile, $rootScope) {
var element = $compile(
'<... |
'use strict';
// EXPORTS //
module.exports = 'polymer-scatterplot'; |
function toggleNavigationBar() {
navigationBar.classList.toggle('w-0');
container.classList.toggle('no-border');
}
function toggleTooltipsBar() {
tooltipsBar.classList.toggle('d-none');
content.classList.toggle('w-100');
}
const HideNavBar = new Feature('hideNavBar', toggleNavigationBar, toggleNavigationBar);
con... |
import React from "react"
import styles from "../css/banner.module.css"
const Banner = ({ title, info, children }) => {
return (
<div className={styles.banner}>
<h1>{title}</h1>
<p>{info}</p>
{children}
</div>
)
}
export default Banner |
// Enemies our player must avoid
var Enemy = function() {
// Variables applied to each of our instances go here,
// we've provided one for you to get started
this.reset();
// The image/sprite for our enemies, this uses
// a helper we've provided to easily load images
this.sprite = 'images/enemy... |
/*jshint undef: true */
/*global jQuery: true */
/*
--------------------------------
Infinite Scroll
--------------------------------
+ https://github.com/paulirish/infinite-scroll
+ version 2.0b2.120519
+ Copyright 2011/12 Paul Irish & Luke Shumard
+ Licensed under the MIT license
+ Documenta... |
$(function () {
$('.ccm-flashing-diffs').on('click', function() {
$('.diffmod, .diffins, .diffdel').addClass('diff-blink');
setTimeout(function () {
$('.diffmod, .diffins, .diffdel').removeClass('diff-blink');
}, 1000);
});
}); |
const name = 'Zaptec';
function greeting() {
alert(`Our company is called ${name}.`);
} |
module.exports = install;
install.usage = "rappidjs install <pkg>"
+ "\nrappidjs install <pkg>@<version>"
+ "\nrappidjs install <pkg> <version>"
+ "\nrappidjs install <pkg> <version> <dir>"
+ "\nInstalls rAppidjs dependencies from ./package.json.";
var sys = require('util'),
child_process = requir... |
// custom typefaces
require('typeface-noto-sans-kr')
require('typeface-catamaran')
// polyfill
require('intersection-observer')
const metaConfig = require('./gatsby-meta-config')
exports.onInitialClientRender = () => {
if (metaConfig.share.facebookAppId) {
window.fbAsyncInit = function () {
FB.init({
... |
(function(GoNorth) {
"use strict";
(function(Tale) {
(function(Localization) {
Localization.ViewModel = {};
Localization.ViewModel.ChooseItem = "Choose item";
Localization.ViewModel.ChooseQuest = "Choose quest";
Localization.ViewModel.ChooseNpc = "Choose ... |
const Discord = require('discord.js');
const str = [ ], added = [ ];
module.exports = {
'name': 'help',
'desc': 'Print list of bot\'s commands.',
'run': async function(msg, args) {
const helpUsage = new Discord.MessageEmbed()
.setTitle('Help')
.setColor('#ff9900');
helpUsage.setDescription('**Commands**... |
import React from 'react';
import { connect } from 'react-redux';
import PianoKey from './PianoKey.js';
import './Piano.less';
const Piano = ({ octavesOfPianoNotes }) => {
const octs = octavesOfPianoNotes.map((oct, idx) => {
var keys = oct.map(
k => <PianoKey keyObj={k} key={k.note} />
);
return (<div classN... |
import React, { Component } from 'react';
import './Home.scss';
import HomeRight from './HomeRight/HomeRight';
import NewsFeed from './NewsFeed/NewsFeed';
export class Bookmark extends Component {
render() {
return (
<div className="home">
<NewsFeed />
<HomeRight />
</div>
);
}
... |
steal
.plugins("funcunit")
.resources("testMessages.js", "constants.js", "testUtils.js")
.then("//survey/resources/messages.js")
.then("simpleQuestion_tests")
.then("selectOne_tests")
.then("selectMultiple_tests")
.then("gridSelectOne_tests")
.then("dataFormat_tests")
.then("behavior_tests")
.then("conditiona... |
import reducers from '../../../src/reducers/index'
import * as types from '../../../src/actions/type'
describe('Testing Users reducer', () => {
describe('Testing FETCH_USERS', () => {
it('should return the initial state', () => {
console.log('REDUCERS HERE !!!!', reducers.users);
ex... |
import './utils/svg-sprites'; |
// section.js
import {join as _join} from 'lodash';
import {helperA} from 'extras/helpers.simple.js';
import 'section.scss';
// Vendor test
console.log(_join(['Lodash', 'says', 'hi', 'from', 'section.js!'], ' '));
// Module test
helperA();
// Test Array.prototype.find polyfill
const arr = [666, 11];
const found = a... |
require('../DevExpress.ui.widgets.editors/tagBox.markup.tests.js'); |
const siteName = "The Quire";
const siteShortName = "Quire";
const siteUrl = "https://the-quire.netlify.app";
const siteDescription = "The Quire";
const siteKeyword = "choir";
const siteLogo = "logo.png";
const siteLogoFolder = `static/${siteLogo}`;
module.exports = {
siteMetadata: {
title: siteName,
siteUrl... |
'use strict'
const yap = require('yaml-ast-parser')
const { canonicalForm, expandedForm } = require('datatype-expansion')
const constants = require('./constants')
const utils = require('./utils')
const fs = require('fs')
const path = require('path')
const request = require('sync-request')
const deep = require('deep-ge... |
import {getPPI} from './display'
export function calcRelativeFontSize(container, coef = 1.0) {
const fontSize = Math.min(container.offsetWidth, container.offsetHeight) / 480 * getPPI() / 96 * 10 * coef
console.log(`ppi = ${getPPI()}; width = ${container.offsetWidth}; height = ${container.offsetHeight}; fontSize = ${... |
import {BaseScale} from './base';
/* jshint ignore:start */
import {default as _} from 'underscore';
import {default as d3} from 'd3';
/* jshint ignore:end */
export class ColorScale extends BaseScale {
create() {
var props = this.scaleConfig;
var varSet = this.vars;
var brewer = props.b... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _browserSymbol = _interopRequireDefault(require("svg-baker-runtime/browser-symbol"));
var _es6ObjectAssign = require("es6-object-assign");
var _sprite ... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { registerUser } from '../actions/authActions';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router-dom';
// UI Components
import {
Button,
TextField,
Typography,... |
var projects = [
//Project 1
{
"name": 'Simple "About Me" Page',
"link": "https://tle51.github.io/IT202/project1/index.html",
"picture": "img/project-image/proj1-img.png",
"id": "portfolioModal1",
"desc": "A simple web app that use basic HTML and CSS to make a profile pag... |
var callbackArguments = [];
var argument1 = null;
var argument2 = null;
var argument3 = 783;
var base_0 = [122]
var r_0= undefined
try {
r_0 = base_0.some(argument1,argument2,argument3)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefined) return a;
var n... |
'use strict';
//Global Variables
var picOne = document.getElementById('picture1');
var picTwo = document.getElementById('picture2');
var picThree = document.getElementById('picture3');
var productOptions = document.getElementById('product-options');
var picArrayContainers = [picOne, picTwo, picThree];
var maxCount = 2... |
import fs from "fs";
import os from "os";
import path from "path";
import escapeRegExp from "lodash/escapeRegExp";
import * as babel from "../lib";
import { isMJS, loadOptionsAsync, skipUnsupportedESM } from "./helpers/esm";
// TODO: In Babel 8, we can directly uses fs.promises which is supported by
// node 8+
const ... |
import React from 'react';
import Button from '@material-ui/core/Button';
import { useSelector } from 'react-redux';
const ButtonResignGame = () => {
const state = useSelector(state => state);
if (state.mode.playfriend.accepted) {
return (
<div>
<Button variant="outlined">Resign</Button>
<... |
/*
###### ###### ####### ###### #######
# # # # # # # # #
# # # # # # # # #
###### ###### # # ###### #####
# # # # # # # #
# # # # # # # #
# # # ####### ###### #######
*/
cl... |
// Smart Rockets
// The Nature of Code
// The Coding Train / Daniel Shiffman
// https://youtu.be/_of6UVV4HGo
// https://thecodingtrain.com/more/achive/nature-of-code/9-genetic-algorithms/9.5-fitness-genotype-vs-phenotype.html
// https://editor.p5js.org/codingtrain/sketches/BOTCxBDbO
// http://natureofcode.com
// Path... |
const { stubFor } = require('./wiremock')
const stubGetAssessmentFromDelius = () => {
stubFor({
request: {
method: 'GET',
urlPattern: '/assessment-from-delius',
},
response: {
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
status: 200,
jsonBody... |
"use strict";
class SnoozeSquad
{
constructor(options)
{
this.range = 1;
this.attributeName = "data-src";
this.updateInterval = 250;
for (let optionKey in options)
this[optionKey] = options[optionKey];
this.querySelector = `[${this.attributeName}]`;
this.lastUpdateTime = 0;
this.start();
thi... |
/*-
* #%L
* peregrine vuejs page renderer - UI Apps
* %%
* Copyright (C) 2017 headwire inc.
* %%
* 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. ... |
function numRegions(graph) {
let visited = new Set();
// regions count
let regions = 0;
// iterate through nodes in the graph
for (let node in graph) {
if (visited.has(node)) continue;
// skip iteration if set has node otherwise call upon the function and increase the count a
dept... |
/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#dt/dt-1.10.20
*
* Included libraries:
* DataTables 1.10.20
*... |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = "";
var argument3 = null;
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = null;
var argument6 = function callback(){callbackArguments.push(arguments)};
var argument... |
'use strict';
const path = require('path');
const args = require('minimist')(process.argv.slice(2));
// List of allowed environments
const allowedEnvs = ['dev', 'dist', 'test'];
// Set the correct environment
var env;
if (args._.length > 0 && args._.indexOf('start') !== -1) {
env = 'dev';
} else if (args.env) {
... |
M.AutoInit();
//Slider
$('.carousel.carousel-slider').carousel({
fullWidth: true,
indicators:true
});
$(document).ready(function(){
$('.tap-target').tapTarget();
});
$(document).ready(function(){
$('input.autocomplete').autocomplete({
data: {
"Apple": null,
"Microsoft": nu... |
// @flow
import { translate } from '../../../base/i18n';
import { IconParticipants } from '../../../base/icons';
import { connect } from '../../../base/redux';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
/**
* The type of the React {@code Component} props of {@link Pa... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var demandsSchema = new Schema({
resNum:String,//id
region: {}, // province, city, district
classify: String, //行业
categoryL1: {type: String, ref : 'ContentCategory'},//关联的资源一级类目
categoryL2: {type: String, ref : 'ContentCategory'},//... |
import MaterialUiPhoneNumber from './components/index';
export default MaterialUiPhoneNumber; |
import Tarumae from "../entry";
import { Color3 } from "@jingwood/graphics-math";
Tarumae.Shaders.ViewerShader = class extends Tarumae.Shader {
constructor(renderer, vertShaderSrc, fragShaderSrc) {
super(renderer, vertShaderSrc, fragShaderSrc);
console.log('create viewer shader: ', renderer);
this.use();
... |
// Permission model
module.exports = function (sequelize, DataTypes) {
return sequelize.define(
'Permission',
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type:
DataTypes.STRING(255) +
(sequeliz... |
"use strict";
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _GmailButton = _interopRequireDefault(require("./GmailButton"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
(0, _react2.storiesOf)('mui-componen... |
const comentarioDef = `
type Comentario{
mensagem: String
usuario_criador: Usuario!
usuario_recebeu: Usuario!
}
input ComentarioCriarInput{
mensagem: String
usuario_recebeu: ID!
}
`;
const comentarioMutation = `
criarComentario(input: ComentarioCriarInput): ... |
// https://github.com/CuriousDrive/BlazingChat/blob/main/src/BlazingChat.Components/wwwroot/js/site.js
// https://www.youtube.com/watch?v=qUbbtcZZqaI
function test() {
console.log("Script -1");
}
function downloadFile(mimeType, base64String, fileName) {
console.log("Script Starting");
var fileDataUrl = "da... |
import './Sidebar.scss';
export const imgPath = '/images/placeholder.png';
@inject('userStore', 'channelStore') @withRouter @observer export default class Sidebar extends Component {
@observable updateSettingModalOpen = {
isOpen: false,
keyboard: true,
toggle: this.openModalupdateSetting.bind(this)
}
... |
import Dashboard from "@material-ui/icons/Dashboard";
import Person from "@material-ui/icons/Person";
import {Assignment,ViewCarousel,Settings,Store,LocalOffer} from "@material-ui/icons";
import LibraryBooks from "@material-ui/icons/LibraryBooks";
import BubbleChart from "@material-ui/icons/BubbleChart";
import Notific... |
var sentences = {};
sentences.agree = ['I definitely agree', 'I think so too', 'Yeah, I agree', 'I can see your point', 'uh huh', 'Absolutely, I totally agree', 'That\'s a very good point', 'Yes, that\'s true'];
sentences.disagree = ['I\'m not sure I agree', 'I don\'t really think so', 'well, I don\'t know about that... |
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const BabiliPlugin = require('babili-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
// Config directories
const SRC_DIR = path.resolve(__dirname, 'src');
cons... |
import React from 'react'
import ReactWOW from 'react-wow'
import partner1 from 'assets/images/partner/partner1.png'
import partner2 from 'assets/images/partner/partner2.png'
import partner3 from 'assets/images/partner/partner3.png'
import partner4 from 'assets/images/partner/partner4.png'
import partner5 from 'assets/... |
(function(d){d['gu']=Object.assign(d['gu']||{},{a:"ફાઇલ અપલોડ ન થઇ શકી",b:"Image toolbar",c:"Table toolbar",d:"ઘાટુ - બોલ્ડ્",e:"ત્રાંસુ - ઇટલિક્",f:"image widget",g:"Full size image",h:"Side image",i:"Left aligned image",j:"Centered image",k:"Right aligned image",l:"Insert image",m:" વિચાર ટાંકો",n:"Insert image or fi... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('@angular/core'),require('@angular/cdk/bidi'),require('@angular/common'),require('@angular/material/core'),require('@angular/cdk/a11y'),require('@angular/cdk/portal'),require('@angular/cdk/scrolling'),requir... |
/**
* Pixel physics class.
*
* @class
* @memberof Pixel
*/
export default class Physics {
/**
* Creates a physics instance.
*
* @class
* @param {Pixel.Stage} parent - The parent stage this physics runs off of.
*/
constructor(parent) {
/**
* Contains the parent... |
module.exports = {
bundler: require('./bundler'),
creator: require('./creator'),
downloader: require('./downloader'),
runner: require('./runner'),
config: require('./config'),
websocket: require('./websocket')
} |
var assert = require('assert');
var util = require('util');
var async = require('async');
var streams = require('../../lib/streams.js');
var types = require('../../lib/types.js');
var helper = require('../test-helper.js');
/**
* Tests for the transform streams that are involved in the reading of a response
*/
descr... |
/* ------------------------------------------------------------------------------
*
* # D3.js - zoomable treemap
*
* Demo of treemap setup with zoom and .json data source
*
* Version: 1.0
* Latest update: August 1, 2015
*
* ---------------------------------------------------------------------------- */
$(... |
import Enum from '../../lib/Enum';
export default new Enum(['searching', 'idle'], 'contactSearchStatus'); |
// Scrollspy for Sidebar on Resources Page
$('body').scrollspy({
target: '.sb-sidebar>.sticky-top>ul'
})
// Modal Customiaztion for Search Modal
// Disabled for now...
// $(".modal-search").on('show.bs.modal', function() {
// setTimeout(function() {
// $(".modal-backdrop").addClass("modal-backdrop-fullscreen"... |
'use strict';
/**
* @ngdoc function
* @name sbAdminApp.controller:FormCtrl
* @description
* # MainCtrl
* Controller of the sbAdminApp
*/
angular.module('sbAdminApp')
.controller('FormCtrl', function ($scope) {
console.log("FormCtrl is running now...");
}); |
import {IG, Debug} from 'impact'
import MyGame from './box2dgame/main'
import './entities.generated'
const instance = IG.createInstance('#canvas', MyGame, 60, 320, 240, 2)
Debug.createDebugger(instance) |
/* =============================================================================
**
** Copyright (c) 2019
** InterDigital Communications, Inc.
**
** All rights reserved.
**
** Licensed under the terms and conditions provided in InterDigital Labs Public
** Licen... |
"use strict";
exports.__esModule = true;
exports.default = exports.getRefTarget = void 0;
var _contains = _interopRequireDefault(require("dom-helpers/contains"));
var _listen = _interopRequireDefault(require("dom-helpers/listen"));
var _ownerDocument = _interopRequireDefault(require("dom-helpers/ownerDocument"));
... |
/*! WebUploader 0.1.2 */
/**
* @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。
*
* AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。
*/
(function( root, factory ) {
var modules = {},
// 内部require, 简单不完全实现。
// https://github.com/amdjs/amdjs-api/wiki... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{1297:function(t,i,s){"use strict";s(796)},1619:function(t,i,s){"use strict";s.r(i);var e={name:"bridRotate",data:function(){return{}}},n=(s(1297),s(12)),a=Object(n.a)(e,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=thi... |
/**
* @author Titus Wormer
* @copyright 2015 Titus Wormer
* @license MIT
* @module remark:parse:tokenize:newline
* @fileoverview Tokenise a newline.
*/
'use strict';
var whitespace = require('is-whitespace-character');
module.exports = newline;
/* Tokenise newline. */
function newline(eat, value, silent) {
... |
/** @license @lljj/vue3-form-element (c) 2020-2021 Liu.Jun License: Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
(global = typeof glob... |
/*! Craft - 2017-06-26 */
(function($){
// Set all the standard Craft.* stuff
$.extend(Craft,
{
navHeight: 48,
/**
* Map of high-ASCII codes to their low-ASCII characters.
*
* @var object
*/
asciiCharMap: {
'216':'O', '223':'ss', '224':'a', '225':'a', '226':'a', '229':'a', '227':'ae', '230':'ae', '... |
const fs = require('fs');
const path = require('path');
fs.readdir(
path.join(__dirname, 'secret-folder'),
{ withFileTypes: true },
function (err, files) {
if (err) console.error(err.message);
for (let file of files) {
if (file.isFile()) {
let res = `${file.name.split('.')[0]} - ${file.name... |
var del = require('del');
var gulp = require('gulp');
var webpack = require('webpack-stream');
var header = require('gulp-header');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var plumber = require('gulp-plumber');
var react = require('gulp-react');
var streami... |
import React, { Component } from 'react';
import Wallet from 'capsule-wallet';
// Fake css to test scope
import style from './index.module.css';
const NET = {
MAINNET: {
id: 1,
etherscan: ''
},
ROPSTEN: {
id: 3,
etherscan: 'ropsten.'
},
KOVAN: {
id: 42,
etherscan: 'kovan.'
},
RIN... |
var { expect } = require('chai');
var { KnexTracker } = require('../src/knex-tracker');
describe('knex-tracker test', () => {
describe('knex-tracker examples', () => {
it('should create a knex-tracker', () => {
new KnexTracker();
});
});
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.