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
aafde77867bf51e7e8011eccf46e5b1cad1e4180
JavaScript
Dcodefrenzy/medikcare-backend-
/api/v1/sms/sms.js
UTF-8
906
2.734375
3
[]
no_license
const credentials = { apiKey: '64cea67c072d74eba9f1bffd1e493a73724009495d412a88cf1ec8d63c5d7bd1', // use your sandbox app API key for development in the test environment username: 'sandbox', // use 'sandbox' for development in the test environment }; const AfricasTalking = require('africastalki...
true
8d9bd5d5a3231c3a75062dd4b94342439fc7d0de
JavaScript
ddowdall/rocketry-exam
/rocketry-exam.js
UTF-8
89,937
2.546875
3
[]
no_license
var quizQuestions = [ { id:1, section:"A", question:"Which of the following National Fire Protection Association standards provides a code for high power rocketry?", summary:"The answer is D. NFPA 1127 is the Code for High Power Rocketry. NFPA 1122 is the Code for Model Rocketry; NFPA 1124 is the Code for the Manuf...
true
7f5584a9e0d94d5f99694e2f59693972aa6bdb5c
JavaScript
suryanshmak/tasks-tracker
/src/App.js
UTF-8
1,902
2.640625
3
[]
no_license
import {useEffect, useState} from "react"; import './App.css'; import Form from './components/Form'; import TaskContainer from "./components/TaskContainer"; function App() { const currentTime = (new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours()) + ':' + (new Date().getMinutes() < 10 ...
true
ad46a833d60c28f1f3d9979c98c042dd155cf0a7
JavaScript
kibirb/twig-coding-challenge
/groupArrayElements.js
UTF-8
1,355
3.859375
4
[]
no_license
/** * This function takes in contents of an array divides it into N * equally sized arrays. Where the size of the original array cannot * be divided equally by N, the final part should have a length equal to the remainder. * and returns the result of the function in a response array * * @param array - Input array...
true
ed93df42f65c311b7e7d440412f0c56e9c61397e
JavaScript
princetjangra/dotg
/Plan A/src/shared/data.js
UTF-8
9,516
2.5625
3
[]
no_license
// MAIN_COURSE, SNACKS, HEALTHY, SWEETS export const MAIN_COURSE = [ { id: 1, name: "Dal Makhani & Tawa Paranthas Meal", img: "./assets/images/main-course/Dal Makhani & Tawa Paranthas Meal.jpg", price: 100, veg: true, category: ["Main Course", "Healthy"], description: ...
true
b5df6c68359306ba9bdd75a5d98b3472bdedffc4
JavaScript
owlcode/webgl
/app/lib/different.js
UTF-8
4,106
2.8125
3
[]
no_license
// https://codepen.io/vez/pen/OMyRwe/ //modify these vars for interesting results! //TODO: camera rot and coords, fix points behind cam, add faces and shading, pre-processing auto intersection correction, the drawing stack, objects var vertices = [ [-1,-1,-1], [-1,-1,1], [-1,1,-1], [-1,1,1], [1,-1,-1], [1...
true
fb9f2cbd9288ea9e04daa9ec1dc1cf635705e6ef
JavaScript
veliataseven/JavaScript1
/Week3/week2/moreJavaScript-16.js
UTF-8
500
3.453125
3
[ "CC-BY-4.0" ]
permissive
let o1 = { foo: "bar" }; let o2 = { foo: "bar" }; let o3 = o2; console.log(o1); console.log(o2); console.log(o3); console.log("\n"); console.log(o3); o2.foo = "bar2"; console.log(o3); // Yes it changes console.log("\n"); console.log(o3); o1.foo = "barX"; console.log(o3); // No it doesn't change cons...
true
41af2fd1cffc1237c81bd4ea56c776d93705fb05
JavaScript
nishansubedi/kaha
/routes/index.js
UTF-8
4,512
2.546875
3
[]
no_license
var express = require('express'); var router = express.Router(); var redis = require('redis'); var sha1 = require('object-hash'); var conf = require('../config/'); var db = redis.createClient(conf.dbport, conf.dbhost); var dbpass = process.env.DBPWD || ''; var readonly = Number(process.env.KAHA_READONLY) || 0; console....
true
ce954f79788d170dc357a6df6ff98db1992be613
JavaScript
mujeebshaikhcom/soc-6_Assgn9_Javascript
/problem_8.js
UTF-8
953
3.90625
4
[]
no_license
class Cuboid { constructor(height,width,length) { this.h = height; this.w = width; this.l = length; } surfaceArea() { return (2*(this.l*this.w))+(2*(this.l*this.h))+(2*(this.h*this.w)); } volume() { return this.l * this.w * this.h; } } class Cube extends...
true
40c7a6525db0318648fae7ffdb07a464b1d138c8
JavaScript
mousetraps/PassBuddy
/extension/register.js
UTF-8
611
2.515625
3
[]
no_license
$(function() { // Register $("button#register_submit").click(function() { var un = $("input#login_username").val(); var mp = $("input#login_mp").val(); var hash = mphash(mp).toString(); // Server should set a secure session cookie that is sent with every subsequent request to it $.post(SERVER_U...
true
b38b221529ea22b412a5a85454db3fa97b116a06
JavaScript
kristimihali/BookPost
/client/js/login.js
UTF-8
1,517
2.609375
3
[]
no_license
import { Template } from 'meteor/templating'; import { ReactiveVar } from 'meteor/reactive-var'; //automatically route to router Tracker.autorun(function(){ if(Meteor.userID){ Router.go("/posts"); } }); Template.login.events({ "submit .form-signin": function(event){ var username = trimInput(event.target.userna...
true
8598840d4935ea0edf57545d437d2db19d23abbc
JavaScript
imrenagi/BizarreAccelerator
/js/play-controller.js
UTF-8
1,509
2.515625
3
[]
no_license
var stage = 0; var utils; var runTimerID = 0; function requestStage(stageNum) { $.ajax({ "type": "POST", "url" : "stage-loader.php", "data": {s: stageNum}, // add cookie here ??? "dataType": "json", "success": function(json) { console.log(json); if (j...
true
0e2102cce3492511c7ebdb581c1b3a2f7210da67
JavaScript
omarazam98/RecitalGuru
/src/components/HelperFunctions/MidiFunctions.js
UTF-8
3,292
2.78125
3
[]
no_license
const singleHighLight = (className, element) => requestAnimationFrame(() => element.classList.add(className)) const multipleHighlight = (className, elements, totalNotes) => requestAnimationFrame(() => { for(let i = 0; i < totalNotes; i++){ elements[i].classList.add(className) } }) const singleVisibili...
true
1340fc79b993ea7f8d13e9d1343556ea31a57dde
JavaScript
wesmaldonado/test-driven-javascript-example-application
/public/javascripts/cat.js
UTF-8
122
3.015625
3
[ "MIT" ]
permissive
// Cat constructor function Cat(name){ this.name = name; }; Cat.prototype = { meow: function(){ return "meow"; } }
true
06f3007096ae97961b09a36996ba04069b798c09
JavaScript
racnan/nodejs-bluff
/controllers/users.js
UTF-8
1,114
2.703125
3
[]
no_license
const express = require('express') const {USERS} = require('../data/users.js') const router = new express.Router() router.post('/login', (req, res) => { //Search for the username for (var i = 0; i < USERS.length; i++) { //Username match if (USERS[i].username === req.body.username) { ...
true
c502535616537ff7fd8590e51a74475ff5b11cf5
JavaScript
tannerlinsley/react-static
/packages/react-static/src/node/makePageRoutes.js
UTF-8
956
2.6875
3
[ "MIT" ]
permissive
export default function makePageRoutes({ items, pageSize, pageToken = 'page', route, decorate, }) { const itemsCopy = [...items] // Make a copy of the items const pages = [] // Make an array for all of the different pages while (itemsCopy.length) { // Splice out all of the items into separate pages...
true
c050d3479dab962d08215ec6484bbb4e3bfad15d
JavaScript
MGRaghavendra/React-basic-todolist
/src/App.js
UTF-8
924
2.8125
3
[]
no_license
import { useState } from "react"; import "./App.css"; import Todolist from "./components/Todolist"; function App() { const [todos, setTodos] = useState([]); const [text, setText] = useState(""); const handleChange = (e) => { e.preventDefault(); setText(e.target.value); }; const addTodo = () => { ...
true
c60cc7df8f5523ab98d17dbf4259d7e94b9a7028
JavaScript
trandinhquy971/newword
/src/containers/CardListContainer.js
UTF-8
2,311
2.65625
3
[]
no_license
import React, { Component } from 'react' import DefaultCardList from '../components/CardList' import { connect } from 'react-redux' import DefaultCardHolder from '../components/CardHolder' import DefaultCardItem from '../components/CardItem' import * as actions from '../actions' class CardListContainer extends Compone...
true
ab69300c148c9b3dbdbc7cfa3a2b2f54b2499290
JavaScript
parryk303/PERN
/frontend/src/App.js
UTF-8
977
2.640625
3
[]
no_license
import logo from './logo.svg'; import './App.css'; import React, { useState, useEffect } from 'react' import axios from 'axios'; const App = () => { const [posts, setPosts] = useState() const getData = async () => { await axios.get('https://jsonplaceholder.typicode.com/posts') .then(res => setPosts(res.da...
true
8d8e1db8408de8f96d81f287112f40c6830a3f27
JavaScript
AdvanceParty/webcam-reconigzer
/src/js/util.js
UTF-8
570
2.65625
3
[]
no_license
import Stats from 'stats.js'; const isAndroid = () => /Android/i.test(navigator.userAgent); const isiOS = () => /iPhone|iPad|iPod/i.test(navigator.userAgent); const isMobile = () => isAndroid() || isiOS(); /** * Sets up a frames per second panel on the top-left of the window */ const stats = new Stats(); function s...
true
27c5554444ec2469f01d7eda829dc4ccb8c65956
JavaScript
wgoldie/syllog
/web/src/graphCommands/graph.js
UTF-8
2,144
2.65625
3
[]
no_license
import { NODE_TYPES, VARIABLE_TYPES } from '../constants/cytoscape'; import { variableCyJSON } from '../cytoscape/cyJSONBuilders'; /* * Creates a node with the given type */ export const addVariable = (variableType, generic = false) => (cy, getVariableName) => ({ content: (generic ? 'Variable' : `${variableType} V...
true
5692f9bb23c60d728841ea9ac324aac5adfa0da8
JavaScript
jasonalderman/wildtrack-dashboard
/js/my-script.js
UTF-8
835
2.625
3
[]
no_license
var SMART_METHOD ={ handlerData:function(resJSON){ console.log("resJSON is", resJSON); var templateSource = $("#smart-template").html(); var template = Handlebars.compile(templateSource); var smartHTML = template({"incident":resJSON}); $('#all_inc...
true
9aa9f9b4aff4da051287e0c5a5a3cc7c493e31a1
JavaScript
marmikupadhyay/rick-and-morty
/src/components/CharactersContainer.js
UTF-8
1,716
2.8125
3
[]
no_license
import React, { useState, useEffect } from "react"; import Input from "./Input"; import Character from "./Character"; import Axios from "axios"; import Error404 from "./Error404"; function CharactersContainer() { const [Characters, setCharacters] = useState([]); const [query, setQuery] = useState({ page: 1, ...
true
8b31cad43ba8cd58b7d9b0d2dcd447a7d35cac40
JavaScript
louffoster/studio332site
/frontend/src/games/virus/pool.js
UTF-8
965
3.453125
3
[]
no_license
export default class Pool { constructor () { this.pool = [] } hasTilesLeft() { return this.pool.length > 0 } pop() { return this.pool.pop() } refill() { // fill pool with letters based on distribution rules... this.pool = [] var i,j var dist = { ...
true
08c90037c8f3f62acdf44a753407c6b80a792659
JavaScript
kuarcis/wowahdownloader
/processor.js
UTF-8
4,028
2.71875
3
[ "MIT" ]
permissive
function uniqueitem(datarange) { //不包含表頭的物件清單 var seen= {}; var out =[]; var len=datarange.length; var j = 0; for (var i = 0; i< len; i++) { var item = datarange[i]; if (seen[item] !==1) { seen[item]=1; out[j++] = item; } } return out } function p...
true
1e8aca42e7e1b14c388436f976424f21754f00c8
JavaScript
idleplaythings/attero
/public/js/events/MoveInterruptEventListener.js
UTF-8
845
2.546875
3
[]
no_license
var MoveInterruptEventLister = function() { EventListener.call(this, "MoveInterruptEvent"); } MoveInterruptEventLister.prototype = Object.create( EventListener.prototype ); MoveInterruptEventLister.prototype.handle = function(event) { var routeNumber = event.routeNumber; //console.log("Handling move event...
true
e07abc621eef4dad90539086b07b00fa453f4120
JavaScript
raziweb/QuizApp
/seeder/index.js
UTF-8
2,456
2.84375
3
[]
no_license
const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost:27017/quiz-app', { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true }); const db = mongoose.connection; db.on("error", console.error.bind(console, "connection error:")); db.once("open", () => { console.log(...
true
f01e4e966aea09aa63c6e9677303f3ee97c9679b
JavaScript
pavleta-gyokova/SoftUni
/JS Fundamentals/04. Functions - Lecture/04. Orders.js
UTF-8
500
3.15625
3
[]
no_license
function orders(order,quantity){ let orderTotal = 0; switch(order){ case "coffee": orderTotal = 1.50 * quantity break; case "water": orderTotal = 1 * quantity; break; case "coke": orderTotal = 1.4 * quantity; ...
true
4ae550ed25845ef36236ca3ed2abd89957213e11
JavaScript
patrickrios/dev-finances-maratona-discover
/scripts.js
UTF-8
12,459
2.75
3
[]
no_license
const Modal = { toggleModal(){ const modal = document.querySelector('.modal-overlay') Modal.display(modal) }, toggleReport(){ Report.render() const report = document.querySelector('div.modal-report-container') Modal.display(report) }, display(element){ ...
true
b2d19a6c479b106b720a6c137e6936e08f1f6807
JavaScript
KoYeJoon/webSystem_homework
/lab13_201820742/src/components/Form.js
UTF-8
861
2.5625
3
[]
no_license
import React from "react"; import { connect } from 'react-redux'; import {createTodo} from "../actions/todo"; class Form extends React.Component{ //사용자의 Todo를 입력받아 추가하는 Component render(){ let input; const {handleCreateTodo} = this.props; return( <div> ...
true
bc93256f52a1367299205dd07266031c40b58c6a
JavaScript
MaryArbs/js-advanced-functions-introduction-to-map-and-reduce-lab-online-web-ft-110419
/index.js
UTF-8
1,180
3.296875
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
function mapToNegativize(sourceArray){ let negArray = sourceArray.map(value => -value) return negArray; }; function mapToNoChange(sourceArray){ return sourceArray }; function mapToDouble(sourceArray){ let doubleArray = sourceArray.map(value => value * 2) return doubleArray }; function mapToSquare...
true
bcfbaf9e5997409e7fe89a2461f82d598e2b0d2a
JavaScript
GBCMavericks/CliveAlive
/game/js/clouds.js
UTF-8
1,051
3.25
3
[ "MIT" ]
permissive
const CLOUD_VELOCITY_MULTIPLIER = 30 / FPS; var clouds = []; function drawClouds(ctx){ for(var i = 0; i < clouds.length; i++) { ctx.drawImage(clouds[i].img, clouds[i].x, clouds[i].y); } } function spawnCloud() { var currentCloud = {}; currentCloud.img = cloudSprites[Math.random() > 0.5 ? ...
true
b3cf8fdecedfc3d5247c1f887a1bee5b97589f7b
JavaScript
lawyatt88/node-shell
/bash.js
UTF-8
419
3.109375
3
[]
no_license
process.stdout.write('prompt > '); //The stdin 'data' event fires after a user types in a line process.stdin.on('data', function (data) { var cmd = data.toString().trim(); // remove the newline if (cmd === 'pwd') { var pwd = process.argv0; process.stdout.write(pwd); } if (cmd === 'date') { var...
true
76d30f91f530218523e785613b53c38873f4201e
JavaScript
tiburonmartillo/javascript
/Práctica 1 suma/js/app.js
UTF-8
639
3.828125
4
[]
no_license
/** * Se declaran las variables que se utilizaran en el código */ let numero1; //se agrega el tipo de número con number y dos puntos let numero2; let resultado; /**se declara variable button y se le asigna el boton de calcular */ let button = document.getElementById('btncalcular'); button.addEventListener('click',...
true
d234de42f2c4ee9131d6331cb93276e595b1f0ef
JavaScript
ravitejagGitHub/AlgorithmsJS
/src/leetcode/30dayLockdownChallenge/W1/2.isHappyNumber_202.js
UTF-8
1,038
4.3125
4
[]
no_license
/** * https://leetcode.com/problems/happy-number/ * Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 ...
true
57c7b98a1edb8c60fd9fe6634eae7d7f1f7a65c9
JavaScript
DavidFelix8/lab-mongoose-movies
/seed.js
UTF-8
970
2.96875
3
[]
no_license
// You'll use this script to add some initial data to your database const dotenv = require('dotenv'); dotenv.config(); const data = require('./data'); const mongoose = require('mongoose'); const MONGODB_URI = process.env.MONGODB_URI; const Celebrity = require('./models/celebrity'); // Remember, before performing ...
true
958605065bd54730e6d27f90906e6e353c3ad280
JavaScript
almandre/hackerrank
/src/algorithms/strings/caesar-cipher.js
UTF-8
606
3.265625
3
[]
no_license
export default function caesarCipher(s, k) { let encrypted = ''; for (const c of s) { let code = c.charCodeAt(0); let initial; if (c >= 'A' && c <= 'Z') { initial = 65; } else if (c >= 'a' && c <= 'z') { initial = 97 } if (initial) { ...
true
7854c522ff7261472b05a1a9eb067de7d4c708a3
JavaScript
yuya1212h4/mooovi-space
/app/assets/javascripts/modal.js
UTF-8
3,884
3.015625
3
[]
no_license
$(document).on('turbolinks:load', function() { //グローバル変数 var nowModalSyncer = null ; //現在開かれているモーダルコンテンツ var modalClassSyncer = "modal-syncer" ; //モーダルを開くリンクに付けるクラス名 //モーダルのリンクを取得する var modals = document.getElementsByClassName( modalClassSyncer ) ; //モーダルウィンドウを出現させるクリックイベント for(var i=0,l=modals.lengt...
true
64d8f36fbb9300391f6ad925fede912a8dba5715
JavaScript
SangeethaKannas/dsa
/javascript-dsa/datastructures/priorityqueue.js
UTF-8
885
3.6875
4
[]
no_license
/*** Priority Queue - Queues with priority */ function PriorityQueue() { collection = []; this.print = function() { console.log(collection); } this.enqueue = function(element) { if(this.isEmpty()) { collection.push(element); } else { var added =false;...
true
2eb4826749e813df31d2ade596098acade53ff93
JavaScript
orlando-messias/softrom-sistema-frontend
/src/services/loginServices.js
UTF-8
357
2.53125
3
[]
no_license
const isLogin = () => { return localStorage.getItem('user') ? true : false }; const loggedUser = () => { return localStorage.getItem('user') ? JSON.parse(localStorage.getItem('user')) : { username: 'O' }; }; const loginValidation = (value) => { return (value.length >= 3) ? true : false; } module.exports = { is...
true
9ec13be1804b6a80fbc03c57ac160521bfa038ee
JavaScript
amrutapatil1720/Leetcode_-_toy-problems
/Leetcode_&_toy-problems/Leetcode_&_toy-problems.js
UTF-8
691
4
4
[]
no_license
/* 203. Remove Linked List Elements Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4->5->6, val = 6 Output: 1->2->3->4->5 */ var removeElements = function(head, val) { if (head === null) { return head; } if (head.next === null && head.val === val) { ...
true
e574e7a4152503063bd04f15b6f3e75a5de682ea
JavaScript
svitlanaf/movie-ticket
/js/scripts.js
UTF-8
3,236
3.328125
3
[ "MIT" ]
permissive
//Business logic //movieTime - 9.00am, 10.30am, 12.30pm, 2.30pm, 5.00pm, 7.30pm, 10.30pm "use strict"; // Constructor for movie function Movie(movieTitle, movieYear, movieRating, movieTime, movieRelease) { this.title = movieTitle; this.year = movieYear; this.rating = movieRating; this.time = movieTime; thi...
true
23f77b0cff6df107238e1ce986a05f0bd99da1a5
JavaScript
gopicode/web
/exercises/checker.js
UTF-8
832
3.5625
4
[]
no_license
const space = ' '; const vbar = '|'; const plus = '+'; const dash = '-'; function draw(grid) { console.log(grid); const line = plus + dash.repeat(grid[0].length * 3) + plus; process.stdout.write(line + '\n'); grid.forEach((row, i) => { process.stdout.write(vbar); row.forEach((col, j) => { const v...
true
8b06c4b5d597c6f2c48d3f458ca258029cca8137
JavaScript
youngcitrus/cohort-ta-resources
/jspy-instructional-resources-master/W02/W02D3/EoD/05_myEvery.js
UTF-8
683
4.65625
5
[]
no_license
// Write a function, myEvery, that takes in an array and a callback as arguments. // The function should mimic the behavior of Array#every. function myEvery(arr, cb) { // iterate through the array, perform the cb on each element // if the callback returns false, return false from the function // if we made it throu...
true
b7b9d56af01beb0478fce4a34e7bccf043ee3a87
JavaScript
fumihachi94/vision_atelier
/ply_viewer/javascript/script.js
UTF-8
3,111
3.046875
3
[]
no_license
// ページの読み込みを待つ window.addEventListener('load', init); const width = 640; const height = 450; // レンダラーを作成 const renderer = new THREE.WebGLRenderer({ canvas: document.querySelector('#myCanvas') }); // シーンを作成 const scene = new THREE.Scene(); // カメラを作成 // (視野角, 画面のアスペクト比, カメラに映る最短距離, カメラに映る最遠距離) const camera = new...
true
b9be82a6322fd812030c5f7d8f32a61854742802
JavaScript
jldamians/search-on-screen
/lib/ImageDecoder.js
UTF-8
595
2.71875
3
[]
no_license
const PNGReader = require('png.js'); const Promise = require('bluebird'); class ImageDecoder { /** * Convertir imagen a formato de píxeles (PNGReader) * @param {Buffer} imgBuf, imagen que será convertida * @returns {Object: <{png: PNGReader, buf: Buffer}>} */ static async decode(imgBuf) { const rea...
true
0906aa1ca08f59b651c9425e2c98179544a0abaa
JavaScript
MajoCabre/prueba
/Ejercicios/app.js
UTF-8
3,884
4.34375
4
[]
no_license
//Convertir de libras a kilogramos //Como lo hizo el profersor // let libras = 160; // let kg = libras / 2.205; // kg *= 100; // kg = Math.round (kg); // kg /= 100; // console.log (libras + ' Libras son ' + kg + ' kg'); // let libras = 160; // let kg = 2.2046; // let resultado = libras / kg; // resultado = resultad...
true
0ba8067020d3b261963146202cb365b278d82980
JavaScript
ottonSam/reactConcepts
/react-ui/src/components/counter/Counter.jsx
UTF-8
989
2.65625
3
[]
no_license
import React, { Component } from 'react'; import Display from './Display'; import Buttons from './Buttons'; import PassForm from './PassForm'; export default class Counter extends Component { state = { number: this.props.initialNumber || 0, pass: this.props.passInitial || 1, }; inc = () ...
true
b8fd4a419b2aa9ab4413c01763af3feb64c6f962
JavaScript
buitheanh201/JavascriptAI
/main.js
UTF-8
1,915
2.65625
3
[]
no_license
let classifier,featureExtractor; let voilume = ''; const $ = document.querySelector.bind(document); const setUpWebCam = async() => { const webcamElement = $('.webcam'); const camera = await navigator.mediaDevices.getUserMedia({ video : true}); webcamElement.srcObject = camera; webcamElement.s...
true
5c415fc5c017d2fbef3896e300efffea62e3f583
JavaScript
ssharm02/Free_Code_Camp_Work
/Javascript Algorithms and Data Structures Certification/Intermediate Algorithm Scripting/SumAllNumbersInRange.js
UTF-8
666
4.28125
4
[]
no_license
/* Sum All Numbers in a Range We'll pass you an array of two numbers. Return the sum of those two numbers and all numbers between them. The lowest number will not always come first. Remember to use Read-Search-Ask if you get stuck. Try to pair program. Write your own code. Sarthak Sharma ssharm02 */ function sumAl...
true
770996f20c54b6833787098afa5e3acb1bc59adc
JavaScript
Ranjankumar666/nations
/public/script.js
UTF-8
2,287
3.046875
3
[]
no_license
//https://restcountries.eu/rest/v2/all let addClass=(tag, className)=>(tag.classList.add(className)); let addChild=(parent,...args)=>{ args.forEach(child=> { parent.appendChild(child); }) } let target= document.querySelector("#region"); (async ()=>{ let data; if(localStorage.getItem('data') === null){ ...
true
9742e458bfd34e40c72a95f125495643e1e5a21c
JavaScript
udaybhanchauhan/unitel
/js/parentIntegration.js
UTF-8
649
2.75
3
[]
no_license
if (window.attachEvent) { window.attachEvent('onmessage', processPostMessageParent); } else { window.addEventListener('message', processPostMessageParent, false); } function processPostMessageParent(event) { var theObject=event.data; console.log("data===>>>"+JSON.stringify(theObject)); if(event.data){ //th...
true
c024ff1bd0b28d0774b6a5d6ac93851e30009da3
JavaScript
twumm/webapi-i-challenge
/web-api-fe/src/components/Users/UserForm.js
UTF-8
702
2.75
3
[]
no_license
import React from 'react' export default function UserForm({ addUser }) { let nameText = React.createRef(); let bioText = React.createRef(); const onAddUser = (event, nameText) => { event.preventDefault(); const user = { name: nameText.current.value, bio: bioText.current.value } addU...
true
ff4f42a882c2179db16bdc10fa6a8853a440a1bb
JavaScript
fer0nan3do/2DAW
/DWC/examenRecB/codeB.js
UTF-8
4,628
2.734375
3
[]
no_license
$(document).ready(function () { console.log("jqery ok"); $.validator.setDefaults({ submitHandler: function () { alert("formulario ok"); envioDatos(); } }); $.validator.addMethod("valueNotEquals", function (value, element, arg) { return arg != value; })...
true
7ad75aec81f00f5876661f8671c2d2a97f7608f8
JavaScript
green333/ActionGame
/GAS/CreateCSharp.js
UTF-8
12,327
3.515625
4
[]
no_license
// 変数かクラスかプロパティを判定するタイプ var ELEMENT_TYPE = { VARIABLE:1, CLASS:2, PROPERTY:3, }; // プロパティのタイプ var PROPETY_TYPE = { GET:'get', SET:'set', }; // アクセス修飾子 var ACCESS_MODIFIRES = { PUBLIC:'public', PRIVATE:'private', PROTECTED:'protected', }; // 変数の型 var VARIABLE_TYPE = { INT:'int', FLOAT:'float', ST...
true
eef5544bcb8c26de222ebaf8c155c12bdd970836
JavaScript
cgrounds/react-growlrr
/src/Growl.js
UTF-8
678
2.546875
3
[]
no_license
import React, {Component} from 'react'; class Growl extends Component { constructor(props) { super(props) this._handleDeleteClick = this._handleDeleteClick.bind(this) } _handleDeleteClick(e){ e.preventDefault(); e.stopPropagation(); this.props.firebase.database().ref(`/growlrr/${this.props...
true
9ea53b58662618ab48bdb9a9ef74159cf5206e50
JavaScript
gabrielpconceicao/frontend-asset-leaflet
/src/layer/tile/GridLayer.js
UTF-8
13,073
2.515625
3
[ "BSD-2-Clause" ]
permissive
/* * F.Leaflet.GridLayer is used as base class for grid-like layers like TileLayer. */ F.Leaflet.GridLayer = F.Leaflet.Layer.extend({ options: { pane: 'tilePane', tileSize: 256, opacity: 1, unloadInvisibleTiles: F.Browser.mobile, updateWhenIdle: F.Browser.mobile, updateInterval: 150 /* minZoom: ...
true
2dc812b4ffa5689b235dfee08bc917d27c343c52
JavaScript
kevingraber/code-kata
/Trigrams/thing.js
UTF-8
2,804
3.234375
3
[]
no_license
const { sentence } = require('./data'); const poe = require('./poe'); const hp = require('./hp'); const fs = require('fs'); const SOURCES_DIRECTORY = './Sources'; const TESTMAP = new Map(); fs.readdir(SOURCES_DIRECTORY, (err, files) => { if ( err ) { console.log('ERROR!', err); } else { // con...
true
dd7cb0ddfdad3b6f0665573c16ab60ac4227a804
JavaScript
design4web2018/design4web2018.github.io
/js/script.js
UTF-8
441
2.734375
3
[]
no_license
var accordions= document.getElementByClassName("accordion"); for (var i = 0; i < accordions.length; i++) { accordions[i].onclick= function () { this.ClassList.toggle ('is-open'); var content= this.nextElementSibling; if (content.style.maxHeight) { //accordions is open, we need to close it content.style.m...
true
addb11571b55a6e2d432b5c46a096225dbfa8db7
JavaScript
denis-kalinichenko/pseudoSelect.js
/lib/jquery.pseudoSelect.js
UTF-8
1,712
2.71875
3
[]
no_license
/** * jquery.pseudoSelect.js 0.3 * * MIT licensed * * https://github.com/denis-kalinichenko/pseudoSelect.js * * Created by Denis Kalinichenko on 5/14/2015. * d.kalinichenkooo@gmail.com */ $.fn.select = function(callback) { /* declarations */ var $select = $(this).addClass("hidden"); var name = $...
true
96130f7efe1c21406fe34c28a055235bebe20d74
JavaScript
marlondias/electron-experiments
/text-editor/app/documentManager.js
UTF-8
6,476
2.90625
3
[]
no_license
const {dialog} = require('electron').remote; const ipc = require('electron').ipcRenderer; const TabManager = require('./tabManager.js'); const EditorManager = require('./editorManager.js'); class Document{ constructor(file){ this.id = Symbol(); this.file = file; this.name = 'A placeholder.j...
true
6174d40b7b0c5a717bd8f22d75d6249fd93d81ce
JavaScript
krishnabhargav/learning
/firebase-test/app/scripts/main.js
UTF-8
185
2.71875
3
[]
no_license
(function (){ var fb = new Firebase("https://scorching-inferno-1104.firebaseio.com"); fb.on("value", function(data) { alert(data.val().name + " : " + data.val().age); }); })();
true
4bc38a79cfdf514c18a15517b38ee047eb200919
JavaScript
parentnode/manipulator
/src/u-request.js
UTF-8
15,032
2.859375
3
[ "MIT" ]
permissive
// Create xmlhttprequest object - separated to make it possible to implement fallback, primarily for IE Util.createRequestObject = function() { return new XMLHttpRequest(); } // Request object Util.request = function(node, url, _options) { // u.bug("request") var request_id = u.randomString(6); node[request_id] =...
true
e25ef818c05f196b22416add595ae6d667c4dbe2
JavaScript
google-code/acao-moradia
/acao/js/scripts.js
UTF-8
13,697
3.21875
3
[]
no_license
/** * Máscara para o campo data dd/mm/aaaa hh:mm:ss * Exemplo: <input maxlength="16" name="datahora" onKeyPress="DataHora(event, this)"> */ jQuery(function(){ jQuery("#cpf").mask("999.999.999-99"); jQuery("#cep").mask("99999-999"); jQuery("#telefone").mask("(99) 9999-9999?9"); jQuery("#telefone_re...
true
12c034e8b9ea47362b68e93a49192e96668d67a8
JavaScript
2308Bohdan/ECMAScript-5_Basics_Practice
/9) Функции/script.js
UTF-8
2,610
4.40625
4
[]
no_license
/*Задание №1. Напишите функцию pow(x, n), которая возвращает x в степени n. Иначе говоря, умножает x на себя n раз и возвращает результат.*/ function pow(x, n) { var numberPow = x; for (var i = 1; i < n; i++) { numberPow *= x; } return numberPow; } /*Задание №2. Напишите функцию minMax(x, y), котора...
true
e5d8bf8c5945fe4cd39454398157b69a6d9670d2
JavaScript
michaelburnley/animal-crossing-discord-bot
/index.js
UTF-8
1,442
2.546875
3
[]
no_license
require('dotenv').config(); import cron from 'node-cron'; import Discord from 'discord.js'; import _ from 'lodash'; import checkBirthday from './src/checkBirthday'; const { DISCORD_BOT_TOKEN, CHANNEL_NAME, CRON_TIME } = process.env; const client = new Discord.Client(); const cache = { }; client.on('re...
true
ea5b4d6c6ee6f44bb19f9b43fa3ddeada708a0f6
JavaScript
nick433/projects
/TexasFoldem/foreground.js
UTF-8
21,711
2.78125
3
[]
no_license
//idea: you-player can be monitored for children changing, which happens when new cards are dealt or when it becomes my turn. //can check if I have a call $1 (in 1/2) this will denote it being my turn to open SB //add list of hands at SB which can be NOT hitting fold until the call value in the call button goes fro...
true
4f04554b40d29ed517ce46ce9f0df7f8cf4a2397
JavaScript
zubeir-Abubakar/HNG_storm-task
/testScripts/fletcher.js
UTF-8
306
2.6875
3
[]
no_license
const my_script = () => { const data = { name : "[OLUFEMI] [EZEKIEL]", id : "[HNG-04946]", language : "[javascript]" } return `Hello World, this is ${data.name} with HNGi7 ID ${data.id} using ${data.language} for stage 2 task. ezekielolufemi09@yahoo.com`; }; console.log(my_scrip...
true
293cd95f80e93b91201fadcb0819a50b59f99bc2
JavaScript
yiyu0x/algorithms
/leetcode/024.js
UTF-8
621
3.796875
4
[]
no_license
let print = (node) => { let tmp = node let res = '' while(tmp) { res += tmp.val + '->' tmp = tmp.next } res += 'null' console.log(res) } var swapPairs = function(head) { if (!head) return null if (!head.next) return head let curr = head while (curr) { if (curr.next) { let tmp = curr.val curr.v...
true
f4a64784aaea87b662bd36c5a939222b1b991a24
JavaScript
techkanna/cookie-consent-example
/assets/js/main.js
UTF-8
1,114
2.90625
3
[]
no_license
const cookieStorage = { getItem: (key) => { const cookies = document.cookie .split(';') .map(cookie => cookie.split('=')) .reduce((acc, [key, value]) => ({ ...acc, [key.trim()]: value }), {}) return cookies[key]; }, setItem: (key, value) => { document.cookie = `${key}=${value}`; }...
true
e1697c79928f04f3f84ac851c2e9a0c5e9921de3
JavaScript
avpaul/and-react-workshop
/src/App.js
UTF-8
896
2.5625
3
[]
no_license
import React, { useState, useEffect, useReducer, createContext } from 'react'; import TodoComponent from './todo'; const reducer = (state, { type, payload }) => { switch (type) { case 'add': return state.concat([payload]); case 'remove': // delete logic return state; default: re...
true
d64d980eb091aff0fa8d446fd15cafcaaff6df17
JavaScript
vikt-p/demo-social
/src/redux/profile-reducer.js
UTF-8
3,201
2.5625
3
[]
no_license
import {profileAPI, userAPI} from "../API/api"; const ADD_POST = 'ADD-POST'; /*const UPDATE_NEW_POST_TEXT = 'UPDATE-NEW-POST-TEXT';*/ const SET_USER_PROFILE='SET-USER-PROFILE'; const SET_STATUS='SET-STATUS'; const DELETE_POST='DELETE_POST'; const SAVE_PHOTO_SUCCESS='SAVE_PHOTO_SUCCESS'; let initialState = ...
true
98c8b2cab25ab93820a2f97c1a63b5d2c4ff05ff
JavaScript
megahertz/electron-log
/src/__specs__/utils/TestLogReader.js
UTF-8
2,499
2.78125
3
[ "MIT" ]
permissive
'use strict'; const fs = require('fs'); const os = require('os'); const path = require('path'); class TestLogReader { constructor(appName = null) { this.items = []; this.appName = appName; } static getDefaultLogDir(appName) { switch (process.platform) { case 'darwin': { return path.re...
true
4b1833219464019e1b7b99a57e0263d3053452e3
JavaScript
mehedi143038/All-projects
/node-mongo/index.js
UTF-8
1,436
2.5625
3
[]
no_license
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const app = express(); app.use(cors()); app.use(bodyParser.json()); const users = ['mehedi', 'mama', 'sabbir', 'delowar', 'ferdous','hasan']; //database connection const MongoClient = require('mongodb').Mo...
true
63bcd9629af1c4309cba04882ac611e4cd8d3663
JavaScript
jiazechen/swool_chat
/static/js/customer.js
UTF-8
2,710
3.078125
3
[]
no_license
// 配置 ws 服务端地址 var ws_host = 'ws://127.0.0.1:8855'; var ws = new WebSocket(ws_host); //绑定连接事件 ws.onopen = function(evt) { console.log("Connection open ..."); }; //绑定收到消息事件 ws.onmessage = function(evt) { var jsonObj = JSON.parse(evt.data); console.log( "Received Message: " + evt.data); console.log(jsonObj...
true
de5b1801c7c6779895769148651d25d9602c1b12
JavaScript
jamesj228/toy-problems
/evenOccurrence/evenOccurrence.js
UTF-8
749
4.34375
4
[]
no_license
/* * Find the first item that occurs an even number of times in an array. * Remember to handle multiple even-occurance items and return the first one. * Return null if there are no even-occurance items. */ /* * example usage: * var onlyEven = evenOccurence([1, 7, 2, 4, 5, 6, 8, 9, 6, 4]); * console.log(onlyEven...
true
70ae944ddae3cb40dfb193443da7d40d2babe6a8
JavaScript
gmal1/algoholics-anon
/interview-questions/rangeSumQuery.js
UTF-8
919
4.28125
4
[ "MIT" ]
permissive
/* Given an array of integers, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumRange(0, 2) -> 1 sumRange(2, 5) -> -1 sumRange(0, 5) -> -3 Note: You may assume that the array does not change. There are many calls to sumRange function. */ class So...
true
8655556f050f905dba79a9f229ccbc06287a8cf5
JavaScript
SyMind/image-upload
/src/imageupload/wrapper.js
UTF-8
5,319
2.796875
3
[]
no_license
import Draggable from '../Draggable/index' export default class Wrapper { constructor(el, options) { this.el = el this.options = options this.slots = [] this.lastIdx = -1 this.column = Math.floor(this.el.offsetWidth / this.options.elementSize) this.row = 0 } removeElement () { conso...
true
74ac2cff684f0307aaaf5b110117c93f00a4f149
JavaScript
HaskellJacobCurry/haskell-ts
/dependency/jcore/dist/container/Array.js
UTF-8
5,121
2.5625
3
[]
no_license
"use strict"; exports.__esModule = true; exports.Array = void 0; var ts_toolbelt_1 = require("../ts-toolbelt"); var Array = /** @class */ (function () { function Array(_) { if (_ === void 0) { _ = []; } this._ = _; } Array.prototype.unlift = function () { return this._; }; Array.prototyp...
true
f59c6d027df67d4d6c2480485edc20110f96c2cc
JavaScript
mccorn/basic-js
/src/what-season.js
UTF-8
532
2.96875
3
[ "MIT" ]
permissive
module.exports = function getSeason(date) { throw 'Not implemented'; // const tmp = 'Unable to determine the time of year!'; // if (typeof date !== 'object') return tmp; // console.log('date', date); // switch (date.getMonth()) { // case 11, 0, 1: { // return "winter"; // } // case 2, 3, 4: ...
true
95c1735d6bb381b9cf6442b5daf65708c937ab12
JavaScript
TakaiKinoko/BlockChain_MiniDemo
/src/api.js
UTF-8
4,100
3.5625
4
[]
no_license
/* Four methods to create API --/mine a post which takes a single argument data and creates and mines a new block --/blocks a get which returns all the blocks in our node --/peers/add a post which takes a single argument peers and registers the peers with our node --/peers a get which returns all the pe...
true
9148a4b43c819d47f39a58c3feb99d7bd464391b
JavaScript
Keyemail/commander-build
/commands/mute.js
UTF-8
3,281
2.921875
3
[]
no_license
//DO NOT MESS WITH THIS CODE IF UNEXPERIANCED, IF YOU MESS UP ONE LINE COULD CAUSE THE WHOLE COMMAND TO BREAK. PROCEED WITH CAUTION. NOTES ON THE LINES EXPLAIN WHAT THAT LINE IS FOR. //Config Files const checkmark = '<:checkmark:856176905643098122>'; const crossmark = '<:crossmark:856190653389471794>'; //Module expo...
true
1edbcde7b497ae7d8e1d4988fd86aec2b5d224d5
JavaScript
EsauJosue/CursoJavascript
/Plantillas de Texto/plantillas.js
UTF-8
303
3.3125
3
[]
no_license
'use strict' var nombre = prompt('Ingrese su nombre:'); var apellidos = prompt('ingresa tus apellidos: '); //Las plantillas de texto se definen con comillas invertidas var texto =`<h1>Hola que tal</h1> <h2>Mi nombre es: ${nombre}</h2> <h3>Mis apellidos son: ${apellidos}</h3> `; document.write(texto);
true
c91ef9c45fc6e623d5e5798cfda27144aa9492ae
JavaScript
igorzoriy/sieve-of-eratosthenes-canvas
/script.js
UTF-8
3,310
3.515625
4
[]
no_license
/** * @param {Number} max * @returns {Array} */ function sequence(max) { var D = [], primes = []; for (var q = 2; q < max; q++) { if (D[q]) { for (var i = 0; i < D[q].length; i++) { var p = D[q][i]; if (D[p + q]) { D[p + q].push(p); ...
true
de4d34a1191a537afec4df93d2552039021e5ceb
JavaScript
shyun0303/AutoScrolling
/scrolling/script.js
UTF-8
1,797
2.78125
3
[]
no_license
const video = document.getElementById('video') var iframe = document.getElementById('iframe') Promise.all([ faceapi.nets.tinyFaceDetector.loadFromUri('./models'), faceapi.nets.faceLandmark68Net.loadFromUri('./models'), faceapi.nets.faceRecognitionNet.loadFromUri('./models'), faceapi.nets.faceExpressionNet.loadF...
true
a6aadcb30882cfe6f2babf2281a9d70c1942cd9f
JavaScript
DanLeng/GridFrontierClient
/script/client/messenger.js
UTF-8
3,143
3.21875
3
[]
no_license
/** * Messenger class */ var messenger = function(){ var SHOW_DURATION_MSG = 8000, // Duration to show the element when a new message comes in SHOW_DURATION_CHAT = 10000, timeLastShown_Msg = 0, // The last time we shown the #Message element timeLastShown_Chat = 0; // The last time we shown the #Chat elem...
true
ac895c7c679e55324e8051203c44b2fd1c7d3afb
JavaScript
xiahaox/hello
/src_vuex/main.js
UTF-8
1,321
3.078125
3
[]
no_license
// 入口文件 import Vue from 'vue' // 配置vuex的步骤 // 1. 运行 cnpm i vuex -S // 2. 导入包 import Vuex from 'vuex' Vue.use(Vuex) // 总结: // 1. state中的数据,不能直接修改,如果想要修改,必须通过 mutations // 2. 如果组件想要直接 从 state 上获取数据: 需要 this.$store.state.*** // 3. 如果 组件,想要修改数据,必须使用 mutations 提供的方法,需要通过 this.$store.commit('方法的名称', 唯一的一个参数) // 4. 如果 store ...
true
2bac71b7a0c206ceef6d1f03e24516818111d2c3
JavaScript
Uthaeus/schedular2_practice
/app/assets/javascripts/fun.js
UTF-8
1,388
3.375
3
[]
no_license
$(document).ready(function() { let adds = document.getElementById('add'); let subs = document.getElementById('sub'); let mults = document.getElementById('mult'); let divs = document.getElementById('div'); adds.addEventListener('click', add); subs.addEventListener('click', sub); mults.addEventListener('c...
true
b7ad2a9ee171362c7cb7b21e2ab7230b997e8269
JavaScript
chcjswo/node-crawler
/sites/nate.js
UTF-8
753
2.609375
3
[]
no_license
const cheerio = require('cheerio'); const searchUrl = 'https://www.nate.com/nate/LiveKeyword'; const search = (error, response, body) => { // console.log(response); if (!error && response.statusCode === 200) { // console.log(body); // 결과 정보 배열 const results = []; const $ = chee...
true
0cf7b1bb9ac2a15007f9b65845b5bd853af65ddd
JavaScript
harshverma036/RESTful-crud-api-express-mongodb-nodejs
/index.js
UTF-8
1,600
2.78125
3
[ "MIT" ]
permissive
// jshint esversion:6 const express = require('express'); const mongoose = require('mongoose'); const bodyParser = require('body-parser'); const path = require('path'); const config = require('config'); const logger = require('./app/helpers/logger'); const allRoutes = require('./app/routes/articles-route'); const port...
true
7518d73abee0ff03902a98cfa4b9b26a5075350d
JavaScript
kikkigenkai/notes-tt
/services/CategorieService.js
UTF-8
1,172
2.75
3
[]
no_license
const Categorie = require('../models/Categorie'); const Note = require('../models/Note'); const SortUtil = require('../utils/SortUtil'); class CategorieService { async editCategorie(id, categorie) { const editedCategorie = await Categorie.findByIdAndUpdate(id, { ...categorie }); ...
true
c389cca1e092341757f9618a0c44fdfadc1d5ff4
JavaScript
Sdator/JS_snippets
/代码片段/Script snippet #41.js
UTF-8
168
2.6875
3
[]
no_license
// console.log(Object.prototype.toString.call(els)) // els[Symbol.iterator] = Array.prototype[Symbol.iterator] els.map((_,{href})=>{ console.log(a,1111,href) } )
true
1008b8ed0ad6589d29f8309c07c4695b4dbacd31
JavaScript
ealush/mono
/packages/stringerprint/spec.js
UTF-8
770
3.21875
3
[ "MIT" ]
permissive
const stringerprint = require('.'); const sources = ['a', 'A', '1', 'wij', 'wiJ', 'WIJ', '*', '^', '😀', '😃']; describe('stringerprint', () => { it('should create consistent hashes for same string', () => { ['a', 'r4g', 'hello'].forEach( string => expect(stringerprint(string)).to.equal(stringerprint(string)), ...
true
9d82fc0620273ad1deeed11ca702ea9c76537e14
JavaScript
ericamendez/Daily-Code-Challenges
/leetcode/easy/two_sum.js
UTF-8
1,714
4.21875
4
[]
no_license
/** * Two Sum * Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nums = [2,...
true
6245353062016c53093273235e47feb0c16523b0
JavaScript
exbotanical/micro-lisp
/src/environment/stdlib.js
UTF-8
449
2.890625
3
[]
no_license
const all = fn => (...list) => list.reduce(fn); const add = all((x, y) => x + y); const subtract = all((x, y) => x - y); const multiply = all((x, y) => x * y); const divide = all((x, y) => x / y); const modulo = all((x, y) => x % y); const log = console.log; const environment = { add, subtract, multiply, ...
true
c53265468ff2e04f6c99a2fd8dbabf714dc4bd84
JavaScript
vincentpham13/rabbitmq-talk-all
/demo/work-queues/worker.js
UTF-8
1,079
2.53125
3
[]
no_license
var amqp = require('amqplib/callback_api'); function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } let totalProcessed = 0; amqp.connect('amqp://localhost', function (error0, connection) { if (error0) { throw error0; } connection.createChannel(function (error1, channel) { i...
true
3a42a85e00edc378913721906af81ebaff0bff8f
JavaScript
EsunR/FlappyBird-Canvas
/FlappyBird/js/Bird.js
UTF-8
2,513
2.734375
3
[]
no_license
(function () { window.Bird = class Bird extends Actor { constructor() { super(Actor); let birdNum = _.random(0, 2); this.birdImg = [ game.R[`bird${birdNum}_0`], game.R[`bird${birdNum}_1`], game.R[`bird${birdNum}_2`] ] this.x = game.canvas.width * (1 - 0.8) - ...
true
b790cac254c3ee3f67dfa77bd61e91839f65a071
JavaScript
mel225/ChuniCalc
/docs/test.js
UTF-8
3,737
2.609375
3
[]
no_license
javascript: (function() { var test2 = function(){ alert("test2"); }; alert("選択した値を、ほかの値によって計算します。"); addCalcDiv(); alert("実行ができてない"); /* $('.btn_calc').css({ "display":"inline-block", "padding":"0.5em, 1em", "text-decoration":"none", "font-weight":"bold", "border-radius":"4px", ...
true
02cdc8250c05fddab28c50bb5cc72c5d98baf3db
JavaScript
laiagc892/help-me-find-my-credentials
/public/src/3.50/camera/_3D camera/meadow.js
UTF-8
4,382
2.546875
3
[]
no_license
class Example extends Phaser.Scene { constructor () { super(); this.grass = []; this.grassFrames = [ 7, 8, 1, 2, 20, 7, 8, 1, 2, 20, 7, 8, 1, 2, 20, 6, 3, 1, 2, 20, 6, 3, 4, 8, 7, 14, 16, 11, 13, 12, 9, 25, 27, 5, 10, 15, 17, 18, 19, 21, 22, 23, 24, 26, 28, 29, 30 ]; this.acceler...
true
6ee006c4fcbc23a0178aee264a82e58de7a5e48d
JavaScript
systemallica/BasicJavascript
/2_Intermediate/convertToRoman.js
UTF-8
1,006
3.53125
4
[]
no_license
function convertToRoman(num) { var roman = ""; //Thousands while(num / 1000 >= 1){ roman += "M"; num -= 1000; } if((num / 500 >= 1) && (num / 500 < 1.8)){ roman += "D"; num -= 500; //Case 900 }else if((num / 500 >= 1.8)){ roman += "CM"; num -= 900; } //Case 400 if (num / 100 >= 4){ rom...
true