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
f6fb9c06548d8495b2ddb1633904a00a85e3ea42
JavaScript
VELOCIRABBIT-WOOO/one-number
/client/components/LiabilitiesCard.jsx
UTF-8
1,926
2.640625
3
[]
no_license
import React, {useState} from 'react'; import { Card, Container, Table } from 'react-bootstrap'; const dataFromJSON = require('../json_from_plaid/investments-holdings-get.json'); const LiabiltiesCard = () => { const accounts = dataFromJSON.holdings.accounts; const amassTotals = () => { let totals = 0;...
true
ed38c883c138b2d7ae46c716270dc3ef3fa82717
JavaScript
piotrrzepiela/pysznepl
/js/main.js
UTF-8
1,989
3.390625
3
[]
no_license
const idBtn = document.getElementById("id-btn") let order = { pizza: '', sosy: [], name: '', adres: '', email: '', tel: '', msg: '' } idBtn.addEventListener("click", takeOrder) function takeOrder() { sprawdzanieSosow("sosy") const pomidorowy = document.getElementById('pomidorowy'...
true
273b5650e4753f721424deb1f953009ae2c5b482
JavaScript
lourencovitor/Estudando-Javascript
/exercicios-js/fundamentos/numeros.js
UTF-8
733
4.21875
4
[]
no_license
// VARIAVEIS DO TIPO NUMBER const peso1 = 1.0; //Ponto flutuante const peso2 = Number('2.0'); console.log(peso1, peso2); console.log(Number.isInteger(peso1)); //True sim ele é inteiro console.log(Number.isInteger(peso2)); const avaliacao1 = 9.871; const avaliacao2 = 6.871; const total = avaliacao1 * peso1 + aval...
true
6d30003b91e84e94ebc5b655cfe806425e6a768a
JavaScript
vaibhavmagon/Algorithms
/reverseStringWithAlphabets.js
UTF-8
157
3.078125
3
[]
no_license
(function(){ var a = "Hey I am Vaibhav"; var reverse = a.split("").reverse().join("").split(" ").reverse().join(" "); console.log(reverse); })();
true
526e25de98579d6c97f6c6b0d299b8d16e4ab152
JavaScript
Sophan-Devloper/Bot-Maya
/games/clashroyale.js
UTF-8
877
2.515625
3
[]
no_license
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.guild.me.hasPermission("MANAGE_MESSAGES")) { const adm = new Discord.MessageEmbed() .setColor('#FF0000') .setTitle('Eu preciso da permissão "Gerenciar Mensagens" para utilizar esta função.') return...
true
ec7c8a71934357e93c43ed1a8741ff72f97cfb11
JavaScript
phamhere/React-UI-Components
/Day-II-Calculator/calculator/src/App.js
UTF-8
3,912
2.921875
3
[]
no_license
import React from 'react'; import './App.css'; import CalculatorDisplay from './components/DisplayComponents/CalculatorDisplay'; import ActionButton from './components/ButtonComponents/ActionButton'; import NumberButton from './components/ButtonComponents/NumberButton'; class App extends React.Component { constructo...
true
46e577086ecbd1ec907c49affb145f999d56caaa
JavaScript
Jauhaar/SummerSchool_StarWarsWebsite
/js/book-ticket.js
UTF-8
5,988
3.203125
3
[]
no_license
// DONE: when removing, subtract item price from total // // TODO: seat booking // TODO: add price when hover over extra // TICKET BOOKING // var extrasGrid = document.querySelector('.grid-extras'); var itemContainer = document.querySelector('.item-container'); var total = document.querySelector('.total'); var seatsGr...
true
49f99bf489b7fba74df76567cc314f217b9460b6
JavaScript
code-knayam/p5-js
/starfield/sketch.js
UTF-8
346
3.046875
3
[]
no_license
var stars = []; var speed; function setup() { createCanvas(1200, 600); for ( var i = 0; i < 500; i++) { stars[i] = new Star(); } } function draw() { background(0); speed = map(mouseX, 0, width, 0, 40); translate( width/2, height/2); for ( var i = 0; i < stars.length; i++) { stars[i].update(); ...
true
3ff6e04d51f0c4a21c3dcdf71a6d77b94ba5b309
JavaScript
ybiren/wiki-quiz
/src/services/svc.js
UTF-8
2,448
2.890625
3
[]
no_license
import axios from 'axios'; export class Svc { constructor() { this.numAnswers = 4; this.questArr = []; this.baseWikiUrl = "https://en.wikipedia.org/w/api.php?format=json&action=query"; } initAnsArr() { this.questArr = []; } getWikiQuestion() { ...
true
bfc65d3b2ec7963f67b356a4da1bfb04f6d237a1
JavaScript
cilfonej/ALR-Management-System
/Dog Days/src/main/js/inputs/revert/RevertButton.js
UTF-8
2,473
2.78125
3
[]
no_license
import StandardType from "./StandardRevert"; var types = { "std": StandardType }; export default class RevertButton { constructor(element, fields, values, types) { // ensure fields/values are valid if(typeof fields === 'undefined') throw "invalid set of fields"; if(typeof values === 'undefined') t...
true
5119ec04b023b0820e43ccbdf142777bf98967c1
JavaScript
EugenioGonzalezMorales/curso_javascript
/Curso JS/js/ejercicios_2.js
UTF-8
1,637
3.71875
4
[]
no_license
miTexto = "Bloodborne Miyazaki Bloodborne Miyazaki Bloodborne From Software"; const invertirCadena = (text) => { return typeof text !== "string" ? `Ingresa un texto` : text.split("").reverse().join(""); }; const contarPalabra = (text, palabra) => { let counter = 0; if (typeof text !== "string" || typ...
true
092eac72a780edff0e9895e252a39b1210ea0f7e
JavaScript
jainatee/jainatee.github.io
/class-work/first-javascript/script.js
UTF-8
500
3.59375
4
[]
no_license
/*document.write(10 * 10); document.write(100 / 10); document.write(50 - 17); document.write(50 + 17); document.write('jaina' + 'teeluck'); var num1 = 10 * 10; var num2 = 100 / 10; var num3 = 50 - 17; var num4 = 50 + 17; var myName = 'jaina' + 'teeluck' document.write(num1); document.write(num2); document.write(num3...
true
72b9ee1d9d7f52a0fa5772fcb0fd5c1775c359f0
JavaScript
jiftuq/Intec
/MOUNTH-1/JAVASCRIPT-WEEK3/DAY2/apps.js
UTF-8
430
2.8125
3
[]
no_license
function doIt() { var myInputValue = document.getElementById('myInput').value; var myResult = document.getElementById('result'); return myResult.innerText = myInputValue; } function done() { var inpu1 = document.getElementById('helpId1'); var input2 = document.getElementById('helpId2'); ...
true
0b735b941a05af3aebe8aba5f0f5e4b1773e6218
JavaScript
raostrovski/curso_js_jedi
/exemplo_poo/js/js.js
UTF-8
663
4.09375
4
[]
no_license
//Funcional function sejaBemVindo(){ console.log("Seja Bem Vindo a Formação JavaScript Mestre Jedi"); } console.log("Chamando a função seja bem vindo sejaBemVindo():"); sejaBemVindo(); //POO var objProfessor = { nome: "Professor Madson Aguiar", curso: "Formação JavaScript Mestre Jedi", mistrarAula: f...
true
5ac49096da8c2b2326aeba8db32d183b649d9d9b
JavaScript
DURAIPANDIT24/Website-Code
/quiz/script.js
UTF-8
1,597
3.296875
3
[]
no_license
var index=0,index,board,qus,correct=0,f=0,answer; var questions = [ {"question":"200+100","optionA":"300","optionB":"301","optionC":"302","correctAnswer":"optionA" }, {"question":"100/10","optionA":"11","optionB":"10","optionC":"12","correctAnswer":"optionB" }, {"question":"20-10","optionA":"11","optionB":"12","opti...
true
4529896c499810d4bbc4ab34f4b960c09bf83f4d
JavaScript
oyejideoyetunji/my-JS-Algors
/largestInArrays.js
UTF-8
529
3.421875
3
[]
no_license
function largestOfFour(arr) { let max = Number.NEGATIVE_INFINITY const maxArr = [] let i = 0, j = 0; for (; i < arr.length && j < arr[i].length;) { if (max < arr[i][j]) { max = arr[i][j] } j++; if (j === arr[i].length) { maxArr.push(max) ...
true
4b19c9d6f958508b42782b304e9ccc02b2e8669c
JavaScript
burdiick/project-two
/js/resumeBuilder.js
UTF-8
6,189
2.59375
3
[]
no_license
var bio = { name: 'Daniel Burdick', age: 29, role: 'Web-Dev', biopic: 'http://placehold.it/300x300', contacts: { mobile: '206-817-8312', email: 'burdick.daniel@gmail.com', github: '<a class="white-text" href="http://github.com/burdiick">Burdiick</a>', location: 'Bothell, WA' }, skills: ['H...
true
114a8936645f7b873752a27ba844e0f0a0347470
JavaScript
OPEN-ENT-NG/schooltoring-mobile-application
/src/store/reducers/favorite.js
UTF-8
1,060
2.53125
3
[]
no_license
import FavoriteActions from "../definitions/favorite"; import AuthActions from "../definitions/auth"; const defaultState = { loading: false, error: false, list: [] }; export default function reducer(state = defaultState, action) { switch (action.type) { case FavoriteActions.LOADING_FAVORITE: { retur...
true
0321a3dd889cf1635a20cd3e577ffc086d55f15b
JavaScript
nareshnootoo/sticky-headings
/sticky-headings.js
UTF-8
3,276
2.65625
3
[ "MIT" ]
permissive
/* * sticky-headings.js * author : Naresh Kumar * Copyright 2015 Naresh kumar * */ (function ($) { /* * @params options a collection of settings * @params onscroll a callback function * @params onstick a callback function */ $.fn.stickyheadings = function (options, onscroll, onstuck)...
true
3f30cb99f5f629f6eae15f0fc4da0d1fd74da3f7
JavaScript
Gaudeline/ExoJS2
/js-exercises-base2/ex04/script.js
UTF-8
575
3.828125
4
[]
no_license
let tab = ["-2", "1", "4"]; function additionne(){ } // Exercice 4 - utilisation d'un tableau // Créez un tableau nommé tab dont le premier élément est -2, le deuxième 1 et le troisième 4 // Créez une fonction additionne prenant un argument x et renvoyant le résultat de l'addition de x à 2 // Créez un...
true
9c59621996388f0b92040f297f5e274cc5ee7021
JavaScript
marrific/Nature-of-Code
/FOUND-p5js-sketches/amoeba/sketch.js
UTF-8
446
3.140625
3
[]
no_license
function setup() { createCanvas(800, 800); background(255); stroke(0, 15); noFill(); noLoop(); } function draw() { translate(width/2, height/2); for (var t=0; t<1000; t++){ beginShape(); for (var i=0; i<200; i++) { var ang = TWO_PI * (t/1000 + i/200); var rad = 500 * noise(i*0.01, t*0...
true
5603285c74644d8761ac152798954b05344221ee
JavaScript
MohitS13/jen2
/routs/emps.js
UTF-8
2,811
2.515625
3
[]
no_license
var express = require ("express"); var router = express(); var Joi = require("joi"); var config = require("config"); var mysql = require("mysql"); var connection = mysql.createConnection({ host: config.get("host"), database: config.get("database"), user:config.get("user"), password:config.get("password...
true
e7ff3957c430c43037498122bc94c4011fed2306
JavaScript
hamoriakos/ApertusVR
/3rdParty/nodejs/8.0.0/source/test/parallel/test-http-client-check-http-token.js
UTF-8
826
2.53125
3
[ "ICU", "NTP", "ISC", "LicenseRef-scancode-openssl", "Artistic-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "NAIST-2003", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-unicode", "LicenseRef-scancode-free-unknown" ]
permissive
'use strict'; const common = require('../common'); const assert = require('assert'); const http = require('http'); const expectedSuccesses = [undefined, null, 'GET', 'post']; let requestCount = 0; const server = http.createServer((req, res) => { requestCount++; res.end(); if (expectedSuccesses.length === reque...
true
4d612afe27b6c6821fbcb31296e7a33e6b1ac78e
JavaScript
hymanimy/Bezier-Curves
/pointClass.js
UTF-8
954
4.09375
4
[]
no_license
//Basic Class for constructing points which we can draw function create(x,y){ return new Point(x,y) } class Point{ constructor(x,y){ this.x = x this.y = y } draw(size = 5, colour = "Blue"){ ctx.beginPath(); ctx.rect(this.x, this.y, size, size) ct...
true
2367149367074435879c92d8734e20344eca74bd
JavaScript
andyhu92/learnyounode-solution
/HttpJSONApiServer.js
UTF-8
985
2.640625
3
[]
no_license
const http = require("http"); const url = require("url"); http.createServer(function(request, response){ response.writeHead(200, { 'Content-Type': 'application/json ' }); var urlInfo = url.parse(request.url, true); var dateTime = new Date(urlInfo.query["iso"]); if(!urlInfo.query["iso"]){ respon...
true
2fc24da170b447496cca2577a9511b121ef33f9d
JavaScript
kodakjerec/SC_Offer
/SC_Offer/js/js.printer.js
UTF-8
4,681
2.734375
3
[ "MIT" ]
permissive
/** * @package js.printer * @author wenchi * @version 20080821 * * IE 5.5 6.0 7.0 測試OK * firefox 部份功能不適用 * Opera , Safari 未測試 * */ /** * HOWTO: * * 第一種方式: * * 1. 於 <head></head> 之間加入 * <script src="js.printer.js"></script> * * <script> * var JsPrinter=new JsPrinter(); * </script> * *...
true
e9df92dab4f0ccbb323e7748c4157962c1cfa90e
JavaScript
IntegradoraUTAGS/BackEnd-BT
/server/models/pubvacantes.js
UTF-8
780
2.953125
3
[]
no_license
//jsPDF var vacantes = [ { "firstName": "John", "lastName": "Doe" }, { "firstName": "Anna", "lastName": "Smith" }, { "firstName": "Peter", "lastName": "Jones" } ]; var doc = new jsPDF(); vacantes.forEach(function(vancante, i) { doc.text(20, 10 + (i * 10), "Carrera: " + employee.carreras + ...
true
8ba01965f9cb85cac71f2abf7e2f90db3126c5fe
JavaScript
mikeyeah29/auto-pilot-money
/src/models/Budget.js
UTF-8
736
2.6875
3
[]
no_license
import Model from '../model.js'; class Budget extends Model { getTotalRemaing() { var budgets = this.findAll(); var remaining = 0; for(var i=0;i<budgets.length;i++) { remaining += (budgets[i].allowance - budgets[i].spent); } return remaining; } spentFromBudgets() { var budgets = this.findAll(); v...
true
9eb3e3403a8db6412285a7308515549db5ab8bd6
JavaScript
JohnChristofolakos/StickyNotesTutorial
/public/scripts/editable.js
UTF-8
2,771
2.953125
3
[ "MIT" ]
permissive
var editable = (function() { function makeEditable(note) { var actionBar = note.getElementsByClassName("action")[0]; var editButton = document.createElement("img"); editButton.src = "images/ic_edit_black_24px.svg"; editButton.className = "edit button"; editButton.onclick = s...
true
37223d307a811b15d3f3d85c63217cf3b22accf4
JavaScript
yangkunxiao/react0-1
/reactHooks-demo/demo01/src/Views/exampleHooks.js
UTF-8
519
3.015625
3
[]
no_license
import React, { useState } from 'react'; function ExampleHooks() { /** * useState这个函数接收的参数是状态的初始值(Initial state) * 它返回一个数组,这个数组的第0位是当前的状态值,第1位是可以改变状态值的方法函数 * */ const [count, setCount] = useState(0); return ( <div> <p>{count}</p> <button onClick={() => {...
true
2614f98a853eed7a08a39ea20b05bee71b169d4f
JavaScript
UlucFVardar/Flipped-Learning-Extantation
/flippedExtension_v1.8/Scripts/popup.js
UTF-8
2,206
3
3
[]
no_license
// Saves options to chrome.storage function saveInfo2Storage(list) { // Save the list of checked checkBoxes chrome.storage.sync.set({ info: list }); /* // Get Saved list and print it over document to debug chrome.storage.sync.get(['info'], function(result) { document.write('Value ...
true
7abaf142e696b9f832c761c17f79bd79afae94ca
JavaScript
RogerDavidCruz/code-wars
/#_The_Post_RC_Saga_Training/Javascript_practice/8kyu_codewars/8kyu_keep_up_the_hoop.js
UTF-8
399
3.46875
3
[]
no_license
// 8 kyu - Keep up the hoop // https://www.codewars.com/kata/55cb632c1a5d7b3ad0000145/train/javascript hoopCount = (n) => n >= 10 ? "Great, now move on to tricks" : "Keep at it until you get it" //PREP //P: a number //R: a string //E: 11 => "Great, now move on to tricks" //P: a ternary statement for two different o...
true
4fc52e3ed49c2af643d348ed26bc440af8a2e31a
JavaScript
Zimaxim/OTUS-JS
/less02/q0201_getPath.js
UTF-8
1,560
3.40625
3
[]
no_license
// // Write a getPath function, which finds an unique path for an element inside a document. // getPath(node) // => "div>div:nth-child(2)>span" // function getPath(node) { // порядковый номер элемента на своем уровне function nthChild(elm) { var childNumber = 0, childNodes = elm.parentNode.childNo...
true
4df63091b206d43f369946b58dc54ec82319630a
JavaScript
jiwonkirn/Algorithm
/programersCodingTest/level01/seoul.js
UTF-8
155
2.890625
3
[]
no_license
function solution(seoul) { let index = seoul.indexOf("Kim"); return `김서방은 ${index}에 있다`; } solution(["Jane", "Kim", "Wayne", "Jessi"]);
true
4184def24fb3f5b46f35a92b166aca1f582baba1
JavaScript
nangebav/Server
/index.js
UTF-8
812
2.84375
3
[]
no_license
const http = require('http'); const hostname = '127.0.0.1'; const port = 4000; const server = http.createServer((req, res) => { switch (req.url) { case '/text': res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Esta es la primera vista'); ...
true
93cfda6225644078d4408550df77698c99433e3d
JavaScript
learn-academy-2020-bravo/week-2-assessment-masanes
/code-challenges.js
UTF-8
4,153
5
5
[]
no_license
// ASSESSMENT 2: Coding Practical Questions // --------------------1) Create a function that takes a number as an argument and decides if the number is evenly divisble by three or not. // Use the test variables provided. //create a func called divideByThree that takes a parameter called num //divide num by modulo to c...
true
0f2621ce181a16ccbde9b7d7d968e999528f7dc7
JavaScript
SunPrime/Learn_JS
/4/Events/scripts/translit.js
UTF-8
646
2.96875
3
[]
no_license
function translit(){ var message = document.getElementById("message1"), symbols = {"и" : "i", "з" : "z", "д" : "d", "б" : "b", "г" : "g", "м" : "m"}, translitMessage = document.getElementById("message2"); translitMessage.value = ''; ...
true
9e27c5f8afb8b12f1f6f2acb5deca2a298e4195a
JavaScript
KATT/gitkatt
/index.js
UTF-8
5,108
2.578125
3
[]
no_license
#!/usr/bin/env node const { readFileSync, existsSync, writeFileSync } = require('fs'); const path = require('path'); const { promisify } = require('util'); const _exec = promisify(require('child_process').exec); const moment = require('moment'); const { prompt } = require('inquirer'); const GitHub = require('github')...
true
7acd9acd6cd2ce4bac382ea4727223363f26fed0
JavaScript
rafiq/JS120
/ticTacToe/TTTGameOLOO.js
UTF-8
5,627
3.390625
3
[ "MIT" ]
permissive
let readline = require("readline-sync"); let Square = { UNUSED_SQUARE: " ", HUMAN_MARKER: "X", COMPUTER_MARKER: "O", init(marker = Square.UNUSED_SQUARE) { this.marker = marker; return this; }, toString() { return this.marker; }, setMarker(marker) { this.marker = marker; }, ...
true
d09821a066fdf9d70ebaaf559e4560246ae8ad8f
JavaScript
Rishitha8/Project-27
/sketch.js
UTF-8
1,362
3.015625
3
[]
no_license
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; const Constraint = Matter.Constraint; var bobObject1,bobObject2,bobObject3,bobObject4,bobObject5; var roof var string1,string2,string3,string4,string5; function setup() { createCanvas(900, 900); eng...
true
90081c4c2d9b5ee90e4708de7e8a00aa6ac0b9d0
JavaScript
isabellatea/MindFeed
/backend/helpers/getAllBookmarkedVideo.js
UTF-8
1,073
2.546875
3
[]
no_license
const User = require('../db').User; const Video = require('../db').Video; const getAllBookmarkedVideo = (req, res) => { let email = req.query.email; function returnVideoObj(videoId) { return new Promise(function (resolve, reject) { Video.find({videoId: videoId}) .exec((err,...
true
7a12845a9da405f3f7fc3f87a28c3aa0ab7dfdcc
JavaScript
OskarOyo/stress-test
/test.mjs
UTF-8
1,574
2.75
3
[ "MIT" ]
permissive
import axios from 'axios'; const URL_FALLBACK = 'http://localhost:3001/campaign-banners?locale=ja'; const BATCHES_FALLBACK = 50; const PARALLEL_REQUESTS_FALLBACK = 200; const url = process.argv[2] || URL_FALLBACK; console.log('url:', url); const batches = Number(process.argv[3]) || BATCHES_FALLBACK; console.log('batc...
true
a35021b4d157bdbed07737b6e5681a73905cafba
JavaScript
CallumTarttelin/bowling
/src/main/js/domain/League.js
UTF-8
4,298
2.578125
3
[]
no_license
import React from 'react'; import axios from "axios/index"; import TeamSummary from "../summary/TeamSummary"; import {Button, CircularProgress} from "material-ui"; import {Link} from "react-router-dom"; import GameSummary from "../summary/GameSummary"; class League extends React.Component { constructor(props) { ...
true
2102bb2e7fc5e065c254b1c9af435d8e14faa9d6
JavaScript
Kristinbarr/JavaScript-III
/assignments/this.js
UTF-8
1,220
4.59375
5
[]
no_license
/* The four principles of "this"; * in your own words. explain the four principle for the "this" keyword below. * * 1. Without providing context, `this` is automatically set to the window or console. * 2. Context to `this` is provided (implicitly) by a preceding `.`, followed by a predefined method. * 3. Context t...
true
bbe1394b785b0be01be0e1012a4b4e69aee5c7fd
JavaScript
nlockard14/Web_Foods
/research prototypes/NODEJS_TEST/src/greet.js
UTF-8
282
3.203125
3
[]
no_license
'use strict'; // Returns 'Hello <name>!" if name is not null // Otherwise returns "Hello world!" var greet = function(name) { if (name === undefined) { name = 'world'; } return 'Hello ' + name + '!'; }; // Allows outside js files to use this function module.exports = greet;
true
dac837d64c8f99f02d2c2f8ed44694b838f01d52
JavaScript
corinnegottlieb/week1
/day2/main.js
UTF-8
284
3.3125
3
[]
no_license
p1 = { name: "bob", age: 30, city: "LA" } p2 = { name: "sue", age: 30, city: "TLV" } if (p1.age === p2.age){ if (p1.city === p2.city){ console.log("jill wanted to date rob")} else { (console.log("jill wanted to date rob, but couldnt"))} }
true
ba3ffbba5e241c9e6e3deefd0bf0d5b91027e1da
JavaScript
jannicksp/web-components-test
/dist/intersectionobserver.js
UTF-8
3,322
2.75
3
[]
no_license
"use strict"; //This is an empty template for to create a webcomponent into the library Object.defineProperty(exports, "__esModule", { value: true }); class StandardJSWebComponent extends HTMLElement { constructor() { super(); const shadow = this.attachShadow({ mode: "open" }); } static get ...
true
767e52475dacf99f88868b02ac33dfd3f1ecbe94
JavaScript
shmishtopher/Twitter-RNN
/src/predict.js
UTF-8
2,392
3.09375
3
[ "MIT" ]
permissive
/** * @author Shmish - c.schmitt@my.ccsu.edu * @version 1.0.0 - 4/24/2020 * @license MIT - (c) Christopher K. Schmitt */ import { default as tf } from '@tensorflow/tfjs-node-gpu' import { argv } from 'process' // Read in the command line args const beamWidth = argv.find((_, i, args) => args[i - 1] === '--beam-...
true
6db8efb9161ad266e1a1ea0c2f1ce07453e53a77
JavaScript
Rodrigo-Jacinto/JS-estudos
/js-basico/estruturas-declaracao.js
UTF-8
1,855
3.765625
4
[]
no_license
function dividi (x, y) { return a = x/y; } /*Condição if/else */ function idade() { var idade = prompt("Digite uma Idade"); if(idade >= 18 ) { alert("Você é maior de Idade !!"); } else { alert("Você é menor de idade"); } } function idade_melhorada() { var idade = prompt("Digite sua idade"); ...
true
2f0342626150aeed74c14374617c10e22a120792
JavaScript
nominb/burger
/public/assets/js/index.js
UTF-8
959
2.671875
3
[]
no_license
$(document).ready(function(){ $(document).on('click', '#submit', function(){ var burger = { name: $('#cheese').val() } console.log(burger, "burger create"); $.post('/', burger, function(response){ console.log(response) }); }); $(document).on...
true
333cf1b84856db17ce08ddc34ede6b5c465f0e7e
JavaScript
yellowYiFeng/F2
/src/store/modules/datePick.js
UTF-8
1,278
2.515625
3
[]
no_license
import moment from 'moment' const datePick = { state: { dateTo: moment().subtract(1,'days').format('YYYY-MM-DD'), dateFrom:moment().subtract(1,'days').format('YYYY-MM-DD'), dateType: '', btnIndex:0, }, mutations: { SET_DATEFROM: (state,dateFrom) => { stat...
true
22677489b057303382fff212a81ecaff0cb00f32
JavaScript
atilaTiberio/nodejs_mentoring
/modulos/serverExecution.js
UTF-8
1,366
2.8125
3
[]
no_license
/** * Created by hiturbe on 20/03/17. */ var http=require("http"); var queryS= require("querystring"); //var cadenas=require("./lib/cadenas.js"); var Cadenas= require('./lib/cadena_module.js'); /* Extrae parametros artesanalmente */ var params=function(req){ var q=req.url.split('?'),result={}; //conso...
true
35675b80ce5f6c4b7ea3b6ef95ed485a46af1ab2
JavaScript
Nelly31/javascripting
/w1/lotide/eqArrays.js
UTF-8
859
4.5
4
[]
no_license
// Our homemade function to test the truthfulness of whether 2 inputs are the same. const assertEqual = function(actual,expected) { if (actual === expected) { console.log(`👍👍👍 Assertion Passed: ${actual} === ${expected}`); } else { console.log(`😡😡😡 Assertion Failed: ${actual} !== ${expected}`); } }...
true
1a302b21209adb93b83652a4e7e5f745aa8c7900
JavaScript
projecttacoma/cqm-execution
/lib/models/patient_source.js
UTF-8
454
3.046875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// This is a wrapper class for an array of QDM Patients // This class adds functions used by the execution engine to // traverse an array of QDM Patients module.exports = class PatientSource { constructor(patients) { this.patients = patients; this.index = 0; } currentPatient() { if (this.index < this...
true
9c8bea2284eb04a2b662575c06ccb1a074023d85
JavaScript
direshpradhan/friends-list
/src/components/FriendsListing/FriendsListing.jsx
UTF-8
2,788
2.875
3
[]
no_license
import React, { useState } from "react"; import { FriendItem } from "../FriendItem/FriendItem"; import { Input } from "../Input/Input"; import { Pagination } from "../Pagination/Pagination"; import styles from "./FriendsListing.module.css"; export const FriendsListing = () => { const initialState = [ { id: 1, na...
true
c361392be246486c93c3156b531a45d8344832d7
JavaScript
lmsp/data-ornament
/src/internal/_appendElement.js
UTF-8
314
2.59375
3
[ "MIT" ]
permissive
/* @flow */ import R from 'ramda' const _appendElement = ( acc: Array<{ s: number, e: number, v: string }>, item: string ): Array<{ s: number, e: number, v: string }> => { let start = acc[acc.length-1].e return R.append({ v: item, s: start, e: start + item.length }, acc) } export default _appendElement
true
f78326884160791d2313153b471fe665835433e8
JavaScript
HugoGresse/conference-hall-cli
/generateAnalytics.js
UTF-8
5,070
2.625
3
[]
no_license
const { program } = require('commander') const fs = require("fs") const ora = require('ora') const main = async () => { program.parse(process.argv) if (program.debug) { console.log(program.opts()) } // Does speakersAndProposals.json file exist? const speakersAndProposalsFile = `${__dirna...
true
9d10356c6823f8fb6b8cf90e7a0c15af46e41ac9
JavaScript
khalilsliti/ES6-basics
/test.js
UTF-8
223
3.140625
3
[]
no_license
function hi () { var name="khalil"; console.log(name); function hey () { var name="sliti" console.log(name) function heey () { console.log(name) } heey(); } hey(); console.log(name) } hi();
true
52958ed88efa523d51c287bd906d75a977f6e118
JavaScript
Rotten-Banana/pokedex
/src/Containers/pokedata.js
UTF-8
1,011
2.671875
3
[]
no_license
import React,{Component} from 'react'; import Card from './card'; import SearchBox from '../Components/searchbox'; import '../card.css'; import Scroll from '../Components/scroll' class Pokedata extends Component { constructor(){ super() this.state = { poke: [], searchField: '' } } async componentDidMo...
true
b2258dc3e84130b29afddc2a57208a4a66076843
JavaScript
metallimiach/azsparser
/routes/fuelCost.js
UTF-8
1,649
2.671875
3
[]
no_license
// fuelCost.js // ============================================================================= // call the packages we need var express = require('express'); var router = express.Router(); var request = require('request'); var cheerio = require('cheerio'); var iconv = require('iconv-lite'); // set base URL to grab h...
true
51bd6d8fe51961c1cfc05747135ea87e529c2c3e
JavaScript
loopstrangest/board-game-scout
/src/actions/fetchSearchResults.js
UTF-8
3,131
3.484375
3
[]
no_license
//FETCH GAMES LIST FOR EACH MECHANIC INDIVIDUALLY //AND ORDER BY WHICH GAMES SHOW UP MOST OFTEN //GAMES FOR DUPLICATED MECHANICS WILL NATURALLY BE WEIGHTED HIGHER import axios from "axios"; import { searchURL, allMechanicsURL } from "../api"; //From the games + mechanics listed in searchCriteria, get matching games ex...
true
0a30cb0534e4037e77ecc01c561c1ad8520ecb79
JavaScript
KDamsgaard/javascript_practice
/scripts/tools.js
UTF-8
573
2.625
3
[]
no_license
module.exports = { /* attemptLogin: (username, password) => { console.log("A login was attempted..."); let users = [{"username": "admin", "password": "admin"}, {"username": "other", "password": "nuggets"} ]; var user = null; users.forEach((en...
true
3b1dc96a331c4190eec01fd1755d8d8c5971c072
JavaScript
Jolisa/social_network_assignment
/final-backend-JolisaBrown/backend/src/mystery.js
UTF-8
5,476
2.625
3
[]
no_license
require('.././model.js') require('.././db.js') require('.././index.js') const getArticles2 = (req, res) => { theArticle = "" //check to see whether the article id is in the article list //loggedInUser = req.body.profileId //shouldn't even waste my time with this... var mysteryId = req.params.id ...
true
9e8cf9537f352a7e8c84b796f8d3d9b6d34cdf26
JavaScript
DigitalDsntHurt/eng-gym
/ToyProbs/js/squaresOfSortedArray.js
UTF-8
2,280
4.28125
4
[]
no_license
/* FROM : https://leetcode.com/problems/squares-of-a-sorted-array/ Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. I : array O : array STRATEGY */ // const sortedSquares = (nums) => { // let front = 0; // let back = nums....
true
a78ef38542228bece27e0a44e523506719996a86
JavaScript
ladisays/upfemco
/hooks/async.js
UTF-8
2,477
2.546875
3
[]
no_license
import { useCallback, useReducer, useEffect, useRef } from 'react'; import { ACTIONS, STATUS, isIdle } from 'utils/operations'; const $fn = () => new Promise(); const states = { loading: STATUS.idle, data: undefined, error: undefined }; const promiseHandlers = { onError: undefined, onCompleted: undefined };...
true
5fc0c7c383d9df564be51f40b7c858b4b2eb40c7
JavaScript
mofas/ds-algo-practice
/js/146.LRUCache.js
UTF-8
3,374
3.546875
4
[]
no_license
/** * @param {number} capacity */ // 672 ms, faster than 6.08% // 7.8 MB, less than 5.95% var LRUCache = function(capacity) { this.capacity = capacity; this.existed = {}; this.queue = []; }; /** * @param {number} key * @return {number} */ LRUCache.prototype.get = function(key) { let ret = -1; if (this.e...
true
5137ae277318bfc5a60fb5c4678faefe29b477c2
JavaScript
elixirscript/tailored
/test/comprehension.spec.js
UTF-8
2,831
2.71875
3
[]
no_license
'use strict'; import chai from 'chai'; var expect = chai.expect; import Tailored from '../src/index.js'; import ErlangTypes from 'erlang-types'; const Tuple = ErlangTypes.Tuple; const BitString = ErlangTypes.BitString; const _ = Tailored.wildcard(); const $ = Tailored.variable(); describe('list generator', () => { ...
true
68ec69311defa78219252a5c8743bdae0dd4a331
JavaScript
harishsharadhi/angular1234
/ProAngFe/WebContent/services/chatservice.js
UTF-8
1,549
2.703125
3
[]
no_license
/** * *//* app.factory('ChatService',function($rootScope){ //establishes connection with the socket with the wsc in db var socket=new SockJS("/proAngMe/chatmodule") //chatmodule in the wsc of db...we created an object of sockjs over the project using stomp endpoint i.e. chatmodule var stompClient=...
true
c2a39c7112c960915f1b7b2312b754fa39d4f168
JavaScript
davidmoates/Newsfeed-Components
/Menu/Menu.js
UTF-8
1,998
4.15625
4
[]
no_license
/* This is the data we will be using, study it but don't change anything, yet. */ let menuItems = [ 'Students', 'Faculty', "What's New", 'Tech Trends', 'Music', 'Log Out', 'Silly Songs with Larry' ]; /* Step 1: Write a function that will create a menu component as seen below: <div class="menu"> ...
true
37ed31e165a9978aaaf3bf863af82922523bdb00
JavaScript
priyankagit2/ptproject
/crescent1/models/batch.js
UTF-8
402
2.703125
3
[]
no_license
var mongoose = require('mongoose'); var Schema = mongoose.Schema; //Schema here is method var Person = new Schema( //Person is object {name: String, email: String , password: String, budget:String,people:String,date:String} //name here is property and string is value ); mongoose.model('persons',Per...
true
7ea10b553726f1a6be5c5246ef7488e1f8003f5c
JavaScript
Techtonica/code-challenge-45-HadikHuszar
/challenges/21.js
UTF-8
399
3.546875
4
[]
no_license
// Implement the function 'stringsplosion' // // Given a string like "Code" return a string like "CCoCodCode" // // # Additional Examples // // _Note: there are more test cases than shown here_ // // stringsplosion('Code') → 'CCoCodCode' // // stringsplosion('abc') → 'aababc' // // stringsplosion('ab') → 'aab' functio...
true
7a5bb5c3b11f3a5fc297201cc37a2a3691ff3d4d
JavaScript
donfanning/unicast
/src/Server/Models/Playlist.js
UTF-8
1,777
2.609375
3
[]
no_license
import PlaylistItem from './PlaylistItem'; import Document from './Document'; import sortBy from 'sort-by'; export default class Playlist extends Document { constructor () { super( 'playlists' ); this.device = String; this.items = [PlaylistItem]; this.current = PlaylistItem; this.addedAt = { type: Date,...
true
71cd87219dc98342c6130b356fe2c2aa1fd52708
JavaScript
joffman/askme
/backend/routes/api1/collection_ratings.js
UTF-8
2,848
2.671875
3
[]
no_license
const express = require("express"); const router = express.Router(); const winston_logger = require("../../config/winston.js"); const Database = require("../../database.js"); var database = new Database(); // TODO These should be general utility functions. function invalidInput(res, msg) { res.statusCode = 400; ...
true
957e36ba9c2e85eb07fa6dc584d7f3b54158fa9d
JavaScript
Pazoia/Wes_Bos---JavaScript_for_Beginner
/playground/module-14_jsESModulesAndStructuringLArgerApps/lesson-78_modules/utils.js
UTF-8
486
3.09375
3
[]
no_license
const age = 250; const favouriteColor = "Orange"; const first = "Paulo"; export function personDetails(name) { return ` Hi, I'm ${name}, I am ${age} years old and I my favourite color is ${favouriteColor}. `; } /* NAMED exports */ // these have the names of the elements // to ...
true
1c7d19d88873b18a0fddfb06e518d03ddac1d37e
JavaScript
davish/Planbook
/static/js/main.js
UTF-8
11,645
2.578125
3
[ "MIT" ]
permissive
var ref = { 'monday': getMonday(new Date()), 'lastUpdate': new Date() }; $('document').ready(function() { }); function saveWeek(o) { $.ajax({ type: "POST", url: "/planner", data: { 'monday': ref.monday.toISOString().slice(0, 10), 'data': JSON.stringify(o) }, statusCode: { ...
true
6acab7db63263fca76bba5f5803dfae0ea55d3f7
JavaScript
ApinoVMS/rwxapps
/public/javascripts/chat_ui.js
UTF-8
5,807
2.578125
3
[]
no_license
/** var drawingTableRows= message.headers; var drawingtable= message.drawingtable;*/ function buildGrid(drawingTableRows, drawingtable) { var tableMarkup = ""; var anlDiv=""; var scoreCard={}; var linkFiles=[]; var span=""; var xTh=""; console.log("drawingTableRows "+drawingTableRows.length); for ...
true
ca9268fdc0aa2ac504ed1806b63777542fa87ad5
JavaScript
owst/boris-bike-distance-mapper
/public/scripts/app/stations.js
UTF-8
1,409
2.609375
3
[]
no_license
define(["gmaps!", "jquery", "app/map", "app/stationLoader", "app/directions"], function(gmaps, $, map, stationLoader, directions) { var stations = []; var selection = { circle: null, startStation: null }; function setSelection(station) { selection.circle = new gmaps.Circle({ ...
true
a2770e041ed7f9a855ebf55a6e94dd5ff1b3060c
JavaScript
hagsey/nlpt_update_app
/app/assets/javascripts/components/Loading.jsx
UTF-8
734
2.5625
3
[]
no_license
var styles = { container: { position: 'fixed', left: 0, right: 0, top: 0, bottom: 0, fontSize: '55px' }, content: { fontSize: '18px', color: '#cdcdcd' } } var Loading = React.createClass({ getInitialState: function () { return { text: 'Loading.', speed: 50 ...
true
ba6314c9906efd9905998466458ceb5931e7c4c9
JavaScript
anthonyycku/vroom_frontend
/src/CreateCompany.js
UTF-8
5,190
2.703125
3
[]
no_license
import React from 'react'; import axios from 'axios'; import Main from './Main'; // import CharacterCounter from 'react-character-counter'; class CreateCompany extends React.Component { state = { name: '', description: "", country: '', image: "", parent_id: 0, showParent: "" } handl...
true
07c410d74d5ae0530b9ec9a0736c74166fd248e7
JavaScript
hypromerto/aether-discord-music-bot
/commands/resume.js
UTF-8
566
2.65625
3
[]
no_license
exports.run = (client, message, args, ops) => { let fetched = ops.active.get(message.guild.id); if (!fetched) return message.channel.send('No music is currently playing.'); if (message.member.voice.channel !== message.guild.me.voice.channel) return message.channel.send('You have to be in...
true
062b8f63a59f5f4b6f87e1004988af1780bc850b
JavaScript
davidyang/p5_sketch_olympics_2018
/sketch.js
UTF-8
2,326
3.109375
3
[]
no_license
var img; function preload() { img = loadImage('./fa-logo.png'); } var steps = 100; var drones = []; function setup() { pixelDensity(1); createCanvas(img.width, img.height) image(img, 0, 0); loadPixels(); // var d = pixelDensity(); // idx = 4 * ((y * d + j) * width * d + (x * d + i)); for(var i=0...
true
87146426eb4c0cb0a7c1812dc6d6e6367f75416b
JavaScript
ylz666666/nodejs
/2-1.数据驱动与ORM/routes/myUrlEncoded.js
UTF-8
502
2.734375
3
[]
no_license
const qs = require("querystring"); module.exports = (req,res,next) =>{ if(req.headers["content-type"] ==="application/x-www-form-urlencoded"){ //自行解析消息体 let result = ''; req.on("data", (chunk) =>{ result+=chunk.toString("utf-8"); }); req.on("end",() =>{ ...
true
ce1618e3a501744760e47d87cde514810fcaa47a
JavaScript
linode/docs
/docs/guides/development/next-js/getting-started-next-js/example-app/pages/posts/[postSlug].js
UTF-8
1,834
2.828125
3
[ "CC-BY-4.0" ]
permissive
// Import the JSX and style modules to be used for the page. import Head from 'next/head' import styles from '../../styles/Home.module.css' // Create the function for the post page template. Load in the postData // object from the page props. export default function Post({ postData }) { return ( <div className={...
true
66b3167277bd584dff9a29f5fc0264b801f8ec73
JavaScript
gma-amg/DianaJ
/dat2cpp.js
UTF-8
262
2.625
3
[]
no_license
const fs = require("fs"); const imageName=localStorage.getItem('EarRingImage') if(imageName='EarRing'){ fs.readFile("/ear_model_final.dat", (err, data) => { if (err) { throw err; } for (let i = 0; i < data.length; i += 1) { console.log(data[i]); } });
true
ae1b34f1d3894d81a440044f66f315127cf8239d
JavaScript
weidongguo/ECS272-FinalProject
/Sampling/CC_33_poisson_disc/sketchYouTube.js
UTF-8
3,821
2.734375
3
[]
no_license
// Poisson Disc Sampling // Daniel Shiffman // http://codingtra.in // http://patreon.com/codingtrain // Code for this video: https://youtu.be/flQgnCUxHlw // *Adapted by Baotuan Nguyen for ECS272 Project (YouTube Dataset) var r = 5000; var k = 5000; var grid = []; var w = r / Math.sqrt(2); var cols, rows; var active = ...
true
805cead982e08ac9be7abf908830a2366643e05f
JavaScript
YuliaB01/apiko-test-task
/js/api-client.js
UTF-8
3,017
2.703125
3
[]
no_license
var apiClient = { apiKey: ' -- PLACE THEMOVIEDB API KEY HERE -- ', baseUrl: 'https://api.themoviedb.org/3/tv/', loadPopular: function (page, onSuccess, onError) { var data = {}; var xhr = new XMLHttpRequest(); xhr.open('GET', this.baseUrl + 'popular?api_key=' + this.apiKey + '&pag...
true
adc7c4ae7844e2866fa66f77ea4b1806218dd727
JavaScript
Farmatique/vue-meetups
/src/store/meetup/index.js
UTF-8
5,121
2.53125
3
[]
no_license
import * as firebase from 'firebase' export default { state: { loadedMeetups: [], authUserRegisteredMeetups: [], authUserSelfMeetups: [] }, mutations: { setMeetups(state, payload){ state.loadedMeetups = payload; }, addNewMeetup (state, payload) { state.loadedMeetups.push(payload) }, updateMeet...
true
588c1c199f7d8ce7acb41670edc1e19d06a41b2c
JavaScript
sosukebrause/local-classwork
/sequelize/intro-sequalize_D2_7-1/__students_db_app/app.js
UTF-8
514
2.59375
3
[]
no_license
const db = require("./models"); db.sequelize .sync() .then(() => { return db.Student.create({ fName: "Michael" }); }) .then(() => { return db.student.findAll(); }) .then((allStudents) => { console.log(allStudents); }); // db.sequelize() // .sync() // .then(() => { // console.log("we ...
true
0ee05a34e813199664338a8a03916351bb7da40d
JavaScript
MeesCode/mees.space
/public/minimap.js
UTF-8
3,431
3.078125
3
[]
no_license
class Minimap { constructor(element, scale){ this.element = element this.scale = scale } init(){ document.documentElement.style.setProperty('--minimap-scale', this.scale); document.addEventListener('scroll', _ => this.scrollHandler()) window.addEventListener('resi...
true
8b14771a80226364dda086df61c82b97bd7c3d84
JavaScript
anamontegrifo/ejercicios-de-adalab
/Módulo 3 - React/React - lección 6.4/src/components/App.js
UTF-8
769
3.03125
3
[]
no_license
// Fichero src/components/App.js import { useState } from 'react'; import Preview from './Preview'; const App = () => { const [name, setName] = useState(''); const [email, setEmail] = useState(''); console.log( `Se renderiza el componente App con el nombre ${name} y el email ${email}` ); const handleName = (...
true
391e845e6532dca0acd09d936f7812bd835d8f33
JavaScript
zhangyummy/pinyougou
/pyg_parent/pyg_page_web/src/main/webapp/js/controller/itemController.js
UTF-8
1,625
2.65625
3
[]
no_license
app.controller("itemController", function ($scope) { //商品数目增加 $scope.addNum = function (x) { $scope.num += x; if ($scope.num <= 0) { $scope.num = 1; } } //记录用户选择的规格 $scope.specificationItems = {}; $scope.selectSpec = function (name, value) { $scope....
true
cc7dfee59f3cd7aac97fde64fbc5928beadfd6ef
JavaScript
frontendx-ng/javascriptt-course-week-1-godswillokokon
/question 11-15.js
UTF-8
1,763
4.15625
4
[]
no_license
<!--question 11 Starts Here --> <form> Enter A Number : <input type="text" id="value" /><br> <input type="button" onClick="Cel()" Value="Convert To Celcius" /><br> <input type="button" onClick="Fahr()" Value="Convert To Fahrenheit" /> </form> <script> function Fahr() { var c = document.getElementById("value").va...
true
e46718fda56b2ea872ced8f58b8fecb2cc241263
JavaScript
ibrahimbutt/sinae
/src/matchers.js
UTF-8
1,103
2.90625
3
[ "MIT" ]
permissive
/* eslint eqeqeq: 0 */ const resultLogger = require('./lib/resultLogger'); module.exports = value => { return { toEqual (condition) { const result = value == condition; resultLogger({ result, condition, value }); }, toNotEqual (condition) { const result = ...
true
9a84fbc030d448c7bb36df63b745aa280b1f5877
JavaScript
ccarner/SWEN90013-2020-ID
/frontend/idecide/src/components/RuleEngine/evaluateFeedback.js
UTF-8
10,362
2.53125
3
[ "MIT", "Apache-2.0" ]
permissive
export default function evaluateFeedback(rules, factContainers, surveyResults) { let RuleEngine = require("json-rules-engine"); let engine = new RuleEngine.Engine(); // a rule is an object of form {conditions, event} console.warn("rules was", rules); for (const rule of rules) { let engineRule = new RuleE...
true
66c76243a22aac000db6dac550557ac27e291717
JavaScript
FrankPaul1/tiny
/src/template-engines/ejs/index.js
UTF-8
376
2.609375
3
[]
no_license
/* eslint-disable */ export function compile(str, options) { return (data) => { const templ = str.replace(/<%= ([^<%>]*) %>/g, (s, matched) => matched); const compl = new Function(...Object.keys(data), `return ${templ}`); return compl(...Object.values(data)) }; } export function render(str, data = {}, ...
true
4540032cddaa34f66676969b7b017d75c43888c0
JavaScript
VuagnatV/codeflix.season.02
/eventbox.js
UTF-8
525
3.125
3
[]
no_license
const EventEmitter = require('events') function empty(){ const myEmitter = new EventEmitter() myEmitter.on('hi', () => console.log('chopper') ) myEmitter.emit('hi'); } function withArgs(Array) { let i = 0; const myEmitter = new EventEmitter() myEmitter.on('newFellow', () => { ...
true
0ebd4c7d7baf63e85ba3dcc3e72b3f8d1704b5cd
JavaScript
sampersondmm/canvas-game
/script/main.js
UTF-8
1,706
2.765625
3
[]
no_license
var canvas = document.querySelector('#canvas'); var context = canvas.getContext('2d'); var currentMap = world.map2; // var ranX = Math.floor(Math.random() * 640); // var ranY = Math.floor(Math.random() * 640); var enemy1 = new Enemy(400,200,'demon'); var enemy2 = new Enemy(450,200,'demon'); var enemy3 = new Enemy(400...
true
fcf6de87643a38074bfabd59ab8a6db5fc7d68dc
JavaScript
JunyupHong/task_web
/public/javascripts/test.js
UTF-8
2,435
3.671875
4
[]
no_license
// 자바스크립트는 계속 돌아가면서 실행 -> 새로고침이 필요없음 // System.out.println("hello"); // console.log('hello'); // console.warn('warn'); // console.error('error'); // 변수 var a = 10; var b = 'a'; var c = null; var d = undefined; var e = [1, 2, 3, 4]; var f = { a: 10 }; var g = [1, 2, 3, 4, 'a', 'n', { a: [2, 3, 4] }]; var h = functio...
true
2d74226e42bdb3ccb3e94842aa40f3fdfe8065dd
JavaScript
Dark-Energy/webgl_particles
/arhciv/grid.js
UTF-8
3,765
2.78125
3
[]
no_license
/* Grid */ My_Lib.Grid = function (width, height, xsegments, ysegments, texture, material) { this.xsegments = xsegments; this.ysegments = ysegments; var xsize = width/xsegments; var ysize = height/ysegments; var xstart = width/-2.0 + xsize/2; var ystart = height/-2.0 + ysize/2; var mat = material; if (!mater...
true
37ff01aa1b5b049550a3c71ec9e32dd0cca912aa
JavaScript
lizhenggan/TwentyFour
/01_Language/01_Functions/js/octdec.js
UTF-8
92
2.8125
3
[ "MIT" ]
permissive
function octdec(octString) { return parseInt(octString, 8) } console.log(octdec('77'))
true