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
8db691c05b31911917e4fc2e37109279a0c8e558
JavaScript
thetruefrank97/Javascript
/OOP/EjercicioSerie/Serie.js
UTF-8
1,078
3.09375
3
[]
no_license
class Serie { constructor(titulo, genero, creador) { this.titulo = titulo; this.numTemporadas = 3; this.entregado = false; this.genero = genero; this.creador = creador; } static tituloCreador(titulo, creador) { new Serie(titulo, 3, false, "", creador); } ...
true
854d49018c835c8f7c9dd20d43d120cb3acce419
JavaScript
adlakhavaibhav/trip
/view/assets/js/pack.js
UTF-8
4,947
2.921875
3
[ "MIT" ]
permissive
if (typeof(HK) == 'undefined') { HK = {}; } /* * Classes: * valid-pack-sv : valid row * invalid-pack-sv : invalid row * * Elements: * $('a.add-sv-again') : Adding a store variant again to pack * $('a.remove-sv') : Removing a store variant from pack * $('a#add-sv') : Adding a new store var...
true
6bc3088748be229ce49869968031f01bd9d4e18a
JavaScript
CJleo/clientCourse
/Server/test/testWs.js
UTF-8
436
2.53125
3
[]
no_license
var ws = require('ws'); var wsUrl = 'ws://127.0.0.1:8183/'; var sock = new ws(wsUrl); sock.on('open', function() { console.log('sock open come in ...'); sock.send('hello world ..'); }); sock.on('error', function(err) { console.log('sock error come in ...', err); }); sock.on('close', function(err){ console.log('...
true
1974bb583c6399d607b53b8676dc885ae81b0747
JavaScript
rroonniinn/GAS-Library
/v01/gas/adjustRows.js
UTF-8
472
2.734375
3
[]
no_license
/** * Ustawia wskazaną liczbę wierszy w arkuszu bez względu na znajdujące * się w nim dane. Zwraca arkusz * * @param {GoogleAppsScript.Spreadsheet.Sheet} sheet Arkusz * @param {number} quant Docelowa liczba wierszy */ const adjustRows = (sheet, quant) => { const rows = sheet.getMaxRows(); if (rows > quant) { ...
true
b8462b6b10b24ded7e0f86dc5b78b946fdb066c2
JavaScript
codegician/algorithms
/oddArray.js
UTF-8
283
4.25
4
[]
no_license
//Write a program that creates an array 'Y' that contains all the odd numbers between 1 to 255. When the program is done, 'y' should have the value of [1, 3, 5, 7, ... 255]. function yOddArray(){ var y = []; for(i=1;i<=255;i=i+2){ y.push(i); } console.log(y); } yOddArray();
true
788cdf855d13200dc8e518c26ed37f5b8d09a209
JavaScript
philippzach/shop-frontend
/__tests__/formatMoney.test.js
UTF-8
776
2.953125
3
[]
no_license
import formatMoney from '../lib/formatMoney' describe('format money function', () => { it('works with fractional euros', () =>{ expect(formatMoney(1)).toEqual('€0.01') expect(formatMoney(10)).toEqual('€0.10') expect(formatMoney(9)).toEqual('€0.09') expect(formatMoney(40)).toEqual('€0...
true
f3d12a4a1d404ffd093fef3fa5150425c82cdecc
JavaScript
raaudain/print_steps
/main.js
UTF-8
952
4.53125
5
[]
no_license
// Write a function that accepts a positve numer N. // The function should console log a step shape with N levels using the # character. // Make sure the step has spaces on the right hand size! function steps(n){ // Solution #1 let count = 1; while (count <= n){ console.log("#".repeat(count)); count++;...
true
8f39e36df719b0d0a8121e121f4024d35ce82b12
JavaScript
omarovfrontend/js-salary-allowances
/js/main.js
UTF-8
478
3.21875
3
[]
no_license
const input = document.querySelector('#salary'); const buttonCalc = document.querySelector('#button'); buttonCalc.addEventListener('click', function() { const inputValue = Number(input.value); if(!inputValue) { alert('ERROR!'); } else if(inputValue < 3) { alert('0%'); } else if(inputValue...
true
1c295ea65694b9270b37c7c6a76b733a3c2b952e
JavaScript
moseslagoon/random-card-generator
/Phrases.js
UTF-8
1,889
2.578125
3
[]
no_license
const Phrases = [ "Hope your day is filled with <noun>.", "Hope your day is just like <noun>.", "Without you, I wouldn't have <noun>.", "I love you as much as I love <noun>.", "I was so excited about your birthday I forgot to bring <noun>.", "Thank you for the greatest gift of all, <noun>.", "I can't imagine life witho...
true
7feee103d13a2bca01d336924afb396c535276ef
JavaScript
notify-watcher/core
/src/validators/libs.js
UTF-8
923
2.703125
3
[ "MIT" ]
permissive
/* eslint-disable no-console */ const defaultOptions = { verbose: false, }; /** * Validate that all the libs required by a watcher are * included in the current watcher executor * @param {Object} executor A @notify-watcher/executor instance * @param {Array} libs The libs of the watcher being validated * @param...
true
93fd246e3d89d699c79a24eda767c62fcc698c6c
JavaScript
szwork2013/AtlasUI
/src/scripts/components/AccountGrid.js
UTF-8
4,663
2.515625
3
[]
no_license
'use strict'; /* Dependencies */ import React from 'react/addons'; import AtlasGrid from 'components/AtlasGrid'; import AtlasMaintainToolbar from 'components/AtlasMaintainToolbar'; import AtlasModal from 'components/AtlasModal'; import promises from '../helpers/promises'; import {Modal, Button, Input, ButtonInput,...
true
8dc9d31fa039bc9b5aa6199cc5230ee8541fe1e4
JavaScript
boyuan12/Eloquent-JavaScript
/chapter2/chessboard.js
UTF-8
215
2.9375
3
[]
no_license
const size = 8 module.exports = function () { for (let i=0; i<=size; i++) { if (i % 2 === 1) { console.log(" # # # #") } else { console.log("# # # #") } } }
true
2ab56f6771e64c2905d4ca682659a1499fc0e347
JavaScript
bpalowskiTechtonic/final-library
/front-end/src/util/helperFunctions.js
UTF-8
462
3.171875
3
[]
no_license
export function sortBooksById(books) { return books.sort((a, b) => { if (a.id < b.id) return -1; if (a.id > b.id) return 1; return 0; }); } export function sanitizeBookData(bookArr) { for(let i =0; i<bookArr.length; i++){ if(typeof bookArr[i].rating === "string"){ bookArr[i].rating = Number...
true
8a5ca6cbba0fe496cd3d32d9ededc3e01c612a05
JavaScript
oath2order/week-4-game
/assets/js/game.js
UTF-8
3,959
3.375
3
[ "MIT" ]
permissive
//character object array var characterArr = [ { "id": 0, "name": "Rey", "HP": 200, "baseHP": 200, "power": 6, "basepower": 6, "counter": 5, "picsource": "assets/images/rey.jpg" }, { "id": 1, "name": "Finn", "HP": 160, "baseHP": 160, "power": 10, ...
true
d48ec80e238703f4a4e9ae723f17d42512e37c72
JavaScript
gabrielafeijo/trybe-exercises
/exercises/bloco_08_JS_ESHOF/dia_2_HOF_forEach_find_some_every_sort/exercicios-fixacao.js
UTF-8
2,683
4.21875
4
[]
no_license
//1 - forEach - E-mails const emailListInData = [ 'roberta@email.com', 'paulo@email.com', 'anaroberta@email.com', 'fabiano@email.com', ]; const showEmailList1 = emailListInData.forEach((email, posição, array) => { console.log(`O email ${email} está cadastrado em nosso banco de dados!`); console.log(`Sua...
true
0461cf297868163e85b77591b4fa00d9e1f1362f
JavaScript
weibsgz/webpack-library
/src/index.js
UTF-8
1,046
2.53125
3
[]
no_license
require('core-js/features/object/define-property') require('core-js/features/object/create') require('core-js/features/object/assign') require('core-js/features/array/for-each') require('core-js/features/array/index-of') require('core-js/features/function/bind') require('core-js/features/promise') require('./css/a.scs...
true
9d8760a24f752afe0eff85c7ad00c58a94461df0
JavaScript
SebastianStehle/jint
/Jint.Tests.Test262/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger.js
UTF-8
1,229
3.015625
3
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-ecma-no-patent" ]
permissive
// Copyright (C) 2020 Rick Waldron. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.at description: > Property type and descriptor. info: | %TypedArray%.prototype.at( index ) Let relativeIndex be ? ToInteger(index). includes: [te...
true
b4b9be5d636305621618b65e10cf6344e24f5a3c
JavaScript
arjitinshorts/JS_problems
/prob4.js
UTF-8
1,571
4.1875
4
[]
no_license
// Problem statement 4: Implement classes in plain javascript (without using class keyword of course) [ you can use google and medium blogs for this] /* Implementing a simple class Person. Person stores name, age, gender. It's properties are being inherited by two other classes Teacher (also stores Subject) Student ...
true
e835692bd9a433fcc131089f0013d27173c3a47e
JavaScript
JayTLH/hatchways-frontend
/src/pages/Main/Main.js
UTF-8
2,939
2.734375
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import './Main.scss'; import Student from '../../components/Student/Student'; export default class Main extends Component { state = { data: null, nameSearch: '', tagSearch: '', filter: null } getApi = () => { axios.get('htt...
true
ada0161c4e56bb3bd303c97199ffe30324a0af47
JavaScript
collingo/rrouter
/src/data.js
UTF-8
3,330
2.671875
3
[ "MIT" ]
permissive
/** * @jsx React.DOM */ 'use strict'; var Promise = require('bluebird'); var merge = require('./merge'); var emptyFunction = require('./emptyFunction'); var getStepProps = require('./getStepProps'); /** * Make task * * @param {String} name * @param {Function} fetch * @returns {Function} */ func...
true
b3577873eda8db2ef7c36388b1592c6e103239ee
JavaScript
swapnadeepak/AutomationTool
/FrontEnd/src/main/webapp/resources/js/dropdown.js
UTF-8
1,367
2.65625
3
[ "MIT" ]
permissive
$(document).ready( function() { $('#folderId').change( function() { $.getJSON('fileList', { folderPath : $(this).val() }, function(data) { var $select = $('#fileId'); $("#fileId option").remove(); $.each(data, function(key, value) { $select.appe...
true
f2a019f3b38161f7af5844d16f416c73e27fe4e6
JavaScript
laforetmoreno/countries-app
/src/components/countrie-data/CountrieData.js
UTF-8
1,014
2.515625
3
[]
no_license
import React from 'react'; import PropTypes from 'prop-types'; import './CountrieData.scss'; const renderCountriesData = data => data.map(countrie => <ul className="CountrieData__list" key={countrie.name}> <li className="CountrieData__list__item" key={countrie.name}>Name: {countrie.name}</li> <li className=...
true
e3a560002483544ee45f81bf2d58237e6700f554
JavaScript
jhoanvasquez/Workouts
/WorkoutsApp/static/WorkoutsApp/js/crearplanes.js
UTF-8
1,911
2.953125
3
[]
no_license
window.onload = function() { //alert("validando su plan a crear"); document.getElementById("acantidadEjercicios").style.display = "none"; document.getElementById('btnCrearPlan').disabled=true; document.getElementsByName('id_area')[0].addEventListener('change', validaEjercicios); }; function validaEje...
true
e3b6c1b2f51c68c40912f0c33f9b82adc388f74c
JavaScript
alonssoreyes/mega-health-API
/controllers/equipment.js
UTF-8
1,571
2.671875
3
[]
no_license
const Equipment = require('../models/equipment'); const bcrypt = require('bcrypt'); const getEquipments = async (req, res) => { try { const equipments = await Equipment.find({}); res.json(equipments); } catch (err) { res.status(500).json(err); } } const saveEquipment = as...
true
fbeee0731bae18cb5b12e7a46c3377998ffe4eab
JavaScript
AgoraIO-Community/RTE-Innovation-Challenge-2020
/SDKChallengeProject/GameParty/GameParty-Node/routes/cloud-queue.js
UTF-8
1,262
2.875
3
[ "MIT" ]
permissive
var AV = require('leanengine'); var router = require('express').Router(); /* * 云函数任务队列示例 * * 云函数任务队列提供了一种可靠地对云函数进行延时运行、重试、结果通知的能力。 * 在使用 AV.Cloud.enqueue 将任务加入队列后,将由管理程序确保任务的执行,即使实例重启也没有关系。 */ /* 延时任务,在 2 秒之后执行 */ router.post('/delay', function(req, res, next) { AV.Cloud.enqueue('delayTask', {}, { delay: ...
true
f77bc53e579b60adc7f235b80687d3cd9798f6b7
JavaScript
nibir2010/library_app
/lib-poc/server/app.js
UTF-8
1,629
2.640625
3
[]
no_license
const fs = require('fs'); const express = require('express'); const bodyParser = require("body-parser"); let app = express(); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); // fs.writeFile('booklist.json',JSON.stringify(obj),(err)=>{ // if(err){ // throw new Error(err) ...
true
157d4c89b9d653129473179a1ad7619c858ab89f
JavaScript
chrisdurheim/chrisdurheim.github.io
/assets/dist/to-do.js
UTF-8
8,931
3.15625
3
[]
no_license
const templateTodo = document.createElement('template'); templateTodo.innerHTML = ` <style> h1 { font-size: 100px; font-weight: 100; text-align: center; color: rgba(175, 47, 47, 0.15); } section { background: #fff; margi...
true
b6568adbf9377228d1d8edaab254cb046bea6f12
JavaScript
2622122845/me-react-app
/src/pages/Index/assets/js/kugou-music.js
UTF-8
3,033
2.65625
3
[]
no_license
let lrc = "00:00.00]体面 (Live) - 于文文 (Kelly)[00:08.01]词:唐恬[00:16.03]曲:于文文[00:24.05]别堆砌怀念让剧情 变得狗血[00:35.36]深爱了多年又何必 毁了经典[00:44.13]都已成年不拖不欠[00:49.77]浪费时间是我情愿[00:55.33]像谢幕的演员 眼看着灯光熄灭[01:06.77]来不及 再轰轰烈烈[01:12.24]就保留 告别的尊严[01:17.96]我爱你不后悔 也尊重故事结尾[01:29.32]分手应该体面 谁都不用说抱歉[01:36.23]何来亏欠 我敢给就敢心碎[01:41.97]镜头前面是从前的我们[01:46.51]...
true
57ca73ed1ee675dc3803bd32373196f59359c450
JavaScript
asakusuma/atomic
/examples/_old/pojs_elements_3.js
UTF-8
793
2.703125
3
[ "MIT", "Apache-2.0" ]
permissive
/*global Atomic:true */ /* This example loads jQuery, the Button, and the Carousel It then associates next/previous actions with the carousel's public API for advancing/rewinding. This example uses the direct .on() interface exposed by the button objects. Like any event listener, they can receive paramerers. We use ...
true
f1cef78d0d3e7aacc8c0d458ace5831aa1570ea8
JavaScript
thomassw66/old_high_school_workspaces
/HTML & JS/Game001/game.js
UTF-8
729
2.921875
3
[]
no_license
var Screen = { canvas: null, ctx: null, img: null, draw : function(){ //alert("M"); this.canvas.width = window.innerWidth; this.canvas.height = window.innerHeight; this.ctx.drawImage(this.img,0,0,this.img.width,this.img.height, 0,0,window.innerWidth,window.innerHeight); } } var setup = function(...
true
82b350f445ef248aed9be61e8bca986ff7e014ef
JavaScript
200239087/COMP1073-Lesson3
/Scripts/app.js
UTF-8
1,249
4.03125
4
[]
no_license
/* javascript lives here */ console.log("App Started"); // Declare or initialize variable // variable creats a link to the H1 element var firstHeading = document.getElementById("firstHeading"); // Do not use window.alert or document.write console.log(firstHeading.textContent); //Three Steps for injecting content //...
true
39942fd51459f8703bb6b5e1f7cb2f28e077c049
JavaScript
Sharan-Lobana/IAMDinosaur
/GameManipulator.js
UTF-8
14,665
2.875
3
[ "MIT" ]
permissive
var robot = require('robotjs'); // Cache screen size var screenSize = robot.getScreenSize(); var Scanner = require ('./Scanner'); // COLOR DEFINITIONS // This is the Dino's colour, also used by Obstacles. var COLOR_DINOSAUR = '535353'; var DARK_COLOR_DINO = 'ACACAC'; var GameManipulator = { // Stores the game po...
true
105776e4edb4fd4cbce34c9ee7863ab69a6464a8
JavaScript
moalamin/phase-0
/week-7/game.js
UTF-8
4,949
4.21875
4
[]
no_license
// Design Basic Game Solo Challenge // This is a solo challenge // Your mission description: // Overall mission: Avoid detention by guessing the correct page number. // Goals: Guess answer before Snape throws a fit. // Characters: Harry, Snape // Objects: Harry, Snape, Book // Functions: guess_answer, throws_fit, ge...
true
bf70a8f13da08e7ace9e16bd230bf4e86d0effeb
JavaScript
PAtrofimov/websocket-chat
/server.js
UTF-8
2,016
2.546875
3
[]
no_license
const express = require("express"); const http = require("http"); const socketIO = require("socket.io"); const Moniker = require("moniker"); const app = express(); const server = http.Server(app); const port = process.env.PORT || 3000; const io = socketIO(server); app.get("/", (req, res) => { res.sendFile(__dirname...
true
6d39d94f5340074d47be1cbae47f5fec6baa59d2
JavaScript
svaswani/ExperimentalWritingFinalProj
/chat.js
UTF-8
4,909
2.78125
3
[]
no_license
"use strict"; // api.ai token and url var accessToken = "f3360fffaa6e4b00a8e7d43461ea1ab0", baseUrl = "https://api.api.ai/v1/"; // giphy api token var giphyToken = "dc6zaTOxFJmzC"; // writes to chatbox once content comes from api and user sends content funct...
true
70455c36cd14717984aa15306c6294b844ac7671
JavaScript
green-fox-academy/EvaKulcsar
/week-03/day5/drawPyramid.js
UTF-8
203
2.625
3
[]
no_license
'use strit'; //const lineCount =4; /* * *** ***** ******* */ const lineCount = 4; for (let i = 1; i <= lineCount; i++) { console.log(' '.repeat(lineCount - i + 1) + '*'.repeat(i * 2 - 1)) }
true
c37aa67ff2405432b3bf3eee33fa0fd71bdee6e5
JavaScript
alexkhazzam/mongodb-live-chat
/public/js/registerValidation.js
UTF-8
4,002
2.953125
3
[]
no_license
const form = document.getElementById('register-form'); const registerBtn = document.getElementById('register-btn'); const confirmEmailBtn = document.getElementById('register-btn-email-auth'); const password = document.getElementById('password'); const email = document.getElementById('email'); const lastName = document....
true
f64b6b3dc38d378812201ebd49ae6f167a5a0a3d
JavaScript
AmrAbdulrahman/smarter-code
/src/Interpreter/Lexer/Token.js
UTF-8
578
2.8125
3
[]
no_license
import { Position } from '../Common/Position'; export class Token { constructor(type, value, pos) { this.type = type; this.value = value; this.pos = pos; } toString() { return `Token(${this.type}, ${this.value})`; } getLocation() { return `(${this.pos.row + 1}:${this.pos.col + 1})`; }...
true
bff7369abaf6c149b4f56789782f97d23aa20030
JavaScript
k1-k0/EloquentJS-tasks
/chapter_04/list.js
UTF-8
1,349
4
4
[]
no_license
const arrayToList = function(array) { let list; for(let element of array) { const node = { value: element, rest: null }; if(!list) { list = node; } else { let tmp = list; while (tmp.rest) { tmp = tmp.re...
true
a17015b43171902b338e4b80fad5b856c3bfc111
JavaScript
mattdow/weekend-movie-sagas
/server/routes/search.router.js
UTF-8
554
2.53125
3
[]
no_license
const express = require('express'); const router = express.Router(); const axios = require('axios') router.get('/:t', (req,res) => { const searchTerms = req.params.t; console.log('/search GET', searchTerms); axios.get(`http://www.omdbapi.com/?t=${searchTerms}&apikey=${process.env.OMDb_API_KEY}` ) ...
true
6df43da48b6714333ee7e1d78c62971b7c656aae
JavaScript
yomaswn/hacktiv8-news-testing
/src/components/ListName.js
UTF-8
462
2.578125
3
[]
no_license
import React from 'react' const showList = (props) => { return (<span> { props.datas.map((data, index) => { return( <h3 key={index}> {data.name} </h3> ) }) } </span> ) } const emptyList = () => { return (<h2>Please Wait...</h2>) } export con...
true
f33cf203e6b97a1b039269d9e15d9be9e66a5215
JavaScript
rgpsico/feegow_prova
/laravel/resources/js/main.js
UTF-8
5,774
2.75
3
[ "MIT" ]
permissive
var url = "http://127.0.0.1:8000/api/teste/"; alert('teste'); ///specialties/list Função que lista todos os profissionais daquela especialidade $('#cpf').mask('000-000-000-00'); $('#birthDate').mask('00/00/0000'); $('body').on('click', '.agendar_ini', function () { var id = $('.select_teste').v...
true
c332bf879685fcfc74f40ce42bb1e2f89b0cfb33
JavaScript
Neoxelox/shortr
/static/scripts/utils.js
UTF-8
1,176
3.21875
3
[ "MIT" ]
permissive
'use strict'; var copyToClipboard = function (copyStr, origin) { const el = document.createElement('textarea'); // Create a <textarea> element el.value = copyStr; // Set its value to the string that you want copied el.setAttribute('readonly', ''); // Make it readonly to be tamper-proof el.style.positi...
true
fa86feb301ad7f86f08b82e2c12cccd855994748
JavaScript
RickardAndreasAgren/NodeJSLinkedListDemo
/LinkedList/LinkedInterface.js
UTF-8
2,120
3
3
[]
no_license
const LinkedList = require('./LinkedList'); const LinkedInterface = { directions: ['U','R','D','L'], types: ['I','L','T','X'], /* @param: @returns true || False */ init: function() { this.listState = new LinkedList(); console.log('Created new LinkedList'); return true; }, /* ...
true
c5aee19343975630b48c8105231be659e4b3e046
JavaScript
whitebaby/nodequant
/nodequant/util/Position.js
UTF-8
17,583
3.390625
3
[ "Apache-2.0" ]
permissive
//策略仓位管理器 //一个合约一个仓位对象 class Position { constructor() { this.strategyName = ""; this.symbol = ""; this.longPositionTradeRecordList = []; this.shortPositionTradeRecordList = []; } //获取总的 锁仓 GetLockedPosition() { let longPosition=this.GetLongPosition(); ...
true
86c54402f3f808ec5fd81052070c1428fd776ec5
JavaScript
AlexNizovoy/geekhub-practice
/pr_1/js/main.js
UTF-8
2,260
4.21875
4
[]
no_license
(function() { /** * Примеры массивов: * [3,0,-5,1,44,-12,3,0,0,1,2,-3,-3,2,1,4,-2-3-1] * [-1,-8,-2] * [1,7,3] * [1,undefined,3,5,-3] * [1,NaN,3,5,-3] */ /** * maxValue() - searching a max value in array * @param {Array} arr Array of numbers * @return {Number}...
true
42dfb678be55548c73d7c3658ffc19d1cdd90f38
JavaScript
rahulkumarravindran/stock-trader
/src/App.js
UTF-8
1,860
2.71875
3
[]
no_license
import './App.css'; import {BrowserRouter as Router, Redirect, Route, Switch} from 'react-router-dom' import Login from './components/Login.js' import Dashboard from './components/Dashboard.js' import {useState} from 'react' function App() { const [userLoginDetails, setUserLoginDetails] =useState( [{id:'1',firs...
true
4ce4bbb4aaa2ef1df9c623f26bf640f6abc38b3d
JavaScript
dnperera/advanced-react-patterns
/src/exercises-final/10.js
UTF-8
5,000
2.828125
3
[]
no_license
// Control Props + with a state reducer import React from 'react' import {Switch} from '../switch' const callAll = (...fns) => (...args) => fns.forEach(fn => fn && fn(...args)) class Toggle extends React.Component { static defaultProps = { initialOn: false, onReset: () => {}, onToggle: () => {}, on...
true
2e0cd0c852f54ed9e2656513f2247f6ae45af243
JavaScript
ZPoreba/ebiznes
/client/src/Categories/CategoriesService.js
UTF-8
692
2.703125
3
[]
no_license
const API_URL = process.env.REACT_APP_API_URL; const checkStatus = (response) => { if(!response.ok) { throw Error(response.status); } return response; } const getCategories = async () => { const fetchData = { method: 'GET', mode: "cors", redirect: 'follow', cre...
true
6403319ff23fe0f3b1fcad0a157660cdd0765d1a
JavaScript
RAraghavarora/IRMS
/portal/static/portal/js/search.js
UTF-8
1,927
2.90625
3
[]
no_license
$( function he() { alert('he') var data = $.ajax( { type: 'GET', url: `/hello`, data: { }, success: function(data){ book_names = [] names = "" data.forEach(function(biblio) { book_names.push(biblio.fields.title) names = names + "<li>" + biblio.fields.title + ...
true
df5a0074604f57805ea5ed89c96e3fa04c6f27b2
JavaScript
nfordyc/people
/index.js
UTF-8
1,708
3.84375
4
[]
no_license
const personForm = document.querySelector('form') const renderColor = (hairColor) => { const colorDiv = document.createElement('div') colorDiv.style.backgroundColor = hairColor colorDiv.style.height = '50px' colorDiv.style.width = '100px' return colorDiv } //make the italized name const createName...
true
678e365aa9542396987106273b5487e9f41618cc
JavaScript
stevekeol/YunDang-Algorithm
/private/编程之法/stringCombination.js
UTF-8
463
4.5625
5
[ "MIT" ]
permissive
/************************************************************* * 【字符串集合的合并】 * 给定一个原始字符串和一个模式字符串,删除原始字符串中所有的模式字符串中的字符 * 输入: 'They are students.', 'aeiou' * 输出: 'Thy r stdnts' * 核心思路: 数组作散列表 * 分析:时间复杂度 O(n) ************************************************************...
true
2271b7236a2db3bec455030ae68b86155c2aac68
JavaScript
UtileHomme/Programming_Codes
/JavaScript_by_kudenkvat/js/video61a.js
UTF-8
241
3.515625
4
[]
no_license
function Employee(name) { this.name = name; } // another way of adding a function in the class Employee //functions will be loaded once irrespective of the number of objects Employee.prototype.getName = function() { return this.name; }
true
30660a08222c69d296c3130ae33db547b0f679e3
JavaScript
DrStanMD/Oscar-GM4-scripts
/Report_by_Template.user.js
UTF-8
2,624
2.546875
3
[]
no_license
// ==UserScript== // @name Report by Template // @namespace Stanscript // @include *oscarReport/reportByTemplate* // @description RBT alphabetical, Pass parameter to RBT // @require https://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js // @grant none // @version 1.5 // ==/UserScript=...
true
b78c8690da38e39d61658feb43bce132fbca3c8e
JavaScript
shaneeth/ReactJsPOC
/src/jsx/CommentForm.jsx
UTF-8
1,130
2.96875
3
[ "MIT" ]
permissive
var CommentForm = React.createClass({ getInitialState: function() { return { author: '', text: '' } }, handleAuthorChange: function(e) { this.setState({ author: e.target.value }); }, handleTextChange: function(e) { this.setState({ text: e.target.value }); }, ...
true
8da80f67362339cf68a18bda3211553b911bc05f
JavaScript
VIVEK-432/VivekPanditRes__
/assets/js/main.js
UTF-8
4,337
2.671875
3
[ "MIT" ]
permissive
/*<<<<<<<<<<<< MENU BAR >>>>>>>>>>>>*/ const showMenu =(toggleId, navId) =>{ const toggle = document.getElementById(toggleId), nav = document.getElementById(navId) if(toggle && nav){ toggle.addEventListener('click', ()=>{ nav.classList.toggle('show-menu') }) } } showMenu('nav-toggle','nav-menu') // <<<<<...
true
a2813a2eefc66fdba650f1bcb3ec7e37590c87b3
JavaScript
Jawkx/ngao-calculator-react
/src/App.js
UTF-8
2,194
2.75
3
[]
no_license
import React, { useState } from "react"; import CardSelection from "./components/CardSelection/CardSelection"; import CardDisplay from "./components/CardDisplay/CardDisplay"; import getBestCombination from "./algorithms/getBestCombination"; import { FaGithub, FaReact } from "react-icons/fa"; function App() { const [c...
true
afdb052a3d5e804ba4ca80771ad7354217914ad8
JavaScript
idd-nz/article-components
/js/index copy.js
UTF-8
1,060
3.359375
3
[]
no_license
let $doc = document.documentElement let $lnk = document.querySelector('.slide-from') //how tall is the document? $doc.scrollHeight //how tall is the window $doc.clientHeight //capture some key window events that might be involved window.addEventListener('scroll', event => { console.log('scrolled')}) window.addEventL...
true
da15edc12f40c9bb733755a906f9d87f2b791f2b
JavaScript
xiaoyu0814/Cesium
/src/utils/CameraManager.js
UTF-8
6,375
2.921875
3
[]
no_license
var CameraManager = function(scene){ this.scene = scene this.camera = scene.camera } //设置开启移动 CameraManager.prototype.openMove = function(){ this.scene.screenSpaceCameraController.enableInputs = true; } //设置关闭移动 CameraManager.prototype.closeMove = function(){ this.scene.screenSpaceCameraController.enab...
true
3aa36e53a2e35c5ab1a8e4e336b3be4cfecafbdf
JavaScript
RahulKondi/birch-dev
/OLD/TEMP.js
UTF-8
1,961
2.796875
3
[]
no_license
var irc = require('slate-irc'); var net = require('net'); //data var connections = {}; /* connections data structure connections = { userID = { server = { nick : nick, channels = [], client : client, } } } */ //APIs var connectUser = function (arguments, callback) { var client, userI...
true
3aea5ebc37b64686e76a121d5232ea6059cd6cc3
JavaScript
LeonadoRivaldo/mean-stack-presentation
/backend/helpers/AppModule.js
UTF-8
893
2.546875
3
[ "MIT" ]
permissive
const AppMain = require("./AppMain"); /** * @interface IArgs * @param {modelName} * @param {moduleName} * */ class AppModule extends AppMain{ model = null; /** * Creates an instance of AppModule. * @param {Express} app * @param {IArgs} args * @memberof AppModule */ co...
true
8299f258c4db955faee6f06d2e7d838fe399ebc8
JavaScript
FabioMenacho/codigo
/semana5/dia1/03-clase-string.js
UTF-8
1,776
4.3125
4
[]
no_license
// A continuación una serie de propiedades de la clase string (cadenas de texto) let frase = "Los programadores crean lo que las personas sueñan" // retorna la cantidad de caracteres que tiene un string console.log(`Cantidad de caracteres: ${frase.length}`); // Retorna la misma frase en mayúscula, transforma no camb...
true
fb6f89239dff817abe2904db2782439e4156b2b1
JavaScript
FJ-Riveros/Articulos-FullStack
/src/main/webapp/js/aplicaEventsYFiltros.js
UTF-8
3,603
2.703125
3
[]
no_license
import { filtroPrecio, filtroStock, validacionYEventListenner, } from "./filtros.js"; import { compruebaCampos, compruebaCamposVacios, exponeCamposVacios, } from "./compruebaCampos.js"; import{reseteaComprobacion, validaComprobacion} from "./apruebaForm.js"; import { getValues } from "./adjuntaTarjetas.js";...
true
c9860a66a2235ebc5fd080cc58026f4c2f598916
JavaScript
rosiiinka/ProjectManager
/ProjectManagementSPAJsApp-master/src/components/Comments/CommentsPage.js
UTF-8
1,778
2.5625
3
[]
no_license
import React, {Component} from 'react'; import CommentsForm from './CommentsForm'; import {createComment} from '../../models/requester' export default class CommentsPage extends Component { constructor(props) { super(props); this.state = {comment: '', submitDisabled: false}; this.bindEventH...
true
ea5e27dcdd1e51ef4197919d87eb5e7c82f0c32a
JavaScript
Aveek-Saha/js-data-structs
/test/stack.test.js
UTF-8
677
2.984375
3
[ "MIT" ]
permissive
var { Stack } = require('../dist/js-data-structs.cjs'); describe('Check stack functions', () => { var stk = Stack(); it('should create an empty stack', () => { expect(stk.isEmpty()).toBe(true); stk.push(1); expect(stk.isEmpty()).toBe(false); }); it('should show most recently a...
true
503bf18788ecb726f76c151846c214ecaac721f6
JavaScript
eldad87/divinity
/gameClasses/components/IgeScreenMoveComponent.js
UTF-8
4,293
2.859375
3
[]
no_license
/** * When added to a viewport, automatically adds scrolling by mouse position * capabilities to the viewport's camera. * * TODO: limit rect (x, y, width, height) */ var IgeScreenMoveComponent = IgeEventingClass.extend({ classId: 'IgeScreenMoveComponent', componentId: 'screenMove', /** * @constructor * @pa...
true
f6866cf768081a3bf3d0d4719ade0bbc3dd8b5bf
JavaScript
axzxc1236/-r-imposter-script
/reddit_imposter_solver_backend/index.js
UTF-8
3,250
2.984375
3
[ "MIT" ]
permissive
const express = require("express"); const app = express(); const fs = require("fs"); const readline = require("readline"); const imposter_options = []; const human_options = []; let current_options = ["","","","",""]; let current_choice = -1; app.get('/clear', function (req, res) { console.log("cleanup"); current_o...
true
45dc0918e4e0f8d2b1b67a46bcaa1a3ce346c460
JavaScript
ayangupta9/File-System-Organizer-NodeJS
/commands/organize_module.js
UTF-8
2,838
2.890625
3
[]
no_license
const chalk = require('chalk') const path = require('path') const fs = require('fs') const utiltiy = require('../utility2.js') let rd = require('readline-sync') function organizeCommand (directoryPath) { let directoryPathExists = fs.existsSync(directoryPath) if (directoryPath === undefined) { if ( rd.key...
true
a89f4cc462f80012fd950cfa9595e6e6078f00f9
JavaScript
speckospock/subclass-dance-party
/spec/rainbowDancerSpec.js
UTF-8
1,339
2.921875
3
[]
no_license
describe('rainbowDancer', () => { var rainbowDancer, clock; var timeBetweenSteps = 1000; beforeEach(() => { clock = sinon.useFakeTimers(); rainbowDancer = new RainbowDancer(40, 50, timeBetweenSteps); }); it('should have a jQuery $node object', () => { expect(rainbowDancer.$node).to.be.an.instan...
true
1fafee53ba71e7fc1bcdc71d602640ab3b04b870
JavaScript
Anjola-a/RGBcolorgame
/colorGame.js
UTF-8
2,780
3.625
4
[]
no_license
var numSqaures=6; var colors = generateRandomColors(numSqaures); var pickedColor= pickColor(); var colorDisplay=document.getElementById("colorDisplay"); colorDisplay.textContent=pickedColor; var messageDisplay=document.getElementById("message"); var h1=document.querySelector("h1"); var squares=document.querySelectorAl...
true
b3a720541a24856a804f740136a7052db6ed9a6e
JavaScript
lyyh/algorithm
/leetcode/91.解码方法.js
UTF-8
1,598
3.578125
4
[]
no_license
/* * @lc app=leetcode.cn id=91 lang=javascript * * [91] 解码方法 */ // @lc code=start /** * @param {string} s * @return {number} */ // var numDecodings = function (s) { // var len = s.length // if(len === 1 && s[0] === '0'){ // return 0 // } // if(len === 2 && (s[1] === '0' || parseInt(s) > ...
true
67cf7ddc51392c613289fe40608130c260647edf
JavaScript
NusratMitu/js-concepts-for-react
/storage.js
UTF-8
639
3.234375
3
[]
no_license
// localStorage.setItem('userId', 8759221); const addToLocalStorage = () => { const id = document.getElementById('storage-id').value; const value = document.getElementById('storage-value').value; if(id && value){ localStorage.setItem(id, value); } // clear document.getElementById('storag...
true
12215c5edf298065dcc51e788beaaae9a89c852a
JavaScript
jonathanjameswatson/numerically-solving-equations
/js/sketch.js
UTF-8
6,959
2.875
3
[ "MIT" ]
permissive
export default class Sketch { constructor(p5, update = () => {}, noPlay = false, paused = true) { this.p5 = p5 this.updateFunction = update this.paused = paused this.time = 0 this.lastTime = 0 this.graphs = [] this.animations = [] p5.preload = () => { this.font = p5.loadFont('...
true
3c5f172bda866e9856032bbcf56fa62dde37de8a
JavaScript
zhhz/astring-ng
/app/server/ctrls/auth.ctrl.js
UTF-8
9,975
2.546875
3
[ "MIT" ]
permissive
var env = process.env.NODE_ENV || 'development', config = require('../config/settings')[env], jwt = require('jwt-simple'), request = require('request'), qs = require('querystring'), moment = require('moment'); /** * Generate JSON Web Token */ function createToken(user) { var payl...
true
7a3eac857a4756b9f572f8f92c6d1c5aac418990
JavaScript
tianxiao666/rno-gsm
/.svn/pristine/07/07de6020cde499550acd379123c7b02aa72d4063.svn-base
UTF-8
18,462
2.5625
3
[]
no_license
var cellValCache = new Array(); var bscValCache = new Array(); var dateValCache = new Array(); $(document).ready(function () { popUp(); $("#searchBtn").click(function () { if ($("#dateSelect").val() == '-1' || $("#dateSelect").val() == null) { showInfoInAndOut("info", "请选择日期!"); ...
true
1ad6e1eb29fd028ae51d6b8a217cd845b7b03344
JavaScript
shpendpalushi/SOTWeb
/src/main/resources/static/javascript/teacher_dashboard.js
UTF-8
3,579
2.625
3
[]
no_license
// var active = false; // window.addEventListener("load", start, false) // function start(){ // document // .getElementById("shtoTeze") // .addEventListener("click", shtoTeze, false); // } // function shtoTeze(){ // if(!active){ // document // .getElementById("secondColumn") // ...
true
4bac21b45776446c6b3d4aef15e5019a906d3e22
JavaScript
cweber26/barbeucLeague
/back/utils/htmlUtils.js
UTF-8
847
2.53125
3
[]
no_license
function include(fileName) { return HtmlService.createHtmlOutputFromFile(fileName).getContent(); } function includeWithArgs(fileName, argsObject) { var tmp = HtmlService.createTemplateFromFile(fileName); if(argsObject) { var keys = Object.keys(argsObject); keys.forEach(function(key) { ...
true
645f866d673bd68eca94a14f473f62470b36f3e5
JavaScript
JosephMcGreene/mintbean-hackathon-landing
/client/src/helpers/tile.helpers.js
UTF-8
1,138
3.109375
3
[]
no_license
function GameTile(row, col, value = 0, prevRow, prevCol, isNewTile = true) { this.row = row; this.col = col; this.value = value; this.prevRow = prevRow || row; this.prevCol = prevCol || col; this.isNewTile = isNewTile; } GameTile.prototype.setIsMerged = function (bool) { this.merged = bool; }; GameTile.p...
true
df2fbfe524a4cfeb57364c47262c1a80d683735e
JavaScript
athiwatp/nodejs-chat
/classes/users.js
UTF-8
3,750
2.921875
3
[]
no_license
function Users () { var Q = require('q'); /** * Login Functionality * @param username * @param password * @param callback */ this.login = function (username,password,callback) { var sha1 = require('sha1'); // Resolve var resolve = function (data) { ...
true
d633afa549abe716bb50c03d705f35a5c4b73a86
JavaScript
RenanMiyashita/trybe-exercises
/Fundamentos/bloco_6/6.2/script.js
UTF-8
3,145
3.140625
3
[]
no_license
/* function createStateOptions() { let states = document.getElementById('state'); let stateOptions = ['AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO']; for (let index = 0; index < stateOptions...
true
e4475c3106c5095e1f4d18852d8bff6cfb24e9a3
JavaScript
CregskiN/blogserver-express
/blog-express/routes/blog.js
UTF-8
2,413
2.5625
3
[ "MIT" ]
permissive
var express = require('express'); var router = express.Router(); const {getList, getDetail, newBlog, updateBlog, delBlog} = require('../controller/blog'); const {SuccessModel, ErrorModel} = require('../model/resModel'); const loginCheck = require('../middleware/loginCheck'); // 获取博客列表 router.get('/list', (req, res, ne...
true
23c91ae8dc79f612f0dc04800c4c3c5b55189c02
JavaScript
locnv/home-ctrl
/koa-app-server/test/TestPromise.js
UTF-8
857
3.75
4
[]
no_license
(function() { let logger = console; function runApp() { let n = 0; let allPromises = []; for(let i = 0; i < n; i++) { let p = createPromise(); allPromises.push(p); } Promise.all(allPromises) .then(function() { logger.info('All finished.'); }); doAsync() .th...
true
1b486f1d33cd886f92bca3845902e63309e3c993
JavaScript
NateyLB/Sprint-Challenge-Authentication
/client/src/components/Form.js
UTF-8
2,772
2.734375
3
[]
no_license
import React, { useState, useEffect } from 'react' import * as yup from 'yup' import SignUp from "./SignUp"; import { axiosWithAuth } from '../utils/axiosWithAuth.js'; const initialFormValues={ username: '', password: '', confirmPassword: '', } const initialFormErrors={ username: '', password...
true
7070a10a6fc315f5ac826054ce593176b0261dbd
JavaScript
wolfsky7/wap-standard
/src/components/pub/animate-div.js
UTF-8
668
2.796875
3
[]
no_license
/** div 的css 动画 如果 刚加上时 display 为none 会没有效果 */ import ReactDOM from 'react-dom' export default class AnimateDiv extends React.Component { render() { const { style = {}, children, className = '', ...others } = this.props; if (this.display == 'none' && /(^| )animated( |$)/.test(className)) { ...
true
814e3bf31c4151092a3237667042f93aa56d826a
JavaScript
DCARTH/NODE_EXPRESS_API
/controllers/users.js
UTF-8
1,090
2.90625
3
[]
no_license
import { v4 as uuidv4 } from 'uuid'; //import nameToImdb from "name-to-imdb"; let users = []; let movies = []; export const createUser = (req, res) => { const user = req.body; users.push({ ...user, id: uuidv4()}); res.send('User with the name ' + user.Prenom + ' added to the database'); } export con...
true
15deec513e848888aecefe98af96e93652cc6eb0
JavaScript
godaddy/out-of-band-cache
/test/index.test.js
UTF-8
9,624
2.6875
3
[ "MIT" ]
permissive
/* eslint max-statements: 0 */ const path = require('path'); const assume = require('assume'); const Cache = require('../lib/'); const rimraf = require('rimraf'); const sinon = require('sinon'); function sleep(ms) { return new Promise(res => setTimeout(res, ms)); } const simpleGet = async i => i; describe('Out of B...
true
fdac30aef17c80065e6875e6f19053942f104d2c
JavaScript
Tanya-L/StopWatch_Coundown
/src/components/Hooks.js
UTF-8
1,462
2.59375
3
[]
no_license
import { useState, useEffect } from "react"; const useTimer = () => { const [runTimer, setRunTimer] = useState(false); const [startTime, setStartTime] = useState(0); const [, setRefresh] = useState(false); // Start button clicked useEffect(() => { let interval; setStartTime(Date.now()); if (runT...
true
8df2773289c3a8a0effd272a7c8772953d1041b7
JavaScript
omardoma/javascript-tricks
/Avoiding-Callback-Hell/callbacks.js
UTF-8
1,096
3.234375
3
[]
no_license
const fs = require('fs-extra'); // Approach One (The one we want to avoid) // Regular callbacks approach const func1 = function (callback) { fs.ensureDir('newfolder1', function (err) { if (err) { return callback(err); } console.log('Folder 1 was created.'); fs.ensureDir(...
true
c040c2caf4db35927413a5d436a307801a47eba5
JavaScript
andrIvash/node-mentoring
/helpers/importer.js
UTF-8
919
3.078125
3
[]
no_license
/** * Importer transforms csv file to json * @path {String} path to file */ import csv from 'csvtojson'; import fs from 'fs'; export default class Importer { /** * Asyncronous transform * @path {String} path to file * @return {Promise} */ import (path) { return csv().fromFile(path); } /** ...
true
9377af1ea7586e06dfffa00f6970c2167a13e64c
JavaScript
wudiansi/one-day-one-algorithm
/18-subsets.js
UTF-8
556
3.375
3
[]
no_license
function subsets(nums) { // 回溯 // let res = []; // let n = nums.length; // function back(path, i){ // if(i <= n){ // res.push(path) // } // for(let j = i; j < n; j++){ // path.push(nums[j]) // back(path.slice(0), j+1) // path.pop() // } // } // back([], 0); // retur...
true
6751f96164cdbe25530018130cb24e73a09bdd2d
JavaScript
TClark1011/pn-leave-tool-backend
/src/middleware/loggingMiddleware.js
UTF-8
2,159
2.78125
3
[]
no_license
import winston, { createLogger } from "winston"; import { logger as expressLogger } from "express-winston"; const logFormat = winston.format.printf( ({ level, message, timestamp }) => `[${timestamp}] [${level}] ${message}` ); const baseFormat = winston.format.combine( winston.format.timestamp(), logFormat ); cons...
true
a6ad72370558567cc4001443b4c646c3bc9f5d88
JavaScript
robertp82/NodeJsCah
/fishUser.js
UTF-8
1,834
2.8125
3
[]
no_license
var baseUser = require("./baseUser"); var FishUser = function (id, name, isAdmin) { baseUser.BaseUser.call(this); this.init(id, name, isAdmin); this.books = []; this.lastDraw = undefined; this.lastSelect = []; this.lastDrawMatch = false; }; FishUser.prototype = new baseUser.BaseUser; FishUser...
true
4cfb4976ab7ac43c184cbc364b5415e0c4e046e8
JavaScript
levshukova/goit-js-hw-10-food-service
/goit-js-hw-10-food-service/src/index.js
UTF-8
1,755
3.0625
3
[ "MIT" ]
permissive
import menuTemplate from './templates/menu.hbs'; import menuData from './menu.json'; import './styles.css'; // Theme realisation const Theme = { LIGHT: 'light-theme', DARK: 'dark-theme', }; const refs = { checkbox: document.querySelector('#theme-switch-toggle'), menuContainer: document.querySelector('.js-menu'...
true
42f75c2ce1890ff265d10ae64d006b6a91da9cbc
JavaScript
vidalmatheus/solar-system
/src/utils.js
UTF-8
3,722
2.828125
3
[]
no_license
import { numSphereSegments } from './constants.js'; /** * Simplifies the creation of a sphere. * @param {type} material THREE.SOME_TYPE_OF_CONSTRUCTED_MATERIAL * @param {type} size decimal * @param {type} segments integer * @returns {getSphere.obj|THREE.Mesh} */ const getSphere = (material, size, segments = numS...
true
eb9d53ac9d17acf08d2f955f6d3bee12e582bb3a
JavaScript
cubingusa/org
/app/static/js/geocoding.js
UTF-8
768
2.921875
3
[]
no_license
var geocoderModule = (function() { var geocoder = new google.maps.Geocoder(); var locationCache = {} return { geocode: function(city, state, callback) { cacheKey = city + ', ' + state; if (cacheKey in locationCache) { callback(locationCache[cacheKey]); return; } ...
true
81da12b44335752ff580f3788543646b87f7e626
JavaScript
maxkachalin/TeaJS
/unit/tests/html.js
UTF-8
336
2.578125
3
[ "BSD-3-Clause" ]
permissive
/** * This file tests html HTML module. */ var assert = require("assert"); var html = require("html").HTML; exports.testHtml = function() { var s1 = "<a href='a&b'>\""; var s2 = "&lt;a href=&apos;a&amp;b&apos;&gt;&quot;"; assert.equal(html.escape(s1), s2, "html escape"); assert.equal(html.unescape(s2), s1, "htm...
true
b5d5211fc1fcd75e40ac66e69d5be317bd401be4
JavaScript
perverse/vue-terminal-homepage
/src/services/CommandParser.js
UTF-8
3,261
2.71875
3
[ "MIT" ]
permissive
import motd from './command-output/motd' import menu from './command-output/menu' import about from './command-output/about' import projects from './command-output/projects' import skills from './command-output/skills' import github from './command-output/github' import linkedin from './command-output/linkedin' import ...
true
521eba69053be386f5eace1b83550f60614531e4
JavaScript
KonstantinKurt/test-Node.js
/public/scripts/sighnInRequest.js
UTF-8
1,740
3.015625
3
[]
no_license
; "use strict"; let sighInRequest = function() { let inputs = document.getElementsByTagName('input'); let checkbox = document.getElementById('isAdmin'); let admin = false; if (inputs[0].value.length < 5) { alert('Too short login!'); inputs[0].value = ""; return; } if (inp...
true
f4afa460812cc11220d24ebfb199c83f48edff80
JavaScript
watson/flowhttp-json
/index.js
UTF-8
1,022
2.609375
3
[ "MIT" ]
permissive
'use strict'; var util = require('util'); var JSONStream = require('JSONStream'); var PassThrough = require('stream').PassThrough; // A PassThrough stream that automatically parses a JSON HTTP response var JsonParser = function () { var parser = this; if (!(this instanceof JsonParser)) return new JsonParser(...
true
988567ff82d44966ab7ac47d349c051003df794e
JavaScript
Yigezu1/team_profile_generator
/app.js
UTF-8
4,241
3.5
4
[ "Apache-2.0" ]
permissive
const Manager = require("./lib/Manager"); const Engineer = require("./lib/Engineer"); const Intern = require("./lib/Intern"); const inquirer = require("inquirer"); const path = require("path"); const fs = require("fs"); const OUTPUT_DIR = path.resolve(__dirname, "output"); const outputPath = path.join(OUTPUT_DIR, "tea...
true