code stringlengths 2 1.05M |
|---|
/* eslint-env node */
'use strict';
module.exports = {
name: 'en-codemirror'
};
|
import {
attribute,
collection,
clickable,
create,
hasClass,
isVisible,
text,
} from 'ember-cli-page-object';
const definition = {
scope: '[data-test-school-session-types-list]',
sessionTypes: collection('[data-test-session-type]', {
title: {
scope: '[data-test-title]',
edit: clickabl... |
module.exports = function(grunt) {
grunt.config('copy', {
// @begin: karma reports
karma_report_jasmine: {
files: [
{
expand: true,
flatten: true,
cwd: '<%= project.paths.reports %>/__jasmine',
src: [
'Phantom*/index.html'
],
dest: '<%= project.p... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var AvSurroundSound = React.createClass({
displayName: 'AvSurroundSound',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M20 4H4c-1.1 0-2 .9-2... |
angular
.module('openflix')
.directive('movieCollection', function() {
return {
restrict: 'E',
templateUrl: '/views/movie-collection',
scope: {
collection: '='
}
};
});
|
export const CHOICE_REGEX = 'CHOICE_REGEX';
export function choiceRegex(regex) {
return {
type: CHOICE_REGEX, regex,
};
}
|
module.exports={A:{A:{"2":"EB","8":"H D G","260":"E A B"},B:{"1":"C p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y","2":"YB","132":"BB WB QB","260":"F K H D G E A B C p x J L N I O P"},D:{"1":"0 1 2 3 4 5 6 8 9 V W X Y Z b c d e f g h i j k l m n o M q r s t u ... |
(function (win) {
function forEach(m, callback) {
for (var key in m) {
callback(key, m[key]);
}
}
function buildUrl(url, items) {
var query = '';
forEach(items, function (name, value) {
if (name != 'token') {
query += (query ? '&' : '') + encodeURIComponent(name) + '=' + encodeURIComponent(value);... |
function changeValue(what){
var element = document.getElementById(what);
var inputElement = document.getElementById(what+"Input");
var value = element.innerHTML;
var type = '';
switch (what){
case 'name':
type = 'nime';
break;
case 'type':
type = 'tüüpi';
break;
case 'cou... |
// Load the routes (which also boots react)
import "./routes";
|
d3.queue()
.defer(d3.json, '../assets/json/nhv_neighborhoods.json')
.defer(d3.json, '../assets/json/nhv_tracts.json')
.defer(d3.csv, '../assets/data/workforce/underemployment_by_location.csv')
.defer(d3.csv, '../assets/data/workforce/underemployment_by_year.csv')
.defer(d3.csv, '../assets/data/workf... |
const express = require('express')
const router = express.Router()
router.post('/createDev', require('./createDev'))
router.get('/', require('./getAll'))
router.post('/', require('./create'))
router.delete('/:id', require('./remove'))
router.put('/:id', require('./update'))
module.exports = router
|
const express = require('express');
const path = require('path');
const router = express.Router();
router.get('/', (req, res, next) => {
res.sendfile(path.join(__dirname, '../../dist/b/app.htm'));
});
module.exports = router;
|
'use strict';
/**
* This contains all the core commands that kalabox can run on every machine
*/
module.exports = function(kbox) {
var _ = require('lodash');
var Promise = require('bluebird');
var format = require('util').format;
kbox.whenApp(function(app) {
kbox.tasks.add(function(task) {
task... |
(function () {
"use strict";
angular.module('app').directive('dTrailsIndex', function () {
return {
templateUrl: 'app/templates/dTrailsIndexTemplate.html'
}
});
})(); |
'use strict';
/**
* Module dependencies.
*/
var errorHandler = require('./errors.server.controller'),
db = require('../models/fixmanager.server.model'),
_ = require('lodash'),
bluebird = require('bluebird');
/**
* Create a Fixmanager
*/
exports.create = function(req, res) {
db.FixManager.create({
... |
'use strict';
const winston = require('winston');
const { ENV } = require('./config');
/**
* Use winston to loge inside the moudles
* And another generic logger to get http requests
*/
const consoleOptions = {
level: 'debug',
handleExceptions: true,
json: true,
colorize: true
};
let logger;
if(ENV!=="test"... |
// CookieUtil.get()/CookieUtil.set()
// use to set cookie
//
var CookieUtil = {
get: function (name) {
var cookieName = encodeURIComponent(name) + '=',
cookieStart = document.cookie.indexOf(cookieName),
cookieValue = null;
if (cookieStart > -1) {
var... |
/**
* 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.
*
* @emails react-core
*/
'use strict';
let React;
let ReactDOM;
let act;
describe('ReactSuspenseEffectsSemanticsDOM', () => {
... |
System.register([], function (_export, _context) {
"use strict";
var PDF;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
return {
setters: [],
execute: function () {
_expor... |
NEWSBLUR.Modal = function(options) {
var defaults = {
width: 600
};
this.options = _.extend({}, defaults, options);
this.model = NEWSBLUR.assets;
this.runner();
this.flags = {};
};
NEWSBLUR.Modal.prototype = {
runner: function() {},
open_modal: function(callback) {
... |
define([], function() {
var strings = {
"_NAR8NFw8cblGJm9t5CjqOw": {
"SuccessfullyLoadedText": "โหลดไฟล์กำกับการดีบักเสร็จเรียบร้อยแล้ว",
"ErrorLoadingText": "ไม่สามารถโหลดไฟล์กำกับการดีบัก: {0}"
},
"_vd/LT/qfiQhbHFfeM1GtlA": {
"FetchFailedError": "การดึงข้อมูล Webpart ล้มเหลว โดยมีข้อผิ... |
module.exports = (req, cb) => {
const chekt = req.body.text || 'rekt';
const text = `\n[ ] not ${chekt} [✓] ${chekt}`;
const payload = {
icon_emoji: ':grimacing:',
text: text,
};
return cb(payload);
};
|
import React from 'react';
import {
Button,
Card,
CardTitle,
CardTitleText,
CardSubtitleText,
CardSupportingText,
CardMedia,
CardMenu,
CardActions
} from '../index'; // material-design-react
class Examples extends React.Component {
render() {
let children = React.Children.map(this.props.childre... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var AvStop = React.createClass({
displayName: 'AvStop',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M6 6h12v12H6z' })
);
}
});
modu... |
/**
* Javascript code to store data as JSON strings in cookies.
* It uses prototype.js 1.5.1 (http://www.prototypejs.org)
*
* Author : Lalit Patel
* Website: http://www.lalit.org/lab/jsoncookies
* License: Creative Commons Attribution-ShareAlike 2.5
* http://creativecommons.org/licenses/by-sa/2.5/
* ... |
(function(root, undefined) {
'use strict';
|
/*!
* QUnit 1.19.0
* http://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-09-01T15:00Z
*/
(function (global) {
var QUnit = {};
var Date = global.Date;
var now = Date.now || function () {
return new ... |
var mongoose = require('mongoose')
console.log("ImageModel");
var image_schema = mongoose.Schema({
event: {
person_name: {
type: String,
required: true,
},
},
});
var ImageModel = mongoose.model('logs_99957758195164324594', image_schema);
module.exports = ImageModel;
|
//----------- Imports -----------//
import Field from './styles'
import moment from 'moment'
import React, { PropTypes, cloneElement } from 'react'
//----------- Component -----------//
const ReduxAntdWrapper = (field) => {
const { label, meta, layout,... |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
// page container
frappe.provide('frappe.pages');
frappe.provide('frappe.views');
window.cur_page = null;
frappe.views.Container = class Container {
// Container contains pages inside `#container` and manages page c... |
/**
* Original implementation of this file by @marudor at https://github.com/marudor/flowInterfaces
* Copied here based on intention to merge with flow-typed expressed here:
* https://github.com/marudor/flowInterfaces/issues/6
*/
// Mostly from https://github.com/yahoo/react-intl/wiki/API#react-intl-api
declare mod... |
var comb = require("comb");
exports.up = function (db, next) {
comb.when(
db.alterTable("test1", function () {
this.renameColumn("column1", "column2");
}),
db.alterTable("test2", function () {
this.renameColumn("column2", "column3");
}),
db.alterTable(... |
/*
Social Bookmarks Widget
Widget Suite for DotNetNuke
Author - Will Strohl (http://www.WillStrohl.com)
Project Contributors - Will Strohl (http://www.WillStrohl.com), Mark Allan (http://www.dnngarden.com), Armand Datema (http://www.schwingsoft.com)
Support - http://dnnwidgets.codeplex.com
Copyright (c) 2009-2011 by Wi... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
var classtesting_1_1internal_1_1_assert_helper =
[
[ "AssertHelper", "classtesting_1_1internal_1_1_assert_helper.html#ac2c9334518fd4087189b4505567a3c90", null ],
[ "~AssertHelper", "classtesting_1_1internal_1_1_assert_helper.html#a51c640785d4ed4a0155cc9aa857d8931", null ],
[ "operator=", "classtesting_1_1in... |
import { NumberInput, LabelElement } from '../../libs/flow.module.js';
import { BaseNode } from '../core/BaseNode.js';
import { Vector4Node } from '../../renderers/nodes/Nodes.js';
export class Vector4Editor extends BaseNode {
constructor() {
const node = new Vector4Node();
super( 'Vector 4', 4, node, 350 );
... |
import BaseModel from './BaseModel';
import LocalStorageSync from '../utils/backboneLocalStorage';
import is from 'is_js';
export default class extends BaseModel {
localStorage() {
return new LocalStorageSync('__serverConfigs');
}
sync(...args) {
return LocalStorageSync.sync.apply(this, args);
}
de... |
/*
* Stub the relevent parts of the request API
*/
exports.dummyReq = function(authorized, cert, headers) {
return {
client: {
authorized: authorized
},
connection: {
getPeerCertificate: function() {
return cert;
}
},
headers: headers
};
};
|
Meteor.methods({
togglePlay : function(){
var state = State.findOne({name: 'state'});
var pause = Boolean((state.controller.pause + 1 ) % 2);
// pause
if ( pause) { Meteor.call('pause'); }
// play
else{ Meteor.call('play'); }
},
pause : function(){
console.log("-- pause");
var state = State.fin... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import {
Card,
CardBody,
CardContent,
CardHeader,
CardTitle,
CardSubtitle,
CardBadge,
} from '@strapi/design-system/Card';
import { Typography } from '@strapi/design-system/Typography';
im... |
var hyperstream = require('../');
var test = require('tap').test;
var concat = require('concat-stream');
var through = require('through2');
test('string _html', function (t) {
t.plan(1);
var hs = hyperstream({
'.row': { _html: '<b>beep boop</b>' }
});
hs.pipe(concat(function (body) {
... |
import invariant from "@octetstream/invariant"
import isFunction from "lodash/isFunction"
import wrapAction from "./wrapAction"
function setCommand(
commander, env, command, {alias, description, action, option} = {}
) {
invariant(
!isFunction(action), TypeError,
"Command action should be a function."
)
... |
/*!
* Bootstrap-select v1.13.12 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== unde... |
// Returns function that returns deferred or promise object.
//
// 1. If invoked without arguments then deferred object is returned
// Deferred object consist of promise (unresolved) function and resolve
// function through which we resolve promise
// 2. If invoked with one argument then promise is returned which... |
function reader2Promise(reader) {
return new Promise(function(resolve, reject) {
reader.onload = function() {
resolve(reader.result);
}
reader.onerror = function() {
reject(reader.error);
}
});
}
function blob2ArrayBuffer(blob) {
let reader = new FileReader();
reader.readAsArrayBuff... |
import { GraphQLInt, GraphQLObjectType, GraphQLString } from 'graphql';
export default new GraphQLObjectType({
name: 'Analytics',
fields: () => ({
date: { type: GraphQLString },
lineUser: { type: GraphQLInt },
lineVisit: { type: GraphQLInt },
webUser: { type: GraphQLInt },
webVisit: { type: Gra... |
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var editable_text_base_common_1 = require("./editable-text-base-common");
__export(require("./editable-text-base-common"));
var EditableTextBase = (function (_s... |
function addScriptTag(src) {
var script = document.createElement('script')
script.setAttribute("type", "text/javascript")
script.src = src
document.body.appendChild(script)
}
window.onload = function () {
addScriptTag('http://res.wx.qq.com/open/js/jweixin-1.2.0.js');
}
|
function createNodeObservable(fn, ctx, selector, args) {
var o = new AsyncSubject();
args.push(createNodeHandler(o, ctx, selector));
fn.apply(ctx, args);
return o.asObservable();
}
function createNodeHandler(o, ctx, selector) {
return function handler () {
var err = arguments[0];
if (err) { return ... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', function ()
{
return gulp.src([
path.join(conf.paths.src, '/ap... |
/**
* Map
*/
var $map = $('#map'), $googleMap;
function buildMap() {
$('<div class="map-container"/>').prependTo($map);
var $node = $('#map .map-container')[0];
$googleMap = new google.maps.Map($node, {
center: {lat: -16.707196, lng: -49.275969},
zoom: 15,
scrollwheel: false,
... |
const { client } = require('nightwatch-cucumber')
const { Given, Then, When } = require('cucumber')
Given(/^I open Google`s search page$/, () => {
return client
.url('http://google.com')
.waitForElementVisible('body', 1000)
})
Then(/^the title is "(.*?)"$/, (text) => {
return client.assert.title(text)
})
T... |
const path = require('path');
// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html
module.exports = {
process(src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
}
};
|
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '0.1',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
}; |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* 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 Lice... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A Graphics object is a way to draw primitives to your game. Primitives include forms of geometry, such as Rectangles... |
let addEmp83 = (employees) => {
employees.push(
{id:83, name: 'Jeff George'}
)
return employees;
};
export {addEmp83};
|
window.onload = function(e) {
window.setInterval(_main,16.6)
}
|
const displayedFilters = [
{
name: 'firstname',
metadatas: { label: 'Firstname' },
fieldSchema: { type: 'string' },
},
{
name: 'lastname',
metadatas: { label: 'Lastname' },
fieldSchema: { type: 'string' },
},
{
name: 'email',
metadatas: { label: 'Email' },
fieldSchema: { ty... |
(function() {
'use strict';
/* Constants */
var doc = document.currentScript.ownerDocument;
var template = doc.querySelector('#card-base');
var CardProto = Object.create(HTMLDivElement.prototype);
/**
* @description Returns a Globally Unique Identifer as string
* @return {String}
*/
CardProto.GUID = ... |
import utils from 'osg/utils';
import Object from 'osg/Object';
var StateAttribute = function() {
Object.call(this);
};
utils.createPrototypeStateAttribute(
StateAttribute,
utils.objectInherit(Object.prototype, {
_attributeTypeIndex: undefined,
getType: function() {
return thi... |
var _ = require('underscore'),
changeCase = require('change-case'),
gutil = require('gulp-util'),
jsonfile = require('jsonfile'),
pluralize = require('pluralize');
/**
* Mapper class (used for restructuring data across different formats)
**/
var mapper =
{
/*
* Trial and error data type matc... |
{
"metadata" :
{
"formatVersion" : 3.1,
"sourceFile" : "us_police_car.obj",
"generatedBy" : "OBJConverter",
"vertices" : 2110,
"faces" : 4332,
"normals" : 2350,
"uvs" : 3394,
"materials" : 6
},
"mater... |
(function() {
'use strict';
describe('DatepickerServiceSpec', function() {
var DatepickerService;
beforeEach(module('ionic-datepicker'));
beforeEach(inject(function(_DatepickerService_) {
DatepickerService = _DatepickerService_;
}));
it('#getDaysOfWeek', function() {
var daysOf... |
function fruitOrVegetable([input]) {
switch(input){
case "banana":
case "apple":
case "kiwi":
case "cherry":
case "lemon":
case "grapes":
case "peach":
console.log("fruit");
break;
case "tomato":
case "cucumber":
... |
/**
* @fileOverview
*
* This transform retrieves from storage by "field" from options.fields and combines into array
*/
const Transform = require('./Transform');
class TransformCombine extends Transform {
doTransform() {
const fields = this._options.fields || [];
const type = this._options.dat... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Since a function is an object, it might be set to [[Prototype]] property
of a new created object through [[Construct]] property
es5id: 13.2.2_A1_T1
description: Decl... |
import { Accounts } from 'meteor/accounts-base';
import { TAPi18n } from 'meteor/tap:i18n';
import { getSiteTitle, getFromEmail } from '/core/helper_functions/mail_helpers';
Accounts.emailTemplates.siteName = getSiteTitle();
Accounts.emailTemplates.from = getFromEmail(true); // Get email in SMTP format
Accounts.emai... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-... |
// 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... |
steal("can/util", function( can ) {
// ## view.js
// `can.view`
// _Templating abstraction._
var isFunction = can.isFunction,
makeArray = can.makeArray,
// Used for hookup `id`s.
hookupId = 1,
/**
* @add can.view
*/
$view = can.view = function(view, data, helpers, callback){
// Get the result.
va... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const path = require("path");
function run(name, from, projectfile) {
if (!fs.existsSync(path.join(from, projectfile))) {
fs.writeFileSync(path.join(from, projectfile), 'let project = new Project(\'New Pro... |
var port = params.port;
var base = params.server.replace(/[\/]+$/, '') + (port ? (':' + port) : '');
var accountsUrl = base + '/AIMWebService/api/Accounts';
var authUrl = base + '/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/';
var credentialsUrl = base + '/PasswordVault/WebServices/PIMServ... |
/* jshint expr:true */
import {
describe,
it,
beforeEach,
afterEach
} from 'mocha';
import { expect } from 'chai';
import Ember from 'ember';
import startApp from '../../helpers/start-app';
import Pretender from 'pretender';
import initializeTestHelpers from 'simple-auth-testing/test-helpers';
initiali... |
'use strict';
module.exports = function generate_allOf(it, $keyword) {
var out = ' ';
var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
var $breakOnError = !it.opts.allErrors;
var $it = it.util.c... |
version https://git-lfs.github.com/spec/v1
oid sha256:7558918cda348197d99ad133aaf18f123b43ad1eee1e92ed90b2e2d4520f3757
size 3729
|
"use strict";
exports.__esModule = true;
exports.default = Repeater;
// my tests in ie11/chrome/FF indicate that keyDown repeats
// at about 35ms+/- 5ms after an initial 500ms delay. callback fires on the leading edge
function Repeater(callback) {
var id,
cancel = function cancel() {
return clearInterval(i... |
var mongoose = require('mongoose');
var TodoSchema = new mongoose.Schema({
name: String,
completed: Boolean,
note: String
});
module.exports = mongoose.model('Todo', TodoSchema); |
import React from 'react'
import Icon from 'react-icon-base'
const TiLocationArrowOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m18.5 34.9c-0.6 0-2.1-0.3-2.8-2.5l-2-6.1-6.1-2c-2-0.7-2.4-2-2.5-2.6s0.2-2 2.2-3l19-8.8c1.7-0.8 3.2-0.5 3.9 0.6 0.4 0.6 0.6 1.6-0.1 3.2l-8.8 19c-0.9 1.9-2... |
var webpack = require("webpack");
module.exports = {
entry: './src/Delay.js',
output: {
path: __dirname,
filename: 'dist/delay.min.js',
library: 'Delay',
libraryTarget: 'umd'
},
externals: {
'react': 'react',
'prop-types': 'prop-types'
},
module: {
loaders: [
{
tes... |
/*
* Inspector text editor class.
*/
+function ($) { "use strict";
var Base = $.oc.inspector.propertyEditors.popupBase,
BaseProto = Base.prototype
var TextEditor = function(inspector, propertyDefinition, containerCell, group) {
Base.call(this, inspector, propertyDefinition, containerCell, gr... |
import request from 'request-promise';
const utils = {
/**
* @param getAttributeList provides List of attributes
*
* @calls action on success or failure
*/
getMappingList: () => {
return request({
url: 'http://localhost:4000/api/csv/getMappingList',
method: 'GET',
json: true
});... |
function *outer(n) {
yield n;
yield* middle(n - 1, inner(n + 10));
yield n + 1;
}
function *middle(n, plusTen) {
yield n;
yield* inner(n - 1);
yield n + 1;
yield* plusTen;
}
function *inner(n) {
yield n;
}
genHelpers.check(outer(5), [5, 4, 3, 5, 15, 6]);
|
/**
* TODO: Currently, the order of execution of these tests matters!
* These are not really seperate tests but a single test script, and it could
* do with some tidying up.
*/
var db = require('../lib/transports/db'),
filesystem = require('../lib/transports/filesystem'),
repository = require('../lib/trans... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
/**
* Event handlers for Footer pattern.
*/
const $ = require('jquery');
$(document).ready(() => {
// Hide footer on mobile until clicked
const $collapsible = $('.js-toggle-collapsed');
$collapsible.addClass('is-collapsed is-toggleable');
$collapsible.on('click', function () {
if (window.matchMedia('scr... |
/* test_toichika.js */
ui.debug.addDebugData('toichika', {
url : '4/4/n70kt84j',
failcheck : [
['bkNumGe2', "pzprv3/toichika/4/4/6/0 1 1 2 /3 1 2 2 /3 3 4 5 /3 4 4 4 /4 . . . /. . . . /. . . . /. . . . /. . . . /2 . . . /. . . . /4 . . . /"],
['arAdjPair',"pzprv3/toichika/4/4/6/0 1 1 2 /3 1 2 2 /3 3 4 5 /3 4 4 4... |
define(['some_dep'], function (dep) {
'use strict';
return {};
});
|
import { alias } from "@ember/object/computed";
import FollowButtonComponent from "../-follow-button/component";
export default FollowButtonComponent.extend({
modelName: "twitchChannelFollowed",
// model alias (component attribute)
model : alias( "channel" ),
// save the data on the channel record instead of ... |
//noinspection JSUnusedGlobalSymbols
/**
* Checks if value matches to the predefined regexp
* @constructor
* @author dev.ymalcev@gmail.com
*/
function SymfonyComponentValidatorConstraintsRegex() {
this.message = '';
this.pattern = '';
this.match = true;
this.validate = function(value) {
var... |
(function() {
'use strict';
angular
.module('app')
.factory('User', User);
User.$inject = ['$resource'];
function User($resource) {
return $resource('/api/users/:id/:controller', {
id: '@_id'
},
{
changePassword: {
method: 'PUT',
params: {
control... |
"use babel";
// @flow
import { List, Map } from "immutable";
import type { PackagePanel } from "../Types/types";
import type { State } from "../../../GlobalSystem/types.js.flow";
import { selectTasksOfPlan } from "../../TaskExecutionFeature/Selectors/Tasks";
import type { Package } from "../../../ProjectSystemEpic/Pac... |
// @require ../init.js
(function ( _ ) {
/* NOW SECS */
_.nowSecs = function () {
return Math.floor ( _.now () / 1000 );
};
}( window._ ));
|
/**
* jquery.dlmenu.js v1.0.1
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2013, Codrops
* http://www.codrops.com
*/
;( function( $, window, undefined ) {
'use strict';
// global
var Modernizr = window.Modernizr, $body = $... |
import { GraphQLEnumType } from 'graphql';
export const errors = {
EMPTY: 'EMPTY',
NOT_TRIMMED: 'NOT_TRIMMED',
HAS_URI_COMPONENT: 'HAS_URI_COMPONENT',
TAKEN: 'TAKEN',
};
export default new GraphQLEnumType({
name: 'SlugErrorEnum',
description: 'Slug of canot',
values: {
[errors.EMPTY]: {
value:... |
smalltalk.addPackage('Spaces');
smalltalk.addClass('ObjectSpace', smalltalk.Object, ['frame'], 'Spaces');
smalltalk.ObjectSpace.comment="I am a connection to another Smalltalk environment.\x0aThe implementation creates an iframe on the same location as the window, and connect to the Amber environment.\x0a\x0a\x0a\x0a##... |
/*jshint multistr: true */
var Helpy = Helpy || {};
Helpy.ready = function(){
$('.selectpicker').selectpicker({});
$(".best_in_place").best_in_place();
$('.edit-topic-name-menu').on('click', function(){
$('.best_in_place').click();
});
$('.profile').initial();
$('.attachinary-input').attachinary(... |
const DrawCard = require('../../drawcard.js');
class FeverDreams extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
when: {
onCardKneeled: event => event.card === this.parent
},
cost: ability.costs.discardGold(),
handler: () => {... |
import './js/jquery.instantSearch.js';
$(function() {
$('.search-field')
.instantSearch({
delay: 100,
})
.keyup();
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.