code stringlengths 2 1.05M |
|---|
// https://github.com/ghiculescu/jekyll-table-of-contents
(function($){
$.fn.toc = function(options) {
var defaults = {
noBackToTopLinks: false,
title: '<i>Jump to...</i>',
listType: 'ol', // values: [ol|ul]
showEffect: 'show', // values: [show|slideDown|fadeIn|none]
showSpeed: 'slow... |
var Command = {};
var settings, sessions;
Command.dataElements = [];
Command.matches = [];
Command.lastInputValue = '';
Command.setup = function() {
this.bar = document.createElement('div');
this.bar.id = 'cVim-command-bar';
this.bar.cVim = true;
this.bar.style[(this.onBottom) ? 'bottom' : 'top'] = '0';
thi... |
/*global define*/
define([
'jquery',
'underscore',
'postal',
'out',
//no args
'postaldom'
], function ($, _, postal, out) {
'use strict';
var log = out('#output');
postal.subscribe({
channel: 'postal-dom-demo',
topic: 'button.clicked',
callback: function (data) {
log.writeln(JSON.s... |
import {
drawChessman as drawChessmanCanvas
} from './canvas.js'
function drawChessman(type, value) {
if (type === 'canvas') {
return drawChessmanCanvas(value)
} else {
return drawChessmanCanvas(value)
}
}
export {
drawChessman
} |
var request = require('xhr')
var parseCSV = require('./parse-csv')
var parseJSON = require('./parse-json')
module.exports = function orgs (options, callback) {
console.log(options)
var requestOptions = {
url: 'https://api.github.com/repos/' + options.owner + '/' + options.repo + '/contents/' + options.path,
... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11 12V6c0-1.66-1.34-3-3-3S5 4.34 5 6v6c-1.21.91-2 2.37-2 4 0 1.12.38 2.14 1 2.97V19h.02c.91 1.21 2.35 2 3.98 2s3.06-.79 3.98-2H12v-.03c.62-.83 1-1.85 1-2.9... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var abstract_1 = require("./abstract");
var Stri... |
var $getChatsMoreBtn = $('#chat-content-chats-more');
// 只在父框架中才能显示
if (!$(window.parent.document).find('#chat-wrapper').length) {
window.location.href = 'http://closer-chat.coding.io/';
}
var $editBoxEdit = $('#chat-content-editbox-edit');
var $editBoxSend = $('#chat-content-send').find('button');
var $editBoxMe... |
'use strict';
//Tracks service used to communicate Tracks REST endpoints
angular.module('tracks').factory('Tracks', ['$resource',
function($resource) {
return $resource('tracks/:trackId', { trackId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]);
|
$(document).ready(function(){
$('#btn_ok').click(function(){
window.location.href='oa-personal-proc-approval.html';
});
$('#btn_no').click(function(){
window.location.href='oa-personal-proc-approval.html';
});
});
|
'use strict';
/**
* Module dependencies.
*/
var _ = require('underscore'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Room = mongoose.model('Room'),
School = mongoose.model('School');
var async = require('async');
/**
* Create user for sign up
*/
exports.create = function(req... |
"use strict";
var Client = require("./client");
var MESSAGE_PATH = "messages";
function Message() {
//compabtibility fix
if (arguments.length > 0) {
this.from = arguments[0];
this.to = arguments[1];
this.text = arguments[2];
}
}
/**
* Get information about a message that was sent or received
* @param clie... |
// Copyright (c) 2015 Uber Technologies, 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 rights
// to use, copy, modify, merge... |
'use strict';
var debug = require('debug')('secc:routes:schedulerArchive');
var environment = require('../lib/environment.js');
var path = require('path');
module.exports = function(express, io, SECC, SCHEDULER) {
var router = express.Router();
var am = SCHEDULER.am;
router.get('/', function(req, res) {
r... |
// style for game font/menu
var style;
(function () {
// the variables declared here will not be scoped anywhere and will only be accessible in this wrapped function
var defaultColor = "white",
highlightColor = "#FEFFD5";
style = {
navitem: {
base: {
font: '30pt TheMinion',
align... |
/**
* @name pc
* @namespace
* @description Root namespace for the PlayCanvas Engine.
*/
/**
* @private
* @function
* @name _typeLookup
* @description Create look up table for types.
*/
var _typeLookup = function () {
var result = { };
var names = ["Array", "Object", "Function", "Date", "RegExp", "Floa... |
var constants = require('./index');
module.exports = constants(['FETCH_FAILED']); |
import React from 'react'
import Icon from 'react-icon-base'
const FaNeuter = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.7 12.9q0 4.9-3.3 8.5t-8.1 4.2v13.7q0 0.3-0.2 0.5t-0.5 0.2h-1.5q-0.3 0-0.5-0.2t-0.2-0.5v-13.7q-4.8-0.5-8.1-4.2t-3.3-8.5q0-2.7 1-5t2.8-4.1 4.1-2.8 5-1 4.9 1 4.2 2.8 ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.11.1_A1;
* @section: 11.11.1;
* @assertion: White Space and Line Terminator between LogicalANDExpression and "&&" or between "&&" and BitwiseORExpression are allowe... |
const { DefinePlugin } = require("webpack");
module.exports = {
devtool: "source-map",
mode: "production",
entry: {
index: [__dirname + "/src/index.ts"]
},
output: {
path: __dirname,
library: "sift",
libraryTarget: "umd",
globalObject: "this",
filename: `sift.${process.env.CSP_ENABLED... |
/*eslint-env node, mocha */
'use strict';
var lint = require('../../index.js');
var paths = ['tests/fixtures/warning'];
var options = { formatter: 'stylish', alwaysWarn: true };
lint(paths, options);
|
var react = require('react')
, isolator = require('./isolator');
var spec = {
requestContext: react.PropTypes.object,
rootIsolator: react.PropTypes.instanceOf(isolator),
locales: react.PropTypes.oneOfType([
react.PropTypes.string,
react.PropTypes.array
])
};
module.exports = {
contextTypes : s... |
'use strict'
// Require and expose jQuery to window for Bootstrap
window.$ = window.jQuery = require('jquery')
// Don't require all of Bootstrap, just the parts we need
// require('bootstrap')
require('bootstrap/js/dist/util.js')
// require('bootstrap/js/dist/alert.js')
require('bootstrap/js/dist/button.js')
require(... |
var searchData=
[
['controls',['Controls',['../namespace_generic_inliner_1_1_core_1_1_u_i_1_1_controls.html',1,'GenericInliner::Core::UI']]],
['core',['Core',['../namespace_generic_inliner_1_1_core.html',1,'GenericInliner']]],
['extensions',['Extensions',['../namespace_generic_inliner_1_1_core_1_1_extensions.html... |
$(document).ready(function() {
$('.session_row').click(function(){
window.document.location = $(this).attr("href");
});
}); |
import _ from 'lodash';
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import Subheader from './subheader';
import LoadingIndicator from '../../common/components/loading-indicator';
import loginServices from '../../common/utils/login-services';
imp... |
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
export default function configureStore(reducers, initialState = {}) {
const loggerMiddleware = createLogger();
return applyMiddleware(
thunkMiddleware,
loggerMiddleware
)(cr... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import VisualTOC from './diagrams/VisualTOC.html';
// eagerly initialize vtoc as it's above the fold
const tocNav = document.getElementById('vtoc');
const visualTOC = new VisualTOC({target: tocNav});
// lazily initialize any diagram below the fold. E.G:
// {
// const figure = document.getEleme... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@ciscospark/test-helper-chai';
export default function runAbstractStorageAdapterSpec(adapter) {
const key = `key`;
const namespace = `namespace`;
const obj = {a: 1};
const primitive = 1;
const options = {
logg... |
///////////////////////////////////////////////////////
// Bonsai - Server - Worker Service
// Dependencies
// Application Imports
import models from "bonsai-engine/db/models";
import {
getRouteMap,
route
} from "bonsai-engine/routing";
import {BroadcastClient} from ... |
import Raspberry from "../models/Raspberry";
var _ = require("lodash");
/**
* Configure a new raspberry
* @param {String} req.body.name instance name
* @param {Array<String>} req.body.modules instance modules names
* @param {Object} res response object
*/
var add = function(req, res) {
if (!req.body || !req.bod... |
/**
* Tweetie: A simple Twitter feed plugin
* Author: Sonny T. <hi@sonnyt.com>, sonnyt.com
*/
(function ($) {
$.fn.twittie = function (options) {
// Default settings
var settings = $.extend({
'count': 1,
'hideReplies': false,
'dateFormat': '%b/%d/%Y',
... |
// Underscore.js 1.8.3
// http://underscorejs.org
// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` (`self`... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.compile = compile;
exports.precompile = precompile;
var _htmlbars = require("htmlbars");
// Return an executable function (object) version of the compiled template string
function compile(string) {
return new Function("return " ... |
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormValidationSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
'use strict';
/**
*
* @author xiaoping (edwardhjp@gmail.com)
* @type js
*
*/
var koa = require('koa'),
onerror = require('koa-onerror'),
cors = require('koa-cors'),
requestLog = require('./middlewares/requestLog'),
execTime = require('./middlewares/execTime'),
api = require('./routes/api'),
... |
'use strict';
var _ = require('lodash');
var path = require('path');
var fs = require('fs');
var through2 = require('through2');
var gettextParser = require('gettext-parser');
var hbsTransFn = require('./lib/handlebars-translator');
var jsTransFn = require('./lib/javascript-translator');
// Publish a Node.js require(... |
define([
'jquery', 'underscore', 'backbone', 'oroui/js/modal', 'oroui/js/mediator', 'orotranslation/js/translator', 'routing'
], function($, _, Backbone, modal, mediator, __, routing) {
'use strict';
/**
* @extends oro.Modal
*/
var WidgetPickerDialog = modal.extend({
open: function() ... |
export default Rx.Observable; |
module.exports = exports = function(app) {
require('./map_controller')(app);
};
|
/* turn.js 4.1.0 | Copyright (c) 2012 Emmanuel Garcia | turnjs.com | turnjs.com/license.txt */
(function(f){function r(a,b){return a[0]==b[0]?!1:a.attr("page")?!0:a.parent()[0]?r(a.parent(),b):!1}function u(a){function b(a){this.name="TurnJsError";this.message=a}b.prototype=Error();b.prototype.constructor=b;return new... |
var searchData=
[
['renderer',['Renderer',['../class_c_m_u462_1_1_renderer.html',1,'CMU462']]]
];
|
'use strict';
var childProcess = require('child_process');
function run(args, cb) {
childProcess.execFile('df', args, function (err, stdout) {
if (err) {
cb(err);
return;
}
cb(null, stdout.trim().split('\n').slice(1).map(function (el) {
var cl = el.split(/\s+(?=[\d\/])/);
return {
filesystem: ... |
var config = require('../javascripts/config');
var utils= require('../javascripts/utils');
var sqlite3 = require('sqlite3').verbose();
module.exports = {
db: new sqlite3.Database(config.tsdbPath),
warps: [],
users: [],
groups: [],
initialize: function () {
this.loadGroups();
this.... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m21.68 9.71-3.72 8.19c-.23.49-.96.33-.96-.21V11h-1.5c-.28 0-.5-.22-.5-.5v-6c0-.28.22-.5.5-.5h5.76c.35 0 .6.36.46.69L20 9h1.22c.37 0 .61.38.46.71zM15 13v7H4c... |
var isIE6 = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Opera") == -1));
var isIE7 = ((navigator.userAgent.indexOf("MSIE 7.") != -1) && (navigator.userAgent.indexOf("Opera") == -1));
var isChrome = ((navigator.userAgent.indexOf("Chrome") != -1));
var isSafari = ((navigator.userAgent... |
/*
* Start looseleaf server
*/
// Create express server and exports for spark like modules
var ll = require('looseleaf').init(__dirname);
// For other controll modules
exports = ll.app;
// Only listen when run on $ node app.js
if (!module.parent) {
ll.start();
}
|
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Track Schema
*/
var TrackSchema = new Schema({
date: {
type: Date
},
sheikh: {
type: String,
trim: true
},
surah: {
type: String,
trim: true
},
prayerLocation: {
t... |
module.exports = {
schema: {
id: { type: 'serial', key: true },
song_id: String,
title: String,
artist: String,
album: String,
cover: String,
mp3: String,
ogg: String,
lyric: String,
update_at: { type: 'date', time: true, null: true }
... |
'use strict';
var colors = require('colors/safe');
var util = require('util');
// logLevel = -1: log nothing
// logLevel = 0: error, success and info
// logLevel = 1: log
// logLevel = 2: debug
var logger = function logger() {
var options = {
logLevel: 0
};
var output = function(parameters) {
var message = new... |
/*!
* CanJS - 2.1.4
* http://canjs.us/
* Copyright (c) 2014 Bitovi
* Fri, 21 Nov 2014 22:25:48 GMT
* Licensed MIT
* Includes: CanJS default build
* Download from: http://canjs.us/
*/
steal("can/util", "can/map", "can/map/bubble.js",function (can, Map, bubble) {
// Helpers for `observable` lists.
var splice =... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
define(['./toInteger'], function(toInteger) {
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/**
* The opposite of `_.before`; this method creates a function that invokes
* `func` once it's called `n` or more times.
*
* @static
* @memberOf _
* @since 0.1.0
* @c... |
//
// Stub out `require` in rhino
//
function require(arg) {
return less[arg.split('/')[1]];
};
// ecma-5.js
//
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
// -- tlrobinson Tom Robinson
// dantman Daniel Friesen
//
// Array
//
if (!Array.isArray) {
Array.isArray = function(obj) {
r... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.8.4_A7.2_T4;
* @section: 7.8.4;
* @assertion: UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect;
* @description: :: HexDigit :: A;
* ... |
/*
* @author Niklas von Hertzen <niklas at hertzen.com>
* @created 11.7.2012
* @website http://hertzen.com
*/
( function( MODULES ){
MODULES.set_time_limit = function( newvalue ) {
var COMPILER = PHP.Compiler.prototype;
this.$ini.max_execution_time = newvalue[ COMPILER.VARIAB... |
'use strict';
export class VersionDirective {
constructor(value) {
this.value = value;
}
link(scope, element) {
element.text(this.value);
}
}
|
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Checkbox from '.'
storiesOf('ui.Form.Checkbox', module)
.add('Default', () => (
<Checkbox label="Check it!" />
))
|
module.exports = function(config) {
config.set({
basePath: '',
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/quill/dist/quill.js',
'./src/ng-quill.js',
'./tests/ng-quill.spec.js',
],
preprocessors: { './src/n... |
'use strict';
//Used for audio
var recording = false;
var audioRecord ="";
var noImageURL = "/images/no-image.jpg";
var current_data = {
"memo": "",
"date": {"month": "", "day": "", "year": ""},
"time": {"hour": "", "minute": ""},
"imageURL": "",
"emoji": "",
"emojiImageURL": "",
"audioURL... |
// flow-typed signature: 2a07b38ecca1c060715dfb1221390650
// flow-typed version: <<STUB>>/babel-loader_v^6.2.7/flow_v0.37.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-loader'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with ... |
const Lab = require('@hapi/lab'); // the test framework
const Hapi = require('@hapi/hapi');
const Vision = require('@hapi/vision');
const Inert = require('@hapi/inert');
const Swagger = require('hapi-swagger');
const Docs = require('plugins/docs');
const Logger = require('test/fixtures/logger-plugin');
const Sinon = re... |
/**
* Taking care of events
* - Simulating 'change' event on contentEditable element
* - Handling drag & drop logic
* - Catch paste events
* - Dispatch proprietary newword:composer event
* - Keyboard shortcuts
*/
import { Composer } from "./composer";
import dom from "../dom";
import { redraw } from "../qui... |
document.getElementById('note').innerHTML="<font class='ajax'><input type='hidden' name='star' id='star' value='" + id + "'></font>";
for (var i = 0; i < id; i++) {
document.getElementById(i + 1).src = "../img/star1_48x48.png";
}
var textos = ["Detestei", "Não gostei", "Razoável", "Gostei", "Adorei"];
var user = d... |
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: path.resolve(__dirname, 'lib/index'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'react-simple-chatbot.js',
publ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vscode = require("vscode");
class SolargraphWebviewProvider {
constructor() {
this.views = {};
}
parseQuery(query) {
var result = {};
var parts = query.split('&');
parts.forEach((part... |
import React, {PropTypes, Component} from 'react';
import {
Text,
View,
StyleSheet
} from 'react-native';
const color = () => Math.floor(255 * Math.random());
/**
* Sample view to demonstrate navigation patterns.
* @TODO remove this module in a live application.
*/
class ColorView extends Component {
stati... |
const User = require('../db/mongo/models/User');
/**
* Authenticate a user from one of its email and password
*
* @param {String} email
* @param {String} password
* @param {Function} done
*/
function auth(email, password, done) {
User.loadFromEmail(email, (err, user) => {
if (err) {
return done(err);
... |
import $ from 'dom7';
import Utils from '../../utils/utils';
import Framework7Class from '../../utils/class';
class Messagebar extends Framework7Class {
constructor(app, params = {}) {
super(params, [app]);
const messagebar = this;
const defaults = {
top: false,
topOffset: 0,
bottomOf... |
t = [10, 6, 6];
root = document.getElementById("sympla-widget-169502");
cw = root.clientWidth - 95;
h = 258;
for (i = 0; i < 3; i++) {
l = Math.floor(t[i] / (cw / 9)) + 1;
h += 49;
if (cw <= 154) h += 20;
h += (l * 15) + ((l - 1) * 5);
}
console.log(h);
root.setAttribute("style", "max-width: 600px;");
i... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
#!/usr/bin/env node
/* eslint global-require: 0 */
/* eslint no-console: 0 */
'use strict';
const Err = require('../lib/common/cli/error');
const pkg = require('../package.json');
const err = new Err();
const displayError = (error) => {
console.log(err.get(error, true));
process.exit(1);
};
process.on('uncaug... |
// Copyright 2016 Intel 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 law or agreed ... |
/**
* XadillaX created at 2016-02-02 15:12:29 With ♥
*
* Copyright (c) 2016 Souche.com, all rights
* reserved.
*/
"use strict";
const gulp = require("gulp");
const plugins = require("gulp-load-plugins")();
const config = require("../../config");
gulp.task("bootstrap_js_dev", () => {
return gulp.src(`${confi... |
import TestResolverApplicationTestCase from './test-resolver-application';
import { Application } from 'ember-application';
import { assign } from 'ember-utils';
import { Router } from 'ember-routing';
export default class AutobootApplicationTestCase extends TestResolverApplicationTestCase {
createApplication(option... |
var sass = require('node-sass');
var Processor = require('./processor');
module.exports = function(options) {
var opts = options || {};
var processor = new Processor(opts);
return {
'image-url($filename, $only_path: false)': function(filename, only_path, done) {
processor.image_url(filename.getValue()... |
// @flow
import { visibleTodosSelector } from '../../selectors';
describe('visibleTodosSelector', () => {
let state;
beforeEach(() => {
state = {
todos: [
{ id: 0, text: 'Test Todo 1', completed: false },
{ id: 1, text: 'Test Todo 2', completed: true }
],
visibilityFilter: 'S... |
//# sourceMappingURL=IView.js.map |
'use strict';
/*
Copyright (c) 2014, Ismaël Héry
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, publish,... |
version https://git-lfs.github.com/spec/v1
oid sha256:e961bba7ca604871f5a24ac42a19593820bdb3163d6c9b921aca5d58ad66baf2
size 195155
|
// Zepto.cookie plugin
//
// Copyright (c) 2010, 2012
// @author Klaus Hartl (stilbuero.de)
// @author Daniel Lacy (daniellacy.com)
//
// Dual licensed under the MIT and GPL licenses:
// http://www.opensource.org/licenses/mit-license.php
// http://www.gnu.org/licenses/gpl.html
(function (a) {
a.extend(a.fn, {cooki... |
module.exports = Cmds.addCommand({
cmds: [";username "],
requires: {
guild: false,
loud: false
},
desc: "Set VaeBot's username",
args: "[username]",
example: "VaeBot9000",
///////////////////////////////////////////////////////////////////////////////////////////
fu... |
//userinfo
jQuery('.user-info').click(function(){
if(!jQuery(this).hasClass('user-active')) {
var $userInfo = jQuery(this);
var $userDrop = jQuery('.user-dropbox');
$userDrop.slideDown('fast');
$userInfo.addClass('user-active'); //add class to change color and background
} ... |
/* outputPath: dist */
/* global $ */
/* global hasher */
/* global crossroads */
var controllers = [];
var Controller = function (name, config) {
//console.log('Initializing New Controller', name);
config.init();
var me = this;
me.name = name;
me.listeners = config.listeners;
for (var item in m... |
/**
* @license
* Lodash <https://lodash.com/>
* Copyright JS Foundation and other contributors <https://js.foundation/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters ... |
"use babel";
// @flow
import * as React from "react";
import Radium from "radium";
import QuestionMessage from "./QuestionMessage";
import type { ComplexChoice, Step } from "../Types/types";
export default Radium(
({
message,
decline = { value: false, description: "No" },
accept = { value: true, descrip... |
// @flow
import uuid from "uuid";
import v1 from "uuid/v1";
import v3 from "uuid/v3";
import v4 from "uuid/v4";
import v5 from "uuid/v5";
(uuid.v1(): string);
(uuid.v4(): string);
(uuid(): string);
(v1(): string);
(v4(): string);
(v3(): string);
(v5(): string);
uuid.v1({
node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M12 18c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M12 20c4.42 0 8-3.58 8-8s-3.58-8-8-... |
/** @jsx React.DOM */
// https://github.com/rogerwang/node-webkit/issues/1188#issuecomment-26002789
// https://github.com/substack/node-browserify/issues/481
// https://github.com/greypants/gulp-starter/issues/17
// http://blog.avisi.nl/2014/04/25/how-to-keep-a-fast-build-with-browserify-and-reactjs/
// https://github... |
class MyRouter {
constructor() {
//we use array to push all url that we have
this._routes = [];
}
on(url, callback) {
//push the url and the callback in the array;
//return this gives the ability to chain
this._routes.push({ targetUrl: url, callback: callback });
... |
module.exports = {
name: 'Firefox',
DEFAULT_CMD: {
linux: ['firefox'],
darwin: ['/Applications/Firefox.app/Contents/MacOS/firefox-bin'],
win32: [
process.env.LOCALAPPDATA + '\\Mozilla Firefox\\firefox.exe',
process.env.ProgramW6432 + '\\Mozilla Firefox\\fir... |
var b = "hello b" ;
|
'use strict';
define( function ( require ) {
var UsersAdminCtrl = require( 'users/UsersAdminCtrl' );
var UsersBaseCtrl = require( 'users/UsersBaseCtrl' );
var UsersCreateCtrl = require( 'users/UsersCreateCtrl' );
var UsersDetailsCtrl = require( 'users/UsersDetailsCtrl' );
var User... |
/*jshint newcap:false*/
import CollectionView from "ember-views/views/collection_view";
import EmberObject from "ember-runtime/system/object";
import EmberView from "ember-views/views/view";
import ArrayProxy from "ember-runtime/system/array_proxy";
import Namespace from "ember-runtime/system/namespace";
import { Regis... |
//>>built
define({add:"\ucd94\uac00",addAuthor:"\uc791\uc131\uc790 \ucd94\uac00",addContributor:"\uc81c\uacf5\uc790 \ucd94\uac00"}); |
/** @jsx React.DOM */
var React = require('react');
var classSet = require('./utils/classSet');
var cloneWithProps = require('./utils/cloneWithProps');
var BootstrapMixin = require('./BootstrapMixin');
var ValidComponentChildren = require('./utils/ValidComponentChildren');
var PanelGroup = React.createClass({displayN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.