code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
//>>built
define("dojox/atom/widget/nls/bg/PeopleEditor",{add:"\u0414\u043e\u0431\u0430\u0432\u0438",addAuthor:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0430\u0432\u0442\u043e\u0440",addContributor:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0441\u044a\u0442\u0440\u0443\u0434\u043d\u0438\u043a"});
//# sourceMappingURL=People... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/atom/widget/nls/bg/PeopleEditor.js | JavaScript | apache-2.0 | 333 |
//carrythenews
//https://en.wikipedia.org/wiki/All_the_Young_Dudes
var Twitter = require('twitter');
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var port = process.env.PORT || 3000;
// Twitter client
var client = new Tw... | adjavaherian/carrythenews | index.js | JavaScript | apache-2.0 | 1,191 |
/**
* @license Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | wardpeet/lighthouse | lighthouse-core/audits/accessibility/video-description.js | JavaScript | apache-2.0 | 2,533 |
console.assert(false);
| csgordon/SJS | sjsc/src/test/resources/testinput/endtoend/consoleassert1.js | JavaScript | apache-2.0 | 23 |
var searchData=
[
['l',['L',['../group__sim.html#af7412e8311468eed8eb02dcdc4d239dd',1,'sim_uid_t']]],
['l_5fpos',['l_pos',['../group__SHELL.html#a9fba40e48bcf1d2c0e391311acce12c9',1,'shell_context_struct']]],
['lastcommand',['lastCommand',['../group__dspi__driver.html#a606dff7a7dd4d18f4be97656f0102d59',1,'_dspi_m... | scottdarch/Noer | FRDMK66NoEr/SDK_2.1_FRDM-K66F-GCC-Full/docs/Kinetis SDK API Reference Manual MK66F18_v2.1.0/search/variables_6c.js | JavaScript | apache-2.0 | 2,189 |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: 'c9cbd920-c00c-427c-852b-8aaf38badaeb',
name: 'Azure SDK Powershell Test',
... | msfcolombo/azure-xplat-cli | test/recordings/cli.storage.blob-tests/cli_storage_blob_copy_should_start_to_copy_the_blobs_snapshot_by_SAS_asynchronously.nock.js | JavaScript | apache-2.0 | 1,888 |
// slugify.js
(function($){
if (!window.calli) {
window.calli = {};
}
window.calli.slugify = function(label) {
if (!label)
return label;
if (label.lastIndexOf('\\') > 0) {
// IE file input
label = label.substring(label.lastIndexOf('\\') + 1);
}
var name = removeDiacritics(... | Thellmann/callimachus | webapp/scripts/slugify.js | JavaScript | apache-2.0 | 8,896 |
/******************************************************************************
* Copyright (c) 2016 Nicola Del Gobbo
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/l... | NickNaso/RESTfulError | test/restful-error.js | JavaScript | apache-2.0 | 1,135 |
$(function () {
$('#li_search').addClass("active");
$('#CPH_body_table_articles tr:gt(1)').hover(function () { $(this).addClass('activeRow') }, function () { $(this).removeClass('activeRow') });
$('#CPH_body_table_articles tr:gt(1)').click(function (data) {
var num = parseInt($(this).attr('id').... | nesterione/blog-asp-webforms | BlogProject/BlogProject/Scripts/scriptSearch.js | JavaScript | apache-2.0 | 445 |
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | MASmedios/pdf.js | web/pdf_history.js | JavaScript | apache-2.0 | 15,400 |
exports.extensionFor = (format, service) => {
if (format === 'mp3') {
return 'mp3'
} else if (format === 'ogg' || format === 'ogg_vorbis') {
return 'ogg'
} else if (format === 'pcm') {
return service === 'gcp' ? 'wav' : 'pcm'
}
throw new Error(`No known file extension for "${format}" format`)
}
| eheikes/aws-tts | packages/tts-cli/lib/file-extensions.js | JavaScript | apache-2.0 | 318 |
'use strict';
describe('Service: GameService', function () {
// load the service's module
beforeEach(module('labrpgApp'));
// defines a 4x4 board
beforeEach( function () {
var board = [
{ id: 1, state: 'placed',
card: { id: 1, shape: 'light', color: 'red', completed: false, reacha... | cfalguiere/LabRPG | WebApp/test/spec/services/gameservice.js | JavaScript | apache-2.0 | 3,725 |
(function() {
window.App.Views.Services = Backbone.View.extend({
initialize: function(params) {
this.render();
return this;
},
render: function() {
$(this.el).html(HAML.services(this));
$('#app').html(this.el);
$('nav#main-nav a').removeClass('active');
$('nav#main-nav a#services').addClass('ac... | svetli/tandem-auto.com | js/views/services.js | JavaScript | apache-2.0 | 937 |
var config = require('./config').getConfig(),
logger = require('./logger');
var mailer;
if(config.sendgrid.sendMail) {
mailer = require('sendgrid')(config.sendgrid.api_user, config.sendgrid.api_key);
}
exports.send = function(mail, cb) {
if(config.sendgrid.sendMail) {
mailer.send(mail, function(... | spaceshipsamurai/samurai-auth | server/config/mailer.js | JavaScript | apache-2.0 | 622 |
module.exports = function(config) {
config.set({
browsers: ['Firefox'],
frameworks: ['mocha', 'chai', 'fixture'],
files: [
'../dist/build-i28n.js',
'../test/integration/*.js',
'../test/fixtures/*.html',
],
preprocessors: {
'../test/**/*.html' : ['html2js'],
'../test... | zbraniecki/i28n | build/karma.conf.js | JavaScript | apache-2.0 | 636 |
'use strict';
var cache = {};
var loaders = [
{
test: /\.js$/,
loader: 'babel-loader'
},
{
test: /\.css$/,
loader: 'style-loader!css-loader'
}
];
var extensions = [
'', '.js', '.jsx', '.es6.js'
];
module.exports = [{
cache: cache,
module: {
loaders: loaders
},
entry: {
main: './src/Main.js',
},
... | daiyam/js-framework-benchmark | vanillajs/webpack.config.js | JavaScript | apache-2.0 | 487 |
/*
* Translated default messages for the jQuery validation plugin.
* Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
*/
(function ($) {
$.extend($.validator.messages, {
required: "必填信息",
remote: "请修正该信息",
email: "请输入正确格式的电子邮件",
url: "请输入合法的网址",
date: "请输入合法的日期",
dateISO: "请输入合法的日期 (ISO).",
number: "请输入合法的... | Honding/jfx | src/main/webapp/static/jquery-validation/1.11.0/jquery.validate.method.js | JavaScript | apache-2.0 | 7,170 |
/**
* Copyright 2013, 2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | emiloberg/node-red | public/red/ui/editor.js | JavaScript | apache-2.0 | 34,492 |
import React from 'react'
import Notifications from 'app/containers/profile/notifications'
import PasswordChange from './password_change'
import EditUser from 'app/components/settings/user/edit'
import Restricted from 'app/restricted'
import Flash from 'app/flash'
import rpc from 'app/rpc'
import {i18n} from 'app/utils... | serverboards/serverboards | frontend/app/js/components/profile/index.js | JavaScript | apache-2.0 | 6,026 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case
// - src/dstr-binding/default/let-stmt.template
/*---
description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (`let` statement)
esid: sec-let-and-const-dec... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/let/dstr-obj-ptrn-id-init-fn-name-cover.js | JavaScript | bsd-2-clause | 1,439 |
Ext.define('Devon.Data', {
singleton: true,
serializeNull: function(value) {
if (Ext.isNumeric(value)) {
return value;
}
return null;
}
});
| CoEValencia/chirr | demos/workspace/packages/local/devon-extjs/src/Data.js | JavaScript | bsd-2-clause | 190 |
var index = require('./')
var streamId = 0;
Object.keys(index).forEach(function(key) {
exports[key] = index[key];
})
exports.create = function(writer, options) {
var asyncStream = index.create.apply(index, arguments);
var state = {
bufferId: 0,
substreamId: 0
}
if(arguments.length... | ticolucci/dotfiles | atom/packages/atom-beautify/node_modules/async-writer/debug.js | JavaScript | bsd-2-clause | 4,478 |
/*---
includes: [compareArray.js]
flags: [async]
---*/
let stages = [];
var promise = new Promise(function(resolve, reject) {
stages.push('One');
reject('Oh no');
});
stages.push('Two');
promise.then(() => {stages.push('Three')})
.catch((v) => {stages.push(v)})
.then(() => assert.compareArray(stages, ['One'... | nginx/njs | test/js/promise_s10.t.js | JavaScript | bsd-2-clause | 393 |
(function() {
'use strict';
// NOTE: If updating this list of required modules, also update the same in crds-angular!
// TODO: Figure out a better way so we don't have to duplicate this in crds-angular
require('angular');
require('angular-resource');
require('angular-sanitize');
require('angular-messages... | crdschurch/crds-corejs | app/ang.js | JavaScript | bsd-2-clause | 961 |
var request = require('request')
, querystring = require('querystring')
, config = require('../config.js')
, package = require('./package.js')
module.exports = search
function search(params, cb) {
if (!params.q) {
return cb(null, { hits: { total : 0 }})
}
var page = parseInt(params.page || '0', 10);
va... | maxogden/npm-www | models/search.js | JavaScript | bsd-2-clause | 2,601 |
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';
export default Component.extend({
router: service(),
store: service(),
flashMessages: service(),
deleteAppearanceModal: false,
deleteAppearanceModalError: false,
deleteApp... | barberscore/barberscore-web | app/components/appearance-delete.js | JavaScript | bsd-2-clause | 804 |
var env = require('./src/environment');
var compiler = require('./src/compiler');
var parser = require('./src/parser');
var lexer = require('./src/lexer');
var loaders = require('./src/loaders');
module.exports = {};
module.exports.Environment = env.Environment;
module.exports.Template = env.Template;
if(loaders.Fil... | jlongster/octoshot | node_modules/nunjucks/index.js | JavaScript | bsd-2-clause | 562 |
/**
* Удаляет smallcaps из выделения, сохраняя всех его потомков.
*
* @author dew1983@mail.ru <Suvorov Andrey M.>
*/
Ext.define(
'FBEditor.editor.command.smallcaps.DeleteWrapperCommand',
{
extend: 'FBEditor.editor.command.AbstractDeleteWrapperCommand',
elementName: 'smallcaps'
... | Litres/FB3Editor | Frontend/app/editor/command/smallcaps/DeleteWrapperCommand.js | JavaScript | bsd-2-clause | 370 |
// ES5-metaobject v1 09.11.2013
// Like .forEach from js 1.6
if(!Array.prototype.each){
Array.prototype.each=function(e){
for(var i=0,len=this.length;i<len;i++) e(this[i],i);
}
}
// фильтрация элементов массива
if(!Array.prototype.filter){
Array.prototype.filter=function(e){
var r = [];
for(var i=0, len=th... | matraska23/expression | tables/js/es5-metaobject.js | JavaScript | bsd-2-clause | 7,516 |
describe("Class", function() {
describe("#extend", function() {
var Klass,
constructor,
method;
beforeEach(function() {
constructor = jasmine.createSpy(),
method = jasmine.createSpy();
Klass = L.Class.extend({
statics: {bla: 1},
includes: {mixin: true},
initiali... | igorshubovych/Leaflet | spec/suites/core/ClassSpec.js | JavaScript | bsd-2-clause | 2,741 |
var _ = require("underscore")
exports.TreeNode = function (depth) {
this.depth = depth || 0
this.children = []
this.options = {}
this.attributes = {}
}
_.extend(exports.TreeNode.prototype, {
add_child: function () {
var child_tree_node = new exports.TreeNode(this.depth + 1)
this.children.push(child_... | 46bit/metamorphic | lib/metamorphic/tree_node.js | JavaScript | bsd-2-clause | 365 |
/**
* Copyright (c) 2015-present, Alejandro Mantilla <@AlejoJamC>.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree or translated in the assets folder.
*/
var express = require('express');
var indexRouter = e... | AlejoJamC/dynamite | routes/index.js | JavaScript | bsd-3-clause | 3,924 |
/* jshint undef: true, unused: true */
/* global define, google: false */
define(['jquery','modules/mapStyles', 'velocity'], function($, MapStyles){
'use strict';
var Map = {
init: function() {
if ($('#map-block').length) {
this.createMap();
}
$('.js-map-toggle').click(function() {
if (!$('.chang... | wadadaaa/marta | marta/static/js/modules/map.js | JavaScript | bsd-3-clause | 1,769 |
exports.ExtractFromPages = ExtractFromPages;
exports.ExtractLists = ExtractLists;
exports.GetInnerText = GetInnerText;
exports.GetCleanInnerText = GetCleanInnerText;
exports.CleanText = CleanText;
exports.GetAttribute = GetAttribute;
exports.NoTransform = NoTransform;
var JsonQuery = require('./JsonQuery');
var htmlpar... | danpomerantz/buses | ExtractionLibrary.js | JavaScript | bsd-3-clause | 4,464 |
var page = require('webpage').create(),
system = require('system'),
t, address;
if (system.args.length === 1) {
console.log('Usage: loadspeed.js <some URL>');
phantom.exit();
} else {
t = Date.now();
address = system.args[1];
page.open(address, function (status) {
if (status !== 'su... | blorenz/phantomjs | examples/loadspeed.js | JavaScript | bsd-3-clause | 659 |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
/... | sampepose/jest | packages/jest-util/src/Console.js | JavaScript | bsd-3-clause | 1,824 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... | frantic/react-native | jest/setup.js | JavaScript | bsd-3-clause | 9,308 |
module.exports = require("./lib/hapi-auth-man"); | ubaltaci/hapi-auth-man | index.js | JavaScript | bsd-3-clause | 48 |
//表示用のステージを作成します
var stage = new Stage( 300, 300 );
//ステージをベースにレイヤーを作成し、windowにアタッチします
addLayer( new Layer( stage ) );
//Imageオブジェクトを生成します
var image = new Image();
//Imageオブジェクトに画像のソースURLを設定します
//このあたりはhtmlのimageと同じような概念となります
image.src = "assets/images/image.png";
//画像リソースは読み込みが完了しないと扱えないので
//onload... | sonicmoov/herlock-samples | touch/main.js | JavaScript | bsd-3-clause | 1,441 |
/* global SETTINGS:false */
import React from "react"
import R from "ramda"
import { Provider } from "react-redux"
import { assert } from "chai"
import { mount } from "enzyme"
import sinon from "sinon"
import { EditorView } from "prosemirror-view"
import EditPostForm from "./EditPostForm"
import Editor from "./Editor"... | mitodl/open-discussions | static/js/components/EditPostForm_test.js | JavaScript | bsd-3-clause | 3,233 |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const UserSchema = new Schema({
name: {
type: String,
required: true,
unique: true,
},
online: {
type: Boolean,
default: false,
},
creation_date: {
type: Date,
default: new Date(),
},
});
UserSchema.post('va... | involvestecnologia/business-chat-spike | backend/src/models/v1/user.js | JavaScript | bsd-3-clause | 477 |
'use strict';
/* global countScopes */
describe('tooltip', function() {
var bodyEl = $('body'), sandboxEl;
var $rootScope, $compile, $templateCache, $$rAF, $animate, $timeout, $httpBackend, $tooltip, scope;
beforeEach(module('ngSanitize'));
beforeEach(module('ngAnimate'));
beforeEach(module('ngAnimateMock'... | kiril-malyhin/To_Do_List-Currency_Exchange-REST-SOAP | vendor/bower/bower-asset/angular-strap/src/tooltip/test/tooltip.spec.js | JavaScript | bsd-3-clause | 53,805 |
(function() {
phantom.Fs = function() {
this.write = function(file, content, mode) {
native function write();
return write(file, content, mode);
};
this.read = function(file) {
native function read();
return read(file);
};
this.lastModified = function(file) {
nati... | KDAB/phantomjs-cef | modules/03-fs.js | JavaScript | bsd-3-clause | 1,556 |
/*! jQuery UI - v1.10.4 - 2015-08-02
* http://jqueryui.com
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional["pt-BR"]={closeText:"Fechar",prevText:"<Anterior",nextText:"Próximo>",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Ab... | janicevn79/zendbook | public/js/jquery-ui-1.10.4.custom/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pt-BR.min.js | JavaScript | bsd-3-clause | 869 |
var pkg = require('dylmomo');
| JacksonGL/NPM-Vuln-PoC | directory-traversal/dylmomo/test.js | JavaScript | bsd-3-clause | 30 |
'use strict';
function earcut(data, holeIndices, dim) {
dim = dim || 2;
var hasHoles = holeIndices && holeIndices.length,
outerLen = hasHoles ? holeIndices[0] * dim : data.length,
outerNode = linkedList(data, 0, outerLen, dim, true),
triangles = [];
if (!outerNode) return triangl... | huiyan-fe/mapv | src/webgl/draw/earcut.js | JavaScript | bsd-3-clause | 18,449 |
/** Based on https://github.com/OpenACalendar/OpenACalendar-Web-Core/blob/master/core/theme/default/js/index/createSite.js from http://ican.openacalendar.org/ **/
var hasUserEditedPublicId = false;
var titleObj;
var keyObj;
var titleAdminFunc = function() {
if (!hasUserEditedPublicId) {
slug = titleObj.va... | QuestionKey/QuestionKey-Core | src/QuestionKeyBundle/Resources/public/js/newTreeSlug.js | JavaScript | bsd-3-clause | 729 |
var conn;
if (document.location.hostname == "localhost" || document.location.hostname.indexOf('192.168') > -1) {
conn = new WebSocket('ws://' + document.domain + ':10666');
} else {
conn = new WebSocket('ws://' + document.domain + '/ws/');
}
var playNextOrLastGenre = function() {
if (queueList.children().... | ParalelniPolis/bitcoinJukebox | desktopQueue/www/js/websocket.js | JavaScript | bsd-3-clause | 973 |
/*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | greggman/hft-unity3d | src/hft/scripts/misc/timeout.js | JavaScript | bsd-3-clause | 5,954 |
/**
* This view is an example list of people.
*/
Ext.define('Vegi.view.main.MainToolbar', {
extend: 'Ext.tab.Panel',
alias: 'widget.mainmaintoolbar',
requires: [
'Vegi.view.main.MainToolbarViewModel',
'Vegi.view.main.MainToolbarViewController',
'Ext.tab.Panel',
'Ext.grid.Panel',
... | hwaqar44/vegi | public/vegi/classic/src/view/main/MainToolbar.js | JavaScript | bsd-3-clause | 1,068 |
// test dependencies that require transformation
let pluginsToTransform = [
'phovea_*',
'tdp_*',
'lineupjs'
].join('|');
if(pluginsToTransform.length > 0) {
/** Attention: Negative Lookahead! This regex adds the specified repos to a whitelist that holds plugins that are excluded from the transformIgnorePattern... | datavisyn/datavisyn-scatterplot | jest.config.js | JavaScript | bsd-3-clause | 1,418 |
describe("Metadata dialog", function() {
var cartodb_layer, vis, user;
beforeEach(function() {
vis = new cdb.admin.Visualization({
name: "test_table",
description: "Table description",
tags: ["jam","testing"],
privacy: "PUBLIC",
type: ... | comilla/map | lib/assets/test/spec/cartodb/table/header/metadata_dialog.spec.js | JavaScript | bsd-3-clause | 7,444 |
/**
* Created by Hendrik Strobelt (hendrik.strobelt.com) on 12/4/16.
*/
class LinePlot extends VComponent {
// Super class methods ----------------
static get events() {
return {
thresholdChanged: 'lineplot-thresholdChanged',
cellHovered: 'lineplot-cellhovered',
... | HendrikStrobelt/LSTMVis | client/js/vis/lineplot.js | JavaScript | bsd-3-clause | 8,675 |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... | cody/react | src/isomorphic/modern/class/__tests__/ReactES6Class-test.js | JavaScript | bsd-3-clause | 13,434 |
/**
* This is the top-level body page for the search UI.
*/
cinema.views.MetaDataSearchPage = Backbone.View.extend({
events: {
'click .c-search-page-next-results': 'handlePageNextResults'
},
initialize: function (settings) {
this.basePath = settings.basePath;
this.histogramModel =... | Kitware/cinema | web/src/js/lib/widgets/MetaDataSearchPage.js | JavaScript | bsd-3-clause | 6,750 |
describe('Parsing', function() {
describe('Replacement', function() {
beforeEach(function() {
foreigner.locale = 'en';
});
afterEach(function() {
foreigner.locale = '';
foreigner.translations = {};
});
it('should work when the string contains only an interpolation', function() ... | mirego/foreigner.js | test/parsing_spec.js | JavaScript | bsd-3-clause | 9,517 |
var recruitMgr=(function(config,functions){
/**
* 创建datatable
* @returns {*|jQuery}
*/
function createTable(){
var ownTable=$("#myTable").dataTable({
"bServerSide": true,
"sAjaxSource": config.ajaxUrls.recruitGetAll,
"bInfo":true,
"bProcess... | csboyty/markor-csr | backend/web/js/src/recruitMgr.js | JavaScript | bsd-3-clause | 5,093 |
/**
* Diamond Group
*/
import React from 'react'
export default class Diamond extends React.Component {
constructor() {
}
getWrapperStyle() {
let offsetFix = this.props.isOdd ? 0.5 : 0
if(!this.props.isFirst) {
if(this.props.isOdd) { offsetFix-- }
}
let rowFi... | elct9620/TLM-Website | app/components/Diamond.js | JavaScript | bsd-3-clause | 1,567 |
var RecordRenderer = function(path, name, editor, dialog_id, field_values){
this.path = path;
this.name = name;
this.editor = editor;
this.dialog_id = dialog_id;
this.field_values = field_values;
}
RecordRenderer.prototype.render = function(){
var text1 = {"id": "fieldcontain-text-1", "label": "Title", "va... | cobweb-eu/fieldtrip-authoring-tool | src/js/former/jquery.former.renderer.js | JavaScript | bsd-3-clause | 2,737 |
export {default as hypergraph} from "./src/hypergraph";
| AndreaSimeone/d3-hypergraph | index.js | JavaScript | bsd-3-clause | 56 |
describe("Service: updateFormValidity", function(){
var updateFieldValidity;
var updateFormValidity;
beforeEach(function(){
module('ngValidation');
});
beforeEach(inject(function(_updateFormValidity_){
updateFormValidity = _updateFormValidity_;
}));
it("sets form validity... | mightymoose/ng-validation | spec/formModificationSpec.js | JavaScript | bsd-3-clause | 1,173 |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... | xuorig/relay | scripts/babel-relay-plugin/src/GraphQL.js | JavaScript | bsd-3-clause | 1,519 |
/*---------------------------------------------------------------------------
Copyright 2012 Daniel C. Bünzli. All rights reserved.
Distributed under a BSD3 license.
---------------------------------------------------------------------------*/
/** Luigi main. */
var Luigi = function ()
{
var init = fals... | dbuenzli/remat | attic/luigi-base.js | JavaScript | bsd-3-clause | 1,026 |
var searchData=
[
['todo_20list',['Todo List',['../a00480.html',1,'']]]
];
| malcolmreynolds/GTSAM | doc/html/search/pages_74.js | JavaScript | bsd-3-clause | 77 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* ImageEditor is the top level object that holds together and connects
* everything needed for image editing.
* @param {Viewport} viewport The ... | zcbenz/cefode-chromium | chrome/browser/resources/file_manager/js/image_editor/image_editor.js | JavaScript | bsd-3-clause | 31,038 |
var Login = function () {
var handleLogin = function() {
$('.login-form').validate({
errorElement: 'span', //default input error message container
errorClass: 'help-block', // default input error message class
focusInvalid: false, // do not focus the last invalid input
... | hustshenl/yii2-metronic-lite | src/assets/admin/pages/scripts/login-4.js | JavaScript | bsd-3-clause | 8,458 |
define(['handsontable-full'],function(Handsontable){
window.Handsontable=Handsontable;
return Handsontable;
});
| flydreamzzh/report | backend/web/js/lib/handsontable/dist/defineHandsontable.js | JavaScript | bsd-3-clause | 120 |
'use strict';
var Wallpaper = function (options) {
this.id = options.id || 'wallpaper';
this.canvas = document.getElementById(this.id);
this.ctx = this.canvas.getContext('2d');
this.xPos = 0;
this.yPos = 0;
this.width = options.width || 450;
this.height = options.height || 450;
this.ctx.clearRect(0, 0... | ednapiranha/wallpaper | wallpaper.js | JavaScript | bsd-3-clause | 1,578 |
/*
* Copyright (c) 2011 Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License.
* See LICENSE file included with this code project for license terms.
*/
// Load modules
var Email = require('./email');
var Config = require('./config');
var Utils = require('./utils');
// Welcome pag... | dalmaer/postmile | web/misc.js | JavaScript | bsd-3-clause | 2,201 |
var go = {};
go;
var _ = require('lodash');
var moment = require('moment');
var vumigo = require('vumigo_v02');
var Q = require('q');
var Choice = vumigo.states.Choice;
var ChoiceState = vumigo.states.ChoiceState;
var HttpApi = vumigo.http.api.HttpApi;
var JsonApi = vumigo.http.api.JsonApi;
// override moment default... | praekelt/go-ndoh | go-app-servicerating.js | JavaScript | bsd-3-clause | 66,212 |
#!/usr/bin/env node
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
var fs = require('fs');
var path = require('path');
var spawn = require('child_process').spawn;
var CLI_MODULE_PATH = function() {
return path.resolve(
process.cwd(),
'node_modules',
'react-unity',
'cli-unity'
);... | pgavazzi/react-unity | react-unity-cli/index.js | JavaScript | bsd-3-clause | 2,469 |
require('sqlite3').verbose();
var fs = require('fs');
var MBTiles = require('..');
var tape = require('tape');
var non_existent = __dirname + '/fixtures/non_existent.mbtiles';
try { fs.unlinkSync(non_existent); } catch (err) {}
tape('Open with ro mode', function(assert) {
new MBTiles(non_existent + '?mode=ro', fu... | mapbox/node-mbtiles | test/mode.test.js | JavaScript | bsd-3-clause | 876 |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var sections = require('./constants').sections;
module.exports = selectTab;
/*
* Exported function that sets the given state to the given tabKey.
* If... | vanadium/browser | src/components/help/selectTab.js | JavaScript | bsd-3-clause | 766 |
var vows = require('vows'),
assert = require('assert'),
get = require('../src/get'),
getIn = require('../src/getIn'),
multiGet = require('../src/multiGet');
vows.describe('multiGet()').addBatch({
'Getting': {
topic: function() {
return {
foo: 1,
bar: 'baz',
baz: {bla... | pombredanne/sprout | test/multiGet-test.js | JavaScript | bsd-3-clause | 837 |
/**
* Runner of handlers
*/
const findElementWithHandler = elm => {
if (elm.getAttribute('data-handler')) {
return elm;
}
if (!elm.parentNode || elm.parentNode.nodeName === 'BODY') {
return false;
}
return findElementWithHandler(elm.parentNode);
};
export default handlers => {
if (!handlers) {
... | grrr-amsterdam/garp_scaffold | public/js/src/modules/handle.js | JavaScript | bsd-3-clause | 1,191 |
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports["default"] = invariant;function invariant(condition, message) {
if (!condition) {
throw new Error(message);}}module.exports = exports["default"]; | dmitriiabramov/esfmt | package/invariant.js | JavaScript | bsd-3-clause | 240 |
$(document).ready(function() {
cancelar = $("#cancelarV");
if(cancelar.exists()) {
cancelar.click(function() {
if(confirm('Al cancelar se perderan los cambios hechos en este formulario, desea continuar?')) {
document.location.href = $("#YIIbaseUrl").val() + "/curso/" + $("#curso_id").val();
}
});
}
... | fipasoft/scrum | app/themes/fipa/javascript/view/sesion.js | JavaScript | bsd-3-clause | 325 |
var validators = require('../validators');
var kwery = require('kwery');
var uniqueName = validators.uniqueName;
describe('Validators', function () {
var errors, sanitize;
beforeEach(function () {
errors = {};
sanitize = {};
});
describe('Valid', function () {
describe('Unique', function () {... | Enome/jungles | types/specs/validators.js | JavaScript | bsd-3-clause | 4,306 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 52 52","xmlns":"http://www.w3.org/2000/svg","path":{"d":"M50 10c0-2.2-1.8-4-4-4H6c-2.2 0-4 1.8-4 4v32c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V... | salesforce/design-system-react | icons/utility/tablet_landscape.js | JavaScript | bsd-3-clause | 485 |
function runTest() {
var Events = FBTest.FirebugWindow.FireDiff.events,
Firebug = FBTest.FirebugWindow.Firebug,
FBTrace = FBTest.FirebugWindow.FBTrace;
var cssPanel;
function setEditorValue(editor, value) {
var editorInput = editor.input;
editorInput.value = value;
Firebug.Editor.update(true)... | kpdecker/firediff | test/module/stylesEditorTest.js | JavaScript | bsd-3-clause | 7,473 |
(function () {
'use strict';
// iPad and iPod detection
var isiPad = function(){
return (navigator.platform.indexOf("iPad") != -1);
};
var isiPhone = function(){
return (
(navigator.platform.indexOf("iPhone") != -1) ||
(navigator.platform.indexOf("iPod")... | acelaya/blog | src/content/assets/js/main.js | JavaScript | bsd-3-clause | 3,937 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global', 'sap/ui/core/IconPool', 'sap/ui/core/theming/Parameters'],
function(jQuery, IconPool, Parameters... | dirga123/clr | openui5/sap/m/ListItemBaseRenderer-dbg.js | JavaScript | isc | 12,367 |
import assert from 'assert';
import metadata from '../../../lib/filter/metadata';
describe('filter/metadata metadata', () => {
it('should return true when a match is found', () => {
assert.equal(
metadata(
{
data: {
draft: true,
title: 'test',
},
... | yarnjs/yarn | test/unit/filter/metadata.spec.js | JavaScript | mit | 1,885 |
/* eslint no-unused-vars: 0, no-constant-condition: 0 */
import {Binding, createOverrideContext} from 'aurelia-binding';
import {Container} from 'aurelia-dependency-injection';
import {ShadowDOM} from './shadow-dom';
/**
* Represents a node in the view hierarchy.
*/
interface ViewNode {
/**
* Binds the node and it... | AshleyGrant/templating | src/view.js | JavaScript | mit | 7,895 |
Ext.define('SlateAdmin.store.progress.terms.Reports', {
extend: 'Slate.store.progress.SectionTermReports',
config: {
autoLoad: false,
autoSync: false,
remoteFilter: true
}
});
| SlateFoundation/slate-admin | sencha-workspace/SlateAdmin/app/store/progress/terms/Reports.js | JavaScript | mit | 214 |
angular
.module('app', [
'app.core',
'app.startup',
'app.web'
]);
| pyoung213/greenLight-starter | src/web/app/app.module.js | JavaScript | mit | 98 |
"use strict";
var helpers = require("../../helpers/helpers");
exports["Africa/Blantyre"] = {
"guess:by:offset" : helpers.makeTestGuess("Africa/Blantyre", { offset: true, expect: "Africa/Cairo" }),
"guess:by:abbr" : helpers.makeTestGuess("Africa/Blantyre", { abbr: true, expect: "Africa/Khartoum" }),
"1903" : hel... | moment/moment-timezone | tests/zones/africa/blantyre.js | JavaScript | mit | 486 |
/**
* @Date 2016-11-10
* @Author xfworld
* AmazeUI Upload 模版
* @param true:tableTemplate false:cardTemplate
*/
var AmazeuiUploadDelegateTemplate = function AmazeuiUploadDelegateTemplate(useDefTemplate) {
this.useDefTemplate = useDefTemplate;
}
AmazeuiUploadDelegateTemplate.prototype.init = function() {
if (... | cjbi/wetech-cms | wetech-web/src/main/webapp/resources/amazeui/assets/js/amazeui.upload.template2.js | JavaScript | mit | 7,531 |
Package.describe({
name: 'meteorhacks:meteorx',
summary: 'Proxy for getting another meteorx fork',
version: '1.4.1'
});
Package.onUse((api) => {
api.export('MeteorX');
api.use([
'lamhieu:meteorx',
]);
});
| wekan/wekan | packages/meteorx/package.js | JavaScript | mit | 223 |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _rule = require('../rule/');
var _rule2 = _interopRequireDefault(_rule);
/**
* Validates a function.
*
* @param rule The validati... | rekyyang/ArtificalLiverCloud | node_modules/rc-form-validation/node_modules/async-validator/lib/validator/method.js | JavaScript | mit | 1,116 |
import process from 'node:process';
import arrgv from 'arrgv';
export default function normalizeNodeArguments(fromConf = [], fromArgv = '') {
let parsedArgv = [];
if (fromArgv !== '') {
try {
parsedArgv = arrgv(fromArgv);
} catch {
throw new Error('Could not parse `--node-arguments` value. Make sure all s... | sindresorhus/ava | lib/node-arguments.js | JavaScript | mit | 446 |
import * as SuggestedFeedsActions from 'actions/SuggestedFeeds'
function SuggestedFeeds(state = [], action) {
switch (action.type) {
case SuggestedFeedsActions.LOAD:
if (action.response) return [...action.response]
return state
case SuggestedFeedsActions.FOLLOW:
case... | mlapierre/Winds | assets/js/reducers/SuggestedFeeds.js | JavaScript | mit | 535 |
'use strict';
describe('Service: RegionRepositoryService', function () {
// load the service's module
beforeEach(module('troutDashApp'));
// instantiate service
var RegionRepositoryService;
beforeEach(inject(function (_RegionRepositoryService_) {
RegionRepositoryService = _RegionRepositoryService_;
}... | standersnerdery/trout-dash_frontend | test/spec/services/regionrepositoryservice.js | JavaScript | mit | 428 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _trading = require('./trading');
Object.keys(_trading).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
ret... | EmmaIshta/QUANTAXIS | QUANTAXIS_Webkit/backend/methods/stock/lib/index.js | JavaScript | mit | 928 |
//>>built
define({insertEntity:"Masukkan Simbol"}); | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/dojox/editor/plugins/nls/id/InsertEntity.js | JavaScript | mit | 51 |
module.exports = {
toHex: function (chinese) {
var buf = new Buffer(chinese);
var result = '';
for (var i = 0; i < buf.length; i++) {
result += buf[i].toString(16);
}
return result;
},
toChinese: function (hex) {
if (typeof hex !== 'string') {
throw new Error('hex expect a string');
}
retur... | tsq-old/hex-chinese | index.js | JavaScript | mit | 363 |
// ToggleDiv
window.c.ToggleDiv = (function(m, h){
return {
toggler: function() {
return h.toggleProp('none', 'block');
},
controller: function(args) {
return {
vm: {
display: args.display
}
};
},
view: function(ctrl, args) {
return m('.toggleDiv... | rokibulhassan/catarse | vendor/assets/components/catarse.js/src/c/toggle-div.js | JavaScript | mit | 483 |
'use strict';
var path = require('path'),
upstreamParse5 = require('parse5'),
testUtils = require('../test_utils');
//HACK: https://github.com/bestiejs/benchmark.js/issues/51
/* global upstreamParser, workingCopy, micro, runMicro */
global.upstreamParser = new upstreamParse5.Parser();
global.workingCopy = req... | sakagg/parse5 | test/benchmark/bench-micro.js | JavaScript | mit | 1,560 |
/*
* Copyright 2016-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'underscore',
'backbone',
'find/app/page/search/filters/parametric/filtered-parametric-fields-colle... | hpe-idol/find | webapp/core/src/test/js/spec/app/page/search/filters/parametric/filtered-parametric-fields-collection.js | JavaScript | mit | 12,732 |
export default class Tweet {
constructor (tweet) {
this._id = tweet._id
this.embed_id = tweet.embed_id
this.type = 'Tweet'
}
}
| SentiSocial/frontend | src/types/tweet.js | JavaScript | mit | 143 |