blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
132
path
stringlengths
3
236
src_encoding
stringclasses
29 values
length_bytes
int64
8
7.94M
score
float64
2.52
5.72
int_score
int64
3
5
detected_licenses
listlengths
0
142
license_type
stringclasses
2 values
text
stringlengths
8
7.94M
download_success
bool
1 class
62d768234e509bd8c49bcadaf34e0bd3123c3fad
JavaScript
Jainnaumova/Test-Driven-Katas
/wrap.spec.js
UTF-8
557
2.75
3
[]
no_license
const { expect } = require("chai"); const wrap = require("./wrap"); describe("wrap", () => { it("Returns empty string if empty string was provided", () => { expect(wrap("", 10)).to.equal(""); }); it("Returns exact string if string length is less than maxLen", () => { expect(wrap("Lorem ipsum dolor", 20))...
true
10a0996e96f74aa2e135687e17a3c8703b66090a
JavaScript
carlaiau/flatten-the-curve
/processing/get-nz-advanced.js
UTF-8
10,848
2.796875
3
[]
no_license
const axios = require('axios'); const cheerio = require('cheerio'); const fs = require('fs') const _ = require('lodash') const { parse, format, parseISO } = require('date-fns') var addDays = require('date-fns/addDays') const differenceInCalendarDays = require('date-fns/differenceInCalendarDays') // Sometimes the MoH u...
true
f01a20788e4a3874125bae3dace1f15b5becf794
JavaScript
jurgeon018/snippets
/_react/_src(todo done)/addTodo.js
UTF-8
2,395
3.125
3
[]
no_license
import React, {Component, Fragment} from 'react' class App extends Component{ state = { todos:[ {id:1,title:'title1',completed:false}, {id:2,title:'title2',completed:false}, {id:3,title:'title3',completed:false} ] } addTodo = (title) => { const id = this.state.todos[this.state.t...
true
73dfe299b85f026b9d62f58bd23e733d9bb0f947
JavaScript
alantanlc/ntucourses
/frontend/src/components/course-detail-li/ExamLi.js
UTF-8
987
2.734375
3
[ "MIT" ]
permissive
import React from 'react'; import _ from 'lodash'; function renderExamDates(exams) { let result = _.orderBy(exams, ['semester'], ['asc']).map(exam => { return exam.date + ' ' + exam.day + ' ' + exam.time + ' ' + exam.duration + 'HRS (' + getSemesterDisplay(exam.semester) + ')' }) return result.join...
true
ae69a4dbdefdd2a95ddb0dc38f1859787e558d53
JavaScript
Gurjinder31/Favourite-Movies
/src/reducer/Reducer.js
UTF-8
1,265
3.265625
3
[]
no_license
export const initialState = { LikedMovies: [], }; // state of application and action is what you gonna do const reducer = (state, action) => { switch (action.type) { case "ADD_TO_LIST": return { ...state, // change LikedMovies with add action ...
true
5650c00753c76fd665c1d579eafcff413f20bc79
JavaScript
enfenry/library-manager
/app.js
UTF-8
1,224
2.890625
3
[]
no_license
const librarian = require('./scripts/librarian'); const admin = require('./scripts/admin/admin'); const borrower = require('./scripts/borrower'); const inquirer = require('inquirer'); const connection = require('./config').connection; connection.connect(function (err) { if (err) throw err; exports.connection =...
true
51fcc45e1623aaa5030c39ad1f13db688e60eba1
JavaScript
figuarnieri/senac-ssh
/source/js/lib/ibaro.icons.js
UTF-8
3,332
2.640625
3
[ "MIT" ]
permissive
class Icons { constructor(){ const url = [{ "family" : "FontAwesome", "name": "Font Awesome", "url": "/source/scss/lib/ibaro-icons/_font-awesome.scss", }, { "family" : "Material Icons", "name": "Material Icons", "url": "/source/...
true
73350ed478fc059c93a470d22f0dfed40090e32a
JavaScript
cmh1996/Nuxt-Portal
/util/util.js
UTF-8
1,874
3.09375
3
[]
no_license
//Unicode转中文汉字 export function decode(str){ str = str.replace(/(\\u)(\w{1,4})/gi,function($0){ return (String.fromCharCode(parseInt((escape($0).replace(/(%5Cu)(\w{1,4})/g,"$2")),16))); }); str = str.replace(/(&#x)(\w{1,4});/gi,function($0){ return String.fromCharCode(parseInt(escape($0)...
true
72423b14445de6a8f2772daf74607c52554ece21
JavaScript
utkarshgupta1309/password-strength-meter
/script.js
UTF-8
3,506
3.625
4
[]
no_license
const meter = document.getElementById("password-meter"); const passwordInput = document.getElementById("password-input"); const suggestions = document.getElementById("suggestions"); const randGenerator = document.getElementById("rand-generator-button"); passwordInput.addEventListener("input", () => updateStrengthMeter...
true
83ae5b306e82c7f015254e97bba264b51c09dc4b
JavaScript
phamand2/module-7-node-101
/3-large/baby-steps.js
UTF-8
133
3.265625
3
[]
no_license
let sum = 0 for (let count = 2; count < process.argv.length; count++) { sum += Number(process.argv[count]); } console.log(sum)
true
2b2769d8939fe66c4610f7924cfc54a0e0f392ea
JavaScript
christopherldo/teste
/js/maquina.js
UTF-8
625
3.375
3
[ "MIT" ]
permissive
function typeWriter(elemento) { const textoArray = elemento.innerHTML.split(''); elemento.innerHTML = ''; textoArray.forEach((letra, i) => { setTimeout(() => (elemento.innerHTML += letra), 75 * i); }); } const paragrafo = document.querySelector('p'); const link = document.querySelectorAll('a'); const lini...
true
1b3e5075bda165e4c821ea67b401191a70a3c808
JavaScript
rogeriobispo/javascriptbases
/src/0137-JavascriptTipFreezingPrototypObject.js
UTF-8
307
3.828125
4
[]
no_license
'use strict' var objProto = Object.freeze({ greet: function() { console.log(this.greeting + " World") } }) var obj = Object.create(objProto); obj.greeting = "Hello" obj.greet = function() { // greet is frozem and won't change console.log(this.greeting + " you") } obj.greet() console.log(obj)
true
63a61578a1890801f5c864c7fa28ac6b4598e1ec
JavaScript
niems/rain-or-shine
/src/components/LocationSearch.jsx
UTF-8
2,493
2.53125
3
[]
no_license
import React, { useState } from "react"; import PropTypes from "prop-types"; import Inputfield from "./Inputfield"; import useInput from "./hooks/useInput"; import LocationsList from "./LocationsList"; import { autoCompleteSearch } from "./getWeatherData"; function LocationSearch({ currentLocation, locationDispatch }...
true
a81e46361231060eb97f382262f6e483cc2fe214
JavaScript
pavelbely/budan
/services/DateUtils.js
UTF-8
673
2.9375
3
[]
no_license
"use strict"; const config = require('../config.json'); let moment = require('moment'); moment.locale(config.locale); let getFutureMonthName = function (months) { return moment().add(months, "months").format('MMMM') } module.exports.getNextPeriod = function (periodLengthInMonths) { if (periodLengthInMonths <= 1...
true
7cebcf2a046115eda9cab4492b0d8fb63ebe49a1
JavaScript
KoS57/react-prosto
/src/redux/auth-reduce.js
UTF-8
1,431
2.53125
3
[]
no_license
import { authAPI } from "../components/API/api"; import {stopSubmit} from 'redux-form' const SET_USER_DATA = 'SET_USER_DATA' let initialState = { id: null, email: null, login: null, isAuth: false } const authReduser = (state = initialState, action) => { switch (action.type) { case SET_USER_DATA: ...
true
9a9ebd2d135b3c57176bcfd2f8c296a5b4db936a
JavaScript
shaunzeng/algorithms
/src/leetcode/1676.LowestCommonAncestorOfABinaryTree4.js
UTF-8
692
3.34375
3
[]
no_license
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @param {TreeNode[]} nodes * @return {TreeNode} */ var lowestCommonAncestor = function(root, nodes) { let lca = nodes[0]; for (let i = 1...
true
3834d037da2cf3a4fd5002e642c5d4ce0e6e4dae
JavaScript
EmielZuurbier/kolksluis-solar
/src/js/classes/event/event-entry.js
UTF-8
1,908
3.390625
3
[ "MIT" ]
permissive
/** * @module ./classes/event/event-entry.js */ /** * EventEntry object constructor. * * @class */ export default class EventEntry { /** * @private */ #target = null; /** * @private */ #type = null; /** * @private */ #listener = null; /** * @private */ #options = false; /** * Se...
true
783454475289097f3a4884e9ac88e15b1ca27c9e
JavaScript
Collapsars/collection
/index04.js
UTF-8
3,013
2.53125
3
[]
no_license
import cheerio from 'cheerio'; import request from 'superagent'; import fs from 'fs'; import models from './models/index'; //获取首页的数据 const getData = async(str) => { let result = await request.get(str); return result.text; } let items = []; const handerData = async(value) => { try { const html = await getD...
true
3e497e839facb76d01ed4cebbf5358786b30029d
JavaScript
raghav3003/Simplilearn_phase4
/react_programs/src/LifeCycleExample.js
UTF-8
1,126
2.796875
3
[]
no_license
import React from 'react'; import ReactDOM from "react-dom"; class Music extends React.Component { constructor() { super(); this.state = { Instrument: "Guitar" }; } shouldComponentUpdate() { return true; } componentDidMount() { setTimeout (() => {this.setState({Ins...
true
14345b7f1c534a9c7d6402fd5cc4beff6616c6c4
JavaScript
dean8/tinyheart
/js/main.js
UTF-8
2,741
2.703125
3
[]
no_license
var canvas1,canvas2,ctx1,ctx2,cWidth,cHeight; var lastTime,deltaTime; var bgPic = new Image(); var ane,fruit,mom,baby; var mx,my; var babyTail = [],babyEye = [],babyBody = []; var momTail = [],momEye = [],momBodyOrag = [],momBodyBlue = []; var data; var wave,halo; var dust,dustPic = []; var coder; window.re...
true
7aeb5a41c3f9e8d71eabdde9b2588d4fd9eceb0a
JavaScript
ajmyers01/turtleshell
/app/assets/javascripts/initializer.js
UTF-8
1,661
2.671875
3
[ "Apache-2.0" ]
permissive
/** * Creates an object mapping specific body classes to init functions. * Since the initializer is not fired until the document is ready, * you can be assured that all JS files have been loaded. STRONGLY * RECOMMENDED that any new functionality that is added be added * inside this function due to the aforemention...
true
81fa62e7bcbb28a562f34cdc6ea9a9cc291d1521
JavaScript
zhgs08/Web
/src/components/AddComment.js
UTF-8
1,244
2.515625
3
[]
no_license
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import {Button, Input} from 'semantic-ui-react' class AddComment extends Component{ constructor(props){ super(props); this.state = { comment:{ id:'', username:'', ...
true
7829219f79b44bfb9d77df8e52192b7d33065e7f
JavaScript
RoniWeissman/CS_IA
/script.js
UTF-8
8,746
2.765625
3
[]
no_license
$(document).ready(function() { hideTables(); $('#zipButton').on('click', function () { hideTables(); var zipCode = $('#inputZip').val(); $.ajax({ url: "http://api.openweathermap.org/data/2.5/forecast?units=imperial&zip=" + zipCode + "&APPID=ae4a7ebbd730a901a8942dad8bf1beb5"...
true
a2b5151dba4694f64bb457f49eef0ad9374fc8ec
JavaScript
m15399/GameJamApril2020
/titanic.js
UTF-8
4,185
2.78125
3
[]
no_license
function createEnemyBullet(){ const b = new Bullet(); b.w = 10; b.h = b.w; b.v = 300; b.color = '#fea'; return b; } function createBlueBullet(){ const b = createEnemyBullet(); b.color = '#aef'; return b; } class Titanic extends Enemy { constructor(size){ super(); if (size == undefined){ size = 1; ...
true
a5d54802549c8201eefa2d664418816db5bf5dc1
JavaScript
SarahW11/BillionOysterProjectApp
/login.js
UTF-8
1,029
2.546875
3
[]
no_license
function Login(form) { var username=["user1","nithya","sarah","daniel","demetrius","robert", "evan"] var password=["password1","narayanan","weltz","spongebob","tillery", "strafford","strauss"] var page = "loggedinwithcss" + ".html"; if (form.username.value == username[0] && form.password.value == password[0] ...
true
3d71a92aaa949fca8601dfbffc8ac60a2aad4a46
JavaScript
AndresNunezG/markdown-editor
/src/data.js
UTF-8
621
2.90625
3
[]
no_license
export const initialContent = `# Title 1 ## Title 2 ### Title 3 **Bold** _Italic_ **_Bold & Italic_** ~~Cross line~~ [links](https://github.com/AndresNunezG) Inline code: \`for i in range(10):\` Multiline code: \`\`\`python def sum_five(num): return (num + 5) \`\`\` Tables First Column | Second Colu...
true
23ea3919f01342d329b8939fc121e5690c69ff0a
JavaScript
asumansuenbuel/rose-studio-templates
/july-demo/vendor/Fetch/version/0.13.0/src/errors/ClientError.js
UTF-8
1,783
2.90625
3
[]
no_license
'use strict'; /** * @copyright 2017 Fetch Robotics, Inc * @author Calvin Feng */ class ClientError { /** * Creates an instance of ClientError object * @constructor * @param {JSON} errorResponse The error response from API server */ constructor(errorResponse) { if (errorResponse) { ...
true
19ce070e51fa4d05c04bcdc5aeb34b121b5da602
JavaScript
nicholbs/Simple-social-media
/client/src/components/postElement.js
UTF-8
3,455
3.21875
3
[]
no_license
//LitElement for retrieving posts import { LitElement, html, css } from '/client/node_modules/lit-element/lit-element'; //Outdated, not in use!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //lit element forum-post is used instead of this element to showcase information about a post export class PostLitElement ex...
true
b7920e5c2519f28f9c7cdd4365e71133a35a4a8c
JavaScript
giraphcreative/thedenise.com
/js/src/scroll.js
UTF-8
1,772
2.640625
3
[]
no_license
var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); ...
true
cc1f30ccdbf2680a1e9645f510a70ccd2ebb3e51
JavaScript
gaopeng16/jsStudy
/gp.move.js
UTF-8
3,872
2.90625
3
[]
no_license
/** * 取的属性值 * @param obj 取值对象 * @param attr 属性 * @param value 为属性赋值的值 * @returns {*} */ function css(obj, attr, value) { if (arguments.length == 2) return parseFloat(obj.currentStyle ? obj.currentStyle[attr] : document.defaultView.getComputedStyle(obj, false)[attr]); else if (arguments.length ==...
true
20c256a57f2aa07ba601343f9460becc3a9e259b
JavaScript
thiengat1/react-demo-todo-list
/src/App.js
UTF-8
2,044
2.6875
3
[]
no_license
import React, { Component } from 'react'; import logo from './logo.svg'; import tick from './image/tickImg.svg'; import './App.css'; import TodoItem from './components/TodoItem'; class App extends Component{ constructor() { super(); this.state= { newItem:'', TodoItemArr:[ {title:'mu...
true
63d7e545a726db44b4ddbb1ccfedc758eba2ead7
JavaScript
wuxiao1021/houcai
/js/index.js
UTF-8
2,460
2.5625
3
[]
no_license
$(document).ready(function (){ // 导航条 $(".nav-title>li").mouseenter(function (){ if ($(this).index() != 0) { $(".menu_pic1").hide(300).eq($(this).index()-1).show(300); }else{ $(".menu_pic1").hide(300); } }); $(".nav-title>li").mouseleave(function (){ $(".menu_pic1").hide(300); }); }) // 轮播图 // 获取变量...
true
80ca46c89abe04420b7ca1a088153e46e2536ae2
JavaScript
chad-schroeder/jobly
/models/job.js
UTF-8
2,828
2.65625
3
[]
no_license
const db = require('../db'); const sqlForPartialUpdate = require('../helpers/partialUpdate'); class Job { static async getAll(search, minSalary, minEquity) { let query = `SELECT title, company_handle FROM jobs `; let queryArr = []; let builtQueryArr = []; let counter = 1; if (search || minSalary...
true
2dd1239eb31e65e14304a90e8194ea646b488161
JavaScript
alexscribner/Team-Index
/apiProject.js
UTF-8
3,212
3.03125
3
[]
no_license
const baseURL= "https://www.thesportsdb.com/api/v1/json/4012946/searchteams.php"; let url; const searchTeam= document.getElementById("searchTeam"); const list= document.querySelector(".list"); const search= document.querySelector("form"); const header= document.querySelector("nav"); header.style.diplay= "none"; sear...
true
11cec111fc0b0262711fb491368b0e78b0dfc9e4
JavaScript
MarcoLoPinto/registro-elettronico
/src/macrocomponents/TimelineAsync/TimelineAsync.js
UTF-8
1,545
2.828125
3
[ "MIT" ]
permissive
import React from "react"; import Timeline, {TimelineElement} from "../../components/Timeline/Timeline"; //import { getTimelineCircolari, getTimelineProfiloStudente} from "../../tools/api"; //props.fetchData -> funzione da invocare (promise) per ottenere determinati dati class TimelineAsync extends React.Component{ ...
true
b7d5179783ffff05a20d0a03c2a71c32a2f76f67
JavaScript
luoxue-victor/react-tools
/src/pages/Refs.js
UTF-8
734
2.828125
3
[]
no_license
import React from 'react'; class ClassCom extends React.Component { render() { return <button className="ClassCom"> {this.props.children} </button> } } const FancyButton = React.forwardRef((props, ref) => ( <button ref={ref} className="FancyButton"> {props.children} </button> )); export def...
true
08ffe301560f126e934443aa16095ff8d191bc46
JavaScript
elitecolors/react_projet
/midlware/auth.js
UTF-8
646
2.5625
3
[]
no_license
const jwt = require ('jsonwebtoken'); const config = require ('config'); module.exports = function(req,res,next){ // Get tocken from header const tocken = req.header('x-auth-token'); // Check if no tocken if(!tocken){ return res.status(401).json({ msg: 'No token, authorisation d...
true
2ad167fd014ac4ec86d42fc0c197fecd8d9eaedc
JavaScript
hyttijan/FreeSound
/freesound-frontend/src/components/CollectionForm.js
UTF-8
3,868
2.640625
3
[]
no_license
import React from 'react'; import {initAllGenresAction} from '../reducers/GenreReducer' import {addCollectionAction} from '../reducers/CollectionReducer' import {Form,Segment,Select, Message,Button,TextArea} from 'semantic-ui-react' import { connect } from 'react-redux' class CollectionForm extends React.Component{ c...
true
ebb3cedd2732c8e0d39431a700056a6bd2a5d51f
JavaScript
wither7007/wither7007.github.io
/AdvancedVideoSearch/github.js
UTF-8
926
3.09375
3
[]
no_license
gitSite = "https://api.github.com/users/wither7007/repos" url3="http://jsonplaceholder.typicode.com/todos/3" xy = {} aob={} axios.get(gitSite) .then(function (response) { xy = response.data fillTest(xy) }) // Object.fromEntries(Object.entries(xy[1]).filter(([key]) => key.includes('Name'...
true
510863bf19aa0e3456d1ed2984d89c2789403d53
JavaScript
fasj90/process-soat
/test/src/controller.test.js
UTF-8
1,602
2.5625
3
[]
no_license
const chai = require('chai'); const { assert } = chai; const controller = require('../../src/controller'); const domain = require('../../src/domain'); const enviroment = require('../../config/testEnviroment.json'); // const enviroment = { // vehiculo:{ // tipoVehiculo: 'ciclomotor', // modelo:2019, // cilindr...
true
73fa6dd7060c3c2a3b7c45907088a9b9ef0b51db
JavaScript
zst060819/node_promise
/day05/课堂/1-NodeJS/代码/3-文件系统/1-文件简单写入.js
UTF-8
754
3.375
3
[ "MIT" ]
permissive
//创建文件 h5200422.html 并写入一段文字 『不要熄灭你的灵感及想象,不要成为你楷模的奴隶』 //1. 引入 fs 模块 const fs = require('fs'); //2. 调用方法 // fs.writeFile('./h5200422.html','不要熄灭你的灵感及想象,不要成为你楷模的奴隶', err => { // //判断 // if(err) { // console.log(err); // return; // } // console.log("写入成功"); // }); //3. 标志位 a // fs.writeFi...
true
a9b9e234376b72cd74777e73256507ce0327bc93
JavaScript
ibarapascal/digital-currency-historical-data-s3
/main.js
UTF-8
3,610
2.8125
3
[ "MIT" ]
permissive
// https://github.com/ded/reqwest // https://stackoverflow.com/questions/52235641/how-to-save-data-in-json-file/52236204 // https://nodejs.org/docs/latest/api/fs.html#fs_fs_writefile_file_data_options_callback // https://www.timestampconvert.com/?go1=true&m=01&d=01&y=2015&hours=000&min=000&sec=000&Submit=++++++Conve...
true
3e3fa198a43aa3e3da49d126bba681432f5e2466
JavaScript
ESEGroup/Brasil
/static/javascript/resources.js
UTF-8
4,328
2.609375
3
[ "MIT" ]
permissive
/** * Created by Caio on 11/11/2016. */ var editInfo = false; var editSchedule = false; function getResourceInfo(id) { var html = ''; var it; //Fill fields //getResourceById var resource = data.resources[id - 1]; var field_name = document.getElementById('text-resource-name'); var fiel...
true
5730ee54c855269800cbfd3c455e6db94b6fd4ad
JavaScript
mycomosi/entourage
/demo/src/LogWorker.js
UTF-8
1,298
2.53125
3
[]
no_license
/** * Create a logging manager for multiple windows by subscribing to broadcast notifications from entourage logger * @type {{init: function()}} */ const logWorker = { _start: () => { postalSharedWorker.on('entourage-logger', (msg, src) => { let logMessage = (typeof msg.logMessage === "obj...
true
54b3f33ee5a968db570966ea179aea83fcfb2e07
JavaScript
melaniehsieh/sheworks
/src/components/Donut.js
UTF-8
2,979
2.78125
3
[]
no_license
import React, { Component } from "react"; import * as d3 from "d3"; class Donut extends Component { componentDidMount() { this.drawChart(); } drawChart() { const width = this.props.width; const height = this.props.height; const margin = this.props.margin; const radius = Math.min(width, heig...
true
75723d0243032390936efe0123b62c55817ac197
JavaScript
Tkmanga/jsProyects
/UdemyJuanPablo/Teoria/01-teoricaBasica/JsBasic/js/app.js
UTF-8
24,109
3.984375
4
[]
no_license
//aca voy a poner toda la teoria que no toque hasta el momento de la mejor forma posible para futuras referencias /* alert("asd"); document.getElementById('app').append("hola mundo"); const nombre = prompt("Cual es tu nombre ?"); const edad = prompt("cual es tu edad ?"); document.getElementById("app").append(`Bien...
true
41378cd6811d5faf0f490e624d1a56b387de337a
JavaScript
Am1tgupt4/Js-Prep
/Js-Hardparts-II/Js-Hardparts_05.js
UTF-8
4,440
4.375
4
[]
no_license
// Section 5 - Generators // Lecture 1: Generators /* - Thinking data as flow/stream of data using Iterators. - JavaScript built in iterators are actually objects with a next method that when called returns the next element from the 'stream/flow' - so lets restructure a bit. built in iterator actually ...
true
7d80b0bf4884dffd1957f077f2e3406c159cf120
JavaScript
Dberrah/RailsWar
/views/script/auth.js
UTF-8
2,812
2.828125
3
[]
no_license
function reset_style_password() { $('#not_match_password').attr("hidden",true); } function reset_style_form() { $('#not_full_form').attr("hidden",true) reset_style_password() /*$('#name_character').css("border-color","black") // On affiche la div d'erreur $('#name_error').attr("hidden",tru...
true
e3db67a608b7479a0d837d512ec197c46a71a30f
JavaScript
kayartaya-vinod/2019_07_SAPIENT_BOOTCAMP
/Day02/ex15.js
UTF-8
763
3.453125
3
[]
no_license
function shuffle(array) { array.sort(function () { return Math.random() - 0.5; }); return array; } $(function () { // DOM-Ready event handler var nums = []; for (var i = 0; i <= 15; i++) { nums.push(i); } shuffle(nums); var k = 0; for (var i = 0; i < 4; i++) { for (v...
true
25dd98b77084326d13d6148f069d181b5b78dd22
JavaScript
TGIFridayTalks/lenses
/examples/find.js
UTF-8
776
2.734375
3
[ "MIT" ]
permissive
const { Lens } = require('lorgnette/dist/lens') const { just, nothing } = require('lorgnette') export class ArrayFindLens extends Lens { constructor(criteria) { super() this.criteria = criteria } get(obj) { if (obj instanceof Array) { const value = obj.find(this.criteria) if (typeof val...
true
af57be6a5e0abd79d4a04dd9ed6305841158988c
JavaScript
avinashrock/DS-Meddidata
/app.js
UTF-8
3,951
2.9375
3
[]
no_license
function allowDrop(ev) { ev.preventDefault(); ev.stopPropagation(); } function drag(ev) { ev.dataTransfer.setData("text/plain", ev.target.id); } function drop(ev) { ev.stopPropagation(); var data = ev.dataTransfer.getData("text"); ev.target.appendChild(document.getElementById(data)...
true
5d92a9f9f71efc01e117e0367f27242c6f6e490a
JavaScript
ivaylo-botusharov/TelerikAcademy2013
/JavaScript 02 (DOM & UI)/Lectures/1. Document-Object-Model/Homework/scripts/01.select-all-divs.js
UTF-8
1,208
2.890625
3
[]
no_license
/*jslint browser: true*/ (function () { 'use strict'; function getChildDivsUsingQuerySelectorAll() { var divs = document.querySelectorAll('div > div'); return divs; } function getChildDivsUsingGetElementsByTagName() { var divs = [], allDivs, ...
true
3a85949168bb2e299d69b67c629aaae0e4e07b31
JavaScript
ido-postelnik/timer
/src/components/Timer.js
UTF-8
3,025
2.90625
3
[]
no_license
import React, { useState, useRef } from "react"; import { PROGRESS_SPEED, RESET_TIME, TIMER_STATES } from '../utils/consts'; import { parseMsToSec } from '../utils/utils'; export default function Timer({intervalTime = 5000, radius = 80}) { //#region Initialize states and refs const [ringProgress, setRingProgress]...
true
c9bb6279b918cd450ab212a35dc8e9d6039f4ec1
JavaScript
1974193036/react-todolist
/src/TodoList.js
UTF-8
6,348
3.21875
3
[]
no_license
import React, {Component, Fragment} from 'react'; // { Component } 为解构赋值,相当于const Component = react.Component import TodoItem from './TodoItem'; // import Test from './Test' import axios from 'axios'; import './style.css'; /** Fragment 占位符,可以替代最外层div,可以让最外层去掉多余的div */ class TodoList extends Component { constructor...
true
45806b1762b9d2444549c812af3044e85d890372
JavaScript
tlee10/sorting-algo-visualizer
/src/algorithms/quickSort.js
UTF-8
2,337
2.734375
3
[]
no_license
import swap from './swap'; import _ from "lodash"; const quickSort = (list) => { const newList = _.cloneDeep(list); const swaps = [], sorted = [], small = [], large = [], normal = [], pivots = []; quickSort_aux(newList, 0, list.length -1, swaps, sorted, small, large, normal, pivots); return [newList, swaps, s...
true
d01dec3e8d126c8a73f45ed58d2dcd611e8357e6
JavaScript
muhsinking/portfolio
/app/js/sendcontact.js
UTF-8
2,060
2.65625
3
[]
no_license
function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\...
true
9d94eb9ea333e269ccce7e21660a64bd504d9bfa
JavaScript
fewieden/Screeps
/src/role.harvester.js
UTF-8
707
2.796875
3
[ "MIT" ]
permissive
/** * Screeps * * Role: Harvester * * By fewieden https://github.com/fewieden/Screeps * * MIT Licensed. */ module.exports = { /** * Finds closest stucture that isn't filled completely with energy * and fills it up. * * @param {Creep} creep * @return {boolean} */ exec(cree...
true
c4806b42ff981e80a3c2dc20d3901f5037f646df
JavaScript
Adashuai5/node-demo
/AJAX-demo/main.js
UTF-8
1,149
2.890625
3
[]
no_license
myButton.addEventListener('click', (e) => { let request = new XMLHttpRequest() request.onreadystatechange = () => { if (request.readyState === 4) { console.log('请求响应都完成了') if (request.status >= 200 && request.status < 300) { console.log('success') ...
true
50445fd3ab47e08a439fef76847dbdcfcaf1c3d9
JavaScript
rpaulin90/Bamazon-HW
/bamazonCustomer.js
UTF-8
3,542
2.703125
3
[]
no_license
/** * Created by rpaulin on 5/19/17. */ var inquirer = require("inquirer"); var mysql = require("mysql"); require('console.table'); var connection = mysql.createConnection({ host: "localhost", port: 3306, // Your username user: "root", // Your password password: "", database: "bamaz...
true
96872557975d199cc328f201b8c4c0ce1b93ed54
JavaScript
dunphyben/presenterthon
/app/assets/javascripts/track.js
UTF-8
729
2.625
3
[]
no_license
var Track = { init: function (){ // $('#new_event').on("ajax:sucess",this.appendEvent) // debugger // $('#new_event').on("ajax:failure",this.addFail) $('#new_track').on('submit',this.submitForm); }, appendEvent: function (){ console.log("yeay") $('.event-list').append('fdf') }, addFail: function (){ }...
true
f02f3983e35635e2499b5f39c6e9f7be3fd5809d
JavaScript
fitzr/webpack-vendor-dll
/generate-webpack-vendor-conf.js
UTF-8
1,611
2.90625
3
[ "MIT" ]
permissive
const fs = require('fs') const readLine = require('readline') const VENDOR_CHUNK_PATH = './dist/vendor-chunk.bundle.js' const WEBPACK_CONFIG_PATH = './webpack.vendor-dll.js' // pick up entries from vendor chunk file function readEntries () { return new Promise (resolve => { const rs = fs.createReadStream(VENDO...
true
20fc7f12eb804e7d9e9d50ad23373058a2077f75
JavaScript
laamp/1337c0d3
/mergeTwoLists.js
UTF-8
477
3.40625
3
[]
no_license
var mergeTwoLists = function (l1, l2) { let head = new ListNode(0); let pointer = head; while ((l1 !== null) && (l2 !== null)) { if (l1.val < l2.val) { pointer.next = l1; l1 = l1.next; } else { pointer.next = l2; l2 = l2.next; } ...
true
5a4db36da6fec12f54cbc6f4027bc271a1e20e48
JavaScript
yonkov/swift-academy-homeworks
/rumen/lesson16/task3/script.js
UTF-8
979
3.734375
4
[]
no_license
function Bike(name, price) { this.name = name; this.value = price; } Bike.prototype.toHTML = function (name, value) { var div = document.createElement("div"), header3 = document.createElement("h3"), para = document.createElement("p"), img = document.createElement("img"); header3....
true
5d23914e9b5ab80eab62be75c93635ee5cdef609
JavaScript
awilsongithub/head-first-jquery
/book-chapters-code/ch02/begin/scripts/my_scripts.js
UTF-8
3,021
3.640625
4
[]
no_license
$(document).ready(function(){ /* 1. function to hide the code 2. helper function to generate random number using argument passed 3. call/invoke hide code function 4. function to check for code and output message and code 4b. and unbind click event handler 5. bind check for code f. to click event */ ...
true
3528fd495b86c9caf7b86eb23412894e13da1ba2
JavaScript
bobenut/demo-node
/es6/d0004/index.js
UTF-8
4,163
4.03125
4
[ "MIT" ]
permissive
//特性 //1.键值对,键可以是对象 console.log('-----特性,键可以是对象') const map1 = new Map() const objkey = {p1: 'v1'} map1.set(objkey, 'hello') console.log(map1.get(objkey)) //对象是按照引用地址来做识别 //2.Map可以接受数组作为参数,数组成员还是一个数组,其中有两个元素,一个表示键一个表示值 console.log('-----特性,接受数组作为参数') const map2 = new Map([ ['name', 'Aissen'], ['age', 12] ]) conso...
true
8b29afcf228b187209bb2d40ea98d5956fb1f6a6
JavaScript
Melvinerall/babel-plugin-secure-syntax
/errors/security-syntax-error.js
UTF-8
1,255
2.9375
3
[ "MIT" ]
permissive
Object.setPrototypeOf = Object.setPrototypeOf || function(object, prototypeOf) { return (object.__proto__ = prototypeOf, object); }; Object.getPrototypeOf = Object.getPrototypeOf || function(object) { return object.__proto__; }; function SecuritySyntaxError(message, type, fileName, location) { var instanc...
true
dc75e6b8e07a3efbcadece572afd015ced4c4364
JavaScript
carlosroltjr/projeto_sa
/_SAbootstrap/js/charts.js
UTF-8
4,637
2.65625
3
[]
no_license
// global variables var listFoodtruckLocalStorage = loadFromStorage('foodtruck'); var sales = loadFromStorage('venda'); var idFoodtruckLogado = loadFromStorage('id_foodtruck_logado') != undefined ? loadFromStorage('id_foodtruck_logado') : null; google.charts.load('current', {'packages': ['corechart']}); google.charts...
true
3796d3f4f35f9fbb78a6166ab9ca3dac4a299867
JavaScript
michaelgobbers/QuantifyThis
/QuantifyThisAppEngine/war/js/weather.js
UTF-8
1,811
2.671875
3
[]
no_license
function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else{ x.innerHTML="Geolocation is not supported by this browser."; } } function showPosition(position) { var APPID = 'dj0yJmk9OTFZSWlwM29rWVRFJmQ9WVdrOWVYQnNVMUZoTjJrbW...
true
416e579b8e8116fd808cff22985cbf5e74e3a40d
JavaScript
fraim/light-code-editor
/client/src/utils/localStorage.js
UTF-8
238
2.734375
3
[]
no_license
export function setItem(key, value) { localStorage.setItem(key, JSON.stringify(value)) } export function getItem(key) { return parseValue(localStorage.getItem(key)) } export function parseValue(value) { return JSON.parse(value) }
true
e260620d69893dfd62c9ef34d0ac2a17e448ade1
JavaScript
dbots-me/docs
/static/assets/js/custom.js
UTF-8
714
2.78125
3
[ "MIT" ]
permissive
window.matchMedia('(prefers-color-scheme: light)').addEventListener('change', e => { changeFavicon(e.matches) }); if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) { setInterval(function() { changeFavicon(true); }, 1000); } function changeFavicon(whiteMode) { ...
true
53f48264497a8ec8946e00de7df87fd28f06a430
JavaScript
aaartyomsss/FullStackOpen2020
/part1/unicafe/src/index.js
UTF-8
2,201
3.1875
3
[]
no_license
import React, { useState } from 'react' import ReactDOM from 'react-dom' const Button = (props) => { return ( <button onClick={props.handleChange}> {props.text} </button> ) } // Component for displaying individual properties (good, bad, neutrl) const DisplayIndividualSats = (props) => { return ( ...
true
54c7ccd3ca2afeeec7ecda37d952f311232980d8
JavaScript
mbrannen747/maraud-at-dawn
/app/ui/instructionscreen.js
UTF-8
7,068
2.859375
3
[]
no_license
class Instructions extends ScreenBase { constructor(c,w,h) { super(c,w,h); //Background map Image this.mapImage = new createjs.Bitmap(assets.getResult("instructions")); this.mapImage.scaleX = .8; this.mapImage.scaleY = .76; this.addChild(this.mapImage); ...
true
06e8b61e1cf297f7db77482c1d0617bdd0aa8fd8
JavaScript
rsify/draw
/src/tools/Select.js
UTF-8
3,013
2.765625
3
[ "MIT" ]
permissive
import _ from 'lodash' import Tool from './Tool' import RectangleObject from '../objects/Rectangle' import store from '../store' const ACCURACY = 5 class SelectTool extends Tool { constructor () { super() this.name = 'select' this.icon = 'fa-mouse-pointer' this.selected = [] this.points = [] this.throt...
true
a855008d410fa76ab96e8c49b14d6690a67050aa
JavaScript
anickalerner/appsus
/apps/keep/service/date-service.js
UTF-8
876
3.296875
3
[]
no_license
export const dateService = { getDate } function formatHour(doneAt) { const hour = doneAt.getHours(); const minute = doneAt.getMinutes(); const formatedHour = (hour < 10) ? `0${hour}` : hour; const formatedMinute = (minute < 10) ? `0${minute}` : minute; return `${formatedHour}:${formatedMinute}...
true
814760e614c8bc06045a6f05972a7c285b71d912
JavaScript
dprgarner/tech-radar-markdown-tools
/src/mapToMetadataTree.test.js
UTF-8
5,046
2.859375
3
[]
no_license
const marked = require('marked'); const createTokensTree = require('./createTokensTree'); const mapToMetadataTree = require('./mapToMetadataTree'); describe('mapToMetadataTree', () => { it('maps a sections tree to a metadata tree', () => { const sectionsTree = { name: 'H1', sections: [ { ...
true
7c7eb9c833021f5279f9d9880925a03a8975a32d
JavaScript
BlNARYFOUR/TheTetrisProject
/src/main/resources/webroot/assets/js/gameOver.js
UTF-8
229
2.5625
3
[]
no_license
"use strict"; document.addEventListener("DOMContentLoaded", init); function init() { document.getElementById("exitGame").addEventListener("click", exitGame); } function exitGame() { location.href = "main_menu.html"; }
true
32e43c1ceb2f1091a0c1669a71cbde5bb8d4977c
JavaScript
svil1502/shop
/web/js/main2.js
UTF-8
1,807
3.0625
3
[ "BSD-3-Clause" ]
permissive
function GetData() { var id=document.getElementById("product-category_id").value; //id категории // получаем индекс выбранного элемента var selind = document.getElementById("product-brand_id").options.selectedIndex; var id_cat= document.getElementById("product-brand_id").options[selind].id; //c...
true
abde7fd9a34c0f9657dca8289383b0064bcfabd1
JavaScript
EliIsFroddo/101253239_comp3123_test1
/labtest1/question2/callbacks.js
UTF-8
578
2.984375
3
[]
no_license
const resolvedPromise = () => { let promise = new Promise(function(resolve, reject){ setTimeout(() => { let success = {'message' : 'delayed success!'} console.log(success); resolve(); }, 500); }); } resolvedPromise(); const rejectedPromise = ...
true
0d45d25334f4ce325365603704ff7bab1303b928
JavaScript
pradeep199896/Javascript-files
/maxmin.js
UTF-8
361
3.28125
3
[]
no_license
function minMax(arr,n) { var sum; var max=0; var min=0; min=arr[0] max=min sum=min for(i=1;i<n;++i) { sum+=arr[i] if(arr[i]<min) { min=arr[i] } if(arr[i]>max) { max=arr[i] } } console.log(sum-max,sum-...
true
eba94084ee7a68842fe27c083c33f05cd3c75017
JavaScript
shubgene/RestApiWithUI
/assignment/src/main/resources/static/JavaScript/main.js
UTF-8
3,672
3.03125
3
[]
no_license
/** * */ function createproduct() { var xhttp = new XMLHttpRequest(); var product_name=document.getElementsByClassName("createname")[0].value; var price=document.getElementsByClassName("createprice")[0].value xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 201...
true
86071161e8e25e4db323f5ef488e941a0850a644
JavaScript
lzlzian/The-Tasters
/app/public/services/users.service.js
UTF-8
1,413
2.625
3
[]
no_license
/*********************************************** * User Service for making AJAX calls **********************************************/ function Users() { this.getUser = function (id) { return $.ajax({ type: 'GET', url: '/user?id=' + id }); } this.getUsers = functi...
true
2bee3cf3f4e9a76821e5fc92d981833d3b82c918
JavaScript
laurens914/businessCard
/script/dummy.js
UTF-8
2,143
3.09375
3
[ "MIT" ]
permissive
(function(module) {//accessable through /admin page function Quarterbacks (qbs) { //again using Object.keys to create the object from that array of data. Object.keys(qbs).forEach(function (a,index,keys){ this[a]=qbs[a]; },this); } Quarterbacks.all = []; Quarterbacks.loadAll = function(qbData) {...
true
4d9f7a6030d50b386ee2e67ed2444acec86239c7
JavaScript
SandeepKapalawai/leetcode
/problems/closest-divisors/closestDivisors.js
UTF-8
473
3.21875
3
[ "MIT" ]
permissive
const getDivisor = (num) => { const sqrtfloor = Math.floor(Math.sqrt(num)) for (let i = sqrtfloor; i >= 1; i--) { if (num % i === 0) { return [i, num / i] } } } const closestDivisors = (num) => { const divisor1 = getDivisor(num + 1) const divisor2 = getDivisor(num + 2) const diff1 = divisor...
true
436526c53e1a9a3c8e3a9a51ab954867d91d2ab3
JavaScript
Sambego/meow
/src/js/Services/Bluetooth.js
UTF-8
2,389
2.59375
3
[]
no_license
export default class Bluetooth { static parseHeartrate(value) { const flags = value.getUint8(0); const rate16Bits = flags & 0x1; const result = {}; let index = 1; if (rate16Bits) { result.heartRate = value.getUint16(index, true); index += 2; ...
true
84de64c1d4884cb25c714dd28507d5fd59b7dabb
JavaScript
cvcd005/formik-task
/server.js
UTF-8
1,052
2.546875
3
[]
no_license
const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const validSchema = require("./src/Api/ValidSchema"); const Schema = validSchema.validSchema; const app = express(); const port = process.env.PORT || 8080; const bd = []; const isUserExist = obj => { cons...
true
d09a0bd4012db05502d647403492257e1beb973a
JavaScript
signorilefabio/progetto-javascript-basics-start2impact
/counter.js
UTF-8
378
3.328125
3
[]
no_license
let counterDisplay = document.querySelector('#counter-display'); let buttonMinus = document.querySelector('#button-minus'); let buttonPlus = document.querySelector('#button-plus'); let count = 0; function plus() { count++; updateDisplay(); }; function minus() { count--; updateDisplay(); }; function...
true
ca1f03f2c58573d9945fe2cfc791b6dd9dd0d163
JavaScript
carlosascari/Adamant
/adamant.js
UTF-8
30,809
2.890625
3
[]
no_license
/** * Provides Adamant singleton * * @module Adamant */ var Adamant = (function (instance) { /** * @class Adamant * @constructor */ var Adamant = instance = new (function Adamant(){if (instance) return instance}) /** * @class Toolbox * @constructor */ var Toolbox = new (function Toolbox(){}) /** ...
true
acb862ea9676bf5fbc44a4ca23a7ef6d4ded4ddd
JavaScript
HW0001/HCJ
/JS/面试题练习/Promise/main.js
UTF-8
1,331
3.1875
3
[]
no_license
class Promise { static Pending = "pending"; static Fulfiled = "fulfiled"; static Rejected = "rejected"; constructor(fn) { this.state = Promise.Pending; this.value = ""; this.onFulfileds = []; this.onRejects = []; this.onf; try { if (typeof fn === "function") { fn(this.reslo...
true
e2bfe45d8e52c6debf8801c519c906d20122ba01
JavaScript
SeoSang/react_self
/src/routes/lotto/Lotto.jsx
UTF-8
2,335
2.84375
3
[]
no_license
import React, { Component } from "react" import Ball from "./Ball.jsx" import "./Lotto.css" function getWinNumbers() { console.log("getWinNumbers") const BONUS_INDEX = 7 const candidate = Array(45) .fill() .map((v, i) => i + 1) const shuffle = [] while (candidate.length > 0) { shuffle.push(candid...
true
bbf67c6bba939de678e97506de98c4ab406b4349
JavaScript
YIvanov97/shopJS
/frontend/src/globalParams.js
UTF-8
3,355
2.5625
3
[]
no_license
import React, {useEffect, useState} from 'react'; export const UserContext = React.createContext({}) const UserProvider = UserContext.Provider; const UserContextProvider = (props) => { const [user, setUser] = useState({}) const [chosenImage, setChosenImage] = useState('') const [disabled, setDisabled] = u...
true
eeaba08e3f85b66b10bad3f77645cbb947a2a4b0
JavaScript
shaileshkumarkachhi/nodejs-folder-structure-sample
/controllers/user/userController.js
UTF-8
1,133
2.546875
3
[ "MIT" ]
permissive
var express = require('express'); var bodyParser = require('body-parser'); var userService = require('./../../services/user/service') class UserController { constructor() {} ////////////////////////////////////////////////////////////////////// // Initilization at App Start ...
true
ff209ba74bada846f2e69d73a69c71d8107fbc11
JavaScript
Folder1976/folder_open
/backend/js/jquery/jquery.truncator.js
UTF-8
5,705
2.921875
3
[ "MIT", "BSD-3-Clause" ]
permissive
(function($) { var trailing_whitespace = true; $.fn.truncate = function(options) { var opts = $.extend({}, $.fn.truncate.defaults, options); $(this).each(function() { var content_length = $.trim(squeeze($(this).text())).length; if (content_length <= opts.max_length) return; // bail...
true
d2b95cad31e6c9ca24096d1754fa0b3e6171540c
JavaScript
jonyhayama/gonode-hoay
/index.js
UTF-8
2,330
2.78125
3
[]
no_license
const express = require('express') const nunjusck = require('nunjucks') const app = express() nunjusck.configure('views', { autoescape: true, express: app, watch: true }) app.use(express.urlencoded({ extended: false })) app.set('view engine', 'njk') app.use('/assets', express.static('assets')) const paramsVali...
true
fd175ab09350b24b909834d2673f8bfe34a50332
JavaScript
rinaykumar/websocket-alert-server
/apiServer.js
UTF-8
631
2.6875
3
[]
no_license
const express = require('express'); const redis = require('redis'); const app = express(); // Redis Client const publisher = redis.createClient(); // http://localhost:4000/api/doSomething?userId=abc&text=hello app.get('/api/doSomething', (req, res) => { let id = req.query.userId; // Get user ID let msg = req.quer...
true
dc11aad613e6a0b91b3a1d45f647a7a09a71359e
JavaScript
xh4rz/Weather-app2
/src/components/CityList/CityList.jsx
UTF-8
1,850
2.875
3
[]
no_license
import React from 'react' import PropTypes from 'prop-types' import Grid from '@material-ui/core/Grid' import List from '@material-ui/core/List' import ListItem from '@material-ui/core/ListItem' import CityInfo from './../CityInfo' import Weather from './../Weather/Weather' // li: es un item (según tag html, tiene el ...
true
1a44043506d8c44b8cd068602fd3de78f7b2e7a5
JavaScript
jeffaustin81/cropcompass-ui
/src/components/VisualizationsD3/HorizontalBarChart/RawHorizontalBarChart.js
UTF-8
1,300
2.703125
3
[ "MIT" ]
permissive
var node = document.createElement('div'); import d3 from 'd3'; var width = 1000; var height = 500; var countyName = "Multnomah" d3.json("http://ec2-54-149-118-93.us-west-2.compute.amazonaws.com/data/nass_commodity_area?region=" + countyName, function(d) { d.data.sort(function(a, b) { ...
true
0a1b9cf09a3293da21328eafac0be373f9026c77
JavaScript
masonmcelvain/ifixit-grab-bag
/src/components/Window/Window.js
UTF-8
6,807
2.859375
3
[]
no_license
import React, { useState, useEffect } from 'react'; import './Window.css'; import MyItemCard from '../MyItemCard/MyItemCard'; import MyItemCardDropArea from '../MyItemCard/MyItemCardDropArea'; import GearBagDropArea from '../GearBag/GearBagDropArea'; import GearGridDropArea from '../GearGrid/GearGridDropArea'; export...
true
33995f5ac5f47a2bf7dd8d6b68bcc36adb7ee73b
JavaScript
JustLikeIcarus/tquery
/build/tquery.js
UTF-8
116,939
2.546875
3
[ "MIT" ]
permissive
// tquery.js - https://github.com/jeromeetienne/tquery - MIT License // vim: ts=4 sts=4 sw=4 expandtab // -- kriskowal Kris Kowal Copyright (C) 2009-2011 MIT License // -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project) // -- dantman Daniel Friesen Copyright (C) 2010 XXX TODO License or CL...
true
a483e4d8baba67845958d8fa0f0707e9cb91ae87
JavaScript
zakeverywhere/IFE
/taskEighteen/task.js
UTF-8
987
3.3125
3
[]
no_license
window.onload = function(){ var stack = []; $("left-in").addEventListener("click",function(event){ if(getInput()){ stack.splice(0,0,getInput()); updateDisplay(); } }) $("right-in").addEventListener("click",function(event){ if(getInput()){ stack.push(getInput()); updateDis...
true
63f9e65a4b5d022a745ebb39d2a47d03629c2c1f
JavaScript
react-component/rn-packager
/react-native/packager/src/node-haste/Cache/index.js
UTF-8
7,104
2.578125
3
[ "MIT" ]
permissive
/** * 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. * * @flow */...
true