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 |
|---|---|---|---|---|---|
// 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.
/**
* This view displays information on the proxy setup:
*
* - Shows the current proxy settings.
* - Has a button to reload these settings.
*... | codenote/chromium-test | chrome/browser/resources/net_internals/proxy_view.js | JavaScript | bsd-3-clause | 5,792 |
/*
@author Gilles Gerlinger
Copyright Nokia 2017. All rights reserved.
*/
import {Config} from './../config.js';
class B {
back = false;
set(component) {
this.component = component;
this.history = component.props.history;
this.pathname = component.props.location.pathname;
if (window.gtag && th... | nokia/LearningStore | web/src/components/back.js | JavaScript | bsd-3-clause | 575 |
const openfec = require('../index.js');
openfec.init(process.argv[2]);
openfec.committee.searchByName({q: 'Carney'})
.then((response) => {
for(result in response.results) {
console.log(response.results[result].name);
}
})
.catch((error) => {
console.log(error);
}
);
| mheadd/openfec | examples/search-committees.js | JavaScript | bsd-3-clause | 282 |
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IApplicationConstructor.js.map | web-dev-server/web-dev-server | build/lib/Applications/IApplicationConstructor.js | JavaScript | bsd-3-clause | 114 |
/* 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 100 100","xmlns":"http://www.w3.org/2000/svg","g":{"path":{"d":"M23.5 35h53c1.3 0 2.3-1.3 1.9-2.5-1.2-4.1-3-7.9-5.4-11.2-.7-1-2.1-1.1-2.9... | salesforce/design-system-react | icons/custom/custom73.js | JavaScript | bsd-3-clause | 598 |
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-yellow-green-4","name":"vega-yellow-green-4-1","rgb":[185,226,148]},{"group":"vega-yellow-green-4","name":"vega-yellow-gree... | netbek/chrys | illustrator/vega-yellow-green-4.js | JavaScript | bsd-3-clause | 13,965 |
import * as utils from 'base/utils';
import Class from 'base/class';
export default Class.extend({
init: function(context) {
this.context = context;
this.enabled = false;
this.dragRectangle = d3.behavior.drag();
this.zoomer = d3.behavior.zoom();
this.dragRectangl... | alliance-timur/vizabi | src/tools/bubblechart/bubblechart-panzoom.js | JavaScript | bsd-3-clause | 11,155 |
// Copyright (C) 2007-2013, GoodData(R) Corporation. All rights reserved.
/*eslint no-use-before-define: [2, "nofunc"]*/
import $ from 'jquery';
import * as config from './config';
import {
isPlainObject,
isFunction,
isArray,
merge,
result
} from 'lodash';
/**
* Ajax wrapper around GDC authenticat... | akloboucnik/gooddata-js | src/xhr.js | JavaScript | bsd-3-clause | 7,281 |
$(document).ready(function(){
$("div.nboutput div.output_area table").addClass("table");
$("div.nboutput div.output_area table").parent().addClass("table-wrapper");
});
| leliel12/scikit-criteria | doc/source/_static/js/skcriteria.js | JavaScript | bsd-3-clause | 179 |
'use strict';
jest.unmock('../sum');
describe('sum', () => {
it('adds 1 + 2 to equal 3', () => {
const sum = require('../sum');
expect(sum(1, 2)).toBe(3);
});
});
| yungsters/jest | examples/getting_started/__tests__/sum-test.js | JavaScript | bsd-3-clause | 177 |
/**
* The examples provided by Oculus are for non-commercial testing and
* evaluation purposes only.
*
* Oculus reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* F... | ichengde/react-vr | Examples/ModelSample/index.vr.js | JavaScript | bsd-3-clause | 3,656 |
/*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
-- Xinha (is not htmlArea) - http://xinha.gogo.co.nz/
--
-- Use of Xinha is granted by the terms of the htmlArea License (based on
-- BSD license) please read license.txt in this package for details.
--
-- Xin... | xinha/xinha-svn-mirror | modules/Gecko/Gecko.js | JavaScript | bsd-3-clause | 24,702 |
const ShareViewContent = require('builder/components/modals/publish/share/share-view');
const DashboardShareViewContent = ShareViewContent.extend({
_onSave: function () {},
saveACLPermissions: function () {
var permission = this._visDefinitionModel.getPermissionModel();
permission.overwriteAcl(this._share... | CartoDB/cartodb | lib/assets/javascripts/dashboard/views/dashboard/dialogs/share/share-view-content.js | JavaScript | bsd-3-clause | 505 |
/*** Translation ***/
LanguageDirectory="es-ES";
function getTxt(s)
{
switch(s)
{
case "Save":return "Guardar";
case "Preview":return "Vista Previa";
case "Full Screen":return "Pantalla Completa";
case "Search":return "Buscar";
case "Check Spelling":return "Ortografia";
case "Text Forma... | techvn/webstore | public/assets/backend/system/upload-file/editor/scripts/language/es-ES/editor_lang.js | JavaScript | bsd-3-clause | 5,017 |
/*
Created on : May 26, 2015, 11:42:49 PM
Author : Cornelius
*/
var application = application || {};
application.global = {
enableMenu: function() {
},
initialize: function() {
this.enableMenu();
console.info('Application was initialized');
}
};
$().ready(function() {
app... | Socratemus/utopia-dev | public/.assets/js/main.js | JavaScript | bsd-3-clause | 353 |
var $ = require('jquery-cdb-v3');
var _ = require('underscore-cdb-v3');
var cdb = require('cartodb.js-v3');
var PublicMapInfoView = require('../../../../javascripts/cartodb/public_map/public_map_info_static');
var vizdataJson = require('../../vizdata_sample.json');
var userdataJson = require('../../userdata_sample.json... | splashblot/dronedb | lib/assets/test/spec/cartodb/public_map/public_map_info_static_view.spec.js | JavaScript | bsd-3-clause | 5,733 |
/**
* Start any application specific calls to via ready to avoid
* boiler place throughout the core code.
*
* Params:
* event
*/
jQuery(document).ready(function(e) {
// prevent caching of ajax GET requests in IE
$.ajaxSetup({
cache: false
});
DO.Fire('app:ready', [], true);
});
| dnadesign/dna-recipe | theme-default/src/js/start.src.js | JavaScript | bsd-3-clause | 293 |
/**
* Copyright (c) 2008 Kelvin Luck (http://www.kelvinluck.com/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $Id: jquery.datePicker.js 18 2008-12-23 23:37:34Z kelvin.luck $
**/
(function($){
... | danenrich/d3_training | js/jquery.datePicker.js | JavaScript | bsd-3-clause | 37,422 |
'use strict';
module.exports = function (grunt) {
var regexp = /^[ \t]*\/\/[ \t]*(.*)$/;
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks
grunt.registerMultiTask('evilList', 'Your task description goes here.', function () {
var options = ... | cjolif/grunt-evil-list | tasks/evilList.js | JavaScript | bsd-3-clause | 1,848 |
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... | Tlapi/Noodle | public/ajaxplorer/plugins/gui.ajax/res/js/ajaxplorer/class.PreviewFactory.js | JavaScript | bsd-3-clause | 5,821 |
import { UICorePlugin, Events, Styler, template, version } from '@clappr/core'
import pluginStyle from './public/context_menu.scss'
import templateHtml from './public/context_menu.html'
export default class ContextMenuPlugin extends UICorePlugin {
get name() { return 'context_menu' }
get supportedVersion() { ret... | joaopaulovieira/clappr-context-menu-plugin | src/context_menu.js | JavaScript | bsd-3-clause | 7,271 |
/*
** Copyright (c) 2013 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify... | guorendong/iridium-browser-ubuntu | third_party/webgl/src/sdk/tests/conformance/resources/tex-image-and-sub-image-2d-with-svg-image.js | JavaScript | bsd-3-clause | 5,845 |
// This file was generated by silverstripe/cow from javascript/lang/src/et_EE.js.
// See https://github.com/tractorcow/cow for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defi... | robbyahn/silverstripe-userforms | client/lang/et_EE.js | JavaScript | bsd-3-clause | 1,207 |
/* See license.txt */
var scanJS = (function() {
function toJS(node) {
return node.toJS ? node.toJS() : node;
}
function ignoreValue(value, ignoreList) {
return value in ignoreList;
}
return function(input, i18nTokens) {
function examine_node(node) {
stack.unshif... | kpdecker/i18nScanner | i18nScannerJS.js | JavaScript | bsd-3-clause | 4,346 |
/**
* Created by bac_b on 27/08/2016.
*/
/**
*
* @param id
* @param status
* @param url
* @return Change status items
*/
function changeStatusItems(id, status, url)
{
var data = {id: id, status: status};
$.ajax({
url: url,
dataType: 'json',
type: 'POST',
data: data,
... | bactv/olympia_project | backend/web/themes/default/js/common.js | JavaScript | bsd-3-clause | 1,501 |
$(document).ready(function(){
var mgr=new Mgr(function createTable(){
var ownTable=$("#myTable").dataTable({
"bServerSide": true,
"sAjaxSource": config.ajaxUrls.postGetAll,
"bInfo":true,
"bProcessing":true,
"bLengthChange": false,
"bF... | csboyty/markor-csr | backend/web/js/src/trainMgr.js | JavaScript | bsd-3-clause | 2,833 |
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | acidvertigo/storespee | vendor/assets/javascripts/spree/backend/all.js | JavaScript | bsd-3-clause | 618 |
// Copyright (c) 2015 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.
/**
* @constructor
* @extends {WebInspector.SidebarPane}
* @implements {WebInspector.TargetManager.Observer}
*/
WebInspector.ServiceWorkersSidebar... | sgraham/nope | third_party/WebKit/Source/devtools/front_end/sources/ServiceWorkersSidebarPane.js | JavaScript | bsd-3-clause | 2,475 |
(function(){
module.exports = ['$rootScope', function($rootScope) {
return [
{ id: 10, name: "John Smith", thumb: "profile_8ball.jpg" },
{ id: 20, name: "Jane Smith", thumb: "profile_facepalm.jpg" },
{ id: 30, name: "Carol Fisher", thumb: "profile_hotel.jpg" },
{ id: 40, name: "Meggie Ford... | amyjumpingrobot/sftest | src/javascript/model/usersModel.js | JavaScript | bsd-3-clause | 380 |
var _continue = false;
function orgunitSelected( orgUnits, orgUnitNames )
{
var width = jQuery('#program').width();
jQuery('#program').width(width-30);
showById( "programLoader" );
disable('program');
hideById('addNewDiv');
setFieldValue("orgunitName", orgUnitNames[0]);
setFieldValue("orgunitId", o... | kakada/dhis2 | dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEvent.js | JavaScript | bsd-3-clause | 6,451 |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat : {
dist: {
src: ['EventEmitter.js', 'adapter.js', 'confku.js'],
dest: 'dist/confku.dist.js'
}
},
jshint: {
options: {
browser: true
},
all: ['rapat.js', 'confku.j... | iwanbk/confku | client/Gruntfile.js | JavaScript | bsd-3-clause | 797 |
import React from "react";
import { colours } from "@times-components/styleguide";
import Svg, { Path } from "@times-components/svgs";
import { clean } from "@times-components/utils";
import propTypes from "./prop-types";
const TheSTLogo = ({
fillColour,
height,
strokeColour,
title = "ST",
width
}) => (
<S... | newsuk/times-components | packages/icons/src/icons/thesundaytimes-logo.js | JavaScript | bsd-3-clause | 1,422 |
// Tree format definition
var TREE_FORMAT = [
// 0. left position
0,
// 1. top position
0,
// 2. show buttons ("+" and "-" images)
false,
// 3. button images: collapsed state, expanded state, blank image
['', '', 'images/blank.gif'],
// 4. size of buttons: width, height, indent amount for childle... | danenrich/d3_training | js/tree_format.js | JavaScript | bsd-3-clause | 1,754 |
'use strict';
var through2 = require('through2');
var error = require('../lib/error');
/**
* Infer a hierarchy of documentation from a stream of documentation
* comments, emitting a single nested object.
*
* ```
* Module
* Class
* Static methods
* Instance methods
* Events
* ```
*
* @name hierar... | sethvincent/documentation | streams/hierarchy.js | JavaScript | isc | 3,159 |
module.exports = {
// bad char table
bcTable : function ( p ) {
var m = p.length,
bc = ( m > 255 ) ? [] : new Buffer( 256 ),
i = 0,
blen = bc.length || m;
for ( ; i < blen; bc[ i++ ] = m );
for ( i = 0; i < m - 1; ++i ) {
bc[ p[ i ] ] = m -... | beni55/bop | bench/tables.js | JavaScript | mit | 1,843 |
module.exports = Em.Application.create({}); | nialdarbey/demo-repository-ui | app/app.js | JavaScript | mit | 43 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetTileAt = require('./GetTileAt');
/**
* Calculates interesting faces at the given tile coordinates of the specified layer. Interesting
... | TukekeSoft/phaser | src/tilemaps/components/CalculateFacesAt.js | JavaScript | mit | 2,100 |
// 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... | enclose-io/compiler | current/lib/_stream_duplex.js | JavaScript | mit | 3,643 |
import Ember from 'ember';
export default Ember.Controller.extend({
modalClass: '',
modalHeader: 'Update Account Details',
modalTemplate: 'modals/update-account',
store: Ember.inject.service(),
staticContext: {
account: false,
profile: true,
genders: [
{ label: 'Female', value: 'F' },
{ label: 'Male'... | ZenBlank/platform-base | website/app/controllers/account.js | JavaScript | mit | 649 |
/** @jsx h */
import h from '../../helpers/h'
export default function (state) {
return state
.change()
.delete()
.state
.change()
.undo()
.state
}
export const input = (
<state>
<document>
<paragraph>
<b>on<anchor />e</b><u>tw<focus />o</u>
</paragraph>
</docum... | AlbertHilb/slate | packages/slate/test/history/undo/delete-across-marks.js | JavaScript | mit | 367 |
let notAPIOptions = {
rps: 50,
protocol: 'http',
host: 'localhost',
port: 9000
};
export default notAPIOptions;
| interrupter/notFramework | src/api/options.js | JavaScript | mit | 117 |
const SourceMapGenerator = require('source-map').SourceMapGenerator;
/**
* Tracks line/column offsets of the file.
*/
function Offset() {
this.line = 0;
this.column = 0;
}
class Builder {
/**
* @param {Boolean} [options.generateSourceMap=false]
* @param {String} [options.sourceMapFilename]
... | borschik/borschik | lib/techs/js/builder.js | JavaScript | mit | 4,548 |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* openAUSIAS: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Java and jQuery
* openAUSIAS is distributed under the MIT License (MIT)
* Sources at https://github.com/raf... | juliomiguel1/redsocialclase | src/main/webapp/js/amistad/selection.js | JavaScript | mit | 7,254 |
;(function(undefined) {
'use strict';
/**
* artoo ui
* =========
*
* A handy utility to create shadow DOM interfaces on the fly.
*/
var _root = this;
// Persistent state
var COUNTER = 0,
INSTANCES = {};
// Main Class
artoo.ui = function(params) {
params = params || {};
var... | davidrenne/artoo_chrome_extension | src/methods/artoo.methods.ui.js | JavaScript | mit | 2,205 |
var components = {
"core": {
"meta": {
"path": "components/prism-core.js",
"option": "mandatory"
},
"core": "Core"
},
"themes": {
"meta": {
"path": "themes/{id}.css",
"link": "index.html?theme={id}",
"exclusive": true
},
"prism": {
"title": "Default",
"option": "default"
},
"pris... | andrewrota/css-and-polymer-presentation | bower_components/prism/components.js | JavaScript | mit | 3,843 |
"use strict";
var EnduranceLocationSamplingView = Backbone.View.extend({
initialize: function() {
_.bindAll(this, "render");
var self = this;
self.render();
},
template: JST['ooiui/static/js/partials/EnduranceLocationSampling.html'],
render: function() {
this.$el.html(this.template());
}
})... | dlangston/ooi-ui | ooiui/static/js/views/common/EnduranceLocationSamplingView.js | JavaScript | mit | 323 |
"use strict";
define([], function () {
function createSphericalTool(tool, sampleCount, zRatio, roundDistance) {
var radiusMM = tool.diameter / 2;
var samples = [];
var newRadius = radiusMM + roundDistance;
for (var i = 0; i < sampleCount; i++) {
var r = newRadius * i / (s... | Autodrop3d/autodrop3dServer | public/webgcode/webapp/cnc/cam/3D/toolProfile.js | JavaScript | mit | 2,985 |
/**
@module ember
@submodule ember-routing-htmlbars
*/
import { readArray, readHash } from "ember-metal/streams/utils";
import Ember from "ember-metal/core"; // assert
import merge from "ember-metal/merge";
/**
The `{{link-to}}` helper renders a link to the supplied
`routeName` passing an optionally supplied mode... | JesseQin/ember.js | packages/ember-routing-htmlbars/lib/keywords/link-to.js | JavaScript | mit | 8,309 |
import * as core from '../core';
/**
* @typedef FrameObject
* @type {object}
* @property {PIXI.Texture} texture - The {@link PIXI.Texture} of the frame
* @property {number} time - the duration of the frame in ms
*/
/**
* An AnimatedSprite is a simple way to display an animation depicted by a list of textures.
... | drkibitz/pixi.js | src/extras/AnimatedSprite.js | JavaScript | mit | 8,564 |
version https://git-lfs.github.com/spec/v1
oid sha256:87d5decca6f042a2992d0579af26aed0371b213c18f160d6f7c05a4ffa8b3bcb
size 1210
| yogeshsaroya/new-cdnjs | ajax/libs/mathjax/2.5.1/localization/nl/HTML-CSS.js | JavaScript | mit | 129 |
/*
Calendar JS
*/
var dateNow = new Date();
var currDay = dateNow.getDate();
var currMon = dateNow.getMonth();
var currYear = dateNow.getFullYear();
var cellDay = document.getElementsByTagName('td');
var listMon = document.getElementById("select-months");
var listYear = document.getElementById("select-years");
drawCa... | canhphong/canhphong.github.io | Javascript/FormAjax/js/calendar.js | JavaScript | mit | 2,486 |
import PropTypes from 'prop-types';
import React from 'react';
import { ColorPropType, ViewPropTypes, View } from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.... | lelandrichardson/react-native-maps | lib/components/MapCircle.js | JavaScript | mit | 4,066 |
Ext.provide('Phlexible.frontendmedia.configuration.FieldConfigurationFile');
Phlexible.frontendmedia.configuration.FieldConfigurationFile = Ext.extend(Ext.form.FieldSet, {
strings: Phlexible.frontendmedia.Strings,
title: Phlexible.frontendmedia.Strings.file,
iconCls: 'p-frontendmedia-field_file-icon',
... | phlexible/phlexible | src/Phlexible/Bundle/FrontendMediaBundle/Resources/scripts/configuration/FieldConfigurationFile.js | JavaScript | mit | 4,757 |
if (typeof Object.create !== 'function') {
//Douglas Crockford inheritance function
Object.create = function (obj) {
function F() { };
F.prototype = obj;
return new F();
};
}
(function ($, w, d, undefined) {
var NewsBox = {
init: function ( options, elem ) {
... | jinbaowang/CourseSelect | app/assets/javascripts/inform.js | JavaScript | mit | 9,204 |
// name: logger.js
// version: 0.1.1
// http://github.com/quirkey/node-logger
/*
Copyright (c) 2010 Aaron Quint
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 with... | patrick-michelberger/maygh-2.0 | Coordinator/logger.js | JavaScript | mit | 4,237 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8L19 4z" /></React.Fragment>
, 'PolymerOutlined');
| Kagami/material-ui | packages/material-ui-icons/src/PolymerOutlined.js | JavaScript | mit | 304 |
/// <reference path="../../../tools/typings/jasmine/jasmine.d.ts" />
/// <reference path="../../typings/jasmine-utils.d.ts" />
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ... | loedeman/AutoMapper | test/tests/js/automapper-createmap-specs.js | JavaScript | mit | 42,179 |
import ErrorAlert from '../index';
import { shallow } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import React from 'react';
describe('<ErrorAlert />', () => {
it('should render with default props', () => {
const errors = [
{ message: 'A bad, bad error has occured :(' },
{ message:... | udacityalumni/alumni-client | app/src/components/ErrorAlert/tests/index.test.js | JavaScript | mit | 521 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/PlayArrow.js | JavaScript | mit | 478 |
// ==UserScript==
// @name NewTabOverride.uc.js
// @author Kelo
// @charset UTF-8
// @include main
// ==/UserScript==
(function() {
Cu.import("resource:///modules/NewTabURL.jsm");
Cu.import("resource://gre/modules/Services.jsm");
var config = {
pref: "browser.newtab.url"
};
var NewTabOverride = {
... | ghKelo/userChromeJS | NewTabOverride/NewTabOverride.uc.js | JavaScript | mit | 1,537 |
(function(window, undefined) {
jQuery(document).ready(function($) {
(function bannerInit() {
var container = $(".banner-container");
container.delegate('a', 'click', function(event) {
var id = $(event.target).closest('.banner-item').data("id");
//windo... | blacider/bookSystem | public/js/index.js | JavaScript | mit | 2,522 |
class C1 {}
function f() {}
class C2 {
p;
}
class C3 {
p;
}
| babel/babel | packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/def-site-variance/output.js | JavaScript | mit | 67 |
define(["helper/OutputAudio", "Tone/instrument/Instrument", "helper/OutputAudioStereo", "Test", "helper/Offline", "helper/Meter"],
function (OutputAudio, Instrument, OutputAudioStereo, Test, Offline, Meter) {
return function(Constr, note){
context("Instrument Tests", function(){
it ("extends Tone.Instrument"... | lukephills/Tone.js | test/helper/InstrumentTests.js | JavaScript | mit | 1,876 |
/**
* Posterizes the image, i.e. restricts the color values to a set amount of levels.
*/
function PosterizeFilter(){
this.name = "Posterize";
this.defaultValues = {
levels : 6
};
this.valueRanges = {
levels : {min:2, max:30 }
};
if(!FilterUtils){
if(console){
console.error("Unable to find filterutils.... | JoelBesada/JSManipulate | script/separate filters/posterize.js | JavaScript | mit | 968 |
import {parseAndGetStatement} from '../../../utils';
import {expect} from 'chai';
describe('ClassDeclaration', () => {
it('should return correct type', () => {
expect(parseAndGetStatement('class X {}').type).to.equal('ClassDeclaration');
});
it('should accept superClass', () => {
let state... | cst/cst | test/lib/elements/types/ClassDeclaration.js | JavaScript | mit | 1,974 |
app.filter('headerInfo', function() {
return function(info) {
if (info.value !== true) {
return info.value + ' (' + info.type + ')';
} else {
return '(any value)';
}
};
}); | gampleman/praxis | lib/api_browser/app/js/filters/header_info.js | JavaScript | mit | 200 |
var gulp = require('gulp');
var rename = require("gulp-rename");
var plumber = require('gulp-plumber');
var uglify = require('gulp-uglify');
var complexity = require('gulp-complexity');
gulp.task('minify', function() {
return gulp.src('satellizer.js')
.pipe(plumber())
.pipe(uglify())
.pipe(rename('satell... | TechyTimo/CoderHunt | gulpfile.js | JavaScript | mit | 878 |
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'kue-ui-client',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
... | StreetHub/kue-ui | config/environment.js | JavaScript | mit | 1,427 |
module.exports = function lcg_value () { // eslint-disable-line camelcase
// discuss at: https://locutus.io/php/lcg_value/
// original by: Onno Marsman (https://twitter.com/onnomarsman)
// example 1: var $rnd = lcg_value()
// example 1: var $result = $rnd >= 0 && $rnd <= 1
// returns 1: true
return ... | kvz/phpjs | src/php/math/lcg_value.js | JavaScript | mit | 336 |
initSidebarItems({"fn":[["Bivariate",""]],"struct":[["Bivariate",""]]}); | ArcherSys/ArcherSys | Rust/share/doc/rust/html/rustc_typeck/middle/infer/bivariate/sidebar-items.js | JavaScript | mit | 72 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7.3 13.77L5.54 12l1.76-1.77-1.76-1.77L2 12l3.54 3.54zM15.54 18.46l-1.77-1.76L12 18.46l-1.77-1.76-1.77 1.76L12 22zM18.46 15.54L22 12l-3.54-3.54-... | allanalexandre/material-ui | packages/material-ui-icons/src/ControlCameraTwoTone.js | JavaScript | mit | 485 |
'use strict';
describe('Login Page', function() {
var page;
beforeEach(function() {
//browser.get('/');//Should redirect to login if security enabled
browser.get('/#/login');
page = require('./login.po');
});
it('should include login form with username/password', function() {
expect(page.u... | MayGo/grails-scaffold-angular | src/templates/scaffold/frontendAngular/static/e2e/login/login.spec.js | JavaScript | mit | 401 |
'use strict'
const Controller = require('trails/lib/Controller')
module.exports = class ViewController extends Controller{
helloWorld (req, res) {
res.render('index.pug', {
title: 'Test',
message: 'helloWorld'
})
}
}
| trailsjs/trailpack-express | test/api/controllers/ViewController.js | JavaScript | mit | 242 |
import { StyleSheet } from 'react-native';
import COLORS from '../../colors';
module.exports = StyleSheet.create({
header: {
height: 52,
backgroundColor: COLORS.PRIMARY,
elevation: 4,
},
});
| bryaneaton13/flash-verses | src/containers/HeaderHome/styles.android.js | JavaScript | mit | 209 |
export const BUY_ITEM = 'BUY_ITEM';
export const SELL_ITEM = 'SELL_ITEM';
| headwinds/bellwoods | constants/store_constants.js | JavaScript | mit | 74 |
import React from 'react';
import classNames from 'classnames';
import { connect } from '@cerebral/react';
import { state } from 'cerebral/tags';
import Button from '../../components/Button/Button';
import flexStyles from '../../styles/modules/flex.module.scss';
import containerStyles from '../../styles/modules/contain... | emakina-cee-oss/generator-emakinacee-react | packages/generator-emakinacee-react/generators/app/templates/static/src/containers/Home/Home.js | JavaScript | mit | 1,056 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M24 8.98C20.93 5.9 16.69 4 12 4S3.07 5.9 0 8.98L12 21v-9h8.99L24 8.98zM19.59 14l-2.09 2.09-.3-.3L15.41 14 14 15.41l1.79 1.79.3.3L14 19.59 15.41 21l2.09-2.08... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/SignalWifiConnectedNoInternet4Outlined.js | JavaScript | mit | 416 |
import React from 'react';
import ReplOutput from '../../common/ReplOutput';
export default class ReplOutputCljsVal extends React.Component {
constructor(props) {
super(props);
const type = this.props.token.type;
const parts = type.split(/[\s.]/);
this.type = parts[parts.length - 1];
}
render() ... | princejwesley/Mancy | src/components/clojurescript/ReplOutputCljsVal.js | JavaScript | mit | 858 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/ThirtyFpsTwoTone.js | JavaScript | mit | 692 |
import firebase from 'firebase';
// Initialize Firebase
const config = {
apiKey: 'AIzaSyD1RrSZga3qhleSUf9uiweZWkyK7zZspic',
authDomain: 'cmpd-explorers-christmas.firebaseapp.com',
databaseURL: 'https://cmpd-explorers-christmas.firebaseio.com',
projectId: 'cmpd-explorers-christmas',
storageBucket: 'cmpd-explo... | CodeForCharlotte/CMPD-Holiday-Gift | frontend/applications/nominations/src/lib/firebase.js | JavaScript | mit | 446 |
import { ref, watch, onMounted, onBeforeUnmount, markRaw } from 'vue'
import { useRouter } from 'vue-router'
import { apiTypeToComponentMap } from 'components/AppSearchResults'
import ResultEmpty from 'components/search-results/ResultEmpty'
import ResultError from 'components/search-results/ResultError'
let requestId... | rstoenescu/quasar-framework | docs/src/layouts/doc-layout/use-search.js | JavaScript | mit | 6,414 |
path = require('path');
var environment = process.env.NODE_ENV || 'development';
var config = {
development: {
appName: 'CodeCampApp Dev',
companyName: 'CodeCampApp LLC',
staticPath:"/static",
imagesPath:"/static/img/",
dataApi:{
path: '/api',
cur... | leanometry/codecamp | server/config.js | JavaScript | mit | 4,335 |
version https://git-lfs.github.com/spec/v1
oid sha256:e08b3c76a850fb95a248f9c9a27f5b2265020570c50d285132438806f2562e23
size 3895
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.8.5/window.js | JavaScript | mit | 129 |
var utils = require('../utils'),
math = require('../math'),
CONST = require('../const'),
EventEmitter = require('eventemitter3').EventEmitter;
/**
* The CanvasRenderer draws the scene and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL.
* Don't forget... | Nazariglez/perenquen | lib/pixi/src/core/renderers/SystemRenderer.js | JavaScript | mit | 6,746 |
var assert = require( "assert" ),
Sitecore = require('../Sitecore.js');
var dummyContent = "Lorem ipsum dolor sit amet, {{Name Of Image Goes Here}} consectetur adipiscing elit. At quicum ioca seria, ut dicitur, quicum arcana, quicum occulta omnia? Iubet igitur nos Pythius Apollo noscere nosmet ipsos. Duo Reges: c... | Hemstreet-Arrow/Sitecore-Importer | lib/test/test.js | JavaScript | mit | 2,790 |
/// <reference path="_references.js" />
$(function() {
$(document).on("click", ".btn-retrieve-list", function () {
var $self = $(this);
var url = $self.data("url");
$.get(url, function (data) {
$self.closest(".pagination-list-area").first().html(data);
});
});
... | Wabyon/Bloqs | src/Bloqs.WebApp/Scripts/bloqs.ui.js | JavaScript | mit | 2,890 |
import '/imports/both'
import './development'
import './methods'
import './publications'
import './docuss'
| focallocal/fl-maps | server/main.js | JavaScript | mit | 107 |
/* global describe:true, it:true */
'use strict';
// Constants:
import constants from '../constants';
// Utilities:
import _ from 'lodash';
import chai from 'chai';
import dirtyChai from 'dirty-chai';
import Promise from 'bluebird';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
// Test setup:
const ... | yemo/tractor | server/files/FeatureFile.spec.js | JavaScript | mit | 8,023 |
'use strict';
const Project = require('./fixtures/project');
const Overrides = require('../../lib/overrides');
function cmp(a, b) {
if (a == undefined || a < b) {
return -1;
} else if (b == undefined || a > b) {
return 1;
} else {
return 0;
}
}
function addonsInfoFor(project) {
if (!(project in... | sly7-7/ember.js | tests/node/overrides-test.js | JavaScript | mit | 24,448 |
var expect = require('chai').expect
var defaultSplitterConfig = require('../lib/tools/defaultSplitterConfig')
var Digester = require('../lib/Digester')
var Subject = require('../lib/Subject')
describe('Digester', () => {
var digester;
before(() => {
digester = new Digester({splitter: defaultSplitterCo... | thomn/fuzzystringmatch | tests/digester.test.js | JavaScript | mit | 908 |
var { isNone } = Ember;
| dockyard/ember-suave | tests/fixtures/rules/require-const-for-ember-properties/bad/destructuring-with-let.js | JavaScript | mit | 24 |
import express from 'express'
import {userCan} from 'src/common/util'
import {LGNotAuthorizedError, LGBadRequestError} from 'src/server/util/error'
import logger from 'src/server/util/logger'
const app = new express.Router()
app.get('/reports/:reportName', requestHandler)
export default app
const SENSITIVE_REPORTS... | ian-deans/echo | src/server/reports/index.js | JavaScript | mit | 1,312 |
import React, {Component} from 'react';
import AppNav from "./AppNav";
class AppHeader extends Component {
render() {
return (
<AppNav
user={this.props.user}
switchForm={this.props.switchForm}
loginForm={this.props.loginForm}
logou... | zrusev/SoftUni_2016 | 13. ReactJS Fundamentals - Feb 2019/03. Events and Forms/Fog-App/src/App/AppHeader.js | JavaScript | mit | 401 |
// @flow
import React from 'react';
import Radium from 'radium';
import type { FunctionComponent } from 'radium'
type Props1 = {
a: number,
b: string
};
const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div>
type Props2 = {
a: number,
b: string,
};
class C2 ext... | flowtype/flow-typed | definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js | JavaScript | mit | 1,582 |
var format = require('util').format;
var util = require('./util');
module.exports = function(opts) {
var _opts = opts || {};
it.each = function (iterator, title, fields, process) {
var invoke;
if (this._override) {
invoke = it[this._override];
} else {
invoke... | iwhitfield/it.each | lib/it.each.js | JavaScript | mit | 2,388 |
Package.describe({
// XXX We currently hard-code the "launch-screen" package in the
// build tool. If this package is in your app, we turn off the
// default splash screen loading behavior (this packages hides it
// explicitly). In the future, there should be a better interface
// between such packages and th... | mjmasn/meteor | packages/launch-screen/package.js | JavaScript | mit | 731 |
Ext.data.JsonP.Ext_Array({
"tagname": "class",
"name": "Ext.Array",
"doc": "<p>A set of useful static methods to deal with arrays; provide missing methods for older browsers.</p>\n",
"extends": null,
"mixins": [
],
"alternateClassNames": [
],
"xtype": null,
"author": "Jacky Nguyen <jacky@sencha.co... | flyboarder/AirOS_pre2.0 | web/extjs/4.0.1/docs/output/Ext.Array.js | JavaScript | mit | 31,346 |
(function($) {
var cultures = $.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["hy-AM"] = $.extend(true, {}, en, {
name: "hy-AM",
englishName: "Armenian (Armenia)",
nativeName: "Հայերեն (Հայաստան)",
language: "hy",
num... | Leandro-b-03/SmartBracelet | public/library/javascripts/jquery.GlobalMoneyInput/globinfo/jQuery.glob.hy-AM.js | JavaScript | mit | 1,867 |
var config = require('../jsconfig');
config.defaults(__dirname+'/config.default.js');
config.set('env', {
TEST: 'type',
PORT: ['http.port', parseInt],
});
config.set('ignore unknown', true);
config.set('opts', {
test: 'type',
});
config.cli({
port: ['http.port', ['p', "give me a port!", 'int']],
... | dodo/node-jsconfig | example/cli.js | JavaScript | mit | 482 |
version https://git-lfs.github.com/spec/v1
oid sha256:9420f221df5fb0e0217c3577e7ae0741d30c3c87eefcddb25c0b165c4063fe0c
size 14915
| yogeshsaroya/new-cdnjs | ajax/libs/ink/3.0.2/js/ink.tabs.js | JavaScript | mit | 130 |