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
153cebc7a816b494ccecf7d4089b7ef0aaf6bfa4
JavaScript
geronm12/cine_react
/src/pages/home.js
UTF-8
1,377
2.546875
3
[]
no_license
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import SearchBar from '../components/SearchForm'; import MoviesList from '../components/MoviesList'; import {Title} from '../components/Title'; export class Home extends Component{ state = {usedSearch: false, results: [], loading: false} ...
true
a461dd23c2021de2bcabcbe2b4401447662c3451
JavaScript
TANGQingMiss/leetcode
/medium/longestWPI.js
UTF-8
738
3.4375
3
[]
no_license
/** * @param {number[]} hours * @return {number} */ var longestWPI = function(hours) { //check longest period where days>8hours > days<8hours let sums = new Array(hours.length); let sum = 0; for(let i = 0; i < hours.length; i++){ sum += ((hours[i] > 8) ? 1 : -1); sums[i] = sum; } ...
true
12230c2f3b442bc33fc031391dfd0880b34d150b
JavaScript
creationix/http-parser-js
/tests/parallel/test-http.js
UTF-8
2,228
2.671875
3
[ "MIT" ]
permissive
'use strict'; require('../common'); var assert = require('assert'); var http = require('http'); var url = require('url'); var responses_sent = 0; var responses_recvd = 0; var body0 = ''; var body1 = ''; var server = http.Server(function(req, res) { if (responses_sent == 0) { assert.equal('GET', req.method); ...
true
9453194d1402d2a32576b1bc5d1f947255141c1a
JavaScript
Wayne-Bai/AST-normalize
/data/sporto/imm/dist/imm.js
UTF-8
13,442
3.03125
3
[]
no_license
//! Imm //! Immutable collections //! (c) 2015 Sebastian Porto //! MIT license. //! https://github.com/sporto/imm // CommonJS + AMD + Global boilerplate // https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Registe...
true
c5f8aebe11a1174d23c0c0a6425901fd72f73e8a
JavaScript
dameradev/shop_frontend
/src/components/Restaurants/Food/CreateFood/CreateFood.js
UTF-8
2,986
2.546875
3
[]
no_license
import React, { Component } from "react"; import axios from "../../../../apis/shopBackend"; import Input from "../../../UI/Input/Input"; import classes from "./CreateFood.module.css"; class CreateFood extends Component { state = { foodForm: { name: { elementType: "input", elementConfig: { ...
true
be397fd42d43b959c913562c0fd9bc763630e72a
JavaScript
brettcelestre/toy-problems
/problems/arrays/prompts/some.js
UTF-8
275
3.265625
3
[]
no_license
'use strict'; // determine if some elements in the array pass a truth test const some = (array, truthTest) => { let result = false; array.forEach(function(val){ if ( truthTest(val) ) { result = true; } }); return result; }; module.exports = { some };
true
0a46f425dd481b8b5c677349f8aba4ab2d36c70a
JavaScript
Romainedavid92/lettuce-codes
/EnronEmailSentimentAnalysis/Static/emailSubmit.js
UTF-8
1,079
2.625
3
[]
no_license
var titles = ["Sentiment: ", "Subjectivity: ", "Negative: ", "Neutral: ", "Positive: "]; function sendShit() { var email = $("#input").val(); var payload = { "input": email }; $.ajax({ type: 'POST', // make sure you respect the same origin policy with this url: // http:...
true
da1b35d5d5bd48a7f50b2c7ad46092f6c4368dad
JavaScript
AAI-USZ/FixJS
/input/100+/before/80ef0d52810cd89c165b57bbcf4defb8724c805b_1_3.js
UTF-8
1,946
2.859375
3
[ "MIT" ]
permissive
function(window) { var ServicoForm; // construtor ServicoForm = window.ServicoForm = function( labelBotao, functionBotao ) { this.label = labelBotao; this.action = functionBotao; }; ServicoForm.fn = ServicoForm.prototype; ServicoForm.fn.create = function() { this.formulario = $('<form/>', { ...
true
d12a4345d48a893332b4e3c51d8fb080e191807e
JavaScript
krysmathis/electron-workshop
/app.js
UTF-8
664
2.59375
3
[]
no_license
const { ipcRenderer } = require( "electron" ); document.addEventListener( "DOMContentLoaded", () => { const version = process.version; const e = document.getElementById("info"); e.textContent = `I'm running Node.js version: ${version}`; const btn = document.getElementById("clickme"); btn....
true
a931e228631ab25b54517206306fc4488dd09738
JavaScript
JazminBriasco/Prestamos-React
/src/componentes/Formulario.js
UTF-8
2,654
2.625
3
[]
no_license
import React, { Fragment, useState } from 'react' import Resumen from './Resumen'; const Formulario = ({ amount, saveAmount, term, saveTerm }) => { const [error, saveError] = useState(false); const [isHidden, saveIsHidden] = useState(true); const [showLoading, setShowLoading] = useState(false); const...
true
3d9eb4e0dfb9702b1529d9f3822aec0f22e0e4c9
JavaScript
liveqmock/charging-1
/holley-charging-bjbms/src/main/webapp/res/js/device/stationVerify.js
UTF-8
2,197
2.578125
3
[]
no_license
var map; var point; var param; $(document).ready(function(){ initMap(); $("#showMapBtn").on("click",function(){ $("#pointMapModal").modal(); setTimeout(function(){ map.panTo(point); }, 500); }); $("#saveBtn").on("click",function(){ save(); }); }); function initMap(){ // 百度地图API功能 map =...
true
900c6e9e7748cac15cf6fe6a63c98f234e638be0
JavaScript
nissensonm/GraphicsFinal
/public_html/src/App/Wizard.js
UTF-8
706
2.5625
3
[]
no_license
/*jslint node: true, vars: true */ /*global gEngine, SimpleShader, SquareRenderable, SceneNode */ /* find out more about jslint: http://www.jslint.com/help.html */ "use strict"; // Operate in Strict mode such that variables must be declared before used! function Wizard(shader, name, xPivot, yPivot) { SceneNode.c...
true
076144527149558495535b241b6d20fc63841ea8
JavaScript
yz523/Drexel
/Web-Services-and-Mobile-Architectures/A1/HTML+CSS+JS+Images/films.js
UTF-8
1,289
3.828125
4
[]
no_license
var API = (() => { //Create an array let FILMS = []; var RATING = 10; var createFilm = () => { //Get the element from the input box //Add its value to the array var myInput = document.getElementById("myInput").value; if(myInput == ""){ document.getEl...
true
5e2b564b284981871c29b3a130d31d9b12fe61df
JavaScript
DangerDan88/jify
/assets/giph.js
UTF-8
2,443
2.96875
3
[]
no_license
$(document).ready(function () { /// array of initial buttons I want to create var buttons = ["Chicken and Waffles", "Pancakes", "Waffles", "Steak", "Oatmeal", "popeye's chicken sandwich", "turkey", "tortilla", "macaroni", "peanut butter", "bbq", "cinnamon roll", "bagel"]; // function to try and save local sto...
true
97d848a020c3e04f46b8176e38c43d0a67d8f51f
JavaScript
ladrower/DfdLite
/dfdlite.js
UTF-8
7,895
2.6875
3
[ "MIT" ]
permissive
/* DfdLite The light version of deferred API compatible with jquery promises MIT License Copyright (c) 2014 artemplatonov.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wit...
true
fd216bfd75c621d3274401ad4a10478aa313e02d
JavaScript
srwatlanta/algorithms
/exercises/circulararrayrotation.js
UTF-8
392
3.078125
3
[]
no_license
function circularArrayRotation(a, k, queries) { let newA = rotateArray(a, k) let q = [] for(let i = 0; i < queries.length; i++){ let index = queries[i] q.push(newA[index]) } return q } function rotateArray(a, k){ let rem = a.length - (k % a.length) let first = a.slice(rem)...
true
9f52141feb79539a31039a292541bd1be9ac432c
JavaScript
angiegigishang/wpractice
/work1/tracebackapp/web/src/plugins/vueMixin.js
UTF-8
2,420
2.71875
3
[]
no_license
import { Notify } from 'quasar' export default ({ Vue }) => { Vue.mixin({ // add whatever you need in VUE: methods | components | directives | created | mounted ..... // !NOTE: not add lifecycle methods (created) if unneccessary as they would register into every component you defined methods: { _isVa...
true
0b59f3a9c72b740414fc054eb752ae5ecbe1c13b
JavaScript
Suryadevelops/youtrack-mobile
/src/components/visibility/issue-visibility.js
UTF-8
3,125
2.640625
3
[ "Apache-2.0" ]
permissive
/* @flow */ import type {Visibility} from '../../flow/Visibility'; import {ResourceTypes, addTypes} from '../api/api__resource-types'; import {getEntityPresentation} from '../issue-formatter/issue-formatter'; import type {UserGroup} from '../../flow/UserGroup'; import type {User} from '../../flow/User'; export defaul...
true
a1cd0f78d0641c6c1938194c7fcc878deffb5560
JavaScript
ke-pan/leetcode
/regular-expression-matching-10.js
UTF-8
1,619
3.703125
4
[]
no_license
/** * https://leetcode.com/problems/regular-expression-matching/ * * @param {string} s * @param {string} p * @return {boolean} */ // recursive solution var isMatch = function (s, p) { var _s0 = s.charAt(0), _p0 = p.charAt(0), _p1 = p.charAt(1); if (_s0 === '' && _p0 === '') { return true; }...
true
632a891584d59717c53ec55c42e14474caba5484
JavaScript
IndianaDenny/bingo
/js/main.js
UTF-8
52,760
2.703125
3
[ "MIT" ]
permissive
// ------------------------------------ // main.js //--------------------------------------- // denny@vdenny.com // // global vars var counter = 0; var B = []; var I = []; var N = []; var G = []; var O = []; var BINGO = ["B","I","N","G","O"]; var picked_rows =[]; var p...
true
57ef7579004ee5755b0260bfc9916d90248038cb
JavaScript
SasithaLY/fashion_store_frontend
/src/user/pages/EditProfile.js
UTF-8
5,036
2.515625
3
[]
no_license
import React, { useState, useEffect } from "react"; import { Link, Redirect } from 'react-router-dom'; import { isAuthenticated } from "../../auth/auth"; import { read, update, updateUser } from "../UserAPIs/userApi"; const EditProfile = ({ match }) => { const [values, setValues] = useState({ fName: "", ...
true
9567883ea9c4397d0b117a18ea69c0a32a4dfce2
JavaScript
syzer/google-code-jam-2018
/2TroubleSort/Solution.js
UTF-8
4,607
3.84375
4
[]
no_license
'use strict' /** Trouble Sort Problem Deep in Code Jam's secret algorithm labs, we devote countless hours to wrestling with one of the most complex problems of our time: efficiently sorting a list of integers into non-decreasing order. We have taken a careful look at the classic bubble sort algorithm, and we are ple...
true
c7a64a940bdcc2310542e2a62acb1bcbf57980db
JavaScript
dmitry-izjurov/bjs-homeworks
/3.3-async/task.js
UTF-8
2,106
3.390625
3
[]
no_license
'Use strict'; class AlarmClock { constructor() { this.alarmCollection = []; // свойство для хранения коллекции звонков this.timerId = null; // свойство для хранения id таймера } addClock(time, fn, idCall) { if (isNaN(idCall)) { throw new Error('error text'); }...
true
3a5e75a530fb0ae25056ee70ee86ecf9b2dfb583
JavaScript
itsnadja/First_Assignment
/src/index.js
UTF-8
1,882
3.90625
4
[]
no_license
//fetch API-Sample const listDiv = document.getElementById("list"); const url = "https://coronavirus-19-api.herokuapp.com/countries"; let jsonCountries = ""; document.getElementById("btnAlphabet").addEventListener("click", function() { showData("sortByCountry"); }); document.getElementById("btnNumeric").addEventLis...
true
eb3371b7e98a8ca1dc8dbbf1cacc5c7b517cdd0b
JavaScript
vongocchinh/admin-he-thong-trac-nghiem
/src/myReducer/course/course.js
UTF-8
1,130
2.671875
3
[]
no_license
import * as types from "./../../constant/question"; var initialState = []; var myReducer = (state = initialState, actions) => { switch (actions.type) { case types.GET_COURSE_SUCCESS: state = actions.data; return state; case types.ADD_COURSE_SUCCESS: var dataE = actions.data; var idNew...
true
d37372d7393b883e0fe172597706408e91e5a57b
JavaScript
adrinerandrade/automato-finito-determinado-fixo
/extrator.js
UTF-8
4,654
2.78125
3
[]
no_license
(function () { window.App = window.App || {}; var SIMBOLOS_ESPECIAIS = [';', ',', '=']; var AUTOMATO = { estadoInicial: 'q0', estados: { q0: { 'quebra': { destino: 'q0', }, 'processavel': { ...
true
35ddad8a53aa2d367e6b40e32d0bde70f7a29a00
JavaScript
natlee77/JavaScript
/Lect_2/5.functions/script.js
UTF-8
3,003
4.125
4
[]
no_license
/* FUNCTIONS(alla ska retunera saker ||utföra saker) var = GLOBAL typ static i C#//när ladda fill skapar utrymme i minne function = GLOBAL typ static i C# let = LOCAL när kommer till f. skapar utrymme i minne const = ...
true
eacbfa1ff5cfee0b44fbea6c430d3650d879bf8f
JavaScript
mdiasfernandes/web-js
/exercicios-js/fundamentos/destructuring_1.js
UTF-8
686
3.921875
4
[]
no_license
const pessoa = { nome: "Joao", idade: 5, endereco: { logradouro: "Rua dos Tucanos", numero: 1200 } } // Retirar determinados atributos de dentro de um objeto const {nome,idade} = pessoa // retire da estrutura do objeto os atributos declarados entre chaves console.log(nome, idade) cons...
true
6452e6440df77a2ae36d172c7fbcddc0d52426c5
JavaScript
Arpan2912/dfixmobileapp
/src/provider/validation.js
UTF-8
4,582
3.140625
3
[]
no_license
export default class Validation { /** * @description Empty/Whitespace validator * @param control */ static noEmptyWhiteSpace(text) { if (text) { if (text.indexOf(' ') >= 0) { return { error: true, errorMsg: 'No empty white space allowed' }; } else { return null; } ...
true
7ddce585ffbe553aae874a7e8c54d435806d4a4d
JavaScript
nguyeda/hello-api
/index.js
UTF-8
405
2.546875
3
[]
no_license
const express = require('express'); const app = express(); const port = process.env.SERVER_PORT || 3000; app.get('/hello', (req, res) => { console.log('GET /hello'); res.json({ date: new Date().toISOString(), message: 'hello world!'}); }); app.get('/health', (req, res) => { console.log('GET /health'); res.sen...
true
a6fe5977d58e77b6dcf1167abf7bddb557ba9a17
JavaScript
LucyWeltner/redux-forms-codealong-online-web-ft-110419
/src/components/todos/CreateTodo.js
UTF-8
854
2.5625
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
import React, { Component } from 'react' import {connect} from 'react-redux' class CreateTodo extends Component { state = { text: "" } handleChange = (event) => { this.setState({text: event.target.value}) } handleSubmit = (event) => { event.preventDefault() this.props.addTodo(this.state.text) } rend...
true
1be2e4af2d1209e674503509888feb7a1a18ab85
JavaScript
marcreicher/megaboilerplate
/server/utilities/hashing.js
UTF-8
1,063
2.59375
3
[]
no_license
'use strict'; var bcrypt = require('bcrypt'), crypto = require('crypto'), SALT_ROUNDS = 10; module.exports.generateSalt = function(callback) { bcrypt.genSalt(SALT_ROUNDS, function(err, salt) { if (err) { return callback(err); } callback(null, salt); }); }; module.e...
true
69f99a1d9cd5323e41f1b0e7477e4869b1b2a078
JavaScript
rinpopoyo/test11
/chart.js
UTF-8
540
2.515625
3
[ "Apache-2.0" ]
permissive
var data = [ { value: 60, color:"#4169e1" }, { value : 21, // Draw with background color color : "#fff" } ]; var ctx = document.getElementById("myChart2").getContext("2d"); new Chart(ctx).Doughnut(data,{ segmentShowStroke : false, segmentStrokeColor : "#eee", segmentStrokeWidt...
true
555318098249a87679f467149906a1ce042177e9
JavaScript
Lucas-Godoy/IntroducaoAJavaScript
/secao2/atividadeArray.js
UTF-8
571
4.46875
4
[]
no_license
//crie uma variavel que recebe um array, esse array devera conter 3 valores //em seguida imprima no console o valor da posicão 2 desse array let carros = ['uno', 'fusca', 'chevette']; console.log(carros[2]); //index = posição do array //nesse mesmo array, adicionar 1 carro na ultima posicao do array carros.push('co...
true
8069ba328cbb2b3dce015827fd2b4c2285d52b07
JavaScript
gunhoo93/javascript-exercises
/05_sumAll/sumAll.js
UTF-8
296
3.265625
3
[]
no_license
const sumAll = function (x, y) { if (x < 0 || y < 0 || [x, y].some(val => typeof val !== 'number')) { return "ERROR"; } const n = Math.min(x, y); const m = Math.max(x, y); return (n + m) * (m - n + 1) / 2; }; // Do not edit below this line module.exports = sumAll;
true
46865e9fc934b66ad70994cd1e783c6223d39c16
JavaScript
RupamMukherjee/javascript-arrays-lab-js-intro-000
/index.js
UTF-8
825
4.28125
4
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
var kittens = ['Milo', 'Otis', 'Garfield'] //define your array here // Add your functions and code here var array = new Array() array = kittens function destructivelyAppendKitten(name) { kittens = [...kittens, name] return kittens } kittens = array function destructivelyPrependKitten(name) { kittens = [name, ....
true
f5090146d8a0265e42a5196494a3351d5199465d
JavaScript
avalonmediasystem/avalon
/app/assets/javascripts/media_player_wrapper/mejs4_helper_utility.es6
UTF-8
8,086
2.5625
3
[ "Apache-2.0" ]
permissive
// Copyright 2011-2022, The Trustees of Indiana University and Northwestern // University. 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...
true
eb07c4c5e50593647b0f2a72879700977c42fdc2
JavaScript
tuseef123/JavaScript-Code-Challenges
/evenSqrtSum.js
UTF-8
842
4.84375
5
[ "MIT" ]
permissive
// Sum of Numbers in an Array // Create a function that takes an array of numbers nums as an argument. Square each number in the array if the number is even and square root √ the number if it is odd. Return the sum of the new array rounded to two decimal places. // Example: // [2, 4, 9] ➞ 23 // 2 ^ 2 + 4 ^ 2 + √9 = ...
true
7e4fe568944ddfe7719c1d5c97e0983e55075128
JavaScript
cecilioalvarez/escuelaTallerJunio
/Adriano/spec/Ejercicio1-spec.js
UTF-8
624
3.34375
3
[]
no_license
describe("Manejo de Objetos", function() { it ("test positivo", function() { var numero=1; var resultado=""; if (numero>=0){resultado=resultado+"positivo";} else{resultado=resultado+"negativo";} expect(resultado).toBe("positivo"); }); it ("test negativo", function() { var numero=-4; var resultado=""; ...
true
b18be4de9f6204d427472d9642c758cbcab3d715
JavaScript
TeamPhich/ER-webapp
/student/printRegistration.js
UTF-8
5,220
2.59375
3
[]
no_license
if (typeof(Storage) !== "undefined") { if (localStorage.token==null) { window.location = "../account/login.html"; } else if(localStorage.isAdmin=='isadmin'){ window.location="../admin/admin.html"; } } else { document.getElementById("result").innerHTML = "Sorry, your browser does not ...
true
109568e6fc548377e122fe2b0edd20f916102dd4
JavaScript
glietzen/TriviaGame
/assets/js/game.js
UTF-8
9,310
2.953125
3
[]
no_license
//GLOBAL VARIABLES //=========================================================================================================================== var timer; var t = 31; var correct = 0; var incorrect = 0; var number = t; var wrongAnswerMsg = ['Not quite!','Nope!','Wrong!','Sorry!']; var rightAnswerMsg = ["Homerun!", "G...
true
b41afb3db02e8af545041cccba9190c9a235cfd2
JavaScript
shkaper/hello-node
/features/step_definitions/create.js
UTF-8
1,243
3.03125
3
[]
no_license
/** * New node file */ module.exports = function () { console.log('Create Steps Loaded'); this.World = require('../support/world'); /* "<Then> I should see <input1> and <input2> in a registered order" */ this.Then(/^I should see '(.*)' and '(.*)' in a registered order$/, function (input1, input2, ca...
true
c697c04679ef54fbec012ec2afc7b60ca7a16e43
JavaScript
winpeed/Hosterr-Website-
/script.js
UTF-8
265
2.78125
3
[]
no_license
const hamburger = document.getElementsByClassName("hamburger"); const navigation = document.getElementsByTagName("nav"); hamburger[0].addEventListener("click", () => { navigation[0].classList.toggle("nav-open"); hamburger[0].classList.toggle("close-nav"); });
true
b45492b4263ab8e6f8e54af334e8bc12e9ecac33
JavaScript
chris-mbg/radio-application
/api/controllers/channelController.js
UTF-8
1,347
2.53125
3
[]
no_license
const fetch = require("node-fetch"); const jsonFormat = "format=json"; const paginationFalse = "pagination=false"; const convertToDateObject = require("../core/convertToDateObject"); const getAllChannels = async (req, res) => { let channelsList = await fetch( `http://api.sr.se/api/v2/channels?${jsonFormat}&${p...
true
dc99d607811fc1557044a8bc0c5cbf50bba2b2cb
JavaScript
jpospino/primera-subida
/yargs.js
UTF-8
1,379
2.609375
3
[]
no_license
const nombre = { demand : true, alias : 'n' } const matematicas = { demand : true, alias : 'm' } const ingles = { demand : true, alias : 'i' } const programacion = { demand : true, alias : 'p' } const creacion = { nombre, matematicas, ingles, programacion } const mue...
true
8b2a1e3a29fab80ac09b2ca264a40c8031f07a27
JavaScript
febiyanY/sblog_front
/src/state/ducks/posts/reducers.js
UTF-8
711
2.578125
3
[]
no_license
import * as types from './types' const intialState = { posts: [], error: null } const reducer = (state = intialState, action) => { switch (action.type) { case types.START_LOAD: return { ...state, error : null } case types.LOAD_SUCCESS: re...
true
6f0a658274390c4d2c6bc7dd61def6b0bb99f374
JavaScript
xfxhn/httpServer
/server/server.js
UTF-8
1,877
2.546875
3
[]
no_license
const readline = require('readline'); const EventEmitter = require('events'); const {Duplex} = require('stream'); const net = require('net'); const Request = require('./request'); const Response = require('./response'); class Server extends EventEmitter { constructor(requestListener) { super(); thi...
true
1e1596ead6b5512c5dab61fbd608a7d25db61394
JavaScript
sivalogin1991/ReactAssessment
/react-assessment/src/Components/Container/LoginContainer/login.jsx
UTF-8
3,355
2.734375
3
[]
no_license
import React,{ Component } from 'react'; import Children from '../ChildComponent' import './style.css' class Login extends Component { constructor(props){ super(props); this.state = { firstName: "", lastName: "", email: "", password: "", } ...
true
3912420333587cfe94924051755c6a881021263e
JavaScript
bellentuck/regbin
/composeValidationHandlers.test.js
UTF-8
1,605
2.59375
3
[]
no_license
const { expect } = require('chai'); const composeValidationHandlers = require('./composeValidationHandlers'); const validations = require('./parsedValidations'); describe('The `composeValidationHandlers` helper function', () => { describe('Input', () => { it('Takes in any number of strings representing validatio...
true
971f09717f5bcf759ed5ba40a66a837e51695067
JavaScript
lwallent/buildshit
/src/initializer.js
UTF-8
1,831
2.78125
3
[]
no_license
var fs = require('fs'); let initializer = () => { console.log('starting: ' + process.argv ); console.log('current working directory: ' + process.cwd()); let readPackage = () => { let options = { name: "My Context", scripts: {} } const ppath = process...
true
4a3b2f848478347202df051b2ef9844b8420a162
JavaScript
Ylardizabal/Psychic-Game
/assets/javascript/game.js
UTF-8
1,885
3.859375
4
[]
no_license
// variables var letterAnswers = ["i", "a", "m", "s", "n", "e", "a", "k", "y"]; var letterPick = " "; var userChoice; var numGuess = 9; var missGuess = []; var wins = 0; var losses = 0; var inputFound; var inputKey; // computer randomly picks letter - works function pickLetter(){ letterPic...
true
6a77b8a7ca862bacba0bc2db4c7357489aa418e8
JavaScript
Mrahmed380/Deku-Bot
/commands/ping.js
UTF-8
368
2.53125
3
[]
no_license
const Discord = require('discord.js') module.exports = { name: "ping", category: "Bot Information", cooldown: 1, run: async(bot, message, args) => { let ping = `${bot.ws.ping}ms` let Embed = new Discord.MessageEmbed() .setColor("#2f3136") .setTitle("🏓 Pong!") .setDescription(`Ping is...
true
c7c503fd0fbfc195ab0c2e57c992739c51ecfea2
JavaScript
pigstake/collab-cards
/src/App.js
UTF-8
1,130
2.9375
3
[]
no_license
import React from "react"; import PromptAndDetails from "./PromptAndDetails"; import cards from './CardsData' import "./App.css"; class App extends React.Component { constructor() { super(); this.state = { prompt: cards[0].prompt, details: cards[0].details, }; } RandomCard() { const r...
true
59a73bee9776ce7ca2595431d5d22a978f36a817
JavaScript
eeh04001/jamming
/src/util/Spotify.js
UTF-8
4,894
2.53125
3
[]
no_license
let accessToken = null; const clientID = 'ebea4c0e5e584569a59af51fc0de20aa'; const redirectURI = 'http://localhost:3000/'; const Spotify = { getAccessToken: () => { if (accessToken) { return accessToken; } // check for access token in current url. let url = window....
true
5c348d84c253480128f16490125cb9419ace7ba6
JavaScript
carrot-farm/edu-nodejs-microservice
/src/static/error_catch/index.js
UTF-8
491
3.015625
3
[]
no_license
// ===== 별도의 스레드에서 동작하는 콜백함수. function func(callback){ process.nextTick(callback, 'callback !!'); } // ===== 에러 발생 시. try{ func((param) => { // 의도적 에러 발생 a.a = 0; }); }catch(e){ // nextTick 사용시 에러 캐치가 되지 않는다. console.log('> exception!!'); } // ===== 모든 스레드에서 발생하는 예외 처리 process.on('uncaughtException'...
true
7867db1df343b294f7224ad2352f345352ba057c
JavaScript
Natalia504/trivia-game
/src/components/App.js
UTF-8
4,626
2.734375
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import { getData, recordAnswers, recordCurrentTurn, selectAnswer, checkForCorrectAnswer, saveAnswers, disableBtn, showAnswer } from '../../reducer'; import { connect } from 'react-redux'; import ComponentOne from './ComponentOne'; import axios from 'axios'; ...
true
67a9f9e744f544613e9a54f1e8da5284b764bbe3
JavaScript
robertabrooks/d3-scatter
/d3scatter.js
UTF-8
3,272
2.71875
3
[]
no_license
var margin = {top: 20, right: 20, bottom: 30, left: 50}; var w = 750 - margin.left - margin.right; var h = 400 - margin.top - margin.bottom; var data = [ {name: "A", type: "tech", price: 999, tValue: 500, vol: 1200}, {name: "B", type: "transp", price: 772, tValue: 800, vol: 367}, {name: "C", type: "trans...
true
13c48706ddbfdf0cb8a7bcc0ec25a5e4595f8e07
JavaScript
arnoldczhang/node_test
/lib/sigmund.js
UTF-8
934
3.140625
3
[ "MIT" ]
permissive
// console.log(sigmund(null)); // console.log(sigmund(undefined)); // console.log(sigmund({})); // console.log(sigmund(a)); module.exports = (object, maxSession = 10) => { let result = ''; const note = []; const sigmundFn = (subject, session) => { if (session >= maxSession) return; if (typeof subject ==...
true
108f1ddb3c664ec4e24faddc6624825de3b27ef1
JavaScript
b30wulffz/gondor
/api/bin/loadQueries.js
UTF-8
1,790
2.53125
3
[]
no_license
import fs from 'fs'; import path from 'path'; import gql from 'graphql-tag'; import { loadGraphqlFile, getDirContents, isCamelCase, isPascalCase, basename, } from './utils'; // NOTE(naman): impure function const loadQueries = (state, root) => { state.resolvers.Query = {}; root = path.join(root, 'query');...
true
7ae1738eaa1f48db68c19a2f5394a98cedb0e5b7
JavaScript
Moiqab/Project-1
/jscript.js
UTF-8
2,169
3.140625
3
[]
no_license
const form= document.getElementById('form'); const username=document.getElementById('username'); const nic=document.getElementById('cnic'); const email=document.getElementById('Email'); const Dob=document.getElementById('dob'); const pass=document.getElementById('password'); const pass1=document.getElementById('passwor...
true
e647326e09afedc81fd8bf22834415fb5d528706
JavaScript
steftheo/lesson-05-contacts
/src/application.js
UTF-8
1,841
3.34375
3
[]
no_license
import ContactFormView from 'form-view'; import ContactView from 'item-view'; export default class ApplicationView { /** * Sets up a new instance of an ApplicationView * @param Element element Element that should be attached to */ constructor(element) { // Store the "contacts" list for later this...
true
3591f52f673cdca87ffd5e6b7981d55e6f07aafd
JavaScript
edevars/var-let-const
/7 - globalScope.js
UTF-8
200
3.09375
3
[]
no_license
if (true) { var fruta1 = "🍎"; // Global scope let fruta2 = "🍉"; // Local scope const fruta3 = "🍇"; // Local scope console.log(fruta2); console.log(fruta3); } console.log(fruta1);
true
9b1bc1d62ede02df9ef6961615ef4a12725a288d
JavaScript
djonruddbay/AppUser
/AppUser/wwwroot/js/AccountNumber.js
UTF-8
492
2.609375
3
[]
no_license
 $('.AccountNumber').on('input propertychange', function () { anValue = $(this).val().replace(/\D/g, ''); if (anValue.length > 0) { if (anValue.length > 4) { anValue = anValue.slice(0, 4) + "-" + anValue.slice(4) } if (anValue.length > 7) { anValue = anValue.sl...
true
bb2072bcd0c30728ebda2a9e93fe90e00b766a0d
JavaScript
prodec/lightningtalks
/2015-12-02/fpforknightsandamazons/code/demo/etl-ramda.es6
UTF-8
914
2.84375
3
[]
no_license
import fs from "fs"; import path from "path"; import R from "ramda"; function readFile(path) { return new Promise((resolve, reject) => { fs.readFile(path, (err, data) => { resolve(data); }); }); } function averageAirTemperature(data) { return R.pipe(R.map(R.compose(parseFloat, R.prop("TempAr (oC)"...
true
0df2815bdcfd1fc09a24ce00d37c7f9982d7ca5f
JavaScript
wannabefro/multi_snake
/public/scripts/game.js
UTF-8
12,667
3.046875
3
[]
no_license
var firebase = new Firebase('https://multi-snake.firebaseIO.com'); var allSnakes = firebase.child('game'); var randomString = Math.random().toString(36).substring(7); var mySnake = firebase.child('game/snake' + randomString); var color = get_random_color(); function get_random_color() { var letters = '0123456789ABCDE...
true
284921b4f860c8c8065b2a82a0e9e8dc8c5a018c
JavaScript
nate745/js-deli-counter-bootcamp-prep-000
/index.js
UTF-8
550
3.59375
4
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
function takeANumber(line,name){ line.push(name); return (`Welcome, ${name}. You are number ${line.length} in line.`) } function nowServing(line){ if (line.length === 0){ return (`There is nobody waiting to be served!`); } return (`Currently serving ${line.shift()}.`) } function currentLine(line){ if...
true
c44a1ae4d3d7633c86ece1c76a5a13b973ab0b6d
JavaScript
braiansieber/nodejs-training
/first_exercise/exercise.js
UTF-8
2,094
3.640625
4
[ "Unlicense" ]
permissive
/* Generar un script en JavaScript haciendo uso de Node que manipule un archivo local que puede ser un txt u otro formato que deseen y me brinde un listado por consola de las transacciones que no fueron exitosas. El formato del archivo de texto puede ser generado por otro software de la siguiente forma ID | DATE | TIM...
true
bcb77ec901acddd8a764d7f0e97b04f7975c73cc
JavaScript
carlosmiguelsns/text-to-speech
/TTS-Cognitive Serices/public/scripts/main.js
UTF-8
1,727
2.6875
3
[]
no_license
(function () { document.getElementById('tts-content__get').addEventListener('click', function () { document.getElementById('tts-content__get').setAttribute("disabled", "disabled"); makeRequest(); }); function makeRequest() { const url = `https://e5bb8e71d4ab.ngrok.io/api/tts`; const xhttp = new ...
true
439eab1f097590fd7ccadfd5598bcf4268ff368b
JavaScript
martreyz/modulo-2-evaluacion-final-martreyz
/src/js/04-favourites.js
UTF-8
4,285
3.28125
3
[ "MIT" ]
permissive
//Favourites: Push elements set as favourite into the array to be saved in LocalStorage. Render the information into the page: function addToFavourites(event) { let favouriteSerie = event.currentTarget; let favouriteSerieId = favouriteSerie.id; if (favouriteSeries.indexOf(searchSeries[favouriteSerieId]) !==...
true
68f9dc3035657bf5ca4616cf58de0a519439ab3e
JavaScript
madhabjr/DiceGame
/src/components/dices/index.js
UTF-8
4,656
3.296875
3
[]
no_license
import { useState, useRef, useEffect } from 'react'; import dice1 from '../../images/dice1.svg'; import dice2 from '../../images/dice2.svg'; import dice3 from '../../images/dice3.svg'; import dice4 from '../../images/dice4.svg'; import dice5 from '../../images/dice5.svg'; import dice6 from '../../images/dice6.svg'; im...
true
36f57e67eb45fc99e5fa8b22734bd0482c7c859f
JavaScript
paigelfinch/paigefin.ch
/goodday.js
UTF-8
1,508
3.171875
3
[]
no_license
let font let graphic let textColor const waveInput = document.querySelector("input.wave") const dxInput = document.querySelector("input.dx") const dyInput = document.querySelector("input.dy") function preload() { font = loadFont("assets/SpaceGrotesk-Medium.otf") } if (new Date().getHours() < 12) { textColor = "#...
true
f4c9d53f30357e043e6deb57a1c9c64974df23fb
JavaScript
stdroom/FengDuAppFactory
/app_icon/ps_jiaoben.jsx
GB18030
2,397
3.046875
3
[]
no_license
//[File][openDialog]ļѡ񴰿ڣʾûѡ1024*1024ߴͼ꣬ļ洢ڱ[bigIcon]С var bigIcon = File.openDialog("ѡһ1024x1024СͼƬ", "*.png", false); //ûѡͼļ򿪺ĵ[pngDoc] var pngDoc = open(bigIcon, OpenDocumentType.PNG); //[Folder][selectDialog]ļѡ񴰿ڣʾûѡiOSͼļС //ļд洢ڱ[destFolder]С var destFolder = Folder.selectDialog( "ѡһļУ"); //һ飬ɸjsɣÿһ[name]Ժ[size...
true
46d9165372e4c68edf6b0fac35b00b5522147d22
JavaScript
PUC-Infovis/syllabus-2019
/ayudantias/ayudantia01/Presentacion/Assets/web_animations.js
UTF-8
3,025
3.234375
3
[]
no_license
let canvas, message, mid, qint; let step = 0; let dir = 1; const path = [[3, 5], [2, 5], [1, 5], [1, 4], [1, 3], [2, 3], [2, 2], [3, 2]]; const dots = []; function setup(){ mid = windowHeight*0.5/2; qint = mid/5; canvas = createCanvas(windowHeight*0.5, windowHeight*0.5); canvas.parent('canvas-container'); ba...
true
7b7ad00399c279f3584f1c9146a3eacd37fff071
JavaScript
andrewc91/Algorithms
/DataStructures/Sets/sets.js
UTF-8
3,803
4.34375
4
[]
no_license
function Set(){ let set = {}; let size = 0; this.has = function(val){ return set.hasOwnProperty(val); // hasOwnProperty will return true if there is a key that matches the val } this.add = function(val){ if (!this.has(val)){ set[val] = val; size++; ...
true
0972d2cc30bbbccf8ffe440340803d17016d46a7
JavaScript
darrylyeo/losaltoshacks-checkin
/app.js
UTF-8
4,061
2.703125
3
[]
no_license
const express = require('express') const bodyParser = require('body-parser') const lowdb = require('lowdb') const FileAsync = require('lowdb/adapters/FileAsync') const shortid = require('shortid') // Create server const app = express() //app.use(bodyParser.json()) app.use('/', express.static(__dirname + '/frontend'))...
true
5cf5e0461eee29e7664543c49027f2f126e61a7e
JavaScript
zzmin13/Algorithm_problems
/algorithm/정렬-연습/힙정렬.js
UTF-8
3,181
4.125
4
[]
no_license
class Heap { constructor() { this.items = []; } // swap swap(index1, index2) { let temp = this.items[index1]; this.items[index1] = this.items[index2]; this.items[index2] = temp; } // parentIndex parentIndex(index) { return Math.floor((index - 1) / 2); } // leftChildIndex leftC...
true
59691d037422bd03f0685c1b0cabb6b3cf444429
JavaScript
apache/cordova-windows
/template/cordova/lib/MRTImage.js
UTF-8
2,499
2.890625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "MIT" ]
permissive
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
true
33a8e8edb30c79894bf3a532c9eb06ec3f86f2fe
JavaScript
NickSem/jshometasks
/mousetasks/move.js
UTF-8
126
2.625
3
[]
no_license
window.addEventListener("mousemove", func); function func(e) { divv.style = `left: ${e.clientX}px; top: ${e.clientY}px`; }
true
ee5481e0679294f1feaf6bebe32156ab828199f0
JavaScript
mariotacke/advent-of-code-2019
/day-10-monitoring-station/station.js
UTF-8
674
2.9375
3
[ "MIT" ]
permissive
module.exports = (input) => { const asteroids = input .split('\n') .reduce((objects, line, y) => { line.trim().split('').forEach((space, x) => { if (space === '#') { objects.push({ x, y }); } }); return objects; }, []); return asteroids .map(({ x: x1, y:...
true
ff908a1f4d79bbe3e184390099f8bbdcc390deab
JavaScript
charles-hanson/Project_6_game_show_app
/app.js
UTF-8
1,071
3.203125
3
[]
no_license
let qwerty = document.getElementById('qwerty'); let phrase = document.getElementById('phrase'); let ul = document.querySelector('ul'); let keyRowDiv = document.getElementsByClassName('keyrow'); let keyPress = keyRowDiv.value; let missed = 0; let btnReset = document.getElementsByClassName('btn__reset'); let mainContaine...
true
bcf0b9b34ae9451492278a8817ad93d5f1a8a004
JavaScript
sohail288/cfs_visualization
/app/cfs/static/assets/jsx/hist_component.js
UTF-8
4,021
2.734375
3
[ "PostgreSQL" ]
permissive
hist_component = {}; idfy = function(id) { return id.replace(/[^A-Za-z ]/g, '') .trim().split(' ') .filter((d)=>d !== '') .join('-'); } hist_component.create = function(el, props, state) { var margin = props.margins; var svg = d3.select(el).append('svg') ...
true
c35707abe31f3d6d98b0a49b9b94df4211a1879e
JavaScript
bgoonz/UsefulResourceRepo2.0
/MY_REPOS/GIT-CDN-FILES/misc/mout/string/slugify.js
UTF-8
807
2.625
3
[ "MIT", "BSD-3-Clause" ]
permissive
"use strict"; exports.__esModule = true; var toString_1 = require("../lang/toString"); var replaceAccents_1 = require("./replaceAccents"); var removeNonWord_1 = require("./removeNonWord"); var trim_1 = require("./trim"); /** * Convert to lower case, remove accents, remove non-word chars and * replace spaces with the ...
true
95a1d55edcf4905196fb452aeb84da33caf6d6e7
JavaScript
vladn255/1486707-keksobooking-21
/js/util.js
UTF-8
1,829
3.5
4
[]
no_license
'use strict'; const KEY_ESCAPE = `Escape`; const KEY_ENTER = `Enter`; const errorTemplate = document.querySelector(`#error`) .content .querySelector(`.error`); const successTemplate = document.querySelector(`#success`) .content .querySelector(`.success`); const generateRandomInt = (min, max) => { let rand ...
true
cef5b1e3f6836f582c2ccb3865fcf182ecdca40d
JavaScript
fu1252/react-admin
/src/utils/storage.js
UTF-8
748
2.8125
3
[]
no_license
export function getLocalStorage(key){ const dataTemp=localStorage.getItem(key) const data=JSON.parse(dataTemp) if(dataTemp){ return data }else{ return null } } export function isLogin(){ const haveValue=getLocalStorage('userData') if(haveValue){ return true }else{ return false } } e...
true
f71b122e7f3a424ce3dd77611caf5be81a006529
JavaScript
alex55132/VOIN
/js/utilFunctions.js
UTF-8
458
2.96875
3
[]
no_license
function getUrlParameters() { let searchString = window.location.search; let variables = {} searchString = searchString.split("?")[1]; if(searchString === undefined) { variables = null; } else { searchString = searchString.split("&"); for(let i = 0; i < searchString.length; i...
true
38dfddec3b7d482f00adbc90948b4a325b1a6e51
JavaScript
sindhubaskar/canvasprojects.github.io
/restaurant/js/validateForm.js
UTF-8
1,926
3.234375
3
[]
no_license
function validateForm() { var name1=document.getElementById('name1').value; var email=document.getElementById('email').value; var phone=document.getElementById('phone').value; var info=document.getElementById('info').value; var by=document.myform.yes; var bn=document.myform.no; var check=document.my...
true
30cb6af38c3057471ab9a8f16c51e127646157a9
JavaScript
tuian/k-php
/ci/resource/js/form.js
UTF-8
233
2.546875
3
[ "MIT" ]
permissive
function isDisplay() { var ratios = document.getElementsByName("B2a"); if(ratios[2].checked) { document.getElementById("display").style.display="block"; } else { document.getElementById("display").style.display="none"; } }
true
e723fa9e857984275bfa6571a0a218b805d8cbb2
JavaScript
galindo4926/galindo4926.github.io
/JavaScript Mini-Projects/myScript.js
UTF-8
6,473
4.59375
5
[]
no_license
/* NOTES NOTES NOTES NOTES NOTES Comparison Operators are symbols/math that let us.. ..COMPARE 2 or more variables or values = symbol is an ASSIGNMENT operator, we use it to ASSIGN a value to a variable ex. var = 5; sets x equal to a value orf 5. == symbol is a COMPARISON operator, we use it to COMPARE ...
true
b9c4388eabe8ba5c081ae59e2de1ab34f1af9516
JavaScript
baldurfb/VerkefniJS
/Verkefni 6/SliderAndTable/code.js
UTF-8
1,720
3.46875
3
[]
no_license
'use strict'; let slider = document.getElementById('slider'); let catTable = document.getElementById('catTable'); // Einfaldur slider noUiSlider.create(slider, { start: [0, 100], connect: true, range: { 'min': 0, 'max': 100 } }); // Hver köttur á nafn og laun. Einnig hefur klasin refe...
true
2609680e589e88770acd2a36cb5fff24c1a3b5a6
JavaScript
tyt2y3/plotterarm
/client/svg_panzoom.js
UTF-8
2,148
2.75
3
[]
no_license
define(function() { function svg_panzoom(el) { return new panzoom(el); } function panzoom(svgDocument) { var box,obox,doc,lastxmouse,lastymouse,dragging,aspect; function mousewheel(e) { if (!e) e = window.event; var d = e.detail ? -e.detail:e.wheelDelta/120; var pad = 5; if( e.stopPropagation) ...
true
582b830401e45ed6e8f3ad8becc7fc21412ff7c4
JavaScript
riddimarchive/riddimarchive.github.io
/js/passport.js
UTF-8
2,054
2.796875
3
[]
no_license
//module and file requests: passport local, database connect, query and hash functions const LocalStrategy = require('passport-local').Strategy; const createConnection = require('./dbconnect'); const has = require('./hash'); const conquerie = require('./conquery'); const userquerie = require('./userquery'); module.exp...
true
206093edd243103a58cf251cb02738904914d48f
JavaScript
johanprinsloo/akka-cassandra-cluster-test
/src/main/webapp/js/json2table.js
UTF-8
4,380
3.328125
3
[ "Apache-2.0" ]
permissive
var elementCount = 0; var arrayCount = 0; var objectCount = 0; var nestingLevel = 0; function wordwrap(str) { parts = str.split(" "); for(i = 0; i < parts.length; i++) { if(parts[i].length <= 30) continue; t = parts[i].length; p = ""; for(var j = 0; j < (parts[i].length - 30); j +=...
true
5fa34eda8127b064def49e699e7f7be6cf793ec2
JavaScript
wstrauss123/hello_express_world
/hello_server.js
UTF-8
644
3.59375
4
[]
no_license
// Node.js Express Hello World. Can parse first and last name from url and give a specific hello to the parsed name. var express = require('express'); var app = express(); var server = app.listen(3000, function () { var host = server.address().address; var port = server.address().port; console.log('Hello World ...
true
f14b8eb6221ddb531825606b494cf4a42b823b99
JavaScript
geekbutchic/Java-Script-Notes-Term-1
/final-exam-review-notes/map-maker/map-operations.js
UTF-8
1,028
4.6875
5
[]
no_license
`Map Operations - mapping with arrays` const nums = [2, 4, 6,]; const num2 = [2, 4, 6]; const halves = []; const doubles = []; // What is a map? It means you are performing the same thing to every element in the array.` // Map operation // 1. always produces a NEW array // 2. that has the SAME number of elements as t...
true
a63cc2758f4c9c8ba8c4d4e91614301bb922b1b8
JavaScript
chriskarpyszyn/tennis-game
/js/DrawNumbers.js
UTF-8
3,536
3.609375
4
[]
no_license
var length = 50; var depth = 5; var color = "White"; var offset = length - depth; function drawNumberRect(x, y, pos) { switch (pos) { case 1: colorRect(x, y, length, depth, color); break; case 2: colorRect(x, y, depth, length, color); break; ...
true
2345e6cebf33ebf5184720ad27f0b77cd48b2287
JavaScript
prachi171/Vision-o-conquest-Anxiety-Allayer
/prototype/quote.js
UTF-8
467
3.015625
3
[]
no_license
let quote = document.getElementById('quote') let author = document.getElementById('author') let n = localStorage.getItem('on_load_counter'); if (n === null || n=== 1642) { n = 0; } n++; localStorage.setItem("on_load_counter", n); fetch("https://type.fit/api/quotes") .then(function(response) {...
true
2e9d7a6bfb043a153f7b21471fcfc055055325d4
JavaScript
milanmedic/codility_solutions
/Codility/binaryGap2.js
UTF-8
967
3.6875
4
[]
no_license
"use strict"; const solution = (number) => { let start = 0; let finish = 0; let maxCounter = 0; if(number == 0){ return 0; } const seq = (number >>> 0).toString(2); for(let i = 0; i < seq.length; i++){ if(seq[i] == 1){ start = i; } for(let j = i;...
true
f1e4943ab61e069f2d61185cf8effc6501393a07
JavaScript
Sokvadora/refactoring-task
/refactoring task.js
UTF-8
2,833
3.4375
3
[]
no_license
//invoice.json let invoice = { "customer": "MDT", "performance": [{ "playId": "Гамлет", "audience": 55, "type": "tragedy" }, { "playId": "Ромео и Джульетта", "audience": 35, "type": "tragedy" }, { ...
true
87f9c7a66b25673fde7d98961686588af31f7c0d
JavaScript
lalosh/algorithms-for-college
/linkedListClass.js
UTF-8
676
3.828125
4
[]
no_license
class LinkedList{ constructor(){ this._linkedList = []; } add(v){ if(this._linkedList.length == 0) { let obj = { value: v, next: 0 } this._linkedList.push(obj); } else{ let obj = { value: v, next: 0}; this._linkedLi...
true
b43fe5ad13de59b3afb49dc0d515f8b40ac18f20
JavaScript
georgedevcode/Reproductor-de-video
/Reproductor/js/reproductor.js
UTF-8
1,267
3.203125
3
[]
no_license
var video = document.getElementById("video"), btnPlay = document.getElementById("btnPlay"), icono = document.getElementById("icono"), tiempo = document.getElementById('tiempo'), volume = document.getElementById("volumen"); // Inicializando variables tiempo.setAttribute('max',video.duration); /...
true