code stringlengths 2 1.05M |
|---|
/**
* add googlefont
*/
WebFontConfig = {
google: { families: [ 'Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic:latin,latin-ext' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/li... |
var siteListTable;
var siteListEditor;
var wordListTable;
$(document).ready(function () {
// First
generateSiteListTable();
// Second
generateWordsTable();
});
//Reload the page after user dismisses the modal (wrong URL alert)
$('#url-alert-modal').on('hidden.bs.modal', function(e){
location.reload();
});
f... |
import React from 'react';
export default function TextInput(props) {
return (
<div className="text-input-container">
<input
name={props.name}
placeholder={props.placeholder}
value={props.text}
onChange={props.onChange}
type={props.type}
/>
</div>
);
}
|
exports.port = 3000;
exports.mysqlPassport = {
port : '3306',
username : 'root',
password : '',
}
exports.mysql = {
URL: 'mysql://root:@127.0.0.1:3306/foodsystem'
};
exports.companyName = 'Acme, Inc.';
exports.projectName = 'Drywall';
exports.systemEmail = 'your@email.addy'; |
var baseUrl = contextPath + "/rest/abtesting/1.0";
AJS.toInit(function() {
new AJS.RestfulTable({
autoFocus: true,
el: jQuery("#feature-battles-table"),
allowReorder: true,
resources: {
all: baseUrl + "/feature_battles",
self: baseUrl + "/feature_battle"
... |
var indexSectionsWithContent =
{
0: "abcdefghiklmnprstuvwxy~",
1: "abgpstuw",
2: "abcdefgiklmprstuw~",
3: "abcdefhimnprstvwxy",
4: "n"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "functions",
3: "variables",
4: "pages"
};
var indexSectionLabels =
{
0: "All",
1: "Classes",
2: "Fun... |
'use strict';
var util = require('util');
var Matrix = require('./geometry/Matrix');
var Point = require('./geometry/Point');
var Polygon = require('./geometry/Polygon');
var Animation = require('./animation/Animation');
var Actor = function () {
/**
* The private width of this actor in its own coordinate s... |
/**
* @copyright 2015 Prometheus Research, LLC
*/
import addStyleToDOM from 'style-loader/addStyles';
import createHash from 'murmurhash-js/murmurhash3_gc';
import prefix from 'inline-style-prefix-all';
import CSSPropertyOperations from 'react-css-property-operations';
import isArray from 'lodash/isArray';
import to... |
match.on('end', function() {
var players = match.getPlayers();
for (var i = 0; i < players.length; i++) {
if (players[i].getTeam() == null) {
continue;
}
var player = players[i];
var kill = player.getKills();
var death = player.getDeaths();
var jp_message = '`a----- `6試合統計 `a-----\n`... |
/*!
今天,无意间看到这样一个面试题:
编写一个javscript函数 fn,该函数有一个参数 n(数字类型),其返回值是一个数组,该数组内是 n 个随机且不重复的整数,且整数取值范围是 [2, 32]。
那么,就试着写一下代码吧。
*/
function fn(n) {
// 对输入做要求过滤
if (typeof n !== 'number') {
return [];
}
var min = 2; // 定义下限
var max = 32; // 定义上限
// 强制转换为整数
n = parseInt(n, 10);
var i = 0; // 循环变量
... |
'use strict';
var pathUtil = require('path');
var Q = require('q');
var gulp = require('gulp');
var rollup = require('rollup');
var less = require('gulp-less');
var jetpack = require('fs-jetpack');
var utils = require('./utils');
var generateSpecsImportFile = require('./generate_specs_import');
var projectDir = jetp... |
"use strict";
load.provide("quest.ui", function() {
load.require("dusk.sgui.FancyRect");
load.require("dusk.sgui.Grid");
load.require("dusk.sgui.PlusText");
load.require("dusk.sgui.FocusChecker");
load.require("dusk.sgui.FocusCheckerRect");
load.require("dusk.sgui.extras.MatchedSize");
load.require("dusk.sgui.F... |
'use strict';
const postcss = require('postcss');
const DEFAULT_OPTIONS = {
display: 'block'
};
/**
* Clear: fix; rule handler
* @param {string} decl current decleration
*/
function clearFix(decl, opts) {
let origRule = decl.parent,
ruleSelectors = origRule.selectors,
newRule;
if (decl.value... |
// Imports
var bescribe = require('be-paige/bescribe'),
common = require('../common/common.js'),
data = require('../common/data.js'),
TheQuizPage = require('../../lib/the-quiz/the-quiz.js'),
SignUpPage = require('../../lib/sign-up/sign-up.js'),
MonthlyBoxPage = require('../../lib/monthly-box/monthly-box.js'),... |
var site = (function() {
console.log('hello world!');
// Export as AMD module
if (typeof define === "function" && define.amd) {
define('site', [], function() { });
}
}()); |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
version https://git-lfs.github.com/spec/v1
oid sha256:0141d59c3009d8b8836ce619bca33e2927e291e20a3901696df3a21efd0ce65a
size 67695
|
/*
Copyright (c) 2011 Recoset <nicolas@recoset.com> <francois@recoset.com>
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, cop... |
/* global Dropkick */
import Ember from 'ember';
import XSelectComponent from 'emberx-select/components/x-select';
export default XSelectComponent.extend({
_dk: null,
settings: {},
createDk: Ember.on('didInsertElement', function() {
this._dk = new Dropkick(this.get('element'), this.get('settings'));
}),
... |
/***********
* Spinner *
***********/
var cursor = require('ansi')(process.stdout);
var spinner = (function() {
var sequence = ["|","/","-","\\"]; //[".", "o", "0", "@", "*"];
var index = 0;
var timer;
var opts = {};
function start(inv, options) {
options = options || {};
opts = options;
if(options.hideCu... |
import React, { Component, Children } from 'react'
import PropTypes from 'prop-types'
import { head, body } from '../utils/gtm'
class ReactGTMProvider extends Component {
constructor(props, context) {
super(props, context)
if (typeof window === 'undefined') {
return
}
this.dataLayer = window... |
// Activities service used to communicate Activities REST endpoints
(function () {
'use strict';
angular
.module('activities')
.factory('ActivitiesService', ActivitiesService);
ActivitiesService.$inject = ['$resource'];
function ActivitiesService($resource) {
return $resource('api/activities/:act... |
/**
* DevExtreme (data/data_source/data_source.js)
* Version: 16.2.6
* Build date: Tue Mar 28 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
Class = require("..... |
/**
* Policy Mappings
* (sails.config.policies)
*
* Policies are simple functions which run **before** your controllers.
* You can apply one or more policies to a given controller, or protect
* its actions individually.
*
* Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
* below by its f... |
(function (angular) {
'use strict';
angular.module('ac.url', [])
.filter('urlencode', [function () {
return function (string) {
if (!!string) {
return encodeURIComponent(string);
}
};
}])
.filter('urldecode', [f... |
app.controller('userdashboard', function($scope, $http){
$http.get('/cafeinfos2').then(function (res) {
console.log(res)
})
}) |
module.exports = function(grunt) {
grunt.initConfig({
nodeunit: {
tests: 'test/release_test.js'
},
npmrelease: {
options: {
push: true,
bump : true,
pushTags: true,
npm: true,
npmtag: false,
silent : false,
commitMessage : 'bump version t... |
var annotated =
[
[ "DAction", "struct_d_action.html", "struct_d_action" ],
[ "DArena", "struct_d_arena.html", "struct_d_arena" ],
[ "DBattery", "struct_d_battery.html", "struct_d_battery" ],
[ "DCamera", "struct_d_camera.html", "struct_d_camera" ],
[ "DImage", "struct_d_image.html", "struct_d_image... |
/*
* Globalize Culture es-PR
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this f... |
import { hop } from '../constants'
/**
* Returns an object's own keys as an array of strings. It uses a for-in loop in the back in combination with hasOwnProperty.
* @param { object } obj
* @return { [string] }
*/
export function keys(obj) {
const objKeys = []
for (var key in obj) {
if (hop(obj, key)) {
... |
"use strict";
class Registration {
constructor(username, password, email) {
this.Username = username;
this.Password = password;
this.Email = email;
}
}
exports.Registration = Registration;
|
/* eslint-env node */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-control... |
/* */
var split = require('../index');
var test = require('tape');
test('split', function(t) {
t.deepEqual(split('a b c d', ' '), ['a', 'b', 'c', 'd'], 'basic use');
t.deepEqual(split('a b c d', ' ', 2), ['a', 'b'], 'with limit');
t.deepEqual(split('..word1 word2..', /([a-z]+)(\d+)/i), ['..', 'word', '1', ' ', '... |
var whoAmI = require('./whoAmI');
var config = require('../config');
var logData = require('./logData');
var logEvent = require('./logEvent');
var register = require('./register');
var getEvents = require('./getEvents');
var getDevice = require('./getDevice');
var getDevices = require('./getDevices');
var authDevice = ... |
/*jslint browser: true, devel: true, node: true, sloppy: true, plusplus: true*/
/*global require, cordova */
/*
The MIT License (MIT)
Copyright (c) 2015 Axel Napolitano, Napolitano Business Solutions - axel@napolitano.de
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software... |
// >>> WARNING THIS PAGE WAS AUTO-GENERATED - DO NOT EDIT!!! <<<
import QuestionPage from '../../question.page'
class VisitorAddressPage extends QuestionPage {
constructor() {
super('visitor-address')
}
setVisitorAddressAnswerBuilding(value) {
browser.setValue('[name="visitor-address-answer-building"]... |
let AccountsCategoriesTest = function () {
function AccountsCategoriesTest (client, testdata) {
this.client = client
this.testdata = testdata
}
/*
Testing for accounts_categories is more complex because accounts_categories must have
foreign references to accounts and categories.
1. Brainwipe
... |
var $ = require('jquery');
function Light(x, y, board, lit) {
this.board = board;
this.x = x;
this.y = y;
this.lit = lit || false;
this.hinted = false;
this.render().bindClick().appendTo(this.board.element);
}
Light.prototype.isLitJSON = function() {
return this.lit ? 1 : 0;
};
Light.prototype.render ... |
"use strict";
var useStrict = require("../helpers/use-strict");
var _ = require("lodash");
// Priority:
//
// - 0 We want this to be at the **very** bottom
// - 1 Default node position
// - 2 Priority over normal nodes
// - 3 We want this to be at the **very** top
exports.BlockStatement =
exports.Program... |
'use strict';
angular.module('myApp')
.controller('EventosController', ['$scope', '$timeout', 'wdkFunctions', function($scope, $timeout, wdkFunctions){
}]);
|
/* w2ui-fields.js 1.5.x (nightly), part of w2ui (c) http://w2ui.com, vitmalina@gmail.com */
var w2ui = w2ui || {};
var w2obj = w2obj || {}; // expose object to be able to overwrite default functions
/************************************************
* Library: Web 2.0 UI for jQuery
* - Following objects are defines... |
/**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#!/documentation/concepts/ORM
*/
module.exports.models = {
/******************************... |
/*jslint indent: 4, nomen: true */
/*global require, module, exports, process */
(function () {
'use strict';
var Path = require('path'),
utils = {
dirname: function (base, sep) {
if (arguments.length < 2) {
base = Path.normalize(base);
}... |
'use strict'
const api = require('../api')
const { logger, Maybe } = require('../utils')
const getProject = async projectSlugOrId => {
const project = await api.projects.find(projectSlugOrId)
if (!project.hasValue) {
logger.error(`Project '${projectSlugOrId}' not found`)
return Maybe.none()
}
const {... |
const plugin = () => {
return {
fieldLabel: field => {
if (!field.label) {
return field.key;
}
return field.label;
},
};
};
//CUT
console.info(plugin);
//CUT
|
(function(){
'use strict';
var app = angular.module('users');
app.component('changePasswordComponent', {
bindings: {},
templateUrl: 'modules/users/client/views/settings/change-password.client.view.html',
controller: changePasswordComponent
});
changePasswordComponent.$inject = ['$scope', '$http'... |
var sleep = require('sleep');
var gpio = require("gpio");
var intervalTimer;
buzzer = gpio.export(17, {
// When you export a pin, the default direction is out. This allows you to set
// the pin value to either LOW or HIGH (3.3V) from your program.
direction: 'out',
// set the time interval (ms) between ... |
(function() {
"use strict";
var AmCharts = window.AmCharts;
AmCharts.Cuboid = AmCharts.Class({
construct: function(container, width, height, dx, dy, colors, alpha, bwidth, bcolor, balpha, gradientRotation, cornerRadius, rotate, dashLength, pattern, topRadius, bcn) {
var _this = this;
... |
'use strict';
/**
* @ngdoc function
* @name wwwApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the wwwApp
*/
angular.module('myApp')
.controller('TreeCtrl', function () {
this.treeOptions = {
accept: function(sourceNodeScope, destNodesScope, destIndex) {
return true;
}
... |
/**
* Enemy Entity
*/
game.EnemyEntity = me.ObjectEntity.extend(
{
init: function (x, y, settings)
{
// define this here instead of tiled
settings.image = "wheelie_right";
settings.spritewidth = 32;
// call the parent constructor
this.parent(x, y , settings);
this.startX = x;
this.endX = x+se... |
'use strict';
var RSVP = require('rsvp');
module.exports = RefCollector;
function RefCollector(excludes) {
if (!(this instanceof RefCollector)) {
return new RefCollector(excludes);
}
this.excludes = excludes || [];
this.selector = null;
this.refAttr = null;
}
RefCollector.prototype.exclude = function(r... |
var helpers = require('./helpers'),
ProvidePlugin = require('webpack/lib/ProvidePlugin'),
DefinePlugin = require('webpack/lib/DefinePlugin');
const ENV = process.env.ENV = process.env.NODE_ENV = 'test';
module.exports = {
devtool: 'source-map',
resolve: {
extensions: ['', '.ts', '.js'],
... |
'use strict';
/* App Module */
var phonecatApp = angular.module('phonecatApp', [
'ngRoute',
'phonecatAnimations',
'phonecatControllers',
'phonecatFilters',
'phonecatServices'
]);
phonecatApp.config(['$routeProvider',
function($routeProvider){
$routeProvider.
when('/phones... |
$(function () {
var nextRowNum = 1
loadCCs()
$('body').on('change', '.college-select', function () {
clearRows()
loadYears(loadUnis)
nextRowNum = 1
})
$('body').on('change', '.year-select', function () {
clearRows()
loadUnis()
nextRowNum = 1
})
$('body').on('change', '.uni-selec... |
/*
Copyright (C) 2016 Adrien THIERRY
http://seraum.com
*/
module.exports = httpRouteEngine;
function httpRouteEngine()
{
var wf = WF();
this.code = function(req, res)
{
var route = wf.Router.match(req);
if(route && route.fn)
{
req.continue = false... |
var oo = (function(document){
'use strict';
var _serviceEndpoint = undefined;
var _apiKey = undefined;
var _defaultTimelineOptions = {};
var _defaultPieOptions = {};
var _defaultTableOptions = {};
var _defaultBarOptions = {};
var _defaultColumnOptions = {};
/*
* Binds OOcharts Objects to DOM Elemen... |
/* jshint maxlen:false */
var j = require("joi");
var package = require("./package.js").order;
var stakeholder = require("./stakeholder.js").order;
var version = require("../../package.json").version;
module.exports = j.object().keys({
platform: j.string().default("api"),
platform_version: j.string(),
module_ver... |
notifi = {
success: function (text) {
$.notify({
message: text
}, {
type: "success", timer: 4000, placement: {from: "top", align: "center"}
});
},
danger: function (text) {
$.notify({
message: text
}, {
type: "danger", ... |
version https://git-lfs.github.com/spec/v1
oid sha256:51dc8aab107d8f37e1bc87dbfc4913deb3b33519ee0bad8e1331629048b40bc7
size 8279
|
var express = require('express');
const Board = require('../models/Board');
const BoardSquare = require('../models/BoardSquare');
const Square = require('../models/Square');
var router = express.Router();
router.get('/', (req, res) => {
console.log('req.headers.email', req.headers.userID)
// if (!req.header.em... |
app.controller('searchController', ["$http", "$scope","$location","$rootScope", "Post","User", "login", function($http,$scope,$location,$rootScope, Post, User, login){
$scope.isCollapsed = true;
$scope.SearchError = false;
$scope.searchSubmit = function(){
if(login.user._id) {
var regExpSearchString = new Reg... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.add10 = exports.x = undefined;
exports.f = f;
exports.negiate = negiate;
var _String = require("fable-core/umd/String");
var _List = require("fable-core/umd/List");
var _Seq = require("fable-core/umd/Seq");
var _module = require... |
export default {
experiment: {
stage: '0',
experiment_id: '1',
custom_language: false,
language: false,
tags: [],
team: null,
links: [],
show_in: false,
funding: null
},
experiment_preview: {
stage: '0',
experiment_id:... |
var xtend = require('xtend')
var Prometheus = require('prometheus-client-js')
var HTTPMetrics = module.exports = function HTTPMetrics(client, opts) {
if (!(this instanceof HTTPMetrics)) {
return new HTTPMetrics(client, opts)
}
if (!(client instanceof Prometheus)) {
if (typeof client == 'object') {
... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2022 Mickael Jeanroy
*
* 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
... |
var assert = require('assert')
, options = require('./options')
, gbgcity = require('./../lib/gbgcity')(options);
function reportError(test, message) {
console.log(test + " : \033[22;31mERROR: " + message + "\x1B[0m");
}
function ok(test) {
console.log(test + " : \033[22;32mOK\x1B[0m");
}
function TestSui... |
var mongoose = require('mongoose');
var offerSchema = new mongoose.Schema({
provider: {type: String, default: ''},
heading: {type: String, default: ''},
description: {type: String, default: ''},
startDate: {type: Date, default: ''},
endDate: {type: Date, default: ''},
streetOne: {type: String, ... |
/**
* Created by jerry on 15/9/17.
*/
module.exports = {
current:'production.js'
}; |
VerticalBarChart = function (aGraphObject) {
//graphObject.valueColors = {
// type: "discrete",
// entries: [{ min: 0, max: 20, color: "#FF0000" }, { min: 20, max: 50, color: "#FE642E" }, { min: 50, max: 70, color: "#F7FE2E" }, { min: 70, max: 100, color: "#00FF00" }],
// //entries: [{ value: ... |
let createCalculator = require('../summator').createCalculator;
let expect = require('chai').expect;
describe('Calculator', () =>{
let calc;
beforeEach(() => {
calc = createCalculator();
});
it('Should return an object', () =>{
expect(typeof calc).to.equal('object');
});
it('It s... |
var WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');
// see this link for more info on what all of this means
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
module.exports = {
// when adding "js" extension to asset types
// and then enabling debug mode, it may cause a weir... |
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { BlurView as ExpoBlurView } from 'expo';
import styled from '@ui/styled';
const FilledBlurView = styled(StyleSheet.absoluteFill)(ExpoBlurView);
const BlurView = ({
intensity, tint, children, ...viewProps
}) => (
<View {...viewProp... |
export const isString = (val) => typeof val === 'string'
export const isObject = (val) => val && typeof val === 'object'
export const isFunction = (val) => typeof val === 'function'
export const isPromise = (val) => isObject(val) && isFunction(val.then)
|
/*
* Webpack Requires
*/
var webpack = require('webpack');
var fs = require('fs');
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
var path = require('path');
var env = require('yargs').argv.mode;
var SharedSettings = require('./../shared');
/*
* Webpack Variables
*/
/**
* The library name
* @type {string}... |
var express = require("express");
var router = express.Router();
var dbHelper = require("../helpers/dbHelper")
router.route("/")
.post(dbHelper.create)
.get(dbHelper.getAll)
router.route("/:id")
.put(dbHelper.update)
.delete(dbHelper.delete)
.get(dbHelper.get);
module.exports = router; |
$(function(){
}) |
/**
* We declare the collection just like meteor default way
* but changing Meteor.Collection to orion.collection.
*
* We can set options to that new collection, like which fields
* we will show in the index of the collection in the admin
*/
Categories = new orion.collection('categories', {
singularName: orio... |
var payoffDatabase = require('./payoffDatabase');
var storesManager = require('./storesManager');
var loginSession = require('./loginSession');
module.exports = {
add: function(req, data, callback) {
var anyError = chceckBasicErrors(data);
if(anyError) {
var messages = prepareErrorMess... |
// Test the rectangle element
var Title = Chart.registry.getPlugin('title')._element;
describe('Plugin.title', function() {
describe('auto', jasmine.fixture.specs('plugin.title'));
it('Should have the correct default config', function() {
expect(Chart.defaults.plugins.title).toEqual({
align: 'center',
... |
(function () {
'use strict';
angular
.module('courses.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider', '$urlRouterProvider'];
function routeConfig($stateProvider, $urlRouterProvider) {
$urlRouterProvider.rule(function ($injector, $location) {
... |
var gpio = require('onoff').Gpio;
var fs = require('fs');
var moment = require('moment');
var CronJob = require('cron').CronJob;
var input1 = new gpio(18, 'in', 'rising');
var input2 = new gpio(23, 'in', 'rising');
var input3 = new gpio(24, 'in', 'rising');
var led1 = new gpio(22, 'out');
var led2 = new gpio(27, 'out... |
const { description } = require('../../package');
const styles = require('@dicebear/collection');
const camelCaseToKebabCase = require('./utils/camelCaseToKebabCase');
const camelCaseToSpaceCase = require('./utils/camelCaseToSpaceCase');
const path = require('path');
module.exports = {
/**
* Ref:https://v1.vuepre... |
var KS = {};
/**
* 工具函数包
* @file
* @module KS.utils
* @since 1.0.0
*/
/**
* 封装的静态工具函数
* @module KS.utils
* @unfile
*/
var utils = KS.utils = {
/**
* 用给定的迭代器遍历对象
* @method each
* @param { Object } obj 需要遍历的对象
* @param { Function } iterator 迭代器, 该方法接受两个参数, 第一个参数是当前所处理的value, 第二个参数是当前遍历对... |
// Simple Set Clipboard System
// Author: Joseph Huckaby
var ZeroClipboard = {
version: "1.0.7",
clients: {}, // registered upload clients on page, indexed by id
moviePath: 'static/script/libs/ZeroClipboard.swf', // URL to movie
nextId: 1, // ID of next movie
$: function(thingy) {
// simple DOM lookup utili... |
var searchData=
[
['f',['F',['../ripemd160_8c.html#a96d73bbd7af15cb1fc38c3f4a3bd82e9',1,'ripemd160.c']]],
['f1',['f1',['../aes_8c.html#af26abb8c819fd3cf4d6cb0711c80b9ee',1,'aes.c']]],
['f2',['f2',['../aes_8c.html#a5cd67c8452696b8eebb34709acc71f36',1,'aes.c']]],
['f3',['f3',['../aes_8c.html#abae335fbd04dfd4dfea7... |
export function vert() {
return (
'precision highp float;' +
'precision highp int;' +
'uniform mat4 modelViewMatrix;' +
'uniform mat4 projectionMatrix;' +
'attribute vec3 position;' +
'varying vec3 vViewPosition;' +
'attribute vec3 color;' +
'varying vec3 vColor;' +
'void main()... |
import {
findTooltip,
findTooltipTarget,
getOppositeSide,
} from 'ember-tooltips/test-support/jquery';
/**
@method getPositionDifferences
@param String side The side the tooltip should be on relative to the target
Given a side, which represents the side of the target that
the tooltip should render, this method ... |
/**
* Module dependencies.
*/
var page = require('page');
var sidebar = require('sidebar');
var classes = require('classes');
var t = require('t');
var o = require('query');
var render = require('render');
var empty = require('empty');
var noLaws = require('./no-laws');
var bus = require('bus');
var log = require('d... |
var dir_a73ce79c6e07d884edc4fda711d4621f =
[
[ "fos.h", "_r___wrapper_2src__old_2_f_o_s_2fos_8h_source.html", null ],
[ "fos_imperative.h", "_r___wrapper_2src__old_2_f_o_s_2fos__imperative_8h_source.html", null ],
[ "perf_fos.h", "_r___wrapper_2src__old_2_f_o_s_2perf__fos_8h_source.html", null ],
[ "per... |
/**
* Created by Administrator on 2016/7/14.
*/
var mongoose = require("mongoose");
mongoose.connect("mongodb://localhost/wodertian"); //连接数据库
var db = {
Target:mongoose.model("Target",{
id:Number,
author:String,
target:String,
createTime:Date,
status:Number,
not... |
document.addEventListener("deviceready", function () {
var appReference = document.getElementById('app');
var rootScopeReference = angular.element(appReference).scope();
navigator.globalization.getPreferredLanguage(
function (language) {
if (language.value === 'português') {
... |
angular.module('flapperNews').factory('posts', ['$http',
function($http) {
var o = {
posts: []
};
o.getAll = function() {
return $http.get('/posts.json').success(function(data) {
angular.copy(data, o.posts);
});
};
o.cre... |
import { cloneDeep } from 'lodash';
import defaultOrder from './default-order';
const byColumns = ({
sortingColumns,
sortingOrder = defaultOrder,
selectedColumn = -1
}) => {
let newSortingColumns = {};
if (selectedColumn < 0) {
return sortingColumns;
}
if (!sortingColumns) {
return {
[sel... |
'use strict';
var should = require('should'),
parallel = require('mocha.parallel'),
nsmockup = require('../../../');
var base = __dirname + '/../../_input-files/record-data';
var validateCustomer = (customers, msg) => {
should(customers).have.length(1, msg);
let customer = customers[0];
should(cu... |
"use strict";
module.exports = {
input : {
tag : "a",
attrs : {
href : "#"
},
content : [
"\n ",
{
tag : "span",
attrs : {
class : "animals__cat",
style :... |
export default function sort(a) {
if (!a) {
return;
}
for (let i = 0; i < a.length - 1; i += 1) {
const j = smallest(a, i);
swap(a, i, j);
}
}
function smallest(a, start) {
let s = start;
for (let i = start + 1; i < a.length; i += 1) {
if (a[i] < a[s]) {
... |
'use strict';
export const _50_ = '#FAFAFA';
export const _100_ = '#F5F5F5';
export const _200_ = '#EEEEEE';
export const _300_ = '#E0E0E0';
export const _400_ = '#BDBDBD';
export const _500_ = '#9E9E9E';
export const _600_ = '#757575';
export const _700_ = '#616161';
export const _800_ = '#424242';
export const _900_... |
'use strict';
require('../bootstrap');
var Model = require('@hoist/model');
var Hapi = require('hapi');
var sinon = require('sinon');
var router = require('../../lib/routes');
var server = require('../../lib/server');
var expect = require('chai').expect;
var Bluebird = require('bluebird');
describe('BouncerServer', f... |
version https://git-lfs.github.com/spec/v1
oid sha256:0aada79e4710a341c4f633773a0b6a57555cf450ce75ca652b8caac3bf7e24b8
size 790
|
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.commons.RatingIndicator.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.