code
stringlengths
2
1.05M
import React from 'react'; import { mount } from 'enzyme'; import toJson from 'enzyme-to-json'; import { ThemeProvider } from 'styled-components'; import { theme } from 'mcs-lite-theme'; import { HeightContainer, Fixed, ToastContainer } from '../styled-components'; it('should render components correctly', () => { co...
/*global jQuery:false, alert:false */ /* * Default text - jQuery plugin for html5 dragging files from desktop to browser * * Author: Weixi Yen * * Email: [Firstname][Lastname]@gmail.com * * Copyright (c) 2010 Resopollution * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license...
import MJMLElement from './MJMLElement' import React, { Component } from 'react' function createComponent(ComposedComponent, defaultAttributes) { @MJMLElement(defaultAttributes) class MJMLColumnElement extends Component { getStyles() { const { mjAttribute } = this.props return { td: { ...
define(['handlebars'], function(Handlebars) { return Handlebars.template({"1":function(depth0,helpers,partials,data) { var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; return escapeExpression(((helper = (helper = helpers.widget || (depth0 != null ? d...
import navigateFactory from './navigate'; export default function bootstrap(root, config, url, navigate) { class Route { constructor(subpath, config, parent) { this.subpath = subpath; this.config = config; this.parent = parent; if (config.render) { this.context = config.render({ ...
function fixTagsyoLink() { var subMatch = /\/r\/([a-zA-Z_0-9\-]+)/.exec(window.location.href); if (!subMatch) { return; } var subName = subMatch[1]; var query = "SELECT * FROM url WHERE LOWER(channel) = '" + subName.toLowerCase() + "' ORDER BY timestamp DESC !slideshow"; var tagsyoLink = "http:...
(function() { 'use strict'; angular .module('jhbookz') .controller('JhiMetricsMonitoringController', JhiMetricsMonitoringController); JhiMetricsMonitoringController.$inject = ['$scope','JhiMetricsService', '$uibModal']; function JhiMetricsMonitoringController ($scope, JhiMetricsServic...
export { default } from 'ember-cli-simple-grid/components/simple-grid/item';
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Options = { align_assignments: { default: false, description: "If lists of assignments or properties should be vertically aligned for faster " + "and easier reading.", since: "0.7.0", typ...
"use strict"; var fs = require('fs'), EventEmitter = require('events').EventEmitter, utils = require('lodash'); /** * Decorator for dgraph which watches modules for changes and emits an 'update' * event. * * Possible options are: * - delay - delay before firing an event, allows I/O to...
/*global Babel */ import { addJS } from './injectTag'; // helper function to execute the actual import component export const componentLoader = (tag) => { var etag = tag.replace(/\./g, '/'); return import (`./../ui/${etag}/index.js`) .then(res => { if (res.default) { return...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 5v3.88l2 2V6h3v7.88l2 2V4h-5V3H6.12l2 2zM2.41 2.13L1 3.54l4 4V19H3v2h11v-4.46L20.46 23l1.41-1.41L2.41 2.13zM12 19H7V9.54l5 5V19z" /> , 'NoMeetingRoomOutlined');
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
angular.module('cinnamon') .controller('configuration.sites.create', function($scope, $http, $stateParams, $mdDialog, $mdToast, $interval, message) { console.log('configuration.sites.create'); // 생성 $scope.create = function($event) { if (!$scope.frm.$valid) { message.alert('입력값을 확인해 주세요.'); return; } ...
/** * @module echarts/chart/helper/SymbolDraw */ var graphic = require('../../util/graphic'); var Symbol = require('./Symbol'); /** * @constructor * @alias module:echarts/chart/helper/SymbolDraw * @param {module:zrender/graphic/Group} [symbolCtor] */ function SymbolDraw(symbolCt...
var should = require('should'); var http = require('http'); var request = new http.IncomingMessage(); var raddish = require('../index.js'); var router = new raddish.Router(); // Set faux url for testing. request.url = '/home/menu/items'; describe('Router tests', function() { describe('#pa...
/** * Visualization Module * * Visualization using the Revealing Module Pattern. * * This component is responsible for the visualization of the graph and therefore the UI layer. * It depends on Snap.svg for SVG drawing. */ var Visualization = (function() { 'use strict'; /** * Attribute Node Width * @const...
'use strict'; var spawn = require('cross-spawn'), fs = require('fs-extra'), path = require('path'), glob = require('glob'), config = require('./config'), utils = require('./utils'), logger = require('./logger'), deps = require('./deps'), archiver = require('archiver'), moment = requ...
import React, { Component } from 'react'; import { View, StyleSheet, TouchableOpacity, Dimensions, Text } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { getPlatformValue } from '../utils'; const { height, width } = Dimensions.get('window'); export default class Points extends ...
module.exports = function(brokenDependency) { return brokenDependency };
const Reducer = (state = { nextId: 2, todoItems: [ {id: 0, text: "This is an item", done: false}, {id: 1, text: "Another item", done: false} ] }, action) => { switch(action.type) { case 'ADD_TODO': // IMPLEMENT ME // nextId++ and append a object to todoItems array return { ...
"use strict"; define([ 'igbtoolbox/flightjs/flight-mixin', 'flight/index', 'underscore' ], function (withFlightComponent, flight, _) { describe("Flight mixins", function() { beforeEach(function () { window.div = document.createElement('div'); document.body.appendChild(window.div);...
import angular from 'angular'; import {confirmation} from './confirmation'; import {confirmations} from './confirmations'; export const confirmationsModule = 'confirmations'; angular .module(confirmationsModule, []) .component('fountainConfirmation', confirmation) .component('fountainConfirmations', confirmati...
/** * Created by gurpreet.singh on 04/22/2015. */ 'use strict'; app.controller('PagesController', ['$scope', '$stateParams', '$state', 'CrudService', 'ngAppSettings', 'CommonUiService', 'CommonDataProvider', 'localStorageService','JsonHelper', function ($scope, $stateParams, $state, crudService, ngAppSettings, co...
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@Export('Event...
import webphoneErrors from 'ringcentral-integration/modules/Webphone/webphoneErrors'; export default { [webphoneErrors.connectFailed]: "Désolé, les fonctionnalités du téléphone ne sont pas disponibles actuellement. Veuillez réessayer plus tard. ", [webphoneErrors.connected]: "Web phone enregistré.", [webphoneErro...
/*eslint-disable no-unused-expressions */ define(function (require) { var registerSuite = require('intern!object'); var expect = require('intern/chai!expect'); var appUtils = require('utils/AppUtils'); var testArray = [ { id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, { id: 5 } ]; register...
function getISOStringRegex () { return /^(\d{4})(?:-?W(\d+)(?:-?(\d+)D?)?|(?:-(\d+))?-(\d+))(?:[T ](\d+):(\d+)(?::(\d+)(?:\.(\d+))?)?)?(?:Z(-?\d*))?$/g } module.exports.getISOStringRegex = getISOStringRegex
import wrapApiHandler from './wrap-api-handler' const readModelList = async (req, res) => { const statuses = [] for (const { name: eventSubscriber } of req.resolve.domain.readModels) { try { const response = await req.resolve.eventSubscriber.status({ eventSubscriber, }) statuses.pus...
/* eslint no-bitwise: 0 */ /** * Volume of Interest Lookup Table Function * * @typedef {Function} VOILUTFunction * * @param {Number} modalityLutValue * @returns {Number} transformed value * @memberof Objects */ /** * @module: VOILUT */ /** * * @param {Number} windowWidth Window Width * @param {Number} w...
var gulp = require("gulp"), browserify = require('gulp-browserify'), concat = require('gulp-concat'), partialify = require('partialify'), minify_css = require('gulp-minify-css'), uglify = require('gulp-uglify'), rename = require('gulp-rename'); var vendors = { styles: [ 'node_modules/boo...
chrome.storage.sync.get('enabled', function (items) { if (items.enabled || items.enabled == null) { document.addEventListener('spfdone', whyd) document.addEventListener('DOMContentLoaded', whyd) function whyd () { var classes = document.getElementById('page').classList if (classes.contains('wa...
"use strict"; //# sourceMappingURL=ValidationErrorInterface.js.map
module.exports = () => { return { restrict: 'E', template: require('./template.html'), controller: ['$scope', 'dataStore', ($scope, dataStore) => { $scope.workouts = dataStore.getWorkouts(); }] }; };
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You m...
/* avesty: Where communities hangout. Copyright (c) 2014 Metao Cloud Studio Pte. Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. ...
import { RenderingTest, moduleFor } from '../utils/test-case'; import { Component } from '../utils/helpers'; import { set } from 'ember-metal/property_set'; import { Binding } from 'ember-metal/binding'; moduleFor('Binding integration tests', class extends RenderingTest { ['@htmlbars should accept bindings as a str...
var $ = require('jquery'); var hashCode = require('hash-code').hashCode; var defaults = require('../defaults'); var dom = require('../dom'); var dfdResolve = require('../resolve-deferred'); var assetsCache = require('../assets-cache'); var asyncCache = require('../async-cache'); var meta = require('../meta'); /** * L...
vti_encoding:SR|utf8-nl vti_author:SR|OLIVER\\Oliver vti_modifiedby:SR|OLIVER\\Oliver vti_timelastmodified:TR|02 Nov 2012 00:25:52 -0000 vti_timecreated:TR|02 Nov 2012 00:25:52 -0000 vti_cacheddtm:TX|02 Nov 2012 00:25:52 -0000 vti_filesize:IR|6042 vti_extenderversion:SR|12.0.0.0 vti_backlinkinfo:VX|mdapi-examples_0.2.h...
"use strict"; var _regenerator = require("babel-runtime/regenerator"); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator"); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var startServer = function () { var _re...
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-ts'); grunt.loadNpmTasks('grunt-browserify'); grunt.initConfig({ ts: { //client: { // src: ["src/js/shared/**/*.ts", "src/js/client/**/*.tsx"], /* dest: "src/static/bundle.js", options: { module: 'amd', target...
/* global describe, it, beforeEach */ import expect from 'expect'; import { create } from '../../src/microstates'; import { valueOf } from '../../src/meta'; import { ObjectType } from '../../src/types'; import { map } from '../../src/query'; describe('created without value', () => { class Thing {} let object; be...
'use strict'; var tag = 'script'; function loadScript (url, done) { var first = document.getElementsByTagName(tag)[0]; var script = document.createElement(tag); script.async = true; script.src = url; if (done) { script.onload = done; } first.parentNode.insertBefore(script, first); return script; } modu...
/*! Waypoints - 3.1.1 Copyright © 2011-2015 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/waypoints/blog/master/licenses.txt */ (function() { 'use strict' var keyCounter = 0 var allWaypoints = {} /* http://imakewebthings.com/waypoints/api/waypoint */ function Waypoint(opt...
new Unit.TestCase('UI.PickerTest', { setup: function() { this.picker = new UI.Picker(); this.div = document.createElement('div'); document.body.appendChild(this.div); this.input = document.createElement('input'); this.div.appendChild(this.input); this.picker.initPicker(this.in...
import { getTestBed, TestBed, async, fakeAsync, tick } from '@angular/core/testing'; import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import tabComponent from './tab.component.js'; import { tabpanelDirective, tabPanelHeaderDirecti...
import handleMetadataSaveErrors from "./datasetHandleMetadataSaveErrors"; import notifications from "../../../utilities/notifications"; jest.mock("../../../utilities/notifications", () => { return { add: jest.fn(() => { // }), }; }); const errors = { badRequest: { status...
$wnd.showcase.runAsyncCallback13("function cWb(){var a,b;b=new rvc;b.e[ASc]=5;for(a=1;a<10;a++){ovc(b,new mec('Button '+a))}pvc(b);return b}\nfunction pvc(a){var b,c;avc((dbc(),a.hb),'',tUc);c=a.j.c;for(b=0;b<c;b++){avc(oec(a,uvc(a.j,b)),tUc,''+b)}}\nvar tUc='cwVerticalPanel';LCb(449,1,hRc);_.Bc=function hWb(){cFb(this...
const Raids = require('./raid.model'); const DAO = require('../../lib/dao'); const collection = new DAO(Raids); // Get some pages exports.find = function(req, res) { collection.find(req, res); }; // Creates a new pages in the DB. exports.create = function(req, res) { collection.create(req, res); }; // Updates pa...
const counter = (state = 0, { type }) => { switch (type) { case "INCREMENT": return state + 1; case "DECREMENT": return state - 1; default: return state; } }; const Counter = ({ value, onIncrement, onDecrement }) => ( <div> <h1>{value}</h1> <button onClick={onIncrement}>+</b...
import Job from '../../../utils/job.js' import { jcbFormConfig } from '../configs/form.config' import { jobSchedulingAlgorithms, processSchedulingAlgorithms } from '../../../utils/algorithms' import { timeStep } from '../configs/time.config' import { bindRedux } from 'redux-form-utils' export const ADD_TIME = 'ADD_TIM...
/** * Generates CSS with WOFF(2) fonts embedded as Base64 * * @author Artem Sapegin (http://sapegin.me) */ module.exports = function(grunt) { 'use strict'; var fs = require('fs'); var path = require('path'); var fontoptim = require('fontoptim'); grunt.registerMultiTask('fontoptim', 'Generate CSS files with ...
import mdNav from './md-nav.vue'; import mdNavLinks from './md-nav-links.vue'; import mdNavLogo from './md-nav-logo.vue'; export default { mdNav, mdNavLinks, mdNavLogo, }
'use strict'; module.exports = class WebError extends Error { constructor(statusCode, message) { statusCode = (statusCode || '500').toString(); message = message || `${statusCode} error`; super(message); this.name = 'Web Error'; this.status = statusCode; this.code = ...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'iframe', 'gu', { border: 'ફ્રેમ બોર્ડેર બતાવવી', noUrl: 'iframe URL ટાઈપ્ કરો', scrolling: 'સ્ક્રોલબાર ચાલુ કરવા', ti...
import number from './number.next.js'; import infinity from './infinity.next.js'; /** * * @function * @memberof is * @param {any} value * @returns {Boolean} */ export default function decimal(value) { return number(value) && value === value && infinity(value) === false && value % 1 !== 0; }
require('babel/register'); require('./start');
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\\n'...
import addresser from '../../../lib/addresser'; import relations from '../../../lib/relations'; import {rootStateName} from '../../../lib/vars'; export default (viewAddress, containerStateName) => { let [selector, stateName] = addresser.parts(viewAddress); if(stateName === '') { stateName = rootStateName; ...
app.view.milkyway.earth.Moon = class extends app.toolkit.three.Object { config() { return { earth: null } } constructor(config) { super(); this._earth = config && config.hasOwnProperty('earth') ? config.earth : this.config().earth; } get earth() { ...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.bulkInsert('TipoPropriedade', [{ id: '1', nome: 'Banco', identificador: 'banco', dataCriado: new Date(), dataAtualizado: new Date(), }, { id: '2', nome: 'Posto de Gasolina', ...
/* test.js - checkpoint configuration test The MIT License (MIT) Copyright (c) 2013 Dale Schumacher, Tristan Slominski 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, inclu...
function XHRdelete(){ var msg = ''; var loc = '/web/app_dev.php/ajax/friend-delete'; $('button[name="friend-delete"]').on('click',function(){ var id = $(this).parent().parent().attr('id').replace('row',''); var data = {id:id}; $('#msg').remove(); $.ajax({ ...
'use strict'; /* Filters */ angular.module('SEED_APP.filters', []). filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); } }]);
'use strict'; var cheerio = require('cheerio'), assign = require('object-assign'); module.exports = function (html, options) { options = assign({ maxLength: 50, selectors: 'h1.h2.h3.h4.h5.h6.p.li.blockquote.th.td.dt.dd'.split('.') }, options || {}); var $ = cheerio.load(html, { decod...
var foo = './@foo' console.log(foo.replace(/^(\.(\\|\/)+)?/, ''))
var kakeibo; //namespace if(!kakeibo) kakeibo = {}; kakeibo.utils = {}; kakeibo.utils.addFigure = function(str) { var num = new String(str).replace(/,/g, ""); while(num != (num = num.replace(/^(-?\d+)(\d{3})/, "$1,$2"))); return num; } kakeibo.utils.calcSummaryColDate = function(date, rhs){ var result = {year:...
var _ = require('lodash'), http = require('http'), xml = require('xml'), config = require('../../config/index'), errors = require('../../errors/index'), events = require('../../events/index'), pingList; // ToDo: Make this configura...
var fs = require('fs'); /** * Writes contents into safetext file. * @param contents * @param fileOverride */ var writeToFile = function(contents, fileOverride = null) { var file = fileOverride === null ? 'safetext' : `${process.cwd()}/safetext`; fs.writeFileSync(file, contents); }; /** * Reads contents o...
/** * Create 2d point instance. * @param x * @param y * @returns {{x: *, y: *, move: Function}} * @constructor */ Fort.Point2d = function (x, y) { if (typeof(x) === 'undefined') { x = 0; } if (typeof(y) === 'undefined') { y = 0; } return { x : x, y : y, move : function (towards) { ...
// Last commit: 693f1ee (2013-04-02 13:36:05 -0700) (function() { window.DS = Ember.Namespace.create({ // this one goes past 11 CURRENT_API_REVISION: 12 }); })(); (function() { /** * Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601> * © 2011 Colin Snover <http://ze...
// EagerRelation // --------------- import _ from 'lodash'; import Helpers from './helpers'; import Promise from './base/promise'; import EagerBase from './base/eager'; const getAttributeUnique = (models, attribute) => _.uniq(_.map(models, m => m.get(Helpers.parseAttribute(m, attribute)))); // An `EagerRelation` o...
const datas = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; for (let i = 0; i < datas.length - 1; i++) { let j = 0; for (j = i + 1; j < datas.length; j++) { if (datas[i] == datas[j]) { datas.splice(j, 1); j--; } } } datas.sort(function (a, b) { ...
import { readFileSync as read } from 'fs'; import { spawn } from 'child_process'; import path from 'path'; import colors from 'colors/safe'; import size, { table, numeric } from '../'; jest.setTimeout(60000); let noopProcessorPath = path.resolve(__dirname, '../../processors/noop.js'); function setup(args) { return...
var exec = require('child_process').exec, fs = require('fs'), path = require('path'), fx = require('./framework'), fileset = require('fileset.js'); _ = require('./util')._; function build_args(options){ // copy options to avoid side effects options = _.extend({}, options); // shortcuts if (options.target ==...
/* globals describe, it, beforeEach, afterEach */ import * as assert from 'assert'; import {Observable as O} from 'rxjs'; import {makeCollection} from '../src/collection'; import {setAdapt} from '@cycle/run/lib/adapt'; const Collection = makeCollection(); function Widget ({props$}) { return { action$: props$ ...
'use strict' var express = require('express') var requireDir = require('require-dir') var apiModules = requireDir('../api') var search = require('../api/search/search') var scrapeAndAddPage = require('../api/scrape/scrapeAndAddPage') var appSettings = require('../../db/appSettings') var requestDataValidation = requir...
"use strict"; const path = require("path"); const { executeTests, prepareForTests, utilityFunctions } = require(path.resolve("tests/unit-tests.js")); const m = prepareForTests(__filename); executeTests("Middleware loader", [{ name: "registerMiddleware()", assertions: [{ when: "given an E...
var component = FlowComponents.define("apps.switcher", function() { }); component.state.apps = function() { return Apps.find({}, {fields: {_id: 1, name: 1, owner: 1}}); }; component.action.switchTheApp = function(app) { var defaults = { section: "dashboard", subSection: "overview" }; var appUrl = Url...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { url: function url(path) { var endpoint = process.env.REDEDOAR_API_URL; return "" + endpoint + path; } };
import {inject, bindable} from 'aurelia-framework'; import {HttpClient} from 'aurelia-http-client'; import {Router} from 'aurelia-router'; //import {GameStyles} from './gameStyles'; import lodash from 'lodash'; /*created to: choose text formating for a div passes out classes that can be bound to div and butt...
var assert = require('assert'), child_process = require('child_process'), sinon = require('sinon'), gitsha = require('../'), exec = sinon.stub(), fixtures = { HEAD_SHA: '79ed879fc3f870f04994a8e8aa6d9a987d5407dd', BUNDLE_SHA: '0d826a2a873ce46e81acd19d7c54302ede2b1926', SUBMODULE: ...
'use strict'; var expect = require('chai').expect; var Osmos = require('../lib'); var Schema = Osmos.Schema; describe('The Schema class', function() { it('should exist', function() { expect(Schema).to.be.a('function'); }); it('should throw error when no schema supplied to validate', function() { fun...
var pool = require('../utils/db-pooling.js'); var async = require('async'); exports.addUserFavoriteVideo1 = function (req, res, next) { console.log('addUserFavoriteVideo1 api'); res.setHeader('content-type', 'application/json;charset=utf-8'); res.charSet('utf-8'); console.log('req.boby -> ' + req....
"use strict"; const copyProps = require("raptor-util/copyProps"); const constructorCache = new Map(); const BaseServerComponent = require("../ServerComponent"); function createServerComponentClass(renderingLogic) { var renderingLogicProps = typeof renderingLogic === "function" ? renderingLogic.prototype ...
import React, { PropTypes, Component } from 'react'; class Footer extends Component { render() { return ( <footer className="Footer navbar-fixed-bottom"> <div className="Footer-container"> <span className="Footer-text"><img src="/dist/assets/images/MSFT_logo_png.png" height="39" width="11...
/** * Transform a namespace into an object. * @param {String} ns The namespace to evaluate * @param {Object} obj A reference object where insert the result * @returns {Object} The generated object */ function build(ns, obj) { var list = ns ? ns.split(".") : []...
/* * 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 0.14.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerate...
module.exports = function(grunt){ grunt.initConfig({ // Builds Sass sass: { dev: { options: { style: "expanded", sourceMap: true, includePaths: [ 'govuk_modules/govuk_template/assets/stylesheets', 'govuk_modules/govuk_frontend_toolkit/styles...
'use strict'; var path = require('path') , shimmer = require(path.join(__dirname, '..', 'shimmer')) , logger = require(path.join(__dirname, '..', 'logger.js')) .child({component : 'restify'}) , urltils = require(path.join(__dirname, '..', 'util', 'urltils.js')) , NAMES = require(path.join...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
/** * Lightbox and gallery combined. */ (function($) { /** * ---------- * Lightbox-function - Display the lightbox with overlay * ---------- */ $.fn.lBGlightbox = function(params) { //get window (inner) height and width var windowHeight = window.innerHeight || $(window).height(), // make it wo...
import styled from 'styled-components'; const Wrapper = styled.footer` display: flex; justify-content: space-between; padding: 3em 0; `; export default Wrapper;
define({ "title": "Api de provas da UFPB", "url": "http://localhost:3000/api/v1", "name": "provas-ufpb-api", "version": "0.0.0", "description": "", "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2017-06-07T03:46:05.401Z", "url": ...
// Declare your variable here var myGlobal = 10; function fun1() { // Assign 5 to oopsGlobal Here oopsGlobal = 5; } // Only change code above this line function fun2() { var output = ""; if (typeof myGlobal != "undefined") { output += "myGlobal: " + myGlobal; } if (typeof oopsGlobal !=...
import { parse as parseUrl } from "url"; export default ({ defaultLocale, siteLocales } = {}) => { if (typeof defaultLocale !== "string") { throw new Error("Expected defaultLocale to be a locale string."); } if ( typeof siteLocales !== "object" || siteLocales.constructor !== Array || siteLocales....
/* eslint-env browser */ // ==UserScript== // @name [dmzj]record // @description 自动更新浏览记录,获取书签 // @include https://manhua.dmzj.com/* // @include https://i.dmzj.com/subscribe // @version 1.0.102 // @modified 2019-8-27 15:27:09 // @author dodying // @namespace https://github.com/dodying/UserJ...
/* global define */ define(function () { 'use strict'; return { frameRenderer: null, transformTool: null, touchSensorManager: null, sceneController: null }; });
;(function() { /** * @var {Function} emptyFn * */ var emptyFn = function() {}; /* CryptoJS v3.0.2 code.google.com/p/crypto-js (c) 2009-2012 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS=CryptoJS||function(i,j){var f={},b=f.lib={},m=b.Base=f...
// custom javascript $('.youtube').moderntube();