code stringlengths 2 1.05M |
|---|
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.drawing.library.icons"]){ //_hasResource checks added by build. Do not use _hasResource direct... |
var PAGE_MARGIN = 16;
var settingsPage = createSettingsPage();
function createSettingsPage() {
var page = tabris.create("Page", {
title: "Configuracion",
topLevel:true,
image: {src: "images/Settings-64.png", scale: 1}
});
var settingsTextView = tabris.create("TextView", {
text: "Book covers come ... |
/* global createSizedArray, createTypedArray, PropertyFactory, extendPrototype, DynamicPropertyContainer */
function DashProperty(elem, data, renderer, container) {
this.elem = elem;
this.frameId = -1;
this.dataProps = createSizedArray(data.length);
this.renderer = renderer;
this.k = false;
this.dashStr = ... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Link = mongoose.model('Link'),
_ = require('lodash');
/**
* Create a link
*/
exports.create = function(req, res) {
var link = new Link(req.body);
link.user = req.user;
link.... |
var _ = require( 'lodash' );
var path = require( 'path' );
var port = 8988;
var defaults = {
port: port,
socketio: true,
websocket: true
};
module.exports = function setup( config ) {
config = _.defaults( config, defaults );
require( './log' )( config.log || {} );
var authProvider;
var hasAuth = !config.noAuth... |
/**
* EventsController
*
* @module :: Controller
* @description :: A set of functions called `actions`.
*
* Actions contain code telling Sails how to respond to a certain type of request.
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
*... |
version https://git-lfs.github.com/spec/v1
oid sha256:705dbd5a840020b9614d075ec54d520c1cc3544d1ad3fce383686e9692fde203
size 8032
|
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
var nameMatch = [/^[A-z-'']*$/, 'Valid names may only contain letters A to Z (upper and lowercase, ASCII only), hyphens, and apostraphes.'];
/**
* A Validation function for local... |
// DESCRIPTION = suggest using of const declaration for variables that are never modified after declared
// STATUS = 2
/* eslint require-jsdoc: 0*/
/* eslint no-use-before-define: 0*/
/* eslint no-undef: 0*/
/* eslint no-unused-vars: 0*/
/* eslint no-unreachable: 0*/
/* eslint no-empty: 0*/
/* eslint no-empty-functio... |
window.FB = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.2";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
|
export const EXAMPLE_ACTION_TYPE;
|
// Generated on 2014-11-16 using generator-angular 0.10.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks a... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["swan"] = factory();
else
root["swan"] =... |
'use strict';
function Specs() {
this.Given(/^I am a thingamabob client on port (\d*)$/, function(port, callback) {
this.createClient(port, callback);
});
this.Given(/^a thingamabob server on port (\d*)$/, function(port, callback) {
this.createServer(port, callback);
});
this.Whe... |
"use strict";
const { addNwsapi } = require("../helpers/selectors");
const { HTML_NS } = require("../helpers/namespaces");
const { mixin, memoizeQuery } = require("../../utils");
const idlUtils = require("../generated/utils");
const NodeImpl = require("./Node-impl").implementation;
const ParentNodeImpl = require("./Par... |
import AbstractExtractor from "./abstract";
export default class Year extends AbstractExtractor {
static get description() {
return "%year";
}
static get id() {
return "year";
}
static process() {
return (new Date()).getFullYear();
}
}
|
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'atoms/Icon';
import ErrorMessage from 'atoms/ErrorMessage';
import styles from './credit_card_field.module.scss';
function CreditCardField(props) {
const {
className,
cardType,
creditCa... |
const getStyles = options =>
`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${options.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${options.textColor}
}
.legend {
fill: ${options.textColor};
}
.lab... |
'use strict';
angular.module('app.services')
.factory('questionService', ['$http', function($http){
var questionService = {};
var questions = $http.get('/api/questions/all').then(function(resp) {
return resp.data;
});
questionService.questions = function () {return questions;};
return quest... |
(function() {
'use strict';
function ExemplarSelectorSet() {
this.selectors = [];
this.uid = 0;
}
ExemplarSelectorSet.prototype = Object.create(SelectorSet.prototype, {
constructor: {
enumerable: false,
value: ExemplarSelectorSet
},
size: {
get: function() {
retur... |
/*!
* jQuery Smart Banner
* Copyright (c) 2012 Arnold Daniels <arnold@jasny.net>
* Based on 'jQuery Smart Web App Banner' by Kurt Zenisek @ kzeni.com
*/
!function ($) {
var SmartBanner = function (options) {
this.origHtmlMargin = parseFloat($('html').css('margin-top')) // Get the original margin-top of ... |
var React = require('react/addons');
var Lab = require('lab');
var Code = require('code');
var Results = require('../../../../../../client/pages/admin/components/statuses/Results');
var StubRouterContext = require('../../../../fixtures/StubRouterContext');
var lab = exports.lab = Lab.script();
var TestUtils = React.a... |
/**
* A special cardboard card for use by the PortfolioKanbanApp
*/
Ext.define('Rally.app.portfolioitem.PortfolioKanbanCard', {
extend:'Rally.ui.cardboard.ArtifactCard',
alias:'widget.rallyportfolioestimationcard',
inheritableStatics:{
getAdditionalFetchFields:function () {
return ['... |
/*global chrome, Policy */
var Datastore = (function(){
"use strict";
var storage = localStorage;
var key = "fakes.json";
var save = function(policies) {
policies = policies.filter(function(policy){
return Policy.validate(policy);
});
storage.setItem(key, JSON.stringify(policies));
chrom... |
define(
["moment","ember","exports"],
function(__dependency1__, __dependency2__, __exports__) {
"use strict";
var moment = __dependency1__["default"] || __dependency1__;
var Ember = __dependency2__["default"] || __dependency2__;
function cpFormatMoment(key, format) {
return Ember.computed(fun... |
'use babel'
import _ from 'underscore-plus'
import notificationManager from './notification-manager'
import * as util from './util'
class ProviderManager {
constructor () {
this.providers = {}
}
getProviders () {
return _.values(this.providers)
}
// Add a new project provider
addProvider (key) {... |
/*
* removeOrphans, created by Colin Miller (cjmil.com, @colinjmiller on Github)
*
* Prevents words from appearing on their own new line.
* window.removeOrphans(CSS selector [, parameters]);
*
* e.g. removeOrphans('h1, h2') -> Removes orphans from top- and second-level headings
*
* parameter options:
* - al... |
'use strict';
var should = require('should');
var app = require('../../app');
var request = require('supertest');
describe('GET /api/people', function() {
it('should respond with JSON array', function(done) {
request(app)
.get('/api/people')
.expect(200)
.expect('Content-Type', /json/)
... |
const notify = require("gulp-notify");
module.exports = function(errorObject, callback) {
notify.onError(errorObject.toString().split(': ').join(':\n')).apply(this, arguments);
// Keep gulp from hanging on this task
if (typeof this.emit === 'function') this.emit('end');
};
|
import { snakeCase, toUpper } from 'lodash';
export default str => toUpper(snakeCase(str));
|
function Memento(value) {
this.value = value;
}
var originator = {
store: function(val) {
return new Memento(val);
},
restore: function(memento) {
return memento.value;
}
};
function Caretaker() {
this.values = [];
}
Caretaker.prototype.addMemento = function(memento) {
thi... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var toggleLeft = exports.toggleLeft = { "viewBox": "0 0 1536 1792", "children": [{ "name": "path", "attribs": { "d": "M1024 576v640q0 26-19 45t-45 19q-20 0-37-12l-448-320q-27-19-27-52t27-52l448-320q17-12 37-12 26 0 45 19t19 45zM1280 1376v-9... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var random = exports.random = { "viewBox": "0 0 8 8", "children": [{ "name": "path", "attribs": { "d": "M6 0v1h-.5c-.35 0-.56.1-.78.38l-1.41 1.78-1.53-1.78c-.22-.26-.44-.38-.78-.38h-1v1h1c-.05 0 .01.04.03.03l1.63 1.91-1.66 2.06h-1v1h1c.35 0... |
import _ from 'lodash'
import alert from './alert'
import Cropper from 'react-cropper'
import io from '../io'
import lock from './lock'
import modal from './modal'
import React, {PureComponent} from 'react'
import utils from '../utils'
import {DragDropContext, DragSource, DropTarget} from 'react-dnd'
import HTML5Backen... |
/* Taketori - Make Text Vertical
* Copyright 2010-2015 CMONOS Co. Ltd. (http://cmonos.jp)
*
* Version: 1.4.4
* Lisence: MIT Lisence
* Last-Modified: 2015-11-08
*/
var TaketoriDblClickAlert = { // should be unicode entity for Opera.
'ja-jp' : "\uFEFF\u7E26\u66F8\u304D\u5316\u3057\u305F\u3044\u90E8\u5206\u3092\u... |
/*-
* #%L
* ARROWHEAD::WP5::Aggregator Manager
* %%
* Copyright (C) 2016 The ARROWHEAD Consortium
* %%
* 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 w... |
import {
callApi,
callApiSuccess,
callApiError,
} from '../actions';
import {
CALL_API,
CALL_API_SUCCESS,
CALL_API_ERROR,
} from '../constants';
describe('App Actions', () => {
describe('callApi', () => {
it('should return the correct type', () => {
const expectedResult = {
type: CALL_A... |
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
angular.module('piwikApp').controller('SiteSelectorController', SiteSelectorController);
SiteSelectorController.$inject = ['$scope', 'siteSelectorMod... |
/****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 th... |
// components/todo-create/todo-create.js
var Component = require("can-component"); // remember to install
var DefineMap = require("can-define/map/");
var view = require("./todo-create.stache");
var Todo = require("~/models/todo");
var TodoCreateVM = DefineMap.extend({
todo: {
Value: Todo
},
createTodo: function()... |
var User = require('../../models/user');
var userController = {};
// create new user
userController.create = function(req, res, next){
var user = req.body;
User.create(user, function(err, user){
if (err) {
console.log('ERROR <userController> could not create user');
res.status(500).end();
}
else {
re... |
import Ember from 'ember';
import KeyboardShortcuts from 'ember-keyboard-shortcuts/mixins/route';
export default Ember.Route.extend(KeyboardShortcuts, {
actions: {
focusSearch() {
const $filterInput = Ember.$('#filter_projects');
if(!$filterInput) {
return;
}
$filterInput.focus()... |
define([
'marionette',
'util/Radio',
], function(Marionette, Radio) {
return Marionette.View.extend({
template: 'radio/row.html',
tagName: 'tr',
className: 'channel-row',
ui: {
moreInfoLink: "[data-action='info']",
},
events: {
"click @ui.moreInfoLink": "onClickInfo"
},... |
var SendGrid = require('sendgrid').SendGrid;
exports.worker = function (task, config) {
var sendgrid = new SendGrid(config.user, config.key);
var mailOptions = JSON.parse(task.config.input);
sendgrid.send(mailOptions, function (success, message) {
if (!success) {
task.respondFailed(... |
'use strict';
/**
* @ngdoc service
* @name netflixFeedApp.Reader
* @description
* # Reader
* Service in the netflixFeedApp.
*/
angular.module('netflixFeedApp')
.service('Reader', function ($http) {
// AngularJS will instantiate a singleton by calling "new" on this function
var url = 'http://ajax.googl... |
/**
* Model representing an NFL Team
*
* @author Sean Teare <steare573@gmail.com>
* @since 2016-02-01
*/
export default (sequelize, DataTypes) => {
const NflTeam = sequelize.define('NflTeam', {
Id: {
type: DataTypes.INTEGER(5),
allowNull: false,
primaryKey: true,
autoIncrement: true,
... |
var fs = require('fs');
var path = require('path');
var JSZip = require('jszip');
var support = [ 'chrome', 'firefox', 'edge' ];
var manifest_master = JSON.parse(fs.readFileSync('src/manifest.json', 'utf8'));
manifest_master.version = process.argv[2];
support.forEach((browser, index) => {
var zip = new JSZip();
... |
/*!
* VisualEditor ContentEditable GeneratedContentNode class.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable generated content node.
*
* @class
* @abstract
*
* @constructor
*/
ve.ce.GeneratedContentNode = fu... |
'use strict'
var util = require('util')
var logger = require('./lib/logger').child({component: 'api'})
var NAMES = require('./lib/metrics/names')
var recordWeb = require('./lib/metrics/recorders/http.js')
var recordBackground = require('./lib/metrics/recorders/other.js')
var customRecorder = require('./lib/metrics/rec... |
import React, { Component, PropTypes } from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import emailMessages from '../../common/auth/emailMessages';
import { FormattedMessage } from 'react-intl';
import { ValidationError, focusInvalidField } from '../../common/lib/validation';
import { conn... |
(function () {
"use strict";
let React = require('react')
, Nav = require('./Nav')
, EditorArea = require('./EditorArea')
, ViewerArea = require('./ViewerArea')
, InputStore = require('../stores/InputStore')
, DiffActions = require('../actions/DiffActions')
, DC = require('../constants/Diff... |
// Karma configuration
// Generated on Fri Oct 27 2017 14:47:42 GMT+0200 (Mitteleuropäische Sommerzeit)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://n... |
const config = require('../config.json')
const FeedSchedule = require('./FeedSchedule.js')
const debugFeeds = require('../util/debugFeeds.js').list
const ArticleMessageQueue = require('./ArticleMessageQueue.js')
// const queueArticle = require('../util/queueArticle.js')
const storage = require('../util/storage.js')
con... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Overlay = mongoose.model('Overlay'),
_ = require('lodash');
/**
* Find overlay by id
*/
exports.overlay = function (req, res, next, id) {
Overlay
.findById(id)
.deepPopulate(['color_0', 'color_1'])
... |
import { combineReducers } from 'redux'
// reducers
import payment from './payment'
import reputation from './reputation'
import crawler from './crawler'
import fxRates from './fxRates'
import checkout from './checkout'
import transactions from './transactions'
import reviewsIWrote from './reviewsIWrote'
import review ... |
// A module with dependencies
define(["./model/model"], function (model) {
//Do setup work here
console.log("modules/uc/uc");
return {
getAccounts: function() {
return model.getAccounts();
},
openAccount: function(id, balance, owner) {
model.openAccou... |
/**
* Build configuration for the packaging tool. This file will be automatically detected and used
* to build the different packages inside of Material.
*/
const {join} = require('path');
/** Current version of the project*/
const buildVersion = require('./package.json').version;
/** License that will be placed i... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define('three.WebVR', ['three'], factory);
}
else if ('undefined' !== typeof exports && 'undefined' !== typeof module) {
module.exports = factory(require('three'));
}
else {
factory(root.THREE);
... |
// Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.js
exports.Formats = [
// XY Singles
///////////////////////////////////////////////////////////////////
{
name: "Random Battle",
section: "XY Singles",
team: 'random',
ruleset: ['PotD', 'Pokemon', 'Sleep Claus... |
HTMLCanvasElement = window.HTMLCanvasElement;
var qrcode = require('jsqrcode')();
// prevent default behavior from changing page on dropped file
window.ondragover = function(e) {
e.preventDefault();
return false;
};
window.ondrop = function(e) {
e.preventDefault();
return false;
};
var holder = document.getEl... |
import React from 'react'
import { connect } from 'react-redux'
import {
getFiles,
makeFilesStatusSelector,
makeFilesPaginationSelector,
changeFilesPage,
makeRawUnselectedFilesForListSelector,
makeFilesReactTypeIsImageSelector
} from 'ducks/files'
import {
atomFormPlacementsSelect,
atomFormPlacementsU... |
import passport from 'passport'
import passportTwitter from 'passport-twitter'
import User from '../models/user'
const TwitterStrategy = passportTwitter.Strategy
function deserializeUser (id, done) {
User.findById(id, (error, user) => done(error, user))
}
function serializeUser (user, done) {
done(null, user.id)... |
module.exports = function (app) {
if (!require('../config/config').FLASH_MIDDLEWARE) return;
/**
* Add support for flash messages
*/
const flash = require('connect-flash');
app.use(flash());
}
|
(function () {
'use strict';
angular
.module('app')
.controller('LoginCtrl', LoginController);
LoginController.$inject = ['$location', 'AuthenticationService', 'FlashService'];
function LoginController($location, AuthenticationService, FlashService) {
var vm = this;
vm... |
import DS from 'ember-data';
import Ember from 'ember';
const { computed } = Ember;
const { attr, belongsTo, hasMany, Model } = DS;
/**
* The rows property is what forms the grid from a list of cells.
*/
export default Model.extend({
title: attr('string'),
workbook: belongsTo('workbook', { async: true }),
... |
/**
* Created with JetBrains WebStorm.
* User: admin
* Date: 09.08.13
* Time: 19:44
* To change this template use File | Settings | File Templates.
*/
function is_op_size(size, op_sizes){
for(var i = 0; i < op_sizes.length; i++){
if(op_sizes[i] == size)
return true;
}
return false... |
'use strict'
module.exports = {
"info": require('./info.js'),
"curl": require('./curl.js'),
"helpers": require('./helpers.js'),
"http1": require('./http1.js'),
"http2": require('./http2.js'),
}
|
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import styled from '../styles/styled';
import useThemeProps from '../styles/useThemeProps';
import Collapse from '../Collapse';
import StepperCo... |
/**
* Build config for electron renderer process
*/
import path from 'path';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import merge from 'webpack-merge';
import UglifyJSPlugin from 'uglifyjs-webpack-plug... |
var support = require('../support'),
storage = require('../storage'),
app = require('../app'),
_ = require('lodash'),
list = require('./list'),
util = require('utile'),
changeGroup = require('./group');
/**
* Lists all entries & listings, and prompts t... |
/**
* 工具函数包
* @file
* @module UE.utils
* @since 1.2.6.1
*/
/**
* UEditor封装使用的静态工具函数
* @module UE.utils
* @unfile
*/
var utils = (UE.utils = {
/**
* 用给定的迭代器遍历对象
* @method each
* @param { Object } obj 需要遍历的对象
* @param { Function } iterator 迭代器, 该方法接受两个参数, 第一个参数是当前所处理的value, 第二个参数是当前遍历对象的k... |
//
// Copyright (c) 2011 - 2015 ASPECTRON Inc.
// All Rights Reserved.
//
// This file is part of JSX (https://github.com/aspectron/jsx) project.
//
// Distributed under the MIT software license, see the accompanying
// file LICENSE
//
pragma("event-queue gc-notify");
var log = require("log"),
http = require("http... |
var connection = function(options){
var self = this;
var defaults = self.defaults();
if(!options){ options = {}; }
for(var i in defaults){
if(options[i] == null){
options[i] = defaults[i];
}
}
self.options = options;
if(options.redis == null){
self.connected = false;
}else{
// a... |
//循环体内有function
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite();
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
var obj = {};
for(var i=0;i<100;i++){
var key = Math.random();
obj[key] = i;
}
var fn1 = function(){
for(var key in obj){
var value = obj[k... |
"use strict";
const fs = require('fs');
const os = require('os');
const url = require('url');
const path = require('path');
const request = require('request');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const exec = require('child_process').exec;
const publicDir = process.env.GITLAB_CE_PAGES_... |
'use babel';
require('./patch');
import { tokenizeRow as defaultTokenizerFn } from './lexer';
import { take, takeRight, reduce, find } from 'lodash';
import algebra from 'algebra.js';
import { validIdentifier } from './regexp';
function takeRest(arr, startingIndex) {
return takeRight(arr, arr.length - (1 + startin... |
/**
* options for DynamicHTMLModule
*/
export var DynamicHTMLOptions = (function () {
function DynamicHTMLOptions() {
}
return DynamicHTMLOptions;
}());
|
version https://git-lfs.github.com/spec/v1
oid sha256:dfcf7e16d96dc685340a3ff31b0bdb879d71681c4d1d3a7c76705adb4b83be9c
size 8962
|
const model = require('./model')
module.exports = Object.assign({}, model, {
App: require('./app'),
Client: require('./client')
}) |
import { factory } from './ParserFactory';
import omit from 'lodash/omit';
import defaultsDeep from 'lodash/defaultsDeep';
export class Component {
defaults() {
return {};
}
constructor(config) {
this.name = config.name;
this.config = defaultsDeep(config, this.defaults());
this.children = config... |
/**
* Daniel Sebastian Iliescu, http://dansil.net
* MIT License (MIT), http://opensource.org/licenses/MIT
*/
class Controls
{
constructor()
{
this.__directions =
{
Left: 37,
Up: 38,
Right: 39,
Down: 40
}
this.__lateralDirections = new Set( [this.__directions.Left, this.__directions.Right] );
... |
define(["generated/templates", 'renderers/componentrenderer', 'graphics/minikpi', 'utils/numberformatter', "utils/evalexpression", 'vendor/lodash'],
function(JST, ComponentRenderer, MiniKPI, NumberFormatter, evalExpression, _) {
function KPIGroupRenderer() {
ComponentRenderer.call(this);
var self = ... |
module.exports = (query, request) => {
const data = {
limit: query.limit || 100,
}
return request(
'POST',
`https://music.163.com/api/play-record/voice/list`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
|
var Backbone = require('Backbone'),
_ = require('underscore'),
$ = require('jquery');
var BookView = Backbone.View.extend({
tagName: 'div',
className: 'bookContainer',
template: _.template( $('#bookTemplate').html() ),
events: {
'click .delete': 'deleteBook'
},
//methods
render: function() ... |
var struct_u_s_a_r_t___type_def =
[
[ "BRR", "struct_u_s_a_r_t___type_def.html#a6ef06ba9d8dc2dc2a0855766369fa7c9", null ],
[ "CR1", "struct_u_s_a_r_t___type_def.html#a6d7dcd3972a162627bc3470cbf992ec4", null ],
[ "CR2", "struct_u_s_a_r_t___type_def.html#aa7ede2de6204c3fc4bd9fb328801c99a", null ],
[ "CR3"... |
const styles = {
root: {
minHeight: '100vh',
display: 'flex',
flexDirection: 'column',
},
};
export default styles;
|
// console.log(dates);
// console.log(dates["0"]);
// console.log(dates);
var $datepicker1 = $("#arrivee");
var $datepicker2 = $("#depart");
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
var now = yyyy+"-"+mm+"-"+dd;
console.log(now);
$( function... |
var rescheme = require('../index');
exports.simpleObject = function(test){
var original = {
a: 1,
details1: {
c: 2,
d: 3,
details2: {
f: 4
}
}
};
var new_scheme = {
name: "a",
city: "details1.c",
... |
import bootstrapcss from 'bootstrap/css/bootstrap.min.css';
import homecss from './Home.css';
import carousel from 'bootstrap/carousel.vue';
import dropdownhover from 'bootstrap/dropdownhover.vue';
import FunButton from './FunButton.vue';
export default {
components: { funbutton: FunButton }
};
|
'use strict';
/**
* Class counting occurrences of values.
*/
class Histogram {
constructor() {
this.frequencies = {};
}
clear() {
for (let i in this.frequencies) {
this.frequencies[i] = 0;
}
}
/**
* Increase frequency of val in the histogram.
*
* @param {any} val – Value to be added to a histog... |
/**
* Selfbits API V2
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 2.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the cl... |
/*global cordova:true, StatusBar:true*/
// rutha_ionic - based on Ionic Starter App
// http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/
angular.module('ruthaControllers', []);
angular.module('ruthaServices', []);
angular.module('rutha.templates', []);
angular.module('ruthaDirectives', []);
angular.m... |
'use strict';
// Dependencies
//
const fs = require('fs');
const generator = {};
const path = require('path');
// Generates an application folder, and app files that are needed to run the app
//
generator.generate = (appName, location, cb) => {
fs.mkdir(path.join(location, appName), cb);
};
module.exports = generat... |
/**
* @author Mugen87 / https://github.com/Mugen87
*/
import { GameEntity } from '../../../../build/yuka.module.js';
class CustomObstacle extends GameEntity {
constructor( geometry ) {
super();
this.geometry = geometry;
}
handleMessage() {
// do nothing
return true;
}
}
export { CustomObstacle... |
const _async_ = require('co').wrap;
const fetch = require('node-fetch');
const cheerio = require('cheerio');
module.exports = _async_(function * (word) {
if (typeof word !== 'string' || word.length === 0) {
throw new TypeError('word should be a string');
}
// normalize
word = word.trim().toLowerCase().r... |
var vfs = require('vinyl-fs'),
phpConfig = require('../'),
through = require('through2'),
options = {
filename: 'config.php',
openTag: '<?php',
closeTag: '',
define: false //Set true to use define(); instead $variables
};
vfs.src('./.configrc')
.pipe(phpConfig(option... |
import fs from 'fs';
import path from 'path';
import { upload } from '../index';
const { API_TOKEN = '' } = process.env;
const fileToUpload = fs.createReadStream(path.join(__dirname, 'upload.js'));
upload(
API_TOKEN,
'disk:/Приложения/ya-disk-api/upload.js',
true,
(stream) => fileToUpload.pipe(stream),
(er... |
'use strict';
var fs = require( 'fs' ),
path = require( 'path' ),
parse = require( './../lib' );
// Load an INI file...
var file = path.resolve( __dirname, '../test/fixtures/config.ini' );
file = fs.readFileSync( file, {
'encoding': 'utf8'
});
// Attempt to parse the file...
file = parse( file );
console.dir( fil... |
//javascript:
(function(){if(typeof(lodrlt)==="undefined"){var a=document.createElement("script");a.setAttribute("charset","UTF-8");a.setAttribute("src","https://raw.github.com/sairion/Loaderlet/master/src/loaderlet_v0_01_min.js?"+99999999*Math.random());document.body.appendChild(a)}else lodrlt()})(window); |
var PLUGIN_INFO =
<KeySnailPlugin>
<name>Navigate Relations</name>
<description>Easily move via next/prev tags/links</description>
<version>0.1</version>
<updateURL>http://github.com/kidd/keysnail-navigate-relations/raw/master/navigate-relations.ks.js</updateURL>
<author mail="raimonster@gmail.com" ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.