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 |
|---|---|---|---|---|---|
require(['jquery', 'xooie/shared', 'xooie/helpers', 'xooie/widgets/base'], function ($, Shared, helpers, Widget) {
'use strict';
describe('Xooie shared functionality', function () {
describe('When calling defineReadOnly...', function () {
it('puts the property into the definedProps array', function () {
... | JohnRiv/Xooie | spec/shared.spec.js | JavaScript | apache-2.0 | 6,268 |
(function ($) {
$.Redactor.opts.langs['pl'] = {
html: 'Źródło',
video: 'Wideo',
image: 'Obrazek',
table: 'Tabela',
link: 'Link',
link_insert: 'Wstaw link',
link_edit: 'Edytuj link',
unlink: 'Usuń link',
formatting: 'Style',
paragraph: 'Zwykły tekst',
quote: 'Cytat',
code:... | kironuniversity/main-website | plugins/rainlab/editable/assets/vendor/redactor/lang/pl.js | JavaScript | apache-2.0 | 2,247 |
/******************************************************************************
* *
* This file is part of RPB Chessboard, a WordPress plugin. *
* Copyright (C) 2013-2016 Yoann Le Montagner <yo35 -at- melix.net> *
... | szachylodz/szachylodz.www | wp-content/plugins/rpb-chessboard/js/quicktags.js | JavaScript | apache-2.0 | 2,773 |
async function onButtonClick() {
// Validate services UUID entered by user first.
let optionalServices = document.querySelector('#optionalServices').value
.split(/, ?/).map(s => s.startsWith('0x') ? parseInt(s) : s)
.filter(s => s && BluetoothUUID.getService);
try {
log('Requesting any Bluetooth Devi... | dmurph/samples | web-bluetooth/discover-services-and-characteristics-async-await.js | JavaScript | apache-2.0 | 1,797 |
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-2015, Egret Technology Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... | Cenfee/nucleon-egret | client/Nucleon/libs/core/egret/filters/BlurFilter.js | JavaScript | apache-2.0 | 2,299 |
/**
* @license
* Copyright 2015 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 requir... | jlhughes/foam | js/foam/u2/ElementParser.js | JavaScript | apache-2.0 | 12,971 |
//
// handles.js
//
// Created by David Rowe on 21 Jul 2017.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
/* global Handles:true */
Handles = function (side) {
// Draws... | RebeccaStankus/hifi-content | Marketplace/shapes/modules/handles.js | JavaScript | apache-2.0 | 13,429 |
var unioncl__ulong8 =
[
[ "CL_ALIGNED", "unioncl__ulong8.html#aec5a510785fe745a9e0f6676a5f77b4f", null ],
[ "CL_ALIGNED", "unioncl__ulong8.html#aec5a510785fe745a9e0f6676a5f77b4f", null ],
[ "CL_ALIGNED", "unioncl__ulong8.html#aec5a510785fe745a9e0f6676a5f77b4f", null ],
[ "hi", "unioncl__ulong8.html#a8be... | nagarabh/PatternTracker | PatternTracker/doxygen/html/unioncl__ulong8.js | JavaScript | apache-2.0 | 1,605 |
pygmy3_0.editStepAsJson = (function() {
function receiveMessage(response) {
if (response.message == 'edit-step-as-json-response') {
console.log('got a edit-step-as-json-response message');
console.log('json = ' + response.properties.json);
var showEditorHandler = docume... | davidroberts63/OctoPygmy | src/3.0/edit-step-as-json.js | JavaScript | apache-2.0 | 14,276 |
/**
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* 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/LICEN... | cloud3edu/code-dot-org-old | blockly-core/core/ui/block_space/block_space.js | JavaScript | apache-2.0 | 15,982 |
/**
Copyright (c) 2014 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.
**/
require("./base.js");
'use strict';
global.tr.exportTo('tr.b', function() {
var nextGUID = 1;
var GUID = {
allocate: function() {
retur... | googlearchive/node-big-rig | lib/third_party/tracing/base/guid.js | JavaScript | apache-2.0 | 446 |
//// [TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts]
module A {
export interface Point {
x: number;
y: number;
toCarth(): Point;
}
}
module A {
export interface Point {
fromCarth(): Point;
}
}
// ensure merges as expected
var p: { x: number; y: ... | DickvdBrink/TypeScript | tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js | JavaScript | apache-2.0 | 859 |
'use strict';
module.exports = {
client: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.css',
'public/lib/datatables.net-bs/css/dataTables.bootstrap.min.css',
'public/lib/chosen/chosen.css',
'public/lib/d... | careerfairsystems/kontaktsamtal | config/assets/default.js | JavaScript | apache-2.0 | 2,720 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
const CLASS_ROOT = CSSClassnames.CONTROL_ICON;
const COLOR_IN... | codeswan/grommet | src/js/components/icons/base/CirclePlay.js | JavaScript | apache-2.0 | 1,655 |
/**!
* koa-body-parser - index.js
* Copyright(c) 2014
* MIT Licensed
*
* Authors:
* dead_horse <dead_horse@qq.com> (http://deadhorse.me)
* fengmk2 <m@fengmk2.com> (http://fengmk2.com)
*/
'use strict';
/**
* Module dependencies.
*/
var parse = require('co-body');
var copy = require('copy-to');
/**
* @... | zhyuzh3d/jieminuo | node_modules/koa-bodyparser/index.js | JavaScript | apache-2.0 | 2,646 |
module.exports = {
"version": "1.2.0",
"timeStamp": 1411806194.395,
"count": 9,
"id": 2146,
"file": "/github/testola/point-text-transforms.psd",
"bounds": {
"top": 0,
"left": 0,
"bottom": 768,
"right": 1024
},
"selection": [
11
],
"resoluti... | adobe-research/svgObjectModelGenerator | tests/data/text-with-transform/skew-right-bottom-data.js | JavaScript | apache-2.0 | 73,522 |
(function() {
/* jshint node: true */
var
fs = require("fs"),
path = require("path"),
walker = require("walker"),
uglify = require("uglify-js"),
nopt = require("nopt"),
less = require("less");
var basename = path.basename(__filename),
w = console.log,
e = console.error,
opt;
// Shimming path.rel... | recurve/ares-ecosystem | node_modules/ares-webos-sdk/templates/bootplate-moonstone-2.3/enyo/tools/minifier/minify.js | JavaScript | apache-2.0 | 8,711 |
(function ($, appRoot) {
var API_BASE = appRoot + '/api/mkwvconf'
var $modal = $('#wvdial-modal')
var $countrySelect = $('#wvdial-country')
var $providerSelect = $('#wvdial-provider')
var $apnSelect = $('#wvdial-apn')
var $submitButton = $('#generate-wvdial-config')
function updateModalState () {
va... | ascoderu/opwen-webapp | opwen_email_client/webapp/static/js/settings.js | JavaScript | apache-2.0 | 2,831 |
// Copyright 2011 The Closure Library Authors. All Rights Reserved.
// Use of this source code is governed by the Apache License, Version 2.0.
goog.provide('goog.vec.QuaternionTest');
goog.setTestOnly('goog.vec.QuaternionTest');
goog.require('goog.testing.jsunit');
goog.require('goog.vec.Mat3');
goog.require('goog.ve... | teppeis/closure-library | closure/goog/vec/quaternion_test.js | JavaScript | apache-2.0 | 10,779 |
define(
({
routeUrl: "URL tuyến đường",
locatorUrl: "URL Trình mã hóa địa lý",
geocoderOptions: "Tùy chọn của trình mã hóa địa lý",
autoComplete: "Tự động hoàn tất",
maxLocations: "Vị trí tối đa",
minCharacters: "Ký tự tối đa",
searchDelay: "Trì hoãn tìm kiếm",
placeholder: "Trình gi... | cob222/CPG | widgets/Directions/setting/nls/vi/strings.js | JavaScript | apache-2.0 | 1,312 |
/*
The MIT License (MIT)
Copyright (c) 2015 Bryan Hughes <bryan@nebri.us>
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... | rcassin/impr2d | node_modules/raspi-led/dist/index.js | JavaScript | apache-2.0 | 2,585 |
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
export default Route.extend({
access: service(),
beforeModel(transition) {
transition.send('logout');
}
});
| westlywright/ui | app/logout/route.js | JavaScript | apache-2.0 | 214 |
export default function(distance) {
return function(name, coordinates) {
var min = 999999999;
var max = -999999999;
var distances = [];
coordinates.forEach(function(node) {
if (name == node.Node) {
var segment = node.Segment;
coordinates.forEach(function(other) {
if (no... | mhausenblas/burry.sh | vendor/github.com/hashicorp/consul/ui-v2/app/utils/tomography.js | JavaScript | apache-2.0 | 1,328 |
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | google/google-ctf | 2021/hackceler8/game 2/main.js | JavaScript | apache-2.0 | 4,124 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... | matedo1/pnc | ui/app/common/components/pnc-inline-notification/pncInlineNotification.js | JavaScript | apache-2.0 | 2,372 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/networkManagement2/lib/models/patchRouteFilterRule.js | JavaScript | apache-2.0 | 3,238 |
//// [comparisonOperatorWithSubtypeObjectOnProperty.ts]
class Base {
public a: string;
}
class Derived extends Base {
public b: string;
}
class A1 {
public a: Base;
public b: Base;
}
class B1 {
public a: Base;
public b: Derived;
}
class A2 {
private a;
}
class B2 extends A2 {
priva... | synaptek/TypeScript | tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js | JavaScript | apache-2.0 | 3,332 |
//
// brushScript.js
//
// created by Liv Erickson on 12/04/18
// Copyright 2018 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
(function () {
var COLOR_NAME = "Paint-Color";
this.collis... | RebeccaStankus/hifi-content | Marketplace/primitive-painting/brushScript.js | JavaScript | apache-2.0 | 968 |
define(
//begin v1.x content
{
"SZL_symbol": "E",
"USD_symbol": "US$"
}
//end v1.x content
); | abssi/poc-tijari | dojoLib/toolkit/dojo/dojo/cldr/nls/en-sz/currency.js | JavaScript | apache-2.0 | 95 |
import("crypto");
jimport("com.amazonaws.services.s3.model.CannedAccessControlList");
jimport("com.amazonaws.services.s3.model.GeneratePresignedUrlRequest");
jimport("org.apache.commons.codec.binary.Hex");
jimport("java.io.ByteArrayInputStream");
jimport("java.io.ByteArrayOutputStream");
S3 = null;
function _init()... | whackpad/whackpad | infrastructure/framework-src/modules/s3.js | JavaScript | apache-2.0 | 5,352 |
angular.module('backend-module.product', [])
.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('backend.product', {
url: '/product',
templateUrl: 'backend/product/product-module.html'
})
}
]);
| tchernobyl/APED-UI | app/backend/product/product.js | JavaScript | apache-2.0 | 273 |
sap.ui.define(['jquery.sap.global', './parentB/Component'],
function(jQuery, ComponentB) {
"use strict";
var Component = ComponentB.extend("sap.ui.test.inheritAsyncError.Component", {
metadata: {
manifest: "json"
}
});
return Component;
});
| SAP/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/Component.js | JavaScript | apache-2.0 | 263 |
'use strict';
var angular = require('camunda-commons-ui/vendor/angular'),
plugin = require('./action/cam-tasklist-shortcut-help-plugin');
var shortcutModule = angular.module('cam.tasklist.shortcuts', []);
/* action plugins */
shortcutModule.config(plugin);
module.exports = shortcutModule;
| xlinur/camunda-bpm-webapp | ui/tasklist/client/scripts/shortcuts/plugins/index.js | JavaScript | apache-2.0 | 298 |
var angular = require('angular');
angular.module('mage')
.component('navbar', require('./navbar.component'))
.component('pollingButton', require('./polling-button.component'))
.component('preferencesButton', require('./preferences-button.component'))
.component('exportButton', require('./export-button.componen... | ngageoint/mage-server | web-app/src/ng1/mage/navbar/index.js | JavaScript | apache-2.0 | 393 |
(function() {
function SongPlayer($rootScope, Fixtures) {
/**
* @desc instantiated SongPlayer object
* @type {Object}
*/
var SongPlayer = {};
/**
* @desc current album info
* @type {Object}
*/
var currentAlbum = Fixtur... | jayaram87/bloc-jams-angular | dist/scripts/services/SongPlayer.js | JavaScript | apache-2.0 | 4,901 |
var counties={"379":"新城区","380":"回民区","381":"玉泉区","382":"赛罕区","383":"土默特左旗","384":"托克托县","385":"和林格尔县","386":"清水河县","387":"武川县"} | zhuxlfansen/zhuxlpro | yzwx/WebRoot/static/js/region/county/377.js | JavaScript | apache-2.0 | 194 |
var a00368 =
[
[ "ParamsTrainingFeatureByName", "a00368.html#a12cc58bffc8cbb802685ce4cb25aff37", null ]
]; | stweil/tesseract-ocr.github.io | 4.0.0/a00368.js | JavaScript | apache-2.0 | 110 |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-battery-status/www/battery.js",
"id": "cordova-plugin-battery-status.battery",
"clobbers": [
"navigator.battery"
]
},
{
"file": ... | diloreto/mercury | platforms/android/platform_www/cordova_plugins.js | JavaScript | apache-2.0 | 14,749 |
var webdriver = require('selenium-webdriver');
var By = webdriver.By;
var SauceLabs = require("saucelabs");
var fs = require("fs");
var until = webdriver.until;
module.exports = {
failIfTrue: function(done, failMessage) {
return function(result) {
if(result) done(failMessage);
}
},
... | davidroberts63/OctoPygmy | spec/browser-tests/common-driver.js | JavaScript | apache-2.0 | 5,661 |
/**
* Copyright 2016 The AMP HTML Authors. 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 require... | yevheniiminin/amphtml | ads/fakead3p.js | JavaScript | apache-2.0 | 870 |
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
//import App from './Components/App';
import Nav from './Components/Nav';
export default class Realtime extends Component {
render() {
return (
<Nav />
);
}
}
AppRegistry.registerComponent('Realtime', () => Realtim... | GTXPRO/Reactnative | index.ios.js | JavaScript | apache-2.0 | 324 |
define(["storymaps/maptour/core/WebApplicationData", "esri/symbols/PictureMarkerSymbol"],
function(WebApplicationData, PictureMarkerSymbol){
var _myCanvas, _context, _icon, _icon2, _icon3;
/**
* MapTourHelper
* @class MapTourHelper
*
* Collection of helper functions specific to Map Tour
*/
... | Esri/map-tour-storytelling-template-js | MapTour/src/app/storymaps/maptour/core/MapTourHelper.js | JavaScript | apache-2.0 | 10,448 |
//// [separateCompilationPlainFile-CommonJS.ts]
declare function run(a: number): void;
run(1);
//// [separateCompilationPlainFile-CommonJS.js]
run(1);
| Raynos/TypeScript | tests/baselines/reference/separateCompilationPlainFile-CommonJS.js | JavaScript | apache-2.0 | 159 |
$(document).ready(function() {
$(".metric-table-time").each(function(i, cell) {
var tz = getTimeZone();
var cellObj = $(cell)
var currentTime = moment(cellObj.html())
var baselineTime = moment(cellObj.attr('title'))
cellObj.html(currentTime.tz(tz).format('YYYY-MM-DD HH:mm:ss ... | cocosli/pinot | thirdeye/thirdeye-dashboard/src/main/resources/assets/js/thirdeye.metric.table.js | JavaScript | apache-2.0 | 966 |
/**
* Created by Florin Chelaru ( florin [dot] chelaru [at] gmail [dot] com )
* Date: 7/20/2015
* Time: 11:06 AM
*/
goog.require('parallel.ThreadPool');
goog.exportSymbol('parallel.ThreadPool', parallel.ThreadPool);
goog.exportProperty(parallel.ThreadPool.prototype, 'queue', parallel.ThreadPool.prototype.queue);
... | florin-chelaru/javascript-threadpool | export/parallel/thread-pool.js | JavaScript | artistic-2.0 | 422 |
// Copyright (c) 2019, Compiler Explorer Authors
// 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,
// thi... | mattgodbolt/gcc-explorer | lib/compilers/ellcc.js | JavaScript | bsd-2-clause | 1,712 |
define(function (require) {
return function (ecModel) {
ecModel.eachSeriesByType('lines', function (seriesModel) {
var coordSys = seriesModel.coordinateSystem;
var lineData = seriesModel.getData();
// FIXME Use data dimensions ?
lineData.each(function (idx) ... | hexj/echarts | src/chart/lines/linesLayout.js | JavaScript | bsd-2-clause | 1,770 |
/**
* @module ol/style/Style
*/
/**
* Feature styles.
*
* If no style is defined, the following default style is used:
* ```js
* import {Fill, Stroke, Circle, Style} from 'ol/style';
*
* var fill = new Fill({
* color: 'rgba(255,255,255,0.4)'
* });
* var stroke = new Stroke({
* color: '#3399CC',
... | fredj/ol3 | src/ol/style/Style.js | JavaScript | bsd-2-clause | 13,919 |
// init Isotope
var $grid = $('.grid').isotope({
// masonry: {
// columnWidth: 25
// }
});
// bind filter button click
$('#filters').on( 'click', 'button', function() {
var filterValue = $( this ).attr('data-filter');
$grid.isotope({ filter: filterValue });
console.log($grid.isotope({ filter: filterVal... | teonlamont/teonlamont.github.io | assets/js/portfolio.js | JavaScript | bsd-3-clause | 628 |
(function(window) {
var panoptes = {};
// Extracts a data value from a class name on an object as a string, or
// null if no suitable class name could be found. Data value are
// contained in class names using a "class-name__data" pattern.
panoptes.dataFromClass = function(el, className) {
var data = null,... | cilcoberlin/panoptes | panoptes/media/panoptes/js/core/init.js | JavaScript | bsd-3-clause | 1,067 |
Ext.define('icc.model.idatabase.Plugin.System', {
extend : 'icc.model.common.Model',
fields : [ {
name : 'name',
type : 'string'
}, {
name : 'xtype',
type : 'string'
}, {
name : 'desc',
type : 'string'
} ]
}); | icatholic/icc | public/js/app/model/idatabase/Plugin/System.js | JavaScript | bsd-3-clause | 226 |
Type.registerNamespace("Sys.Extended.UI");
Sys.Extended.UI.TabCssTheme = function() { }
Sys.Extended.UI.TabCssTheme.prototype = {
None: 0,
XP: 1,
Plain: 2
}
Sys.Extended.UI.TabCssTheme.registerEnum("Sys.Extended.UI.TabCssTheme", true);
Sys.Extended.UI.TabStripPlacement = function() { }
Sys.Extended.UI.Tab... | DevExpress/AjaxControlToolkit | AjaxControlToolkit/Scripts/Tabs.js | JavaScript | bsd-3-clause | 36,679 |
jQuery(document).ready(function() {
$('#btn_minimize').mouseover(function() {
$('#btn_minimize').attr('src','/sites/all/themes/dustnetworks/images/btn_minimize_over.png');
});
$('#btn_minimize').mouseout(function() {
$('#btn_minimize').attr('src','/sites/all/themes/dustnetworks/images/btn_... | twatteyne/dustlink_academy | views/web/dustWeb/static/templates/dust/javascript/common.js | JavaScript | bsd-3-clause | 2,151 |
var g_next_async_call_id = 0;
var g_async_calls = {};
function AsyncCall(resolve, reject) {
this.resolve = resolve;
this.reject = reject;
}
function createPromise(msg) {
var promise = new Promise(function(resolve, reject) {
g_async_calls[g_next_async_call_id] = new AsyncCall(resolve, reject);
});
msg.as... | iewrer/xwalk_extension | out/Default/gen/admob/admob.js | JavaScript | bsd-3-clause | 2,196 |
/**
* 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... | kassens/react-native | packager/react-packager/src/Bundler/__tests__/Bundler-test.js | JavaScript | bsd-3-clause | 8,430 |
// Copyright (c) 2013 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.
import './strings.m.js';
import 'chrome://resources/js/action_link.js';
// <if expr="is_ios">
import 'chrome://resources/js/ios/web_ui.js';
// </if>
... | scheib/chromium | components/policy/resources/webui/policy_base.js | JavaScript | bsd-3-clause | 24,128 |
/**
* 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.
*
* The examp... | tarkus/react-native-appletv | Examples/UIExplorer/js/UIExplorerList.android.js | JavaScript | bsd-3-clause | 5,438 |
var quo = function(status) {
return {
get_status: function() {
return status;
}
};
};
// Make an instance of quo.
var myQuo = quo("amazed");
result = myQuo.get_status();
| ajlopez/AjScript | src/AjScript.Tests/Files/FunctionGetStatus.js | JavaScript | bsd-3-clause | 225 |
// Copyright (c) 2013 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.
// Return the portion of the element that should be made visible.
// Based on the WebDriver spec, this function only considers the first rectangle
// ... | scheib/chromium | chrome/test/chromedriver/js/get_element_region.js | JavaScript | bsd-3-clause | 5,919 |
var group__q7__to__x =
[
[ "arm_q7_to_float", "group__q7__to__x.html#ga656620f957b65512ed83db03fd455ec5", null ],
[ "arm_q7_to_q15", "group__q7__to__x.html#gabc02597fc3f01033daf43ec0547a2f78", null ],
[ "arm_q7_to_q31", "group__q7__to__x.html#gad8958cd3cb7f521466168b46a25b7908", null ]
]; | lpodkalicki/blog | stm32/STM32Cube_FW_F0_V1.9.0/Drivers/CMSIS/Documentation/DSP/html/group__q7__to__x.js | JavaScript | bsd-3-clause | 306 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
* @emails oncall+relay
*/
// flowlint ambiguous-object-type:error
'use strict';
const Schema = requi... | yungsters/relay | packages/relay-compiler/core/__tests__/Schema-test.js | JavaScript | bsd-3-clause | 44,179 |
'use strict';
import isPlainObject from 'lodash/lang/isPlainObject';
import mapValues from 'lodash/object/mapValues';
import isArrayLike from './isArrayLike';
import isIterable from './isIterable';
import isIterator from './isIterator';
import mapIterator from './mapIterator';
var nativeMap = Array.prototype.map;
/... | aureooms/JSNetworkX | src/_internals/mapSequence.js | JavaScript | bsd-3-clause | 1,263 |
import InputNode from '../core/InputNode.js';
class IntNode extends InputNode {
constructor( value = 0 ) {
super( 'int' );
this.value = value;
}
serialize( data ) {
super.serialize( data );
data.value = this.value;
}
deserialize( data ) {
super.serialize( data );
this.value = data.value;
... | mrdoob/three.js | examples/jsm/nodes/inputs/IntNode.js | JavaScript | mit | 387 |
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
};
| opennode/waldur-homeport | .prettierrc.js | JavaScript | mit | 114 |
define([
"../core",
"../css"
], function( jQuery ) {
function Tween( elem, options, prop, end, easing ) {
return new Tween.prototype.init( elem, options, prop, end, easing );
}
jQuery.Tween = Tween;
Tween.prototype = {
constructor: Tween,
init: function( elem, options, prop, end, easing, unit ) {
this.elem = e... | LockwoodSoftware/football | vendor/jquery/src/effects/Tween.js | JavaScript | mit | 3,225 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'es', {
alt: 'Texto Alternativo',
btnUpload: 'Enviar al Servidor',
captioned: 'Imagen subtitulada',
infoTab: 'Información de Imagen',
l... | Natetronn/wygwam-enhanced-image | themes/third_party/wygwam_enhanced_img/ckeditor-4.3/image2/lang/es.js | JavaScript | mit | 629 |
var http = require('http')
// make requests to the server
var request = module.exports = function request (o, cb ) {
if (!request.address) throw new Error('missing host/port');
return new Request;
}
function Request () {
this.host = request.address.address;
this.port = request.address.port;
this.path;
th... | aheckmann/connect-multipart-gridform | test/_request.js | JavaScript | mit | 1,269 |
var React = require('react');
var JobListing = React.createClass({
getInitialState: function() {
return null;
},
render: function() {
return (
<div className="job-item">
<div className="job-location">
<div className="loc-icon"><img className="loc-img" src="https://maps.google.com/mapfi... | cstaton/JobSpotter | client/views/jobView.js | JavaScript | mit | 1,249 |
var Board = require("../lib/board.js"),
events = require("events"),
util = require("util");
/**
* Sonar
* @constructor
*
* @param {Object} opts Options: pin (analog)
*/
function Sonar( opts ) {
if ( !(this instanceof Sonar) ) {
return new Sonar( opts );
}
var median, last, samples;
median... | third/Blink-LED | node_modules/johnny-five/lib/sonar.js | JavaScript | mit | 2,223 |
// @flow
const path = require('path');
module.exports = {
tests: path.resolve(__dirname, '../tmp/tests.js'),
testUrl: process.env.DOCKER_TEST_URL || 'http://10.200.10.1:3090',
storage: {
baseline: path.resolve(__dirname, 'regressions/screenshots'),
output: path.resolve(__dirname, '../tmp/output'),
},
... | cherniavskii/material-ui | test/vrtest.config.js | JavaScript | mit | 508 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Answer Schema
*/
var AnswerSchema = new Schema({
answer1: {
type: String,
default: '',
required: 'Please fill Answer 1',
trim: true
},
answer2: {
type: String,
default: '',
requ... | DivneetSethi/yosurvey | app/models/answer.server.model.js | JavaScript | mit | 774 |
/*!
* 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.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/Element','./library'],function(q,E,l){"use strict";var C=E.extend("sap.ui.unified.Cale... | marinho/german-articles | webapp/resources/sap/ui/unified/CalendarLegendItem.js | JavaScript | mit | 571 |
/* global assert, suite, test */
suite('a-mixin', function () {
suite('cacheAttributes', function () {
test('cache component attributes', function () {
var mixinEl = document.createElement('a-mixin');
mixinEl.setAttribute('material', 'color: red');
mixinEl.cacheAttributes();
asser... | MatthewShotton/aframe | tests/core/a-mixin.test.js | JavaScript | mit | 718 |
$(function(){
$("#show_area").click(function(){
$("#j_headercitylist").slideToggle();
});
$("#j_headercitylist").children("li").hover(function(){
//清空二级地区
$("#citylist").empty();
//鼠标移入样式
$(this).css({
"background":"#89ccf0",
"color":"#fff"
});
//获取当前子地区
var id=$(this).attr("id")
var data... | Broomspun/shanque | addons/ewei_shopv2/plugin/pc/template/web/static/js/jquery.flea_area.js | JavaScript | mit | 1,620 |
import 'dep'; | corneliusweig/rollup | test/function/samples/external-conflict/main.js | JavaScript | mit | 13 |
import React, { PropTypes } from 'react'
import { FloatingActionButton } from 'material-ui'
import { selectColor } from '../actions'
import PureComponent from 'react-pure-render/component'
import '../styles/ColorPicker.less'
// TODO: refactor ColorPicker
export default class ColorPicker extends PureComponent {
sta... | conundrumer/sim-seq | editor/components/ColorPicker.js | JavaScript | mit | 1,703 |
/**
* Function bind polyfill
* https://github.com/ariya/phantomjs/issues/10522
*/
if (!Function.prototype.bind) {
Function.prototype.bind = function (context /* ...args */) {
var fn = this;
var args = Array.prototype.slice.call(arguments, 1);
if (typeof(fn) !== "function") {
throw new TypeError... | MiguelCastillo/bit-loader | test/bind.js | JavaScript | mit | 514 |
/**
* Initialize the state for the It's A Trap script.
*/
(() => {
'use strict';
/**
* The ItsATrap state data.
* @typedef {object} ItsATrapState
* @property {object} noticedTraps
* The set of IDs for traps that have been noticed by passive perception.
* @property {string} theme
* ... | shdwjk/roll20-api-scripts | Its A Trap/3.5/ItsATrap.js | JavaScript | mit | 73,694 |
import * as angular from 'angular'
import * as angularMaterial from 'angular-material'
const raiz = "./componentes/portada/lista-tareas/"
const nombreComponente = 'filaTarea'
const nombreFichero = 'fila-tarea'
angular.module(nombreComponente, ['ngMaterial'])
.component(nombreComponente, {
templateUrl: `${raiz}$... | EscuelaIt/frontEdge | gtd-edge/componentes/portada/lista-tareas/fila-tarea/fila-tarea.js | JavaScript | mit | 426 |
import { rgba } from 'polished';
export const getLinkStyles = theme => ({
color: theme.color.control.base,
textShadow:
`0 0 ${theme.shadowLength}px ` +
rgba(theme.color.control.base, theme.alpha),
transition: `color ${theme.animTime}ms ease-out`,
textDecoration: 'none',
cursor: 'pointer',
'&:hover... | romelperez/arwes | packages/core/__deprecated__/Link/styles.js | JavaScript | mit | 431 |
version https://git-lfs.github.com/spec/v1
oid sha256:4227ea60d439f0000142654edfddbca6030cf1c07d460a347957446c22226705
size 2934
| yogeshsaroya/new-cdnjs | ajax/libs/codemirror/5.1.0/mode/forth/forth.min.js | JavaScript | mit | 129 |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-http-buffer-sanity.js | JavaScript | mit | 2,272 |
function render() {
return <div>
{/* child */}
</div>;
}
| jridgewell/babel-plugin-incremental-dom | test/fixtures/comment/child/actual.js | JavaScript | mit | 65 |
'use strict';
var fs = require('fs');
var path = require('path');
var deprecate = require('../utilities/deprecate');
var assign = require('lodash-node/modern/objects/assign');
function Addon(project) {
this.project = project;
}
Addon.__proto__ = require('./core-object');
Addon.prototype.constructor ... | hinsenchan/gearbox_web_app | node_modules/ember-cli/lib/models/addon.js | JavaScript | mit | 1,968 |
module.exports = function calcAtRulePatternPriority(pattern, node) {
// 0 — it pattern doesn't match
// 1 — pattern without `name` and `hasBlock`
// 10010 — pattern match `hasBlock`
// 10100 — pattern match `name`
// 20110 — pattern match `name` and `hasBlock`
// 21100 — patter match `name` and `parameter`
// 31... | hudochenkov/stylelint-order | rules/order/calcAtRulePatternPriority.js | JavaScript | mit | 1,682 |
// Legacy package export for non-esm environments
require('./_interopReexport')(module.exports, require('./lib/_exports/_internal'))
| sanity-io/sanity | packages/@sanity/schema/_internal.js | JavaScript | mit | 133 |
'use strict';
var should = require('chai').should();
var Node = require('../lib/node');
var chainData = require('./data/chain.json');
var Block = require('../lib/block');
var async = require('async');
var memdown = require('memdown');
describe('P2P Integration test', function() {
var node1;
var node2;
var node1... | studio666/chainlib | test/p2p.integration.js | JavaScript | mit | 6,607 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'eo', {
alt: 'Paĝavanco',
toolbar: 'Enmeti Paĝavancon por Presado'
});
| chiave/gamp | public_html/ckeditor/plugins/pagebreak/lang/eo.js | JavaScript | mit | 268 |
// steals the 3 things neded
if ( window.location.search.indexOf("DIST=1") > -1 ) {
steal("can/util/jquery/jquery.1.8.1.js").then("can/dist/edge/can.jquery.js");
} else {
steal(
'can/model',
'can/control/route',
'can/view/ejs'
).then(
'can/util/exports.js'
);
}
| roger-kang-mo/canjs | util/mvc.js | JavaScript | mit | 274 |
/* Dashicons Picker */
(function($) {
$.fn.dashiconsPicker = function( options ) {
var icons = [
"menu",
"site",
"gauge",
"admin-dashboard",
"admin-post",
"admin-media",
"admin-links",
"admin-page",
"admin-comments",
"admin-appearance",
"admin-plugins",
"admin-users",
"admin-... | jake-cooper/wpdfhfh | wp-content/plugins/WordPress-Admin-Style-master/js/dashicons-picker.js | JavaScript | mit | 5,473 |
/*!
* jQuery JavaScript Library v2.1.1 -dimensions,-effects,-effects/Tween,-effects/animatedSelector,-event-alias,-css/hiddenVisibleSelectors
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT licens... | michael829/jquery-builder | dist/2.1.1/jquery-dimensions-effects-event-alias-sizzle.js | JavaScript | mit | 171,653 |
/**
* Description : This is a test suite that tests an LRS endpoint based on the testing requirements document
* found at https://github.com/adlnet/xAPI_LRS_Test/blob/master/TestingRequirements.md
*
* https://github.com/adlnet/xAPI_LRS_Test/blob/master/TestingRequirements.md
*
*/
(function (module) {
"use str... | TryxAPI/lrs-conformance-tests | test/v1_0_3/configs/languages.js | JavaScript | mit | 6,079 |
// Javascripts here | menno/cloudfront_asset_host | test/app/public/javascripts/application.js | JavaScript | mit | 19 |
var gulp = require('gulp');
var concat = require('gulp-concat');
var minify = require('gulp-minify');
var insert = require('gulp-insert');
gulp.task('default', function() {
var src = [
'app/models/base.js',
'app/models/inflection.js',
'app/models/i18n.js',
'app/models/error.js',
'app/models/clas... | juniormesquitadandao/xktta | gulpfile.js | JavaScript | mit | 1,502 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'undo', 'lt', {
redo: 'Atstatyti',
undo: 'Atšaukti'
});
| chiave/gamp | public_html/ckeditor/plugins/undo/lang/lt.js | JavaScript | mit | 239 |
/*!
JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
<http://stuk.github.io/jszip-utils>
(c) 2014 Stuart Knightley, David Duponchel
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
*/
| ocadni/citychrone | node_modules/jszip-utils/lib/license_header.js | JavaScript | mit | 281 |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import formControlState ... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.33/legacy/NativeSelect/NativeSelect.js | JavaScript | mit | 3,991 |
//>>built
define("dojo/cldr/nls/ro/chinese",{"field-second":"secund\u0103","field-year-relative+-1":"Anul trecut","field-week":"s\u0103pt\u0103m\u00e2n\u0103","field-month-relative+-1":"Luna trecut\u0103","field-day-relative+-1":"ieri","months-format-narrow":"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),"field-day-relative+-... | joshuacoddingyou/php | public/scripts/dojo/cldr/nls/ro/chinese.js | JavaScript | gpl-2.0 | 1,257 |
//>>built
define("dojo/nls/pl/colors",{aliceblue:"bladoniebieski",antiquewhite:"biel antyczna",aqua:"morski",aquamarine:"akwamaryna",azure:"lazurowy",beige:"be\u017cowy",bisque:"cielistobe\u017cowy",black:"czarny",blanchedalmond:"obrany migda\u0142",blue:"niebieski",blueviolet:"b\u0142\u0119kitnofio\u0142kowy",brown:"b... | joshuacoddingyou/php | public/scripts/dojo/nls/pl/colors.js | JavaScript | gpl-2.0 | 4,371 |
/**
* Implements DrupalGap's template_info() hook.
*/
function easystreet3_info() {
try {
var theme = {
"name":"easystreet3",
"regions":{
"header":{
"attributes":{
"data-role":"header"
}
},
"navigation":{
"attributes":{
"d... | joroni/reis-and-irvys-mobile-app2.0 | themes/easystreet3/easystreet3.js | JavaScript | gpl-2.0 | 755 |