code stringlengths 2 1.05M |
|---|
'use strict';
/**
* @ngdoc service
* @name softwareEngineeringTeamApp.pDB
* @description
* # pDB
* Factory in the softwareEngineeringTeamApp.
*/
angular.module('softwareEngineeringTeamApp')
.factory('pDB', function(pouchDB) {
//Setup local database
var localdb = pouchDB("db");
return localdb;
})... |
const helpers = require('./helpers');
/**
* Webpack Plugins
*/
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
const DefinePlugin = require('webpack/lib/DefinePlugin');
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
const ContextReplacementPlugin = require('webpack/lib/ContextRep... |
/**
* Created by chiamakanwosu on 15/01/2017.
*/
(() => {
const app = angular.module('invertedIndex', ['ngFileUpload']);
app.controller('InvertedIndexController', ['$scope', '$timeout', ($scope, $timeout) => {
const invertedIndex = new InvertedIndex();
$scope.message = 'this is a message';
$scope.fil... |
var worlds = require('../resources/world-data.json');
var byPropValue = require('array-predicates/byPropValue');
module.exports = {
findWorldById: function(id, cb) {
var response = worlds.filter(byPropValue('id', id));
setTimeout(cb.bind(null, null, response[0]), 500);
},
findWorlds: function(query, cb)... |
var AmpersandState = require('ampersand-state');
module.exports = AmpersandState.extend({
props: {
name: 'string',
age: 'number'
},
derived: {
message: {
deps: ['age'],
fn: function () {
if(this.age % 2 == 0) {
return 'An even number of years!'
}
return '... |
/* global window */
(function (window, bs) {
var socket = bs.socket;
socket.on('system:reload', function (data) {
var loader = window.SystemJS || window.System;
if (!loader) {
throw new Error('BrowserSync SystemJS Hot Reloader: unable to find SystemJS');
}
loader.import('systemjs-hot-reloa... |
'use strict';
/**
* Module dependencies
*/
var oauth = require('oauth');
var Keygrip = require('keygrip');
var merge = require('util')._extend;
var querystring = require('querystring');
var url = require('url');
var streamparser = require('./parser');
// Package version
var VERSION = require('../package.json').vers... |
import React, { PropTypes as T } from 'react'
import css from 'react-css-modules'
import stylesheet from './Layout.css'
function Layout({ children }) {
Layout.propTypes = {
children: T.element
}
return (
<div styleName="Layout">
{children}
</div>
)
}
export default css(stylesheet)(Layout)
|
var h = require("./hello")
var p = require("./spawn")
h.hello("liuyw")
p.createDir()
|
var gui = window.require('nw.gui');
var clipboard = gui.Clipboard.get();
var AutoLaunch = require('auto-launch');
var windowBehaviour = require('./window-behaviour');
var dispatcher = require('./dispatcher');
var platform = require('./platform');
var settings = require('./settings');
var updater = require('./updater');... |
/* jshint node:true */
define([
'dojo/lang',
'dojo/Promise',
'dojo/node!url',
'dojo/node!path',
'dojo/aspect',
'dojo/io-query',
'./Suite'
], function (lang, Promise, urlUtil, pathUtil, aspect, ioQuery, Suite) {
function ClientSuite() {
this.config = {};
Suite.apply(this, arguments);
}
var _super = Suite... |
import { hashCode } from '../../../core/hash.js';
import {
SEMANTIC_ATTR8, SEMANTIC_ATTR9, SEMANTIC_ATTR10, SEMANTIC_ATTR11, SEMANTIC_ATTR12, SEMANTIC_ATTR13, SEMANTIC_ATTR14, SEMANTIC_ATTR15,
SEMANTIC_BLENDINDICES, SEMANTIC_BLENDWEIGHT, SEMANTIC_COLOR, SEMANTIC_NORMAL, SEMANTIC_POSITION, SEMANTIC_TANGENT,
... |
import Component from '@ember/component';
import { computed } from '@ember/object';
import { reads } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';
const MIN_INPUT = 3;
export default Component.extend({
iliosConfig: service(),
intl: ser... |
// Generated by CoffeeScript 1.7.1
(function() {
var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
define(function(require, exports, module) {
var StylusManager;
StylusManager = (function() {
func... |
// Generated by CoffeeScript 1.9.2
(function() {
var _apiUrl, _escape, allAlbumIds, allTracksFromAlbumIds, apiCall, app, artistId, express, fibrous, htmlForTracks, market, pluck, popularTracksByArtist, ref, request, segment, server, sortBy,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length;... |
var expect = require('chai').expect,
chef = require('../chef'),
key = require('fs').readFileSync(__dirname + '/fixtures/example.pem'),
nock = require('nock');
describe('chef', function () {
describe('createClient', function () {
it('should be a function', function () {
expect(chef.cr... |
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon-chai'],
files: [
'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js',
'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-mocks.js',
... |
import Cat from "../src/index.js";
//
var cat = new Cat();
cat.use("./style.css");
cat.use("./ex1.js"); //同步加载
cat.useAsync("./ex2.js"); //异步加载
cat.useDef("./ex3.js"); //异步加载,使用Def模式
var s = cat.com.div();
s.style = {
}
s.class = "";
s.onclick = fn;
var i = s.com.input();
i.bind();
// 为页面元素定义动作
var com = ... |
'use strict';
angular.module('core').controller('AccordionCtrl', function ($scope, $state) {
$scope.oneAtATime = true;
$scope.groups = [
{
title: 'Group 1',
content: 'John Doe',
reader: 'R001',
complience: '97%'
},
{
title: 'Group 2',
content: 'John Smith',
re... |
/**
* @file format.js
* @author graeme@converse.ai
* @description This module will format any date or time to a human
* readable form.
*
* Generated by the converse-cli tool for use with the Converse AI
* Plugins SDK. https://developers.converse.ai/
*/
'use strict';
const Status = require('@conversea... |
$(document).ready(function($) {
//set current id from hash
if(window.location.hash) {
HaskellTodo.setCurrentListId(window.location.hash.substring(1));
HaskellTodo.items.get();
}
$('#create-new-list').on('click', function() {
HaskellTodo.list.create();
return false;
});... |
// $(window).scroll(function() {
// if ($(".navbar").offset().top > 50) {
// // $(".navbar-fixed-top").addClass("top-nav-collapse");
// } else {
// $(".navbar-fixed-top").removeClass("top-nav-collapse");
// }
// });
// Closes the Responsive Menu on Menu Item Click
$('.navbar... |
/*
var jsonContrepeterie = require("./jsonContrepeterie.json");
console.log(jsonContrepeterie.contrepeterie[0].original);
console.log("length : "+jsonContrepeterie.contrepeterie.length);
var randomIntContrepeterie = Math.floor((Math.random() * jsonContrepeterie.contrepeterie.length));
console.log("ran... |
module.exports = [
{
title: 'Data&Data',
subtitle: 'Professional project- Dataviz',
slug: 'datadata',
role: 'Front-end Developer',
client: 'Data&Data - Internship',
content: '<p class="project-detail-text">I started working on Data&Data as a <a href="http://www.sy... |
/*!
*
* MediaElementPlayer
* http://mediaelementjs.com/
*
* Creates a controller bar for HTML5 <video> add <audio> tags
* using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
*
* Copyright 2010-2013, John Dyer (http://j.hn/)
* License: MIT
*
*/
if (typeof jQuery != 'undefined') {
mejs.$ = jQue... |
// To set up environmental variables, see http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const Twilio = require('twilio').Twilio;
const client = new Twilio(accountSid, authToken);
const fleet = client.preview.deployed_devices.fleets(
'FLXXXXX... |
#!/usr/bin/env node
const fs = require('fs-extra');
const path = require('path');
const argv = require('minimist')(process.argv.slice(2));
const childProcess = require('child_process');
const inquirer = require('inquirer');
const prompt = inquirer.createPromptModule();
const exec = childProcess.exec;
const execSync = ... |
"use strict";
var util = require('util'),
assert = require('assert');
describe('Cookbook', function(){
it("should actually mixin a package local config", function(){
var environments = {
'development': {
'a': 1,
'b': 1
}
... |
"use strict";
var inherits = require('util').inherits,
EventEmitter = require('events').EventEmitter,
Connection = require('./connection'),
MongoError = require('../error'),
Logger = require('./logger'),
f = require('util').format,
Query = require('./commands').Query,
CommandResult = require('./command_r... |
import './home';
import HomeController from './home.controller';
import HomeTemplate from './home.html';
describe('Home', () => {
let makeController;
beforeEach(window.mocks.module('qds'));
beforeEach(window.mocks.inject(() => {
makeController = () => {
return new HomeController();
};
}));
de... |
import React from 'react';
import { Link } from 'react-router';
import { shallow } from 'enzyme';
import expect from 'expect';
import { PageEdit } from '../PageEdit';
import Errors from '../../../components/Errors';
import Button from '../../../components/Button';
import { page } from './fixtures';
const defaultProp... |
sap.ui.define(["sap/ui/core/Control"], function (Control) {
"use strict";
return Control.extend("sap.ui.custom.Code", {
metadata: {
properties: {
text: { type: "string", defaultValue: "" }
}
},
init: function () {
},
renderer: {
render: function (oRm, oControl) {
oRm.write("<pre");
oRm.writeContro... |
/*
* Copyright (c) 2014 airbug inc. http://airbug.com
*
* bugflow may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Script
//-------------------------------------------------------------------------------
var bugpackApi = req... |
search_result['4739']=["topic_0000000000000B88.html","ConfigWrapper.AccountName Property",""]; |
// Javascript for statistical project
// a = "1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,8,8,8,8,8,9,9,9,9,9,4,4,3,3,3,2,2,5,5,6,6,6,7,7,1,1,8".split(/\W/)
// 150 173 266 260 224 201 240 289 140 256 275 282 293 178 162 132 112 221 291 301 160 124 299 164 173
/* Variáveis globais */
var aba_inicial = 'cl';
functi... |
var Camera = function () {
this.realPosition = new Vec2D.ArrayVector(0, 0);
this.position = new Vec2D.ArrayVector(0, 0);
this.zoom = 1.0;
this.shake = 0.0;
this.decay = 20;
};
Camera.prototype.constructor = Camera;
Camera.prototype = {
reset : function () {
this.realPosition.zero();
this.position... |
/*! UIkit 3.3.2 | http://www.getuikit.com | (c) 2014 - 2019 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitparallax', ['uikit-util'... |
var gabblr = angular.module('gabblr');
gabblr.controller('UserCtrl', function ($scope, user, gabsService) {
$scope.user = user;
$scope.getGabs = function () {
gabsService.user(user.id)
.then(function (data) {
$scope.gabs = data;
});
};
}); |
var prod = {
pdm:'${host}',
assess:'${host}',
iqc:'${host}'
};
window._activeEnv = prod; |
!function( $ ) {
$.fn.plan = function( method ) {
var settings,
table;
// Public methods
var methods = {
init: function( options ) {
settings = $.extend( true, {}, $.fn.plan.defaults, options );
return this.each( function() {
var $this = $( this );
moment.locale( dzangocart_subscripti... |
$(document).ready(function () {
// Slider
$('.bxslider').bxSlider({
auto: true,
autoControls: true,
adaptiveHeight: true,
mode: 'fade'
});
// Navigation show dropdown on mouseover
$('.nav-item').mouseover(function () {
$(this).find('.menu-list').slideDown(100)... |
'use strict'
// Note: Don't use destructuring assignment for `Buffer`, or we'll hit a
// browserify bug that makes the statement invalid, throwing an error in
// sandboxed renderer.
const Buffer = require('buffer').Buffer
const typedArrays = {
Buffer,
ArrayBuffer,
Int8Array,
Uint8Array,
Uint8ClampedArray,
... |
class Queue {
constructor() {
this.queue = [];
this.failedRequests = [];
this.running = false;
this.concurrency = 10;
this.processing = 0;
}
addJob(link, listingId, force) {
if (listingId in floatData) {
showFloat(listingId);
return;
... |
var Persistable = function(){};
Persistable.prototype.getCollectionName = function() { throw new Error('not implemented') };
Persistable.prototype.toObject = function() { throw new Error('not implemented') };
Persistable.prototype.initFromObject = function() { throw new Error('not implemented') };
exports.Persistab... |
const config = require('./config.json');
const objectUtil = require('../util/object-util.js');
function getConfig() {
return config;
}
function isButtonAssigned(normalisedMessage) {
return objectUtil.hasProperty(getConfig(), normalisedMessage.row) &&
objectUtil.hasProperty(getConfig()[normalisedMessage.row], ... |
/*
* doctools.js
* ~~~~~~~~~~~
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
/**
* select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compati... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import { LOAD_CACHED_DESIGNS } from '../constants/actionTypes';
import { trim } from 'lodash';
import { requestDesigns } from './apiActions';
import { navigateTo } from './navigationActions';
export function loadCachedDesigns(search) {
return {
type: LOAD_CACHED_DESIGNS,
search: search
};
}
function shoul... |
"use strict";
/** @jsx React.DOM */
var React = require("./react-es6")["default"];
var classSet = require("./react-es6/lib/cx")["default"];
var BootstrapMixin = require("./BootstrapMixin")["default"];
var Button = require("./Button")["default"];
var ButtonGroup = React.createClass({displayName: 'ButtonGroup',
mixin... |
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";var l={"BFA_OUAGADOUGOU":[null,"Uagadug\u00FA"],"TGO_LOME":[null,"Lom\u00E9"],"BEN_COTONOU":[null,"Coton\u00FA"],"SOM_MOGADISHU":[null,"Mogadiscio"],"ZAF_CAPE_TOWN":[null,"Ciudad del Cabo"],"DZA_ORAN":[null,"Or\u00E1n"... |
'use strict';
var cheerio = require('cheerio'),
fs = require('fs'),
gutil = require('gulp-util'),
mkdirp = require('mkdirp'),
mustache = require('mustache'),
packetr = require('./lib/packer.growing'),
path = require('path'),
through2 = require('through2');
// Consts
var PLUGIN_NAME = 'gulp... |
/*! `rust` grammar compiled for Highlight.js 11.4.0 */
(()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,n={
className:"title.function.invoke",relevance:0,
begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))
},a="([ui](8|16|32|64|128|size)|f(32|64))?",i=["drop ","Copy","Send","Sized","Sync","Drop",... |
function callableProperty(value, ...args) {
if (_.isFunction(value)) {
return value.call(this, ...args);
}
return value;
}
export default callableProperty;
|
$(document).ready(function ()
{
$('.collapse')
.on('shown.bs.collapse', function ()
{
var link = $(this).parent().find("[data-toggle='collapse']");
var icon = link.find("i");
icon.removeClass().addClass(icon.data("icon-hide"));
})
.on('hidden.bs.collapse', function ()
{
... |
describe('jessie.jasmine', function() {
it('should extend jasmine.PrettyPrinter.prototype.iterateObject with checking for should_ properties', function() {
jasmine.PrettyPrinter.prototype.iterateObject.toString().should_match('var should_regex')
})
it('should extend jasmine.Suite.prototype.execute with repo... |
"use strict";
var easyDiv = require('../index.js');
var div = easyDiv({
onResize: function(width, height) {
this.innerHTML = 'Window Size: ' + width + 'x' + height;
},
onReady: function() {
console.log('DOM Loaded');
}
},
document.body
);
div.style.backg... |
const five = require('johnny-five');
const Raspi = require('raspi-io');
const board = new five.Board({
io: new Raspi()
});
board.on('ready', () => {
const bmp180 = new five.Multi({
controller: 'BMP180'
});
bmp180.on('change', () => {
var temperature = bmp180.thermometer.fahrenheit.toFixed(2);
var ... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.notificationTest = mod.exports;
}
})(typeof globalThis !== "undefined" ... |
import React from 'react';
import { Icon } from 'antd';
export default () => (
<Icon type="file-text"/>
); |
/*!
* Bootstrap-select v1.13.14 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2020 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== unde... |
/**
* @license
* Video.js 7.15.0 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Versio... |
/**
* @license Highcharts JS v8.2.0 (2020-08-20)
* @module highcharts/modules/broken-axis
* @requires highcharts
*
* (c) 2009-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Core/Axis/BrokenAxis.js';
|
/**
* @license Highcharts JS v8.1.2 (2020-06-16)
*
* Annotations module
*
* (c) 2009-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
... |
'use strict'
const cli = require('heroku-cli-util')
const format = require('./format')()
module.exports = function (heroku) {
function getPeeringInfo (space) {
return request('GET', `/spaces/${space}/peering-info`)
}
function getPeerings (space) {
return request('GET', `/spaces/${space}/peerings`)
}
... |
import { useMockIntersectionObserver } from 'helpers/mock_dom_observer';
import autofocusonshow from '~/vue_shared/directives/autofocusonshow';
/**
* We're testing this directive's hooks as pure functions
* since behaviour of this directive is highly-dependent
* on underlying DOM methods.
*/
describe('AutofocusOnS... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.unWatchEvents = exports.watchEvents = exports.unWatchEvent = exports.watchEvent = undefined;
var _size2 = require('lodash/size');
var _size3 = _interopRequireDefault(_size2);
var _forEach2 = require('lodash/forEach');
var _forEa... |
/* Automatically generated by shapeshifter. Do not modify! */
/* eslint-disable */
import PropTypes from 'prop-types';
import InstanceDefault, { InstanceClassName } from '../stub';
export const INST_STR = 'foobar';
export const INST_ENABLED = true;
export const InstanceShape = PropTypes.shape({
instField: PropType... |
const $ = window.jQuery
const endswith = require('lodash.endswith')
const text = require('../helpers').text
const treePromise = require('../helpers').treePromise
const createLink = require('../helpers').createLink
const bloburl = require('../helpers').bloburl
function treeProcess (tree) {
return tree
.map(path ... |
/**
* Office UI Fabric JS 1.4.0
* The JavaScript front-end framework for building experiences for Office 365.
**/
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
// "use strict";
var fabric;
(function (fabric) {
var SCROLL_... |
import Url from 'url';
import sha256 from 'crypto-js/sha256';
import WebexPlugin from '../webex-plugin';
import ServiceCatalog from './service-catalog';
import ServiceRegistry from './service-registry';
import ServiceState from './service-state';
const trailingSlashes = /(?:^\/)|(?:\/$)/;
/* eslint-disable no-und... |
var core=require("kango/core"),utils=require("kango/utils"),timer=require("kango/timer"),backgroundScriptEngine=require("kango/backgroundscript_engine"),array=utils.array,func=utils.func;function MessageSource(){this.dispatchMessage=function(a,b){}}function MessageRouterBase(){this._messageQueue=[]}
MessageRouterBase.p... |
/** @jsx h */
import h from '../helpers/h'
export const input = (
<state>
<document>
<quote>
<paragraph>
one
</paragraph>
<paragraph>
two
</paragraph>
</quote>
<quote>
<paragraph>
three
</paragraph>
<paragrap... |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidStarHalf = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.6 16.4l-8.6 7.5 2.5 11.1-9.7-5.9-9.8 5.9 2.6-11.1-8.6-7.5 11.3-0.9 4.5-10.5 4.4 10.5z m-14.5 10.6l4.7 2.8-1.3-5.3-0.3-1.5 1.1-1 4.2-3.6-5.5-0.4-1.5-0.2-0.... |
/**
* @author Kuitos
* @homepage https://github.com/kuitos/
* @since 2016-05-30
*/
export default class SystemCtrl {
constructor() {
this.name = 'system';
}
}
|
import { directive as vClickOutside } from 'vue-clickaway'
/**
* You can register global components here and use them as a plugin in your main Vue instance
*/
const GlobalDirectives = {
install (Vue) {
Vue.directive('click-outside', vClickOutside)
}
}
export default GlobalDirectives
|
/*
* ------------------------------------------
* 平台适配接口实现文件
* @version 1.0
* @author genify(caijf@corp.netease.com)
* ------------------------------------------
*/
NEJ.define(function(_p,_o,_f,_r){
/**
* 取XHR对象
* @return {XMLHttpRequest} XHR对象
*/
_p.__getXMLHttpRequest = function(){
... |
import {
CanvasTexture,
LinearFilter,
Mesh,
MeshBasicMaterial,
PlaneGeometry,
sRGBEncoding
} from 'three';
class HTMLMesh extends Mesh {
constructor( dom ) {
const texture = new HTMLTexture( dom );
const geometry = new PlaneGeometry( texture.image.width * 0.001, texture.image.height * 0.001 );
const ma... |
function loadTxt()
{
var txtLang = document.getElementsByName("txtLang");
txtLang[0].innerHTML = "Color";
txtLang[1].innerHTML = "Shading";
txtLang[2].innerHTML = "Margin";
txtLang[3].innerHTML = "Left";
txtLang[4].innerHTML = "Right";
txtLang[5].innerHTML = "Top";
txtLang[6]... |
import BaseValidator from './base';
import validator from 'validator';
import {isBlank} from '@ember/utils';
export default BaseValidator.create({
properties: ['label', 'url'],
label(model) {
let label = model.get('label');
let hasValidated = model.get('hasValidated');
if (isBlank(lab... |
var ss = require('../../'),
sq = require('simplequeue'),
http = require('http'),
url = require('url');
var hostnames = {};
function registerHostName(hostname)
{
if (!hostnames[hostname])
{
console.log('Host: ' + hostname);
hostnames[hostname] = true;
}
}
function isHostName(... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 16v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20V6H2z"
}), 'DehazeOutlined'); |
/*
* grunt-csscss
*/
'use strict';
module.exports = function(grunt) {
grunt.registerMultiTask('csscss', 'CSSCSS redundancy analyzer.', function() {
var glob = require('glob');
/**
* Asynchronously loops through the provided files and puts them through the
* CSSCSS tool.
*/... |
// Auto-generated content.
// This file contains the boilerplate to set up your React app.
// If you want to modify your application, start in "index.vr.js"
// Auto-generated content.
import {VRInstance} from 'react-vr-web';
function init(bundle, parent, options) {
const vr = new VRInstance(bundle, 'WelcomeToVR', p... |
Todos = new Mongo.Collection('todos');
Meteor.methods({
'/todos/delete': function (todoId) {
var todo = Todos.findOne(todoId);
Todos.remove(todoId);
if (! todo.checked) {
Lists.update(todo.listId, {$inc: {incompleteCount: -1}});
}
},
'/todos/setChecked': function (todoId, checked) {
va... |
module.exports = {
name: 'metadata',
preset: '../../jest.config.js',
coverageDirectory: '../../coverage/apps/metadata',
snapshotSerializers: [
'jest-preset-angular/AngularSnapshotSerializer.js',
'jest-preset-angular/HTMLCommentSerializer.js'
]
};
|
ADAMA = '/adama';
function addNamespace(ns) {
$('#namespaces').append(
$('<li class="services">').append(
$('<span>').text(ns.name)));
};
function refreshServices() {
$.ajax({
type: 'GET',
url: ADAMA + '/namespaces',
success: function(data) {
console.log... |
'use strict';
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::like.like');
|
'use strict';
/*
* organizationReservations.js
* Copyright(c) 2016 Universidad de Las Palmas de Gran Canaria
* Authors:
* Jaisiel Santana <jaisiel@gmail.com>
* Alejandro Sánchez <alemagox@gmail.com>
* Pablo Fernández <pablo.fernandez@ulpgc.es>
* MIT Licensed
*/
var connectionsAPI;
var utils;
var clientLog... |
'use strict';
var Promise = global.Promise || require('promise');
var glob = require('glob'),
Handlebars = require('handlebars'),
fs = require('graceful-fs'),
path = require('path'),
semver = require('semver'),
utils = require('./utils');
module.exports = ExpressHandl... |
import apiRequest from '../apiBase/apiRequest';
import NoModelError from '../apiBase/errors/NoModelError';
import ValidationError from '../apiBase/errors/ValidationError';
import PostModel from '../models2/PostModel';
import CommentModel from '../models2/CommentModel';
const TYPE_MAP = {
t1: CommentModel,
t3: Pos... |
exports.Markdown = require('./lib/markdown.js');
exports.GithubMarkdown = require('./lib/github-markdown.js');
|
describe('ui.grid.expandable', function () {
var scope, element, timeout;
beforeEach(module('ui.grid.expandable'));
beforeEach(inject(function (_$compile_, $rootScope, $timeout, $httpBackend) {
var $compile = _$compile_;
scope = $rootScope;
timeout = $timeout;
scope.gridOptions = {
expa... |
'use strict';
/* jasmine specs for controllers go here */
describe('controllers', function(){
// var scope, ctrl, $httpBackend;
// beforeEach(module('appModule'));
//
// beforeEach(inject(function(_$httpBackend_, $rootScope, $controller) {
// $httpBackend = _$httpBackend_;
// $httpBackend.expectGET('j... |
// moment.js
// version : 2.0.0
// author : Tim Wood
// license : MIT
// momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
var moment,
VERSION = "2.0.0",
round = Math.round, i,
// internal storage for... |
module.exports = {
TEST_ENV: 'test'
};
|
$(document).on("ready", function(){
$( "#enviar" ).click(function() {
recuperarPassword();
});
});
function recuperarPassword()
{
correo = $("#email").val();
expr= /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(expr.test(correo)){
u... |
'use strict';
const path = require('path');
const fs = require('fs-extra');
const Project = require('../../../lib/models/project');
const Addon = require('../../../lib/models/addon');
const tmp = require('../../helpers/tmp');
const touch = require('../../helpers/file-utils').touch;
const expect = require('chai').expec... |
describe('Datepicker: ', function() {
beforeEach(function() {
loadFixtures('datepicker_fixture.html');
locastyle.datepicker.init();
locastyle.form.triggerCalendar();
});
afterEach(function() {
$('.pika-single').remove();
});
describe('when input has class .datepicker', function() {
it('t... |
import { expect } from 'chai';
export default ($) => {
describe('Nested Form validate()', () => {
// $R
it('$R validate() should be true', (done) => {
$.$R.validate({ showErrors: true }).then(({ isValid, hasError }) => {
expect(isValid).to.be.true; // eslint-disable-line
expect(hasError... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.