code stringlengths 2 1.05M |
|---|
version https://git-lfs.github.com/spec/v1
oid sha256:684865242a686438fa472535c2ad2715505cb5222da00d315ee8226b2d927a25
size 7355
|
import template from './dashboard.html';
import controller from './dashboard.controller';
import './dashboard.css';
let dashboardComponent = ({
restrict: 'E',
scope: {},
controller,
controllerAs: 'dashboard',
bindToController: true,
template
});
export default dashboardComponent; |
'use strict';
const get = (req, res) => {
res.render('migration/views/complete', {
title: 'DfE Sign-in',
uuid: req.params.uuid,
csrfToken: req.csrfToken(),
validationMessages: {},
redirectUri: req.session.redirectUri,
clientId: req.session.clientId,
});
};
module.exports = get;
|
import Marionette from 'backbone.marionette';
import './TimeSliderView.css';
import './MapView.css';
import template from './RootLayoutView.hbs';
export default Marionette.LayoutView.extend({
template,
regions: {
content: '#content',
leftPanel: '#leftPanel',
rightPanel: '#rightPanel',
bottomPanel:... |
'use strict';
angular
.module('ngLogApp', [
'cat.service.log'
])
.config(function (catLogServiceProvider, CONSOLE_APPENDER, ROOT_LOGGER_NAME, HTTP_LOGGER_NAME) {
catLogServiceProvider
.configure(ROOT_LOGGER_NAME, 'warn')
.configure(HTTP_LOGGER_NAME, 'debug')
... |
/* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import ReduxThunk from 'redux-thunk';
// Actions
import { authUser, setUserData } from './actions/auth-actions';
// Routes
import Route... |
import Vue from 'vue'
import Vuex from 'vuex'
import Modals from '@/modules/modals.js'
import CategoryFilters from '@/modules/category_filters.js'
import GeneralSettings from '@/modules/general_settings.js'
import TileSources from '@/modules/tile_sources.js'
import MapControls from '@/modules/map_controls.js'
import He... |
(function(){var e;e=jQuery,window,document,e.fn.extend({setSortable:function(n){var t,o,r,i;if(r=e(this),i={debug:!1},i=e.extend(i,n),o=function(e){if(i.debug)return"undefined"!=typeof console&&null!==console?console.log(e):void 0},t=function(){return r.each(function(){return e(this).sortable({axis:"y",cursor:"move",op... |
/**
* @file Project Action
* @author leonlu(ludafa@outlook.com)
*/
/*eslint-env node*/
var AppDispatcher = require('../dispatcher/App.js');
var ProjectConstant = require('../constant/Project.js');
module.exports = {
add: function (content) {
AppDispatcher.dispatch({
type: ProjectConstant.... |
/**
* Created by joehua on 7/17/15.
*/
var co = require('co');
var path = require('path');
var rootPath = require('app-root-path');
// Chai Expect
var chai = require('chai');
chai.use(require('chai-string'));
var expect = chai.expect;
// TODO Learn about Js Errors
describe('Parse keywords from csv', function () {
... |
import React, { Component, PropTypes } from 'react';
import { TRIPS_PATH } from 'config/config';
import { browserHistory } from 'react-router';
import Tabs from 'material-ui/lib/tabs/tabs';
import Tab from 'material-ui/lib/tabs/tab';
import FontIcon from 'material-ui/lib/font-icon';
const TripTabs = (props) => (
<T... |
import React, { Component } from 'react';
import propTypes from 'prop-types';
import { List, Button, Form, Input, DatePicker } from 'antd';
import moment from 'moment';
import { datapointPropTypes } from '../lib/propTypesValues';
class DatapointItem extends Component {
static propTypes = {
datapoint: datapointPr... |
/**
* @module MusicPlayer
*/
/**
* Class which provides methods to operate with music titles carousel
* @class Carousel
* @static
*/
var Carousel = {
/**
* Holds value of width of whole carousel panel.
* @property width {Integer}
*/
width: 12000,
/**
* Holds value of elements c... |
'use strict';
var Controller = require('./controller');
var ViewTimerTags = require('../views/timer-tags');
class ControllerTimerTags extends Controller {
_initView(container, templates) {
if (!this._view) {
this._view = new ViewTimerTags(container, templates, {
onDone: (tagIDs => {
t... |
'use strict';
var home = angular.module('myApp.home', ['ngRoute']);
home.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: '/partials/home/home.html',
controller: 'HomeCtrl'
});
}]);
home.controller('HomeCtrl', ['$scope', '$http', 'myConfig', '$location', 'ancho... |
"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... |
// All code points with the `XID_Start` derived core property as per Unicode v6.2.0:
[
0x41,
0x42,
0x43,
0x44,
0x45,
0x46,
0x47,
0x48,
0x49,
0x4A,
0x4B,
0x4C,
0x4D,
0x4E,
0x4F,
0x50,
0x51,
0x52,
0x53,
0x54,
0x55,
0x56,
0x57,
0x58,
0x59,
0x5A,
0x61,
0x62,
0x63,
0x64,
0x65,
0x66,
0x67,
0... |
'use strict';
angular.module('tomatoesAndEggs').controller('QuestionController',
['$scope', '$window', 'Question', 'QuestionType', function ($scope, $window, Question, QuestionType) {
QuestionType.findAll().$promise.then(function (questionTypes) {
$scope.questionTypes = questionTypes;
setTimeout(func... |
(function ($) {
$.fn.amortize = function (options) {
// This is the easiest way to have default options.
var o = $.extend({
// These are the defaults.
amount: 100000,
rate: 10.25,
tenure: 240,
extras: 0
}, options);
functi... |
// Make a 10 x 10 x 10 cube originating at 'pos'
var pos = {x: 95, y: 5, z: 95};
setBlocks(pos.x, pos.y, pos.z, pos.x + 10, pos.y + 10, pos.z + 10, BlockType.Stone);
|
/**
* This file uses the Page Object pattern to define the main page for tests
* https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ
*/
'use strict';
var EditPage = function() {
this.blankStrEl = element(by.model('testString.blankStr'));
this.creditCardStrEl = element(by.mod... |
import React from 'react';
import moment from 'moment';
import './App.css';
class App extends React.Component {
constructor(props) {
super(props);
// Parse the static date once
this.state = {
bridgeDate: moment(this.props.bridgeDate),
forestDate: moment(this.props.forestDate),
tDate: m... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _reduxRubberstamp = require('redux-rubberstamp');
var _reducer = require('./reducer');
var _reducer2 = _interopRequireDefault(_reducer);
var _select = require('./select');
var _select2 = _interopRequireDefault(_select);
var _actio... |
'use strict';
var proxy = require('proxyquireify')(require);
var LaddaStub = jasmine.createSpyObj('Ladda', ['create']);
var LaddaInstance = jasmine.createSpyObj('LaddaInstance', ['start', 'stop']);
LaddaStub.create.and.returnValue(LaddaInstance);
proxy('../', {ladda: LaddaStub});
describe('io.dennis.ladda', function... |
// Loading Page
Router.configure({
loadingTemplate: 'loading'
});
// Home Route
Router.route('home', {
path: '/',
waitOn: function() {
return [
Meteor.subscribe('Academics'),
Meteor.subscribe('Rooms'),
Meteor.subscribe('Timetables', null)
];
}
})
// View Saved Timetables
Router.route... |
console.log("I'm index.js and I require a coffee script module");
require('./sayhello.coffee') |
var app = angular./**
* app Module
*
* Description
*/
module('app', ['ui.bootstrap', 'ui.calendar', 'ngDialog', 'angularMoment', 'angularSmoothscroll', 'ngScrollSpy'])
.service('serviceDate', function() {
this.MySQLDatetimeToDateObject = function(MySQLDatetimeString) {
var t = MySQLDatetimeStrin... |
define("ace/mode/folding/coffee", ["require", "exports", "module", "ace/lib/oop", "ace/mode/folding/fold_mode", "ace/range"], function(e, t, n) {
"use strict";
var r = e("../../lib/oop"),
i = e("./fold_mode").FoldMode,
s = e("../../range").Range,
o = t.FoldMode = function() {};
r.inherits(o, i),
f... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Task = require('../ember-cli/lib/models/task');
const opn = require('opn');
exports.DocTask = Task.extend({
run: function (keyword) {
const searchUrl = `https://angular.io/docs/ts/latest/api/#!?query=${keyword}`;
retu... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import muiThemeable from 'material-ui/styles/muiThemeable';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table';
import DatagridCell from './DatagridCell';
import DatagridHeaderCell f... |
var share_8php =
[
[ "share_init", "share_8php.html#afeb26046bdd02567ecd29ab5f188b249", null ]
]; |
'use strict';
const path = require('path');
const sinon = require('sinon');
const Mocha = require('../../lib/mocha');
const Pending = require('../../lib/pending');
const {Suite, Runner, Test, Hook, Runnable} = Mocha;
const {noop} = Mocha.utils;
const {
FATAL,
MULTIPLE_DONE,
UNSUPPORTED
} = require('../../lib/err... |
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
... |
function BlockSpawner(game, speed, level) {
this.game = game
this.blocks = []
this.speed = speed || 4
this.clearCount = 200
this.level = level || 1
this.draw = function(ctx) {
for (var i = 0; i < this.blocks.length; i++) {
this.blocks[i].draw(ctx)
}
}
this.physics = function(timeDelta) {
if (this.block... |
/*
* Represents a region of reviewable content that contains comments.
*
* This stores all comments that match a given region, as defined by a
* subclass of AbstractCommentBlock.
*
* New draft comments can be created, which will later be stored on the
* server.
*
* The total number of comments in the block (in... |
(function($) {
test("Test1 for Array", function() {
var target = $("#test1");
var arr = [[1, 2, 3]];
target.empty();
$.jsontotable(arr, { id: "#test1", header: false });
equal(target.find("thead").length, 0);
equal(target.find("tbody").length, 1);
equal(target.find("th").length, 0);
... |
/*global angular */
/**
* Services that persists and retrieves todos from localStorage or a backend API
* if available.
*
* They both follow the same API, returning promises for all changes to the
* model.
*/
angular.module('todomvc')
.factory('todoStorage', function ($http, $injector) {
'use strict';
// D... |
'use strict'; // eslint-disable-line
import { Ht } from 'hypertoxin';
import React from 'react';
import ReactNative from 'react-native'; // eslint-disable-line
import { createMaterialTopTabNavigator } from 'react-navigation';
import TextFieldView from '../field-views/text-field-view';
import SearchFieldView from '... |
version https://git-lfs.github.com/spec/v1
oid sha256:99468aba92d08ff20218e48a0bd186a52f8ef340dad2cfac457c9104ab978f38
size 8414
|
export const diamond = {"viewBox":"0 0 2048 1792","children":[{"name":"path","attribs":{"d":"M212 768l623 665-300-665h-323zM1024 1540l349-772h-698zM538 640l204-384h-262l-288 384h346zM1213 1433l623-665h-323zM683 640h682l-204-384h-274zM1510 640h346l-288-384h-262zM1651 154l384 512q14 18 13 41.5t-17 40.5l-960 1024q-18 20-4... |
;(function() {
'use strict';
/**
* Define user model
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var bcrypt = require('bcryptjs');
var SALT_WORK_FACTOR = 10;
var mongoosePaginate = require('mongoose-paginate');
var userHelpers = require('./user.helpers.js');
/**
*... |
// flow-typed signature: 735922a83bd7a0adc09b14dead2d5700
// flow-typed version: <<STUB>>/eslint-plugin-react_v^7.9.1/flow_v0.74.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-react'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share y... |
System.register([], function (_export) {
var _classCallCheck, noMutations, ChildObserver, ChildObserverBinder;
return {
setters: [],
execute: function () {
"use strict";
_classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot c... |
var InvalidMoneyException = function (message) {
this.message = message;
this.name = "InvalidMoneyException";
};
function Money(amount, currency) {
this.validateAmount(amount);
this.amount = amount;
this.validateCurrency(currency);
this.currency = currency.toUpperCase();
}
Money.prototype = {... |
/**
* End scene with flames and credits
*/
var Credits = function () {
};
Credits.prototype = {
__init : function () {
var x , y, ctx = this.canvas.ctx,
fn = this.fn,
text_obj = {
size : 50,
family : "PetMe128Medium",
... |
export { StudyList } from './StudyList.js';
export { TableSearchFilter } from './TableSearchFilter.js';
export { TablePagination } from './TablePagination.js';
export { PageToolbar } from './PageToolbar.js';
|
const parse = require('../../dist/index').parse
const Decoder = require('../../dist/decoder/cr3-decoder').Cr3Decoder
const {fixture, compareToFixture} = require('../utils')
describe('Decoder', () => {
describe('.extractJPEG', () => {
it('should extract the preview', () => {
const decoder = new Decoder(fixt... |
(function(module) {
mifosX.controllers = _.extend(module, {
CloseCenterController: function(scope, routeParams, route, location, resourceFactory,dateFilter) {
scope.template = [];
scope.center = [];
scope.first = {};
scope.formData = {};
scope.rest... |
const fs = require('fs')
const natural = require('../')
const metaphone = natural.Metaphone.process
/* global suite */
// single word
suite.bench('metaphone() word', function (next) {
metaphone('stephen')
next()
})
// small body of text
const words = fs.readFileSync('lib/natural/index.js', 'utf8').split(/\W+/... |
import ValueConverter from '../../src/AssertJS/ValueConverter';
import Assert from '../../src/AssertJS/Assert';
describe("ValueConverter", () => {
it("casts native string value to string", () => {
Assert.equal(ValueConverter.toString("string"), "string[\"string\"]");
});
it("casts native integer v... |
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import jwt_decode from "jwt-decode";
import store from "./Store/store";
import "./index.css";
import App from "./router";
import registerServiceWorker from "./registerServiceWorker";
import {
setCurrentUser,
logout... |
import {ctx} from './board';
import {mouse} from "./mouse";
import {board} from "./board";
/**
* Player (Paddle) object
*/
export const player = {
posX: 0,
posY: 0,
lastPosX: 0,
direction: 0,
width: 120,
height: 10,
color: 'black',
/**
* Set player position
*
* @param {Number} x [x=0]
... |
'use strict';
var expect = require('chai').expect;
var _ = require('underscore');
var tools = require('./tools');
var self = module.exports = {
dataValidations: tools.fix(require('./data/data-validations.json')),
createDataValidations: function(type, operator) {
var dataValidation = {
type: type,
... |
import { t as _t } from "marko/src/runtime/html/index.js";
const _marko_componentType = "packages/translator-default/test/fixtures/at-tags-dynamic-with-params/template.marko",
_marko_template = _t(_marko_componentType);
export default _marko_template;
import { x as _marko_escapeXml } from "marko/src/runtime/htm... |
// @flow
export const primary = '#007bff';
export const secondary = '#6c757d';
export const success = '#28a745';
export const info = '#17a2b8';
export const warning = '#ffc107';
export const danger = '#dc3545';
export const light = '#f8f9fa';
export const dark = '#343a40';
export const fontSizeBase = '1rem';
export c... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8L19 4z"
}), 'PolymerOutlined'); |
import Vue from 'vue'
import Router from 'vue-router'
import Resource from 'vue-resource'
import App from './components/App.vue'
import LogView from './components/LogView.vue'
import RegisterView from './components/RegisterView.vue'
import MainView from './components/MainView/index.vue'
import Account from './compone... |
require('object.assign').shim();
var isEmpty = require('lodash').isEmpty;
var flatten = require('lodash').flatten;
var ValidationStrategy = require('./JoiValidationStrategy');
var he = require('he');
var ValidationFactory = Object.assign({
getValidationMessages: function(errors, key) {
errors = errors || {};
... |
var dataarr = [[1,1,1,2,1,2],
[1,1,1,2,1,2],
[2,1,2,1,1,1],
[1,1,1,2,1,2]
];
var labelsset=["0h","24h","40h","56h","72h","120h"];
var iPageSize = 40;
var iProCount = 4;
var mainPageUrl = "class5_html/class5.html";
var datapath = "class5_html/";
var titleName = "Class5";
|
'use strict';
var Base = require('./Base'),
Product = require('./Product'),
util = require('util'),
Signature = require('./Signature/Pingback'),
querystring = require('querystring');
Pingback.PINGBACK_TYPE_REGULAR = 0;
Pingback.PINGBACK_TYPE_GOODWILL = 1;
Pingback.PINGBACK_TYPE_NEGATIVE = 2;
function Pingback(pa... |
/**
* lei-config tests
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
var path = require('path');
var should = require('should');
var config = require('../');
it('custom_env_name', function () {
//------------------------------------------
config._init_module();
delete process.env.NODE_ENV;
process.... |
var camBaseUrl, d5UrlProcessor, d6UrlProcessor, file, fs, handler, htmlparser, pennDotFiles, pennDotHostName, sys, url, util, _, _fn, _i, _len, _s;
sys = require('sys');
fs = require('fs');
util = require('util');
_ = require('underscore');
_s = require('underscore.string');
url = require('url');
htmlparser = require('... |
import MapChipEditor from './MapChipEditor'
describe('(Plugins) MapChipEditor', () => {
describe('class MapChipEditor', () => {
let instance
before(() => {
instance = new MapChipEditor()
})
it('shoud have onInit function', () => {
expect(instance.onInit).to.be.a('function')
})
it(... |
import {
useState,
useEffect,
} from 'react';
import PropTypes from 'prop-types';
import { toastr } from 'react-redux-toastr';
import classnames from 'classnames';
// components
import TopicsList from 'layout/explore/explore-topics/list';
import DatasetList from 'layout/explore/explore-datasets/list';
import Explo... |
it("component with san-if, init with true, change much times", function (done) {
// [inject] init
expect(myComponent.data.get('jokeName')).toBe('airike');
expect(myComponent.data.get('name')).toBe('errorrik');
myComponent.data.set('name', 'erik');
myComponent.data.set('jokeName', '2b');
myComp... |
module.exports = function (intents,builder){
intents.matches('positiveReply',[
function (session){
if (session.privateConversationData.questionAsked)
{
switch (session.privateConversationData.questionAsked){
case 'isBootcamper':
session.privateConv... |
/*
(c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
const Excel = require('../excel');
const utils = require('../spec/utils/index');
const filename = process.argv[2];
const styles = {
filename,
useStyles: true,
};
const wb = new Excel.stream.xlsx.WorkbookWriter(styles);
const ws = wb.addWorksheet('blort');
const style = {
font: utils.styles.fonts.comicSansUdB16,... |
// grant middleware
// need express-session
module.exports = {
allowApplicant: function(req, res, next) {
if (req.session.user) {
next();
} else {
res.json({
code: 403,
msg: 'not sign in yet',
body: {}
});
}
... |
var extend = require(__base + 'modules/extend');
var config = require(__base + 'config');
module.exports = function(req, res, key, opt) {
var session = req.session;
if (!session.permission) {
session.permission = {};
}
var defOpt = {
isApi: false
};
opt = extend(true, {}, defOpt,... |
//@flow
import styled from "styled-components";
export const Span = styled.span`
position: relative;
`;
|
const config = require("../config");
const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
const browserify = require('browserify');
const babelify = require('babelify');
const buffer = require('vinyl-buffer');
const source = require('vinyl-source-stream');
const bs =... |
module.exports = function(ctx, lab) {
// Test shortcuts
var expect = require('code').expect;
var before = lab.before;
var after = lab.after;
var describe = lab.experiment;
var it = lab.test;
describe('verify song api', function() {
it('should start with an empty song list on set endpoint', function(done) {
... |
const {Pool} = require('pg');
function makeCreateQuery(dbName) {
if (dbName === 'swipe-right-db') return 'CREATE DATABASE "swipe-right-db";';
if (dbName === 'swipe-right-db-test') return 'CREATE DATABASE "swipe-right-db-test";';
throw new Error('unexpected database name: ', dbName);
}
function createDatabase(da... |
exports.users = require('./users'); |
/**
* Test the repo list item
*/
import React from 'react';
import { shallow, render } from 'enzyme';
import { IntlProvider } from 'react-intl';
import ListItem from 'components/ListItem';
import { RepoListItem } from '../index';
const renderComponent = (props = {}) =>
render(
<IntlProvider locale="en">
... |
document.write("<br /><h1>Práctica del bucle for</h1>");
function genera_cabeceras() {
for (let i = 1; i <= 6; i++) {
document.write("<h" + i + "> Cabecera h" + i + "</h" + i + ">");
}
}
genera_cabeceras(); |
'use strict';
angular.module('budgetApp')
.controller('LoginCtrl', function ($scope, Auth, $location, $window) {
$scope.user = {};
$scope.errors = {};
$scope.login = function(form) {
$scope.submitted = true;
if(form.$valid) {
Auth.login({
email: $scope.user.email,
... |
var socketio = require('socket.io');
var io;
var guestNumber = 1;
var nickNames = {};
var namesUsed = [];
var currentRoom = {};
exports.listen = function(server) {
io = socketio.listen(server);
io.set('log level', 1);
io.sockets.on('connection', function(socket) {
guestNumber = assignG... |
/** LOCALIZE CONFIGURATION AND RENAME TO 'config.js' */
var path = require('path')
, port = process.env.PORT || 9999
, root = path.normalize(__dirname + '/../..');
module.exports = {
development: {
env: 'development',
googleRecaptcha: {
secretKey: 'secretKey',
},
mongo: {
host: 'loca... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import i18n from 'react-native-i18n';
import * as actions from '../../actionCreators/addCategoryForm';
import CategoryForm from '../../components/Forms/CategoryForm';
class AddCatego... |
/*
If there's anything missing within the state,
like the context or some FSM state,
it is given the default value.
*/
import {initState} from './../fsm/api';
const extendFSMState = ({
state = {context: {}, FSMState: {}},
graph}
) => ({...initState(graph), ...state.FSMState});
export default extendFSMState; |
// is-equal helper is necessary to determine which option is currently selected.
import Ember from 'ember';
export function emberNotificationIsEqual(params) {
return params[0] === params[1];
}
export default Ember.Helper.helper(emberNotificationIsEqual);
|
document.addEventListener('DOMContentLoaded', () => {
// Utils
const tabs = getAll('.bd-tabs');
if (tabs && tabs.length > 0) {
tabs.forEach((tab) => {
const buttons = getAll('.bd-tabs-nav button', tab);
const items = getAll('.bd-tabs-item', tab);
buttons.forEach((button, index) => {
... |
module.exports = require('./lib/tbe-swagger2-express');
|
var assert = require('assert');
var shrti = require('../index.js');
/**
*
* @formatter:off
*/
var mapping = [ '3foayirxqw6dc4tz7109uknepb8mhl2j5svg',
'mt8nkfd4l5xgb12vjo93izq6wsr70uapceyh',
'gsthf3d95wbci8427emy0jno6xqkuazr1lvp',
'vgqf2eh8az5l7kroiuywnd9tp0s41jbm3cx... |
/**
* Created by hygkui on 15/10/1.
*/
App.service("store", function ($localstorage) {
this.put = function(key, value) {
$localstorage.set(key, value);
};
this.get = function(key){
return null || $localstorage.get(key);
};
this.getSaveConfig = function () {
return $localstorage.get("save");
... |
'use strict';
Number.prototype.toMoney = function(decimals, decimal_sep, thousands_sep) {
var n = this,
c = isNaN(decimals) ? 2 : Math.abs(decimals), //if decimal is zero we must take it, it means user does not want to show any decimal
d = decimal_sep || '.', //if no decimal separator is passed we ... |
module.exports = require("npm:nan@2.4.0/include_dirs.js"); |
angular.module('talker.hooks')
.provider('tkAlertHook', function() {
this.$get = ['$window', function($window) {
return function(message) {
$window.alert(message);
};
}];
}); |
/*!
* jQuery Stepy - A Wizard Plugin - http://wbotelhos.com/stepy
* ------------------------------------------------------------------------------------
*
* jQuery Stepy is a plugin based on FormToWizard that generates a customizable wizard.
*
* Licensed under The MIT License
*
* @version 1.0.0
* @sin... |
module.exports = function (express, Account) {
'use strict';
var Router = express.Router();
// server routes ===========================================================
Router.get(['/'], function (req, res, next) {
res.render('mainpage/index', {user: req.user});
});
// admin... |
if(ko.validation)
ko.validation.rules['date'] = {
validator: function (value, validate) {
return !value || (validate && TF.Dates.tryParseDate(value));
},
message: 'Please enter a proper date'
}; |
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import './main.html';
import moment from 'moment';
Inbox = new Mongo.Collection('inbox');
var defaultImage = "faces-01.jpg";
Template.main.helpers({
devices: () => Meteor.users.find({
"profile.owner": { "$exists": 1}... |
var express = require('express');
var router = express.Router();
var nodemailer = require('nodemailer');
var json2csv = require('json2csv');
var fs = require('fs');
var transporter = nodemailer.createTransport('SMTP',{
service: 'yandex',
debug: true,
auth: {
user: 'hype@ballriders.com',
pas... |
export { default } from 'ember-theater/ember-theater/director/directions/data';
|
/* eslint-disable import/prefer-default-export */
// Global index counter to preserve source order.
// We create the style sheet during the creation of the component,
// children are handled after the parents, so the order of style elements would be parent->child.
// It is a problem though when a parent passes a classN... |
const nunjucks = require('nunjucks');
function createEnv(path, opts) {
var
autoescape = opts.autoescape === undefined ? true : opts.autoescape,
noCache = opts.noCache || false,
watch = opts.watch || false,
throwOnUndefined = opts.throwOnUndefined || false,
env = new nunjuck... |
/**
* @param {string[]} tokens
* @return {number}
*/
const evalRPN = function (tokens) {
let numStack = [];
for (let token of tokens) {
if (isOperator(token)) {
let num2 = numStack.pop();
let num1 = numStack.pop();
numStack.push(calculate(num1, num2, token));
... |
window.onload = function () {
document.forms["pullRequest"].onsubmit = function(){
var repoName = document.getElementById("repoName").value;
var destbranch = document.getElementById("destbranch").value;
alert("Calculating diff from Branch0 to " + destbranch + " for " + repoName + " ... ");
}
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.