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
2895e4a70dd25777cd0e721b92999ad62d4fe7b6
JavaScript
kmas2000/EasyAccessCounselor
/src/components/dataViews/getBGColor.js
UTF-8
419
2.859375
3
[]
no_license
export function getBGColor(person) { let bgcolor = {backgroundColor: "#ACE7FF"}; switch (person.Results) { case 'Waitlisted': bgcolor.backgroundColor = "#FFF284" break; case 'Accepted': bgcolor.backgroundColor = "#C0FF97" break; case 'Rejected': bgcolor.backgroundColor = "#FFA4...
true
b5924900118305b8ff697b4f5b7799aa4f345434
JavaScript
mariasophh/web-engineering-group-13
/front-end/src/requests/Requests.js
UTF-8
3,052
2.6875
3
[]
no_license
const KEY = '13997700-9d6a84e9c34046ed9782c99c9'; const BASE = 'http://localhost:8081/'; const PROXY = 'https://cors-anywhere.herokuapp.com/'; /** * This function will handle the GET requests to the API * @param {String} query * @param {Function} callback * @param {String} key * @param {String | Optional} opti...
true
6d0574199438b4377128d862700e72d96c7481f5
JavaScript
yasiotero/2017
/arizaga/js/scripts.js
UTF-8
1,843
2.578125
3
[]
no_license
new Vue({ el:'#app', data: { persona: { nombre:'', telefono:'', direccion:'', email:'', sexo:'' }, personas:[], filtro:'', vista:'agregar', mensaje:false }, computed: { formOk() { return this.persona.nombre && this.persona.telefono && this.persona.direccion && this.persona.email && t...
true
6fcce4fddc28f920d5aa7aecba3a65872653cc46
JavaScript
Trymunx/aoc
/2018/06.js
UTF-8
6,241
3.421875
3
[]
no_license
const example1 = `1, 1 1, 6 8, 3 3, 4 5, 5 8, 9`; const exampleOutput = `aaaaa.cccc aAaaa.cccc aaaddecccc aadddeccCc ..dDdeeccc bb.deEeecc bBb.eeee.. bbb.eeefff bbb.eeffff bbb.ffffFf`; const separator = " . "; const points = Array(26).fill(97).map((n, i) => String.fromCharCode(n + i)); const parseInput = (input) => {...
true
7700b32f44ed5b4f046a512a47aae14f57a1fec9
JavaScript
alexcombessie/communitweet
/static/countdown.js
UTF-8
591
2.9375
3
[ "MIT" ]
permissive
function date_heure(id) { date = new Date; h = date.getHours(); m = date.getMinutes(); s = date.getSeconds(); if(m>=10) { hBash = h+1; } while(m) if(m<10) { m = "0"+m; } if(s<10) { ...
true
8f5645f3f0706d3e1c4de845f18b6420bee6dc23
JavaScript
mahditasfin/EDUC-STUDENT-ADMIN
/backend/src/socket/web-socket.js
UTF-8
722
2.6875
3
[ "Apache-2.0" ]
permissive
'use strict'; let connectedClients = []; const webSocket = { /** * This method will initialize the express app to accept the authenticated websocket connections. * @param app the express app * @param server the http server */ init(app, server) { require('express-ws')(app, server); app.ws('/api...
true
ec6c7cfc14e5914e9e3ed80b6e45ffb5aa60bca0
JavaScript
edyst/sudoku-edyst-sabishukla
/sudoku-edyst-sabishukla-main/resp.js
UTF-8
7,271
2.984375
3
[ "MIT" ]
permissive
// level buttons // const n=null; var easyLevel=[ [1,4,2,n,9,n,n,n,5], [7,n,n,4,n,n,n,8,9], [8,n,5,n,n,n,n,2,4], [2,n,n,n,n,4,8,n,n], [n,3,n,n,n,1,2,6,n], [n,8,n,n,7,2,9,4,1], ...
true
8be1f8af490f9da6158b09d5283e2faf3f2bca18
JavaScript
karyono7528/js-isci
/test.js
UTF-8
5,073
2.59375
3
[ "MIT" ]
permissive
const isci = require('./src/index'); describe('valid result', () => { test('valid result randCharset with fixed length', () => { let numberOfTest = 10; const length = 13; const charset = 'abcdefghijk'; const targetIsci = { pattern: '[randCharset]', keywords: { randCharset: { ...
true
49f78a6b272a302e86dcbf933483e71d4ea3ef7e
JavaScript
FixterSpb/JS_Base
/Lesson_6/2_slider/js/app.js
UTF-8
1,841
3.21875
3
[]
no_license
'use strict'; let slider = { items: [], itemIndex: 0, init() { let div = document.querySelector('.slider'); let items = div.querySelectorAll('.slider__item'); items.forEach((item, index) => { item.style.left = -100 + index * 100 + "%"; this.items.push(item)...
true
4bbee0906246213a3a26e4489e90e367e53a0f6c
JavaScript
alexlevn/react-weather
/example-promise.js
UTF-8
1,333
3.875
4
[]
no_license
// Examples about callback, promise console.log("test " + typeof 3); function getTempCallBack(location, callback){ callback(undefined, 78); callback('Citi not found',35); // callback(undefined,35); // callback(0,35); } getTempCallBack('Philadenphia', function(err, tempt){ if(err){ con...
true
75417d2a5f10ecbde09f8af79fd0cb9a50ef768e
JavaScript
sharmap1/Bamazon
/bamazonManager.js
UTF-8
5,474
2.90625
3
[ "MIT" ]
permissive
var mysql = require("mysql"); var inquirer = require("inquirer"); var keys = require("./keys.js"); // console.log(keys); var connection = mysql.createConnection({ host: "localhost", port: 3306, user: "root", password: keys.password.secret, database: "bamazon_db" }); connection.connect(function(err) { if (...
true
fdc9fe4a0e977f6845e567d03995184c182cf072
JavaScript
hbrar1/ToyProblem
/AlgorithmProblems/Math/SumMultiples.js
UTF-8
335
3.96875
4
[]
no_license
// Sum Multiples // Sums all numbers that are divisible by 3 and 5 var sumMultiples = function(n){ var result = []; var i = 0; while(i < n){ if(i % 3 === 0 || i % 5 === 0){ result.push(i); } i++ } return result.reduce(function(prev, curr){ return prev + curr }) } console.log(sumMu...
true
2509c73fca808ef0588405d387c15d8980f4b8df
JavaScript
nejmimouhsine/vuejs
/src/directives.js
UTF-8
622
2.609375
3
[]
no_license
import Vue from "vue"; // Make Bold custom directive Vue.directive("bold", { bind: el => { el.style.fontWeight = "bold"; } }); // Make Dynamic Font Size custom directive Vue.directive("font", { bind: (el, binding) => { el.style.fontSize = binding.value + "px"; } }); // Make Format custom directive Vu...
true
a3eae688485e077a67dc4d101f676c0b946773e3
JavaScript
a007mr/javascript-templates
/calories_calc.js
UTF-8
599
3.34375
3
[]
no_license
/** * KeksoFit v0.1 * Author: @keksobot * License: CatoFree, NoDogs */ var foodInGrams = 100; var sleepInHours = 15; var foodInGrams = keks.ask('Boss, how much have your eaten cat food?'); console.log('Got it. You have eaten ' + foodInGrams + ' gram.'); var sleepInHours = keks.ask('Boss, how much have you slept...
true
a8289a7c316691cebbf09cf9dc30e315bfe95f8b
JavaScript
pmin825/DSA-practice
/construct_bst_from_preorder_inorder.js
UTF-8
1,196
3.265625
3
[]
no_license
/** * Definition for a binary tree node. * function TreeNode(val, left, right) { * this.val = (val===undefined ? 0 : val) * this.left = (left===undefined ? null : left) * this.right = (right===undefined ? null : right) * } */ /** * @param {number[]} preorder * @param {number[]} inorder * @return {...
true
f91afa1967790baba99c05099bca455104e30887
JavaScript
nppat/dateValidations
/jquery_functions.js
UTF-8
1,116
3.15625
3
[]
no_license
$(document).ready(function(){ $("#date_from").focus(); //set the focus on date_from input $(".datepicker").click(function(){ // clicking on the input will bring up the datepicker calender $(this).datepicker() }); $("form").on("submit", function(){ var name = $("#name").val(); var from = $("#date_from").val()...
true
fca463f182d330f303ccc56a6f970440b588476d
JavaScript
boivado2/react-country
/src/components/Search.jsx
UTF-8
1,168
2.703125
3
[]
no_license
import React, { useState } from 'react'; const Search = ({ onSearch, onSelect }) => { const [text, setText] = useState(''); const [value, setValue] = useState(''); const handleChangeText = (e) => { onSearch(text); setText(e.target.value); }; const handleSelect = (e) => { o...
true
efeb1ff9b9ba63f6f5187e6a5852a9fea881e99e
JavaScript
gfwilliams/EspruinoCompiler
/tests/test.js
UTF-8
605
3.21875
3
[]
no_license
// Start function fa() { "compiled"; var x = 1; for (var i=0;i<8;i++) { x = x * 1.5; } return x; } function fb() { "compiled"; for (var y=0;y<32;y++) { line=""; for (var x=0;x<32;x++) { var Xr=0; var Xi=0; var Cr=(4.0*x/32)-2.0; var Ci=(4.0*y/32)-2.0; var i=0; while ((i<8)...
true
1e3fdc8ca4a5c671e949a56a1bb461c8fa48f4a0
JavaScript
xalejandrow/UpTaskNodeJS
/handlers/email.js
UTF-8
2,074
2.609375
3
[]
no_license
const nodemailer = require('nodemailer'); const pug = require('pug'); const juice = require('juice'); const htmlToText = require('html-to-text'); const util = require('util'); const emailConfig = require('../config/email'); const { text } = require('express'); let transport = nodemailer.createTransport({ host: email...
true
d99022bd48490f9dd8b865d831435170825d5d15
JavaScript
winnnni/bootstrap
/script.js
UTF-8
577
2.734375
3
[]
no_license
/** * @author */ var moreInfo = { "cycloneInfo":"This is extra informaiton about the cyclone.", "wonderwheelInfo":"This is extra info about the Wonder Wheel.", "parachuteInfo":"This is extra info about the parachute.", } //Document ready. When the page laods, set up our navigation $(document).ready(function()...
true
d6b3bd0b72828132f61693e01cc88c4a534a5fd9
JavaScript
codylindley/learnjs
/public/javascripts/edition2/Ch22/DestructuringAssignmentExample3.js
UTF-8
271
3.5625
4
[]
no_license
//https://github.com/nzakas/professional-javascript/blob/master/edition2/Ch22/DestructuringAssignmentExample3.htm //Destructuring Assignment Example var value1 = 5; var value2 = 10; [value2, value1] = [value1, value2]; print(value1); //10 print(value2); //5
true
7154031891c46ec670de017877224aff586c922f
JavaScript
tsunaminoai/minefield
/server/static/js/util.js
UTF-8
467
2.890625
3
[ "MIT" ]
permissive
// http://stackoverflow.com/a/2880929/78145 function getParams() { var match; var pl = /\+/g; // Regex for replacing addition symbol with a space var search = /([^&=]+)=?([^&]*)/g; var decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }; var query = window.location.search.subs...
true
191291a6aa9b62b4fc4f0ede014d9d490306c467
JavaScript
praveenrajpal/chatbottest
/app.js
UTF-8
1,091
2.6875
3
[]
no_license
var express = require('express'), app=express(), server=require('http').createServer(app), io=require('socket.io').listen(server); names =[]; mobiles =[]; const PORT = process.env.PORT || 3000; server.listen(PORT); app.use('/static', express.static('static')); app.get('/',function(req,res){ res.se...
true
f8e559fd8810b7da5dcf19862e37771c939149af
JavaScript
heidotting5/JS-Calculator
/calculator.js
UTF-8
2,831
4.21875
4
[]
no_license
// Arrays containing number and operator choices const nums = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; const opers = ["*", "-", "+", "/"]; // Variables to track user inputs var displayValue = ""; var firstNumber = ""; var operators = ""; var secondNumber = ""; var answer = ""; // Call main function userSel...
true
0d2514d9ff480e6413557d82074803c635859233
JavaScript
timeitel/csv-to-json
/src/converter.js
UTF-8
873
2.546875
3
[]
no_license
import { mostCommonWords } from './util.js'; import pkg from 'csvtojson'; const { csv } = pkg; async function convertToJSON(csvFilePath) { let jsonQuestion = ''; const questions = await csv().fromFile(csvFilePath); const file = csvFilePath.split('/').pop(); const fileName = file.substring(0, file.indexOf('.'))...
true
4284f899c0098aca2b91510a92570487228d5e3e
JavaScript
ivu4e/connect.io
/libs/port.js
UTF-8
4,788
3.078125
3
[ "MIT" ]
permissive
var TinyEmitter = require('tiny-emitter') var uuid = require('./utils/uuid') var noop = require('./utils/noop') module.exports = Port /** * 对 chrome 的 Port 类型的包装 * @param {chrome.runtime.Port} port */ function Port (port) { TinyEmitter.call(this) this.disconnected = false /** * 一个 hash map,键是消息的 uuid,值是一...
true
c5eaf79d51fb57d77140b8c2b49d44e84e7ad967
JavaScript
TZ-200/VTbase
/src/utils/calcFilterRange.js
UTF-8
762
2.6875
3
[]
no_license
export default (vtubers, sortBy) => { let filteredArr; if(sortBy === 'subs'){ filteredArr = vtubers.map(vtuber => vtuber.subs); } else if (sortBy === 'videoCount') { filteredArr = vtubers.map(vtuber => vtuber.videoCount); } else if (sortBy === 'createdAt'){ filteredArr = vtub...
true
c2119fc2fe0fda85e5c23b56b5022b41d9f82a56
JavaScript
DavidCoenFish/chica
/server/modules/encript.js
UTF-8
719
2.53125
3
[ "Unlicense" ]
permissive
const Config = require("config"); const Crypto = require("crypto"); const algorithm = "aes-256-ctr"; const password = Config.encodePassword; module.exports.encodeStringBase64 = function(in_string, in_password) { //console.log("encodeStringBase64:" + in_string); var cipher = Crypto.createCipher(algorithm, in_passwor...
true
476de48db644a02fbde8c3ff5e57ccd23e882e44
JavaScript
FaelDi/projeto-integrador-dh-backend
/controllers/EmpresaController.js
UTF-8
3,665
2.796875
3
[]
no_license
const { Empresa, Atividade, Usuario } = require("../models"); const fetch = require("node-fetch"); const buscaCnpj = async (cnpj) => { cnpj = cnpj.replace(/[^\d]+/g, ''); // Remove qualquer caracter nao numerico if (cnpj == '') throw new Error("CNPJ inválido ou não informado"); // Verifica se não esta vazio let res...
true
350c65f3634e20c87d4524a6c6c0d73bfaae3ae6
JavaScript
hcastillaq/Atractor_de_lorenz_p5js
/three._lorenz.js
UTF-8
1,286
3
3
[]
no_license
var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 10000 ); camera.position.z = 100; var controls = new THREE.OrbitControls( camera ); var renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight ); document.bod...
true
cb2eacc3cfb55183bb426b384b45df22415c6fdc
JavaScript
JRsTouch/crescendo
/public/assets/js/management.js
UTF-8
715
2.53125
3
[ "MIT" ]
permissive
$(function(){ var id; var email; var role; var tel; $('.membermanage').on('click', function(){ id = $(this).attr('data-id'); email = $(this).attr('data-email'); role = $(this).attr('data-role'); tel = $(this).attr('data-tel'); name = $(this).html(); $('#manageform>h3').html(name); $('#manageform i...
true
bdac91f2db4d70f93cf5c6a3008de84ad291e37f
JavaScript
ChiragDugar/To-Do-App-React
/src/App.js
UTF-8
913
2.6875
3
[]
no_license
import React, {Component} from 'react' import Todos from './todos' import Addtodo from './addtodos' class App extends Component { state = { todos: [ { id: 1, content: "Buy some milk" }, { id: 2, content: "Play mario kart" } ] } deletetodo = (id) =>{ let deleted = this.state.todos.filter(...
true
7a1e5afa6a2d00cdcb70426c14665ff5d8202ce7
JavaScript
nsonnad/d3-redux-test
/store.js
UTF-8
697
2.640625
3
[]
no_license
import { createStore } from 'redux'; function update(state, action) { switch (action.type) { case 'INITIALIZE': return action.state; case 'SET_RADIUS': var newState = state.slice(0); newState[action.index].r = action.value return newState; case 'SET_POSITION': var newState...
true
1ee9061407a5ed5dcdd9e8e463c6554142bc7eec
JavaScript
inkblotty/learnyounode
/4_filteredLs.js
UTF-8
468
3.078125
3
[]
no_license
// FILTERED LS var fs = require('fs'); var path = require('path'); var processDir = process.argv[2]; var fileEnd = process.argv[3]; function readDirContents(callback){ fs.readdir(processDir, function doneReading(err, dirContents){ var stuff = dirContents; dirContents.forEach(function(aFile){ if (path.extname...
true
5a420a3faf45a7b8bf01462ff5fc900e75867d7e
JavaScript
egoist/split-on-first-space
/index.js
UTF-8
295
2.75
3
[ "MIT" ]
permissive
'use strict' module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string') } str = str.trim() var indexOfSpace = str.indexOf(' ') if (indexOfSpace > -1) { return [str.substr(0, indexOfSpace), str.substr(indexOfSpace + 1)] } return [str] }
true
6083795842f464e7fd694ed5c00f4eca86c81e1f
JavaScript
lukiguki/EE16
/htdocs/oop/spaceinvaders/invaders.js
UTF-8
4,004
2.921875
3
[]
no_license
window.onload = start; function start() { const canvas = document.querySelector("#myCanvas"); var ctx = canvas.getContext("2d"); var antalKlossar; var keys = []; var klossar = []; racket = { x: 0, y: 0 } /* mall för skott */ class Skott { constructor() { ...
true
03fcc4b3d6a788da0232654310035c0b2234f486
JavaScript
artyom-ivanov/socket-cart
/index.js
UTF-8
1,003
2.671875
3
[]
no_license
var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); // Stock var stock = { "pods": 12, "iphone": 5, "cable": 12, "adapter": 3, "jack": 9 } var users = 0; // Static files and main page app.use(express.static('static')); app.get('...
true
9f19ef78f2b2ac69715b728b31c4e3a287671906
JavaScript
RenDotM/auth-service
/lib/databaseFactory.js
UTF-8
761
2.59375
3
[]
no_license
require('dotenv').config(); const MemoryDatabase = require('./memoryDB'); const MongoDB = require('./mongoDB'); class DatabaseFactory { constructor() {} static createDB(type) { const dbHost = process.env.DB_HOST || 'localhost'; const dbPort = process.env.DB_PORT || '27017'; const dbName = process.env....
true
e3f691e15c36ca31840a5b3b813fad49d557315b
JavaScript
shaiwilson/lemonade
/content.js
UTF-8
1,504
3.328125
3
[]
no_license
var elements = document.getElementsByTagName('*'); for (var i = 0; i < elements.length; i++) { var element = elements[i]; for (var j = 0; j < element.childNodes.length; j++) { var node = element.childNodes[j]; if (node.nodeType === 3) { var text = node.nodeValue; // va...
true
bd79ff10d7dc8c1ea83403ea5dd7e8cad494a037
JavaScript
zacharymann/WebDevelopment
/JavaScript/Functions/higherOrder.js
UTF-8
1,097
4.78125
5
[]
no_license
// HIGHER ORDER FUNCTIONS // Passing a function as a parameter/argument into another function // Exmaple 1 (Passing a prexisting function as a parameter) //Function Created to pass as an argument into the "print" function function hello() { console.log(`Hello`); } function print(greet) { // Need to include ...
true
7db81891dc58f021b8350e5da047cfebe609826e
JavaScript
cnp96/chatapp
/communication/index.js
UTF-8
256
2.5625
3
[]
no_license
function broadcast(msg) { for (let i in pool) { (pool[i].writable && pool[i].write(`${msg}`)) } } function send(to, msg) { if (pool[to] && pool[to].writable) { pool[to].write(msg); } } module.exports = { broadcast, send };
true
48d3d31dd4afb13ea6899ed1f13b25a85b5e6e37
JavaScript
wanjunliang/wan
/WebShop-MVC/web/webapp/src/main/webapp/dataAnalysisPlatform/js/biao4.js
UTF-8
1,075
2.875
3
[]
no_license
$(document).ready(function(){ initCreateBiao4(); }); function getContextPath(){ //得到项目的路径 var pathName = document.location.pathname; var index = pathName.substr(1).indexOf("/"); var result = pathName.substr(0,index+1); return result; } function initCreateBiao4(){ // 基于准备好的dom,初始化echar...
true
14d74b7791f838e2fb7a7ee2121c84f9650e3da7
JavaScript
rkdixit96/promise-it-wont-hurt
/fulfillPromise.js
UTF-8
383
3.140625
3
[]
no_license
const promiseFulfilled = (value, delay, testCallBack = () => { }) => { const promise = new Promise((fullfill, reject) => { if (value === 'FULFILLED!') { setTimeout(fullfill, 300, value); testCallBack(value); } }); promise.then((passValue) => { console.log(passValue); }); }; promiseFul...
true
568802f9a594725ce7dbd1ff4d3489cdc4e4e984
JavaScript
ScottBouloutian/cryptic-skill
/index.js
UTF-8
2,784
2.703125
3
[ "MIT" ]
permissive
const requestLib = require('request'); const Alexa = require('alexa-sdk'); const Promise = require('bluebird'); const { chain } = require('lodash'); const sift = require('sift-distance'); // Constants const requestPromise = Promise.promisify(requestLib); const appId = process.env.SKILL_APP_ID; const normalize = name =...
true
2a8897d95d31b98d6df8a724bc19fb4621e6c49c
JavaScript
DSSzymanski/CountdownWebpage
/js/components/Background/Background.js
UTF-8
2,674
3.296875
3
[ "MIT" ]
permissive
/** * Background is a React component that returns the structure for the background * image (div > a > img). The image will be clickable, which will bring the * user to the owner's unsplash page where the image was obtained from. Also * includes a hover displaying the author's name and the link as well. * * @ret...
true
f58f8b70f43ae4f0b8ef197f531a2d0b60e78a29
JavaScript
lgick/VIMP
/public/js/controller/vimp.js
UTF-8
1,795
2.796875
3
[]
no_license
define([], function () { // Singleton VimpCtrl var vimpCtrl; function VimpCtrl(model, view) { if (vimpCtrl) { return vimpCtrl; } vimpCtrl = this; this._model = model; this._view = view; } // преобразует данные экземпляра в данные для модели VimpCtrl.prototype.parse = function (...
true
d77a5c2422040d0f948098d8dbf72b52b006d186
JavaScript
anjali-ui-dev/quiz-assignment
/client/components/ShowResultComponent.jsx
UTF-8
1,524
2.828125
3
[]
no_license
import React from 'react'; import map from 'lodash/map'; class ShowResultComponent extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const quizDetails = this.props.quizDetails; var correctAnswer = 0; var inCorrectAnswer = 0; var wrongAnswerDetailObj = []; con...
true
0d82350ea2111b7af91001c9ae4e8deef4385c2f
JavaScript
swapnadeepmohapatra/fieldscan-backend
/controllers/place.js
UTF-8
1,943
2.546875
3
[]
no_license
const Place = require("../models/place"); const _ = require("lodash"); const fs = require("fs"); exports.getPlaceById = (req, res, next, id) => { Place.findById(id) .exec((error, place) => { if (error) { return res.staus(400).json({ error: "Place not found", }); } req....
true
c49bff79d49408bb8720e6b6cf7c14840885fd69
JavaScript
dpint/PostniNabiralniki
/js/main.js
UTF-8
1,527
2.703125
3
[ "MIT" ]
permissive
var map, userLocationMarker; function initMap(){ L.mapbox.accessToken = 'pk.eyJ1IjoiZHBpbnQiLCJhIjoiY2p0bXl4djVhMHJ6dTQzcGZ2NWEwN2FtaSJ9.hQcVksyHe0ask5gRp9kyFg'; map = L.mapbox.map('map') .setView([46.056946, 14.505751], 9) .addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11')); ...
true
5e45ce02310199621797b5b9ce52bb1b2169962a
JavaScript
BTCDDev/freemarket-lite
/public/js/index.js
UTF-8
3,505
2.5625
3
[ "MIT" ]
permissive
var debug = false; var socket = undefined; $(document).ready(function(){ $('#listing_head').hide(); if(debug) { socket = io.connect('http://127.0.0.1:8008'); } else { socket = io.connect('https://www.freemarketlite.cc:443', { secure: true }); } var all_data = {}; //server sent a n...
true
4137a334bb95571e159f0e4efa23f2af76d65877
JavaScript
1pump2urface/c-37
/sketch.js
UTF-8
490
2.5625
3
[]
no_license
var gameState = 0, database ,playerCount ; var player , game ,form; var infoContent , distance = 0; var car1 , car2 , car3 , car4 var allCars function setup(){ createCanvas(displayWidth,displayHeight); database = firebase.database(); game = new Game(); game.getState(); game.start(); } function d...
true
2b32cf31b157c9cb089003c489111ba288ca6e6c
JavaScript
Jeongeun-Choi/CodingTest
/LeetCode/TwoCityScheduling.js
UTF-8
503
3.78125
4
[]
no_license
const costs = [ [259, 770], [448, 54], [926, 667], [184, 139], [840, 118], [577, 469] ]; // 둘의 격차가 작은 순으로 정렬 // 259 - 770 은 음수니까 제일 앞으로 var twoCitySchedCost = function(costs) { let answer = 0; costs.sort((a, b) => { return a[0] - a[1] - (b[0] - b[1]); }); for (let i = 0, j = costs.length / 2; ...
true
b932f421bb1726566b734aa61c56e5391173aee5
JavaScript
irinagastmaier/RecordShop
/controllers/recordsController.js
UTF-8
1,197
2.71875
3
[]
no_license
const db = require("../model/db"); exports.getAllRecords = (req, res, next) => { let allRecords = db.get("records").value(); res.send({ allRecords }); }; exports.postAddNewRecord = (req, res, next) => { console.log(req.body); db.get("records") .push(req.body) .last() .assign({ id: new Date().getTi...
true
e10c65459a5ed338b2fbfdf3b1b1e76271376945
JavaScript
gajomon/FULL_PLANS
/backend/src/app.js
UTF-8
4,821
2.96875
3
[]
no_license
// EXPRESS (ROTEAMENTO) /* Chamando o Express e o Mongoose O Express é um framwork minimalista capaz de fazer a parte de roteamento da aplicação O Mongoose, por sua vez, é um pacote que facilita a modelagem de objetos que serão inseridos no banco de dados do MongoDB */ const express = require('express'); ...
true
ab6c8ab8337c8b6c70e95e2fac87d4e933796543
JavaScript
leoleoasd/PT-Plugin-Plus
/resource/publicSites/imdb.com/top.js
UTF-8
1,035
2.609375
3
[ "MIT" ]
permissive
(function ($, window) { class App { init() { this.initButtons(); // 设置当前页面 PTService.pageApp = this; } /** * 初始化按钮列表 */ initButtons() { let items = $("td.titleColumn a"); console.log(items); if (items.length > 0) { items.each((index, item) => { ...
true
4a911c22497ba82ff93a36ac9a727783e51eca02
JavaScript
Maury3a/EAG
/EjercicioJS/Javascript/Tema1/ejercicio1.js
UTF-8
157
3.03125
3
[]
no_license
let nombre,email; nombre=prompt("Introduce tu nombre"); email=prompt("Introduce tu email"); alert("Tu nombre es "+nombre); alert("Tu email es "+email);
true
9cc9438450b0b2b6995a027151533a53d3f9d4b3
JavaScript
jass98er/Duel
/client/js/bgobject.js
UTF-8
570
2.671875
3
[]
no_license
class BgObject{ constructor(name,x,y,width,height,img_width,img_height,path){ this.x=x; this.y=y; this.width=width; this.height=height; this.iwidth = img_width; this.iheight = img_height this.name=name this.path=path } draw(img,batch){ ...
true
8e56f15bf5526355cc7b600a152c7cd6c324e057
JavaScript
jogs78/eventos
/public/js/formulario.js
UTF-8
2,623
2.578125
3
[]
no_license
function limpiarErroresForm(){ $('.form-group').removeClass('has-error'); $('span').remove('.errors'); $("[name=alert]").empty().removeClass("alert-success alert-danger"); } function successFormMessage($message){ $("[name=alert]").addClass("alert-success").append($message); } const formError = (function(jsonError...
true
2af1335c96c6eebc308ec18855050e5d69a2e268
JavaScript
BLooDBRothER/Gitinity
/public/js/theme_creator.js
UTF-8
2,077
2.828125
3
[]
no_license
const root = document.documentElement; const body = document.body; const themeCreator = document.querySelector(".theme-creator"); const textarea = document.querySelector(".theme-creator textarea"); const jsonButton = document.querySelector(".theme-creator .json"); const copyButton = document.querySelector(".theme-creat...
true
e5d008a624a2a5176ef579457f2a76611e72eae7
JavaScript
jtrneny/Lego_xpp
/A_vývoj_doc/Metodika/CSSZ/Hlášení CSSZ/MKN-10 Česká verze - tabelární seznam_soubory/function.js
WINDOWS-1250
4,269
2.734375
3
[]
no_license
function Kod(hodnota) { for (x=0; x<=H0.length-2; x++) { //window.alert(H0[x]+hodnota); if (H0[x]==hodnota) { Strom(3,x,-1); break;} else { for (y=0; y<=H[x].length-1; y++) { if (H[x][y][0]==hodnota) { Strom(3,x,y); break;} } } } } function Strom(kmen,x_strom,y_strom) { parent.note.docume...
true
56b92189f8f69f3b44c4f56f5d6d4e4216f73f1e
JavaScript
ssf01/WorkoutApp
/js/main.js
UTF-8
2,688
2.71875
3
[]
no_license
window.WorkoutApp || (window.WorkoutApp = {}); (function(window, $, _, WorkoutApp, undefined) { var Workouts = { 1: { name: 'Jumping Jack', bgImg: 'jumping-jack.png', time: 5 }, 2: { name: "Push-up", bgImg: 'push-up.png', ...
true
39a9b1d3a044ef7f41b5788b5c5668bcb0185741
JavaScript
salmivas/israel
/source/js/mask.js
UTF-8
1,844
2.84375
3
[]
no_license
'use strict'; (function () { var inputPhones = document.querySelectorAll('input[type="tel"]'); var MODIFIER_ACTIVE = '--active'; var MODIFIER_VALID = '--valid'; var MODIFIER_INVALID = '--invalid'; var MAX_PHONE_LENGTH = 11; var masks = []; window.masks = masks; var maskPhone = function (element) { ...
true
d87af6cbb6c82a9698701812e67fb29e36a0c724
JavaScript
Bassetto/bootcamp-spring
/src/main/resources/static/getid_update.js
UTF-8
393
2.953125
3
[]
no_license
const bootcampStatus = document.getElementsByClassName('bootcampStatus'); for (let i = 0; i < bootcampStatus.length; i++) { bootcampStatus[i].value = bootcampStatus[i].getAttribute("bootcamp-status"); } const bootcampId = document.getElementsByClassName('bootcampId'); for (let i = 0; i < bootcampId.length; i++) ...
true
0478d06a565d683bffa4fc36a9fc9c9710dd93aa
JavaScript
anandjat05/Enterprise-Car-Simulator
/js/autoloancalculator.js
UTF-8
2,719
3.03125
3
[]
no_license
var costEle=document.getElementById("cost"); var creditscoreEle =document.getElementById("creditscore"); var loanTermEle =document.getElementById("loanTerm"); var downpaymentEle =document.getElementById("downpayment"); window.addEventListener("load", function(){ ...
true
0231f8cfcab612892480b4effee3a7443da52654
JavaScript
myronschippers/mind-grapes-connect
/src/components/UserList/UserList.js
UTF-8
1,182
2.609375
3
[]
no_license
import React, { useState } from 'react'; // MATERIAL-UI COMPONENTS import { List } from '@material-ui/core'; import UserListItem from '../UserListItem/UserListItem'; function UserList(props) { const [selectedUsers, setSelectedUsers] = useState([]); const [usersList, setUsersList] = useState([ { id: 1, ...
true
07407bf9508897489edcacd595edcd44d3338b24
JavaScript
scalder27/jss
/src/utils.js
UTF-8
3,153
3.03125
3
[ "MIT" ]
permissive
import createHash from 'murmurhash-js/murmurhash3_gc' /** * Generates a class name using murmurhash. * * @param {String} str * @param {Rule} rule * @return {String} */ export function generateClassName(str, rule) { const hash = createHash(str) return rule.name ? `${rule.name}-${hash}` : hash } /** * Indent...
true
eacea4be2ecb31cdbe32ede8ccc35414cbae9414
JavaScript
szwork2013/buyer_h5_v2
/src/components/car_shop/popup_area.js
UTF-8
2,182
2.546875
3
[]
no_license
import React from 'react' class PopupArea extends React.Component { constructor(props) { super(props) } districtOptionClicked(index,e){ this.props.setDistrictIndex(index) this.props.setAreaIndex(0) } async areaOptionClicked(index,e){ await this.props.setAreaIndex(index) await this.props....
true
3840b87e15650e95c65cd1ce089f3df34b9047dd
JavaScript
gonpeche/wineEcommerce
/front/src/store/reducers/ProductsReducer.js
UTF-8
1,537
2.546875
3
[]
no_license
import { FETCH_PRODUCTS_BY_NAME, SELECT_PRODUCT, FETCH_ALL_PRODUCTS, SELECT_SIMILAR_PRODUCTS, CREATE_PRODUCT, GET_GRAPES, FETCH_ALL_CELLARS, FETCH_ALL_LINES, FETCH_SELECTEDGRAPES, PRODUCT_UPDATED } from '../constants/index' const initialSate ={ selectedProduct: {}, filteredProducts: [], allProducts: {}, ...
true
37631d870141d14a4bd1ee386eee723cca64b96e
JavaScript
brandly/advent-of-code
/2015/20.js
UTF-8
1,564
3.8125
4
[]
no_license
'use strict' const assert = require('assert') const goal = 34000000 function sumOfFactors (x) { let result = 0 let squareRoot = Math.sqrt(x) for (let i = 1; i <= squareRoot; i++) { if (x % i === 0) { result += i const corresponding = x / i if (corresponding !== i) { result += x / i ...
true
bc64196d4b5a8c0e61fe3782020aa6f8ecfdd0ac
JavaScript
JinalNikam/carrental-frontend
/src/components/Landing/SearchHome.js
UTF-8
4,419
2.609375
3
[]
no_license
import React from 'react'; import { Link,Redirect } from 'react-router-dom'; class SearchHome extends React.Component { constructor() { super(); this.state = { search: '', isBrand: false, isColor: false, isType: false, isPrice: false ...
true
0bf621acf364a42b1463fdf3a2998734d70ddb4b
JavaScript
mikberg/airbags
/src/render/react.js
UTF-8
1,737
2.703125
3
[]
no_license
import File from 'vinyl'; import {Readable} from 'stream'; function rendererModel(renderPath, api) { const nakedPathsPromise = api.getContext(); let index = 0; this._read = () => { let nakedPath; nakedPathsPromise.then(context => { const nakedPaths = Object.keys(context.getSiteMap()); if ...
true
1848dccd00f9a6adb8eba1194a7c8e616ecddd58
JavaScript
sinancengiz/kingofkazakhs
/static/js/map.js
UTF-8
2,058
2.734375
3
[]
no_license
var map_data = "/mapdata"; // reach data with D3 d3.json(map_data, function(data) { // Once we get a response, send the data.features object to the createFeatures function create_map(data); }); // create Function to create map function create_map(response) { var map_data = response; var my_...
true
3db8b3936dd587a1aa79e1c9107ec2eb6c0f36db
JavaScript
nani-koitsu/JScodeChallenges
/49_ticTacToeWinner_sBs.js
UTF-8
1,871
4.6875
5
[]
no_license
/* Difficulty: Tricky Create array extension that detects whether either player has won in a game of Tic-Tac-Toe. Tip: A tic-tac-toe board is 3x3, containing single letters that are either X, O, or empty. A win is three Xs or Os in a straight line. Samples: 1) [["X", "", "O"], ["", ...
true
c28e1c3a0203769c4bbb67577be13712da01c6e4
JavaScript
ParthVadher/pro36
/Food.js
UTF-8
663
2.84375
3
[]
no_license
class Food{ constructor(){ } getFoodStock(){ var reference=database.ref("foodStock"); reference.on("value",function(data){ foodS=data.val(); }) console.log(foodS); } updateFoodStock(stock){ database.ref("/").update({foodStock:stock}); } deductFood(){ foodS=f...
true
8f10adaaca1588a53c05b1ea50dc5604906f9f6b
JavaScript
manojgupta2309/server-avaialability
/app.js
UTF-8
1,676
2.578125
3
[]
no_license
const express = require('express'), app = express(), PORT = 2000; const ServerModule = require('./modules/server.module') ServerModule.initServer(); const setTimeOut=(req,res,timeOut)=>{ return setTimeout(()=>{ if(!timeOut.isTimeout) res.status(200).json({ "message":"request timeout" ...
true
fd39c16a7c8dc290ba2e0175e6f1ac0a1eafa552
JavaScript
jezsej/pluralsight-js-dev-env
/src/test.js
UTF-8
4,376
2.796875
3
[]
no_license
// const fetch = require("node-fetch"); // // const supportedCards = { // // visa, mastercard // // }; // const appState = {}; // const detectCardType = ({ target }) => { // }; // const validateCardExpiryDate = ({ target }) => { // const date = new Date; // const validFormat = expiryDateFormatIsValid(t...
true
fee01f8d1715a1a24ee1c8a20349b125f53c96cc
JavaScript
haileyringier/react-flappy-bird-remake
/src/Game.js
UTF-8
6,812
2.8125
3
[]
no_license
import React from 'react' import StartButton from './components/StartButton' import Timer from './components/Timer' import GameOverAlert from './components/GameOverAlert' import BotPipe from './components/BotPipe.png' import TopPipe from './components/TopPipe.png' const initialBird = { x: 150, y:...
true
8d7c500d15cffc0ade1df4b60ca0a91a0e726f14
JavaScript
oaandersen/Proyecto-Integrador
/js/genres.js
UTF-8
1,718
3.015625
3
[]
no_license
window.addEventListener('load',function(){ //Traemos los generos más vistos del endpoint que nos provee la API. let proxy = 'https://cors-anywhere.herokuapp.com/'; let api = 'https://api.deezer.com/genre'; let urlDetalle = proxy + api; let generosSection = document.querySelector('.genresdisplay'); fet...
true
fe4038f334d08cd4fbce1740003535aea69be2ad
JavaScript
CloudyKetchup/SocialNetwork
/src/main/resources/static/js/auth.js
UTF-8
3,884
2.5625
3
[]
no_license
function chooseAvatar() { $('#choose-profile-photo').click() } function chooseBackground() { $('#choose-background-photo').click() } // change profile photo to choosen one async function changeAvatar() { const reader = new FileReader() reader.onload = async (e) => $('.profile-photo').attr('src', e.target...
true
c5239f744a1eaf242a7b371b77f22139f7ae278b
JavaScript
ykent4/Llamas
/linkedList/partition.js
UTF-8
1,537
3.90625
4
[]
no_license
//partition a linked list so that all elements smaller than x is to the left and all elements larger than x is to the right //x can be anywhere in the right, doesn't have to be sorted var LinkedList = function (value) { this.value = value; this.next = null; }; function partition(head, partition) { var smallLis...
true
5dfcceb346b533448fdd4d1c11d1f26a10aba7c3
JavaScript
mkante/goose.js
/src/utils/Out.js
UTF-8
439
2.515625
3
[]
no_license
import chalk from 'chalk'; const { log } = console; const debug = (...args) => { log(['DEBUG: '] + args); }; const print = (...args) => { log.apply(console, args); }; const warn = (...args) => { log(chalk.yellow(['WARN: '] + args)); }; const info = (...args) => { log(['INFO: '] + args); }; const error = (...
true
dd0f02ec642ff48bd77a05db09957ee986d1971c
JavaScript
sherlock2017/image-tagging-task
/client/src/components/TodoList.js
UTF-8
2,084
2.6875
3
[]
no_license
import { React, Component } from "react"; import { Button} from 'reactstrap'; import TodoItems from "./TodoItems"; import "./TodoList.css"; import axios from 'axios'; import {withRouter } from "react-router-dom"; class TodoList extends Component { constructor(props) { super(props); this.state = { ite...
true
fed5abdf81e7d6a02f9fe91613f462816210c62f
JavaScript
notyoyoma/dcg
/src/game/_old/actors/Character/character.js
UTF-8
8,473
2.703125
3
[]
no_license
// Required Modules import log from "game/events/Log"; // Character Data import races from "./races.json"; import guilds from "./guilds.json"; import spells from "./spells.json"; import alignments from "./alignments.json"; // Sub Modules import Inventory from "./inventory.js"; export default class Character { /* ...
true
49de7e973cfebd8ee1bf6a1e6457a35ce7e924c3
JavaScript
TeresaMarbanCastro/TestingJest
/index.test.js
UTF-8
2,214
3.40625
3
[]
no_license
// //EXERCISE 1 const fizzbuzz = require('./index'); describe('Fizzbuzz', function(){ test('returns a number', function(){ expect(fizzbuzz(7)).toBe(7); }); test('returns fizz if number is multiple of 3', function(){ expect(fizzbuzz(3)).toBe('fizz'); expect(fizzbuzz(9)).toBe('fizz'); expect(fizzbu...
true
a199d107ef9807212e587712660b1198f63f032e
JavaScript
hiro-matsuno/nikki
/nikki_insert.js
UTF-8
2,531
3.203125
3
[ "MIT" ]
permissive
/** * */ //nikki_insert.js //使用モジュール jquery-2.1.1・jquery.cookie //作成日:2014−07−07 //作成者:松野弘法 //初期化処理 $(function () { nowYMD = nowYMDGet(); nowYMDHM = nowYMDHMGet(); $('#inputYMD').text(nowYMD); $('#inputYMDHM').val(nowYMDHM); $('#inputTitle').val(''); $('#inputContent').val(''); }); //現在日付の取得 function nowYMDG...
true
c01a2ec180d87c12abd0025190612a84689bc65a
JavaScript
ctcuff/outlined
/src/js/content-script.js
UTF-8
311
2.546875
3
[]
no_license
;(function () { const hasOutline = document.documentElement.dataset.hasOutline === 'true' const root = document.documentElement if (!hasOutline) { root.classList.add('___outline') } else { root.classList.remove('___outline') } root.dataset.hasOutline = !hasOutline ? 'true' : 'false' })()
true
38fffd273cfa683fa1a86547b98a03e6de271c14
JavaScript
PradhiptaBagaskara/sibuku
/js/countdown.js
UTF-8
2,325
2.984375
3
[ "MIT" ]
permissive
$(document).ready(function() { /** Membuat Waktu Mulai Hitung Mundur Dengan * var detik = 0, * var menit = 1, * var jam = 1 */ var detik = 30; var menit = 30; var jam = 1; var target = "...
true
4dc4659a97e1b9bdfaf25eb5278bf024f5e86e5e
JavaScript
smathj/ES6
/Array_오브젝트/keys()_values().js
UTF-8
513
3.96875
4
[]
no_license
'use strict'; // Key 이터레이터 오브젝트 생성 // 키만 갖는다 let array = [10,20,30]; let iterator = array.keys(); //let iterator = [10,20,30].keys(); for ( var key of iterator ) { console.log(key , " : ", array[key]); //console.log(key , " : ", iterator[key]); }; // value만 갖는 이터레이터 오브젝트 생성 let iterator2 = array.values(); c...
true
a4507571df2b046c286a9cca7b5f382728d258c7
JavaScript
lznbuild/react_hooks_ts
/create-doc.js
UTF-8
1,664
2.796875
3
[]
no_license
const path = require('path') const fs = require('fs-extra') const reactDocs = require('react-docgen') const prettier = require('prettier') // 读取文件内容 const content = fs.readFileSync(path.resolve('./src/component/person.tsx'), 'utf-8') // 提取组件信息 const componentInfo = reactDocs.parse(content) // 生成markdown文档 fs.writeFi...
true
7f602ad01821f1fa5cae2a0cd5180d77fc04b551
JavaScript
InCook/InCookWeb
/static/recipe/js/recipe_list.js
UTF-8
1,575
2.515625
3
[]
no_license
// grid $('.grid').masonry({ itemSelector: '.grid-item', columnWidth: 300, gutter: 20, fitWidth: true }); // replaceAll String.prototype.replaceAll = function(org, dest) { return this.split(org).join(dest); } // Like $(document).delegate('.like', "click", function(){ var id = $(this).attr('id')....
true
89cbe9dcb0c79910c29d8aeca8e84719b05705f3
JavaScript
singmokjai/MTA-2.0
/javascript/trainsched.js
UTF-8
3,904
2.953125
3
[]
no_license
// Initialize Firebase var config = { apiKey: "AIzaSyDEgeZks27WRLzRkEVpYURR9xdfVUy8Xn8", authDomain: "fire-train-26bd0.firebaseapp.com", databaseURL: "https://fire-train-26bd0.firebaseio.com", projectId: "fire-train-26bd0", storageBucket: "fire-train-26bd0.appspot.com", messagingSenderId: "4507...
true
0aacb1fa2d6bcfc8d8ee6b59dcb2bf8e7e864d27
JavaScript
electric-eloquence/fepper-drupal
/backend/drupal/core/misc/polyfills/nodelist.foreach.es6.js
UTF-8
528
2.8125
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "MIT" ]
permissive
/** * @file * Provides a polyfill for NodeList.forEach(). * * This is needed for Internet Explorer 11 and Opera Mini. * * This has been copied from MDN Web Docs code samples. Code samples in the MDN * Web Docs are licensed under CC0. * * @see https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Po...
true
f7398f912898b48fad5781f84913c6e11461e19f
JavaScript
arthurgmalheiros/TwitterInterface
/backend/src/Controllers/TweetController.js
UTF-8
566
2.671875
3
[]
no_license
const Tweet = require("../models/Tweet"); //exporta um objeto com as funções definidas abaixo module.exports = { async index(req, res) { //find = select, sort = order by const tweets = await Tweet.find({}).sort("-createdAt"); return res.json(tweets); }, async store(req, res){ ...
true
313d0a78fa16e6e446a9a0e0af9831d81455306a
JavaScript
CaptainVSL/js-tasks-1
/task-7.js
UTF-8
468
3.90625
4
[]
no_license
let testArray = [1, 2, 1, 0]; let nullElements = 0, evenElements = 0, oddElements = 0; testArray.forEach(function(element){ if (typeof (element)=="number"){ if (element===0) nullElements++; else element%2===0?evenElements++:oddElements++; } }); console.log("Нулевых элеме...
true
50be75a8ff7da1b75137e357bb2bff6b8fa48745
JavaScript
sldstrst/learn_style_html_js
/jslearnonly/workscript.js
UTF-8
2,524
3.1875
3
[]
no_license
var button1 = document.getElementById('btn_one'); var button2 = document.getElementById('btn_two'); var button3 = document.getElementById('btn_three'); button1.addEventListener('click', function () { //нашли наш контейнер var exemple; var ta = document.getElementById('one_block'); //производим его вы...
true
f22a84d6b72b2b704073b8c5552fd990c0b4bd82
JavaScript
NickCote/MLHFate
/index.js
UTF-8
4,927
3.765625
4
[]
no_license
let orderedPeople = []; //final variable of ordered people let people; //non ordered people let heightestValue; let numOfPeople = 5; orderPeople(); function checkDuplicate(currentRoll, takenRolls){ for(int i = 0; i < takenRolls.length; i++){ if(takenRolls[i] == currentRoll){ return true; //Duplicate ...
true
ae7305e1d99d12374c467f251e73402beb685e5e
JavaScript
jandeguzman/theInventory
/public/js/user-Info-Sidebar.js
UTF-8
1,178
3.109375
3
[]
no_license
$(document).ready(function() { getUser(); // Function for retrieving authors and getting them ready to be rendered to the page // NEED TO CHECK ROUTE function getUser() { console.log("If you see this, then the getUser() is working"); $.get("/api/user") .then(function(userIn...
true
09adbdd5b702ad207400630032e7843c16c6711b
JavaScript
Varshneyabhushan/chatingplace
/public/home/script.js
UTF-8
2,111
3.046875
3
[ "MIT" ]
permissive
const messagebox = document.getElementById("textbox") const countdeck = document.getElementById('count') const badge = document.createElement('p') const chat = document.getElementById('chat') const chatcon = document.getElementById('chatcon') badge.id = "badge" badge.className = "typingbadge" badge.innerText = "som...
true
513aaf5cff1790358807f3b219677dfa0dd0edc7
JavaScript
lvm3632/Reemplazador
/test.js
UTF-8
1,026
3.265625
3
[]
no_license
document.getElementById("generar").addEventListener("click", function () { let palabra = document.getElementById('entrada_original').value; let expresion_regular = document.getElementById('expresion_regular').value; let cadena_reemplazadora = document.getElementById('cadena_reemplazadora').value if (p...
true
4dfba9844973d05ba185ecaf23b03dbeaa398b5a
JavaScript
arshbot/zap-desktop
/test/unit/utils/btc.spec.js
UTF-8
14,032
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* eslint-disable max-len */ import { btcToBits, btcToSatoshis, btcToMillisatoshis, btcToFiat, bitsToBtc, bitsToSatoshis, bitsToMillisatoshis, bitsToFiat, satoshisToBtc, satoshisToBits, satoshisToMillisatoshis, satoshisToFiat, millisatoshisToSatoshis, millisatoshisToBits, millisatoshisToBt...
true