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
cd9099666470052a3bfa39b9c350a8cb160833bc
JavaScript
valishah/Streamlined-Object-Modeling
/examples/01-social-circle/tests/specs/SocialCircleTest.js
UTF-8
4,178
2.53125
3
[ "MIT" ]
permissive
define( [ "DateOfBirth", "Person", "SocialCircle" ], function( DateOfBirth, Person, SocialCircle ) { return({ testSocialCircle: function() { var sarah = new Person( "Sarah Smith", "F", new DateOfBirth( "1980/02/11" ) ); var arnold = new Person( "Arnold Smith", "M", new DateOfBirth( "1980/02/11"...
true
82afee9530c81142448e4253cf3866c1ec772f86
JavaScript
decoder318/reactnd-project-myreads-starter
/src/list-books.component.js
UTF-8
3,999
2.5625
3
[]
no_license
import React, {Component} from 'react'; import * as BooksAPI from './BooksAPI' import {USER_SHELVES} from './shelf-name-values'; import BookShelf from './bookshelf.component'; import {Link} from 'react-router-dom'; class ListBooks extends Component { state = { allBooks: {}, shelves: {} } c...
true
7a2de5f5cc8e7b382d51a8937cf298bbea1453af
JavaScript
droghio/CrawlingSpecter
/worker.js
UTF-8
5,438
2.640625
3
[ "Apache-2.0" ]
permissive
/* John Drogo June 6, 2014 Crawling Specter Worker Crawles a webpage looking for links. Saves links in a MongoDB, and then processes the next link. Continues until all links have been exhausted. This file initiates the crawl and calls the links object for DB access. TODO Sandbox linkaccept...
true
7c286721ad1ceac2facb59781fa00e31979607a8
JavaScript
iamjalenh/Character-Pick---Big-Time-Rush
/script.js
UTF-8
572
3.03125
3
[]
no_license
var foodInput; var numberInput; $("button").click(function() { var food = $(".food").val(); var number = $(".number").val(); if ( food === "pizza" && number <6 ){ $("#yes").show(); } else if ( food === "pizza" && number >5 ){ ...
true
90cca9799ba0238dfdf1c7070bac464e1e7c1e09
JavaScript
bierleya/scale
/src/components/mass.jsx
UTF-8
2,840
2.609375
3
[]
no_license
import React from 'react'; import Header from './header'; import {Link} from "react-router-dom"; export default class Mass extends React.Component { constructor(props) { super(props); this.state = {unit: "mg", temp: 0}; } handleMilligrams = (e) => {this.setState({unit: "mg", temp: e.target...
true
8e3d83581e16f54bbc06ef5c7c938382851f09b0
JavaScript
wlwbmoraes/Primeiro_Projeto
/src/App.js
UTF-8
2,222
2.5625
3
[]
no_license
import React from 'react' import * as BooksAPI from './Componentes/Servicos/BooksAPI'; import './App.css' import { Link, Route } from "react-router-dom"; import BookinShelf from './Componentes/Livros/BookinShelf'; import ResearchedBooks from './Componentes/Livros/ResearchedBooks'; class BooksApp extends React.Compone...
true
d017ab85020ae872150403d8ffd328a7634a4254
JavaScript
joshduck/react-state-examples
/lib/EventEmitter.js
UTF-8
356
3
3
[]
no_license
export default class { constructor() { this.callbacks = []; } emit() { this.callbacks.forEach(callback => callback()); } subscribe(callback) { this.callbacks.push(callback); } unsubscribe(callback) { const index = this.callbacks.indexOf(callback); if (index !== -1) { this.call...
true
cc388eaba024c13d88e154a6ff6939308c273bf3
JavaScript
Krazete/integrated-chinese
/static/mp3/temp3.js
UTF-8
3,046
2.671875
3
[]
no_license
function mp3Src(e) { var rate = id("mp3").playbackRate; // (playbackRate = 1) is default id("mp3").pause(); // just in case mp3Pause(); id("progress-after").removeAttribute("style"); id("mp3").src = e; id("mp3").load(); // just in case mp3Speed(rate); } function mp3Progress() { var ratio = id("mp3").currentTim...
true
5640003678c8d0ad36ae8b88501d76a4ac86814d
JavaScript
emmicatharina/ohj2-asiakkaat-vanilla
/Asiakkaat/WebContent/scripts/main.js
UTF-8
774
2.78125
3
[]
no_license
function requestURLParam(sParam){ var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split("&"); for (var i = 0; i < sURLVariables.length; i++){ var sParameterName = sURLVariables[i].split("="); if(sParameterName[0] == sParam){ return sParameterName...
true
1445a0aa813bab495be3f6a832bf69e4d193eae1
JavaScript
shirafeldinger/War-Game
/src/App.js
UTF-8
2,695
2.640625
3
[]
no_license
import React, { useState } from "react"; import "./App.css"; import { HashRouter as Router, Switch, Route } from "react-router-dom"; import Home from "./Components/Home"; import BoardGame from "./Components/BoardGame"; import EndGame from "./Components/EndGame"; function App() { const packOfCards = [ 1, 1, ...
true
50f639002719de800d4736584cf7b2e883f30d58
JavaScript
luminmei/snake
/src/js/snake.js
UTF-8
3,436
3.46875
3
[]
no_license
var snake = new Snake() // 蛇头 snake.head = null // 蛇尾 snake.tail = null // 规定蛇移动的方向 var DIRECTIONENUM = { Left: { // 向左横坐标减1,纵坐标不变 x: -1, y: 0 }, Right: { x: 1, y: 0 }, Up: { x: 0, y: -1 }, Down: { x: 0, y: 1 } } // 初始化 snake.init = function () { // 创建蛇身和蛇头 var o...
true
73d554d66a690c14ba4e5d4a59a5b2dc0f457a0c
JavaScript
heiho1/colonyStarter
/packages/colony-starter/src/helpers/log.js
UTF-8
205
2.71875
3
[ "MIT" ]
permissive
// Import prerequisites const chalk = require('chalk'); // Logging to help keep track of where we are in the script const log = (msg) => console.log(chalk.cyan('\n' + msg + '\n')); module.exports = log;
true
1b621a6705dc799c898e148213ded2e153317dcd
JavaScript
nss-day-cohort-39/tabloid-full-stack-vanjies
/Tabloid/client/src/components/NewTagForm.js
UTF-8
1,191
2.578125
3
[]
no_license
import React, { useState, useContext } from "react"; import { useHistory } from "react-router-dom"; import { Button, Form, FormGroup, Label, Input } from 'reactstrap'; import { TagContext } from "../providers/TagProvider"; export default function NewTagForm() { const history = useHistory(); const { addTag } =...
true
fd22a38ef91637596bbf69d9149a1203f0833e1a
JavaScript
JoyChristianVilla/testGit
/app.js
UTF-8
115
3.265625
3
[]
no_license
const numbers = [1,2,3,4,5,6,7,8,9]; const result = numbers.reduce((acc, num) => acc + num); console.log(result);
true
94738bb294c930c8777cd2dd7d56594771e33780
JavaScript
PI15b-PPSE/AndreyTkachenko
/js/data.cleaner.js
UTF-8
3,241
3.59375
4
[]
no_license
/** * Слушатель для очистки задачи №1 * Работает с элементом clear_task_1 * Вызывает функцию dataCleaner_1 */ document.addEventListener('DOMContentLoaded', function() { document.getElementById("clear_task_1").addEventListener("click", dataCleaner_1); }); /** * Функция вызываемая слушателем для элемента clear_task_...
true
32a1b3c8ee95311e472a708963fa1e54bf7cc8da
JavaScript
haritonone1/Practica
/JS/Index.js
UTF-8
4,595
2.78125
3
[]
no_license
 var getJson = function() { var xhttp; xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { useJson(this); } }; xhttp.open("GET", `../package.json`, true); xhttp.send(); } getJson(); var homepageVac...
true
b8d005ac09150cec786e7cec93d7f17229e5c744
JavaScript
kyuaz/prj
/mesh/TempHumidAmazonES/HumidFunctionExecute.js
UTF-8
1,526
2.71875
3
[]
no_license
//Amazon ElasticSearch endpoint URL var endPointURL = "https://search-xxx.ap-northeast-1.es.amazonaws.com/indexname/typename/"; //------------------------------------- // creating timestamp string //------------------------------------- var nowdate=new Date(); var year = nowdate.getFullYear(); var month = nowdate.get...
true
1d478354ae82f5a9a5a9cf7d73b9efd618e66a92
JavaScript
char502/z-js-course
/js/main.js
UTF-8
406
3.671875
4
[]
no_license
// alert('Your JavaScript is linked') // const ten = _ => {console.log(10)} // ten() // const logger = (arg1) => console.log(arg1) // logger("this is a test") // const addNums = (num1, num2) => num1 + num2 // console.log(addNums(5, 6)) // const multiplyNums = (num1, num2) => num1 * num2 // console.log(multiplyNums(...
true
7ec2e96fa7afc1a5d92122c15207c4d3a8137245
JavaScript
WilliamRClark/phaser-examples-typescript
/examples/arcade physics/sprite vs group.js
UTF-8
2,034
2.578125
3
[ "MIT" ]
permissive
var _this = this; var sprite; var group; var spriteVsGroupCursors; var game = new Phaser.Game(800, 600, Phaser.AUTO, "phaser-example", { preload: function () { game.load.image("phaser", "assets/sprites/phaser-dude.png"); game.load.spritesheet("veggies", "assets/sprites/fruitnveg32wh37.png", 32, 32);...
true
f3459d323513135d946d54e158e96dafebefc5c2
JavaScript
taqiabdulaziz/CodingExercise
/LatihanLiveCode/simulasi-flc-from- ATRAS/2/004.js
UTF-8
2,186
3.34375
3
[]
no_license
/*eslint-disable*/ /** Participants Summary -------------------- Diberikan data dalam bentuk array multidimensi yang berisi orang-orang yang akan ikut dalam Hackathon yang diselenggarakan bulan depan. Implementasikan function `participantsSummary` untuk mengeluarkan laporan negara mana saja yang mengikuti, ada berapa ...
true
3e321e21b03cefa6a01b505a61495a45e370bcd3
JavaScript
the-gigi/wod-craft
/src/reducers/index.js
UTF-8
1,122
2.671875
3
[ "MIT" ]
permissive
/* Combine all available reducers to a single root reducer. * * CAUTION: When using the generators, this file is modified in some places. * This is done via AST traversal - Some of your formatting may be lost * in the process - no functionality should be broken though. * This modificatio...
true
e83b362b22e2e79a232b90535a202fc22e868aa2
JavaScript
leo-3108/mi-fddw-mars-colonisation-gedrath-pelzer
/mars/api-aggregator.js
UTF-8
2,848
2.78125
3
[ "MIT" ]
permissive
/** * Client des Mars (Es kann sich hier um einen Raum oder Astronauten) * * - Zu bestimmten Messdaten von Räumen (de-)abbonieren * - Abbonierte Messdaten empfangen * - Kritische Warnmeldungen zu allen Räumen empfangen * - Mit spezifischem Client auf der Erde kommunizieren. */ // config const config = require(...
true
faf5c2bdeb3cc0dcbdaa52689d0ca82aec8924af
JavaScript
pschlump-at-hsr/SchereSteinPapier
/Umsetzung/js/DataService.js
UTF-8
2,190
2.96875
3
[ "MIT" ]
permissive
export let dataState = { online: false, rankMap: new Map() }; const gameMatrix = [ [0, 1, -1, -1, 1], [-1, 0, 1, -1, 1], [1, -1, 0, 1, -1], [1, 1, -1, 0, -1], [-1, -1, 1, 1, 0] ] export function getRank(displayRankFn, updateView) { if (dataState.online) { fetch('https://us-central1-schere-stein-papi...
true
9161a10f9dc39b11bf9071e627ab9369beb02552
JavaScript
karloespiritu/random-uniq
/test.js
UTF-8
315
2.703125
3
[]
no_license
'use strict'; // Unit Tests const test = require('tape'); const randomUniq = require('./index'); test('should generate a different number from previous result', function(t) { t.plan(2) const x = randomUniq(0, 5); t.notEqual(x(), x(), "test 1"); t.notEqual(x(), x(), "test 2"); t.end(); });
true
d1773ea799979c0677dabb9c0b8099c29bf6ce28
JavaScript
etomeni/portfolio
/assets/js/main.js
UTF-8
1,366
2.859375
3
[]
no_license
"use strict"; /* ======= Sliding menu underline ====== */ // Menu has active item const navigation = document.querySelector("#navigation"); const slideLine = document.querySelector("#slide-line"); const navItems = document.querySelectorAll("#navigation li"); let currentItem = document.querySelector("#navigation .acti...
true
907fc667f0565f190278fd08d1d911312c7933fc
JavaScript
furutsan/test
/cell/src/main.js
UTF-8
824
2.5625
3
[]
no_license
import {handleTick,keyboard,mapDraw,userRedraw,titleRedraw} from './controle.js'; window.addEventListener("load", init); function init() { createCjsWorld(); let ml,xx,yy; //user配列から email ,x,y を抽出 for(let i in user){ for(const k in user[i]){ if(k === 'email')ml = user[i][k]; ...
true
a4763bef723440fe2bc3a56ed129491098f903b1
JavaScript
conundrumer/lr-core
/src/line-rider-engine/lines/SolidLine.js
UTF-8
3,021
2.546875
3
[]
no_license
import V2 from '../../v2' import Line from './Line.js' import LineTypes from './LineTypes.js' const MAX_FORCE_LENGTH = 10 const MIN_EXTENSION_RATIO = 0.25 export default class SolidLine extends Line { constructor (data) { super(data) this.flipped = data.flipped || false this.leftExtended = data.leftExt...
true
bd10fc061213655440f970ab6fe1d2432e4c8039
JavaScript
MelissaIreth/node-class
/modular.js
UTF-8
350
2.75
3
[]
no_license
var fs = require('fs'); var path = require('path'); module.exports = function(p,extension,callback){ fs.readdir(p, function(error,data){ if(error){ return callback(error) } arr = new Array(); data.forEach(function(file){ if(path.extname(file) === '.'+extension){ arr.push(file) } }) callback(n...
true
44efba398b0bd2c9ba731a079b0d22588dd1c820
JavaScript
Jisan-mia/react-redux-todo
/src/App.js
UTF-8
1,321
2.75
3
[]
no_license
import { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { bindActionCreators } from "redux"; import "./App.css"; import { actionCreators } from "./redux/index"; function App() { const [todo, setTodo] = useState(""); const { todos } = useSelector((state) => state.Todos); con...
true
859179eaca9e9410a4476ca8cba2718d3bd09a96
JavaScript
arnaudNYC/challenges
/tests/fizzbuzz.spec.js
UTF-8
632
2.734375
3
[]
no_license
const fizzbuzz = require('../src/fizzbuzz'); describe('fizzbuzz', () => { const expected = [ 1, 2, 'Fizz', 4, 'Buzz', 'Fizz', 7, 8, 'Fizz', 'Buzz', 11, 'Fizz', 13, 14, 'Fizz Buzz', 16, 17, 'Fizz', 19, 'Buzz', 'Fizz', 22, 23, 'Fizz', 'Buzz', 26, 'Fizz', 28, 29, 'Fizz Buzz', 31, 32, 'Fizz', 34, 'Buzz', 'Fi...
true
374bb6fcfeb50e62146ad5bf5fa767387e688999
JavaScript
jesustorres38/algorithms
/src/warm-up/jumpingOnClouds.js
UTF-8
238
2.8125
3
[]
no_license
const jumpingOnClouds = (c) => { let jumps = 0 for(let i=0, length=c.length-1; i<length; i++) { if (c[i+2] === 0) { jumps++ i++ } else { jumps++ } } return jumps } module.exports = jumpingOnClouds
true
ec7ddf0e2ef47ab0898393b08dea9212ce17a0c1
JavaScript
yoesmdb/prueba-webpush
/server/manager/internalLogic/countries/functions.js
UTF-8
3,581
2.71875
3
[]
no_license
const dbconnection = require('./conexion.js'); exports.getCountries = (req, res) => { dbconnection.getCountries((err, data) => { if (err) { console.log(err); reject(err); } else { //console.log(data); var arr = []; data.forEach(element => ...
true
8c8aaa0ba199b09b59d27d743219c83f5a1f5c49
JavaScript
EveripediaNetwork/wikipedia-importer
/functions/getMetaData.js
UTF-8
1,787
2.65625
3
[]
no_license
const request = require('request'); let encodeUrl = require('encodeurl'); const getTimeStamp = require('./pagebodyfunctionalities/getTimeStamp'); const doRequest = (MediaWiki) => { return new Promise(function (resolve, reject) { request(MediaWiki, function (error, res, body) { if (!error && res.statusCo...
true
a6d61b7f3d9d0978de3ac996b153782810a2f1b5
JavaScript
nhathoang2205/Learning_ReactNative
/Learning/js_13062018/AuthorBook.js
UTF-8
4,233
3.375
3
[]
no_license
// Cho 3 function là tập hợp thể hiện của đối tượng sau: // + var Author // + var Book // + var BookShelve var Author = function( name, email, gender ) { this.id = new Date().valueOf(); this.name = name; this.email = email; this.gender = gender; } var Book = function( title, author, price, quantit...
true
82ba784cbf937762eb89f59f9ba7fb4250fe2383
JavaScript
Igor2122/data-U
/js/practice/jssandbox/app.js
UTF-8
1,341
3.796875
4
[]
no_license
// 2 ramdon numbers between given values // const h1 = document.querySelector('h1'); // const randNum = (max, min) => { // return Math.round((Math.random() * (max - min + 1) ) + min); // } // let maxInput = prompt('Input 2 numbers'); // let minInput = prompt('Input 2 numbers'); // h1.textContent = randNum(maxIn...
true
43b7c3496ab38b5e3e2e26e0f2f960c54a4ae8b9
JavaScript
AndriiFesenko/hillel
/homework-20/app.js
UTF-8
5,667
2.8125
3
[ "MIT" ]
permissive
'use strict' const CONTACTS_URL = 'http://fep-app.herokuapp.com/api/contacts'; const userList = document.getElementById('userList'); const addNewUserForm = document.getElementById('addNewUserForm'); const userTemplate = document.getElementById('userTemplate').innerHTML; const tBody = userList.getEl...
true
2bf3f1597844530965e1cb466cd8525998a1fbfa
JavaScript
jr-barclay/Restaurant-Reviews-App
/Restaurant Reviews_Jan-Alfred_Final/sw.js
UTF-8
2,030
2.765625
3
[]
no_license
//const currentCacheName = 'restaurant-reviews-app-4'; const appName = 'restaurant-reviews-app' const staticCacheName = appName + '-v4.0'; const contentImgsCache = appName + "-images"; const allCaches = [ staticCacheName, contentImgsCache ]; // Cache static assets // self.addEventListener('install', function...
true
93d54785ebd58ec9dfc733d0cde2df698154cb58
JavaScript
tksander/qwikgit
/client/components/SearchBar.js
UTF-8
994
2.578125
3
[]
no_license
import React, {Component} from 'react'; import { View, Text, TextInput } from 'react-native'; export default class SearchBar extends Component { constructor(props) { super(props) this.state = { text: '' } } //----------------------------------- // RENDERING //------------------------------...
true
f02d150bb385e35b0a892ec7a2eab5e16fcd8114
JavaScript
vsanchezrod/web-ResponsiveDesign-MobileFirst
/js/main.js
UTF-8
3,863
3.515625
4
[]
no_license
//ESCRIBIMOS EL SCRIPT que va a LANZAR LOS EVENTOS ONCLICK. //Por defecto el display del card_menu esta activo, y lo que tenemos que hacer con la //función es que se desactive y se vuelva a activar si le volvemos a dar var sections = new Array(5); //Creamos un ARRAY con 6 elementos que van a ser las di...
true
dedd5977ee6920403428c7d15f5bede26161ce89
JavaScript
JackJackHuo/Practice
/JS_Practice/array.js
UTF-8
1,543
4.15625
4
[]
no_license
// 物件取值 // const post = { // name : "jack", // address : "123street", // } // const post1 = { // name : "kevin", // address : "123street" // } // console.log(post.name)//物件第一種取值方式 // console.log(post1['address']); //物件第二種取值方式 // let x = [post,post1] // console.log(x) // ============...
true
654452afb7f73aefa6c22b242cd09bda23ccc1c8
JavaScript
Igor2122/data-U
/js/projects/portfolio/src/assets/js/app.js
UTF-8
1,137
2.546875
3
[]
no_license
const scrollEvents = (e) => { const homeDiv = document.querySelector('.home'); const homeDivClinetHeight = homeDiv.clientHeight; let offsetY = null; window.addEventListener('scroll', () => { offsetY = window.pageYOffset; // console.log(offsetY); const navigation = document.q...
true
190f0549fd69bc04e4b95072eb3ec7d08baa78b7
JavaScript
jrhumberto/pptx-maker
/robots/input.js
UTF-8
2,476
3.3125
3
[ "MIT" ]
permissive
const readline = require('readline-sync') const state = require('./state.js') class Robot{ async start(){ const content={} content.lang = this.askAndReturnLanguage(); content.author = this.askAndReturnAuthor(content.lang); content.searchTerm = this.askAndReturnSearchTerm(content.lang);...
true
e04d8b71b798a6672af88fa82501243561ca5c7f
JavaScript
morganecf/learn-js
/src/js/notes.js
UTF-8
1,848
3.921875
4
[]
no_license
/* Write hello world to document */ function writeHelloWorld() { document.writeln("hello world!"); } function grammarThings() { var upperCat = 'cat'.toUpperCase(); var conCat = 'c' + 'a' + 't'; // var defines this function's private variables var privateVariable = 4; publicVariable = 5; // ...
true
3af82977e33cf701372e330869bb913e6e691d9c
JavaScript
hassunisalem/HangITNew
/src/components/chartsTypes/getVenues.js
UTF-8
460
2.75
3
[]
no_license
import React from "react"; const getVenues = () => { const [venues, setVenues] = React.useState(""); const handleVenuesChange = (venues) => { setVenues(venues); console.log(venues); }; return ( <select name="venues" value={venues} onChange={(event) => handleVenuesChange(event.targ...
true
1ede1c9977646d457c07e2714bd3fb4d8415a3d4
JavaScript
andimier/diegozamorafotografia
/js/home.js
UTF-8
2,808
2.890625
3
[]
no_license
// ============= EQUIPO =================== var quien; var jerome = document.getElementById('jerome'); var nata = document.getElementById('nata'); var diego = document.getElementById('diego'); var wJerome = jerome.offsetWidth; var abiertoN = false; var abiertoD = false; var abiertoJ = false; wNata...
true
1a543b5ee093d037e9447a0ca0f5909c6941fc74
JavaScript
Owaish-Kalim/Electura
/FrontEnd/src/Contents/signUp.js
UTF-8
4,272
2.515625
3
[]
no_license
import React, { Component } from "react"; import { Container } from "reactstrap"; import axios from 'axios'; export default class SignUp extends Component { constructor(props){ super(props); this.state = { name : '', email: '', password: '', }; } ...
true
30997118af00fe7714c6d11858a14ca927386814
JavaScript
rajchauhan2816/vamstar-assignment
/script.js
UTF-8
644
2.984375
3
[]
no_license
// Please Translate the webpage into English First let publicationDate = document.querySelectorAll('.lbl-licitacao font font')[1].innerText; let biddingDate = document.querySelectorAll('.lbl-licitacao font')[18].innerText; let objectV = document.querySelector('.field-content p font').innerText; let links = document.qu...
true
bb623dff96556e52c03ad2610954bfab87c9e24f
JavaScript
ChALkeR/packaged-path-parse
/test/complex.js
UTF-8
4,510
2.671875
3
[ "MIT" ]
permissive
'use strict'; const path = require('path'); const fs = require('fs'); const equal = require('deep-equal'); const babylon = require('babylon'); const fun2str = fun => Function.prototype.toString.call(fun); function *genOne(len, chars) { if (len === 0) { yield ''; return; } for (const prefix of genOne(le...
true
a899f6f0ad6c2dc5062e392ca29c5b67eba65a15
JavaScript
HirotoIgarashi/keep-a-log
/public/js/utilCore.js
UTF-8
10,917
3.125
3
[]
no_license
// utilCore.js 'use strict'; export const getTimestamp = () => { let now_date; now_date = new Date(); return Date.parse(now_date.toString()).toString(); }; // getTimestamp終了 // getTplContent/開始 // 目的: テンプレートからコンテンツを取得して返す。 // 必須引数: IDの値 // オプション引数: なし // 設定: // 戻り値: 引数のIDの値のコンテンツ // 例外発行: なし export const getTp...
true
577640d11546989d58e68f7eceed2246786530e1
JavaScript
darektoa/Javascript-Projects
/zulnurdiana.js
UTF-8
735
3.484375
3
[]
no_license
<script> function Mahasiswa(nama,persona){ this.nama = nama; this.persona = persona; } Mahasiswa.prototype.makan = function(energi){ this.persona += energi; console.log(`Halo ${this.nama}, selamat berdandan !`); } Mahasiswa.pro...
true
ac54c4971b97d1f7ab7e2201a29ddec31b519e88
JavaScript
khoama/atext-changeset
/lib/alinesmutator.js
UTF-8
7,160
2.8125
3
[ "MIT" ]
permissive
exports.ALinesMutator = ALinesMutator; var assert = require('assert'); var AStringMutator = require('./astringmutator').AStringMutator; var ComponentList = require('./componentlist').ComponentList; var OpComponent = require('./opcomponent').OpComponent; var Position = require('./position'); /* * This mutator works ...
true
a6f64438ae3bd392a36f3d77f5512f6d9a90e6b7
JavaScript
BlackGirl01/snake
/js/最开始food.js
UTF-8
1,412
3.734375
4
[]
no_license
/** * Created by 0.0 on 2017/6/16. */ /** * 思路:分析食物的属性及行为抽象出具体的构造函数 * 1. 在构造函数中初始化食物的属性数据 * 2. 在构造函数的原型对象中初始化行为方法 */ function Food(){ //给食物设置宽度 这里不能加px this.width=20; //给食物设置高度 this.height=20; //给食物设置背景颜色 this.backgroundColor='pink'; //给食物设置随机的定位 this.position='absolute'; //随机的top值 _.random 随机...
true
66952624602701e53c1992ce129d0c65a7fd085a
JavaScript
pawelNiziolek/small-projects-in-JS
/2-menu/js/app.js
UTF-8
732
3.28125
3
[]
no_license
/* Zadanie: ------------- Po kliknięciu na LI przełącz klasę .nav-el-active z obecnie zaznaczonego elementu na element kliknięty. Zwróć uwagę, że klasa .nav-el-active jest nadawana na element LI a nie na A. Postaraj się sprawić, by podczas takiego kliku strona nie była przeładowywana. */ document.addEventListener("D...
true
8d288dcef6f66a47adc8652571b635e468aa0a18
JavaScript
raideer/metar-parser
/parsers/visibility.js
UTF-8
1,488
2.90625
3
[ "ISC" ]
permissive
const Parser = require("../parser"); const { UNITS } = require("../strings"); module.exports = class VisibilityParser extends Parser { static parse(metar) { const match = ` ${metar} `.match(/\s([0-9]{4})\s|\s((?:[0-9]{1,2}\/)?[0-9]{1,2})(SM|KM)\s/); if (!match) { return { ...
true
45468cf31b6ede5626676b06ddd73e5175a1589e
JavaScript
iacovosi/SmartParkingNew
/public/js/map.js
UTF-8
2,420
2.609375
3
[ "MIT" ]
permissive
var map; var feature; function load_map() { /* map = new L.Map('map', {zoomControl: true}); var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', osmAttribution = 'Map data &copy; 2012 <a href="http://openstreetmap.org">OpenStreetMap</a> contributors', osm = new L.TileLayer(osmUrl, {maxZoom: 18, at...
true
86c47c5daa67424761b19e879391c4e7ab595877
JavaScript
johnvincentio/hackerrank
/src/easy/3/migratory-birds/a.js
UTF-8
1,480
3.546875
4
[]
no_license
// /* https://www.hackerrank.com/challenges/migratory-birds/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen migratory-birds */ /* eslint-disable no-plusplus */ const convert = {}; let currentLine = 0; let inputString = ''; function readLine() {...
true
71aa49df88a204fc36b47f0ee80d7a9853f643c1
JavaScript
dyedavelly/freeCodeCamp
/Intermediate_Algorithm_Scripting/convert_html_entities.js
UTF-8
321
2.921875
3
[]
no_license
function convertHTML(str) { var html = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"' : '&quot;', "'": '&apos;' } var keys = Object.keys(html); for(var i = 0; i < str.length; i++) { if(keys.includes(str[i])) { str = str.replace(str[i],html[str[i]]); } } return str; }...
true
16410f190e0a97224f3cef116d408d1ff913baf3
JavaScript
KaushikDev/kaushikDev
/JavascriptBasics/whileLoop.js
UTF-8
110
3.09375
3
[]
no_license
// while loop let iAMGod = 0; while(iAMGod <= 30){ iAMGod = iAMGod + 3; } console.log(iAMGod);
true
5b4dd1f5f299348de7ab30268ae601228b6bc462
JavaScript
decodejacques/node-intro
/workshop.js
UTF-8
1,067
3.65625
4
[]
no_license
var request = require('request-promise'); // Euclidian distance between two points function getDistance(pos1, pos2) { return Math.sqrt(Math.pow(pos1.lat - pos2.lat, 2) + Math.pow(pos1.lng - pos2.lng, 2)); } // Returns the current position of the ISS function getIssPosition() { return request(/* ... */) .then( ...
true
64ba7b39b7d1fa7c786d17cd921fc04b70eccbd4
JavaScript
zanwan/podcastboard
/assets/js/utils/uuid.js
UTF-8
478
3
3
[]
no_license
/** * 回傳 uuid * @summary 對 replace 還沒有很熟,先記一下 * @link https://cythilya.github.io/2017/03/12/uuid/ * @link https://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid */ export function uuid() { let d = Date.now(); return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r ...
true
45be681f91843617b51f5cb150dcce072f84a25a
JavaScript
jbenjoy2/class-components
/src/JokeList.js
UTF-8
2,502
2.8125
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import Joke from './Joke'; import './JokeList.css'; class JokeList extends Component { static defaultProps = { numJokesToGet: 10 }; constructor(props) { super(props); this.state = { jokes : [] }; this.generateNewJokes = this.generateNewJ...
true
6983bf33d2ae204218cc9a75cd4b5e00784b6cec
JavaScript
Saharsondos/GO3
/server+models/server.js
UTF-8
2,298
2.984375
3
[]
no_license
//save express and cors in variables var express = require("express"); var cors = require("cors"); //initializing express-server var app = express(); app.use(cors()); //requiring users from module "classes" const userArray = require("./model/classes"); //requiring the filesystem const fs = require("fs"); //requiring jw...
true
5ba8424b518c61b69e5d1b41430d7403b9bb900d
JavaScript
alirezaandersen/exercism
/javascript/isogram/isogram.js
UTF-8
450
3.09375
3
[]
no_license
var Isogram = function(word) { this.word = word.toString().toLowerCase(); }; Isogram.prototype.isIsogram = function() { var chars = this.word.split(''); var charTable = {}; while(chars.length > 0){ var char = chars.pop(); if( char != '-' && char != ' ') if(!chars[char]) ...
true
1fcedaac715c68fdb6e1358722c003eeb619707b
JavaScript
bliew93/LeetCode_Practice_Problems
/Strings/Easy/reverseInteger.js
UTF-8
594
3.328125
3
[]
no_license
// https://leetcode.com/explore/interview/card/top-interview-questions-easy/127/strings/880/ var reverse = function(x) { let negativeSign; let trailingZeroes = /([1-9]+)([0]+)$/; x = x.toString(); if (x.match(trailingZeroes)) { x = x.replace(trailingZeroes, "$1"); } if (x.includes("-")) { negati...
true
7bdf4386eee6ea8256f3234f0c994288df979179
JavaScript
andreantunees/Api-Node-MongoDB
/src/controllers/apresentation-controller.js
UTF-8
2,015
2.59375
3
[]
no_license
'use strict' const mongoose = require('mongoose'); const Apresentacao = mongoose.model('Apresentacao'); exports.post = (req, res, next) => { var apresentacao = new Apresentacao(req.body); apresentacao.save() .then(x => { res.status(201).send({ message: 'Apresentação cadastr...
true
3ac41ad91a7606ee708bdfba2d403750100d2205
JavaScript
jonmelcher/curly-eureka
/src/js/modules/block.js
UTF-8
1,203
3.09375
3
[ "MIT" ]
permissive
import * as Transforms from './transforms'; const areCoordinates = (coordinates) => Array.isArray(coordinates) && coordinates.every((coord) => Array.isArray(coord) && coord.every(Number.isInteger)); export function Block(playerIndex, coordinates = []) { if (!Number.isInteger(playerIndex) |...
true
ea830829392ca3e1a0c10c57e7b5f019ba487510
JavaScript
afontainec/crytowatcher
/public/angular/controllers/dashboard-controller.js
UTF-8
2,377
2.515625
3
[ "MIT" ]
permissive
// public/javascripts/angular/controllers /* eslint-disable */ controllers .controller('dashboardController', function($scope, $http, impressionMetrics, surveyService) { $scope.places = { loading: true, count: undefined, }; $scope.surveys = { loading: true, count: undefined, }; $scope.impr...
true
11ab2396545a1a2ada3aae57a33ae69f169a3890
JavaScript
gianpaj/vk-io
/src/updates/helpers.mjs
UTF-8
1,582
2.9375
3
[ "MIT" ]
permissive
const lt = /&lt;/g; const qt = /&gt;/g; const br = /<br>/g; const amp = /&amp;/g; const quot = /&quot;/g; /** * Decodes HTML entities * * @param {string} text * * @return {string} */ export const unescapeHTML = text => ( text .replace(lt, '<') .replace(qt, '>') .replace(br, '\n') .replace(amp, '&') .r...
true
2a602678eed8953ab717d9b3f086fafa50aecb0c
JavaScript
Kaylaesmith1/Weather-App
/index.js
UTF-8
14,795
3.203125
3
[]
no_license
let today = new Date(); console.log(today.getDate()); let currentTime = document.querySelector("#rightNow"); let hours = today.getHours(); let minutes = today.getMinutes(); if (minutes < 10) { minutes = "0" + minutes; } else { minutes = minutes + ""; } let days = [ "Sunday", "Monday", "Tuesday", "Wednesd...
true
8ff3fc4e4e8c34f062e88a8f30f406bac821efaf
JavaScript
MelGGit/scorekeeper
/src/pages/CreatePage.js
UTF-8
1,137
2.734375
3
[]
no_license
import styled from 'styled-components' import Button from '../Button' import PropTypes from 'prop-types' CreatePage.propTypes = { onSubmit: PropTypes.func, } export default function CreatePage({ onSubmit }) { return ( <Form aria-label="create-page-form" onSubmit={handleSubmit}> <Label> Name of g...
true
06f0f97f8ec50d82a4d1398b52103b8f4ce1c2e4
JavaScript
asma123-ctr/react-frontend
/src/components/forms/Part6.js
UTF-8
1,246
2.515625
3
[]
no_license
import React, { useState, useContext } from "react"; import { ContextProvider } from "../../Global/Context"; export default function Part4() { const { prevStep, nextStep, userData, setUserData } = useContext(ContextProvider); const educationValues = ["📃 Highschool or less", "📒 College", "📕 Diploma", "📚 Bac...
true
fa8724f0070b88c963df01909cc1b783aceedbda
JavaScript
xu120829/jsDesignPattern
/each.js
GB18030
501
2.625
3
[]
no_license
/* *ģʽ * / var eachObj = function(){ for(var i=0, fn; fn = arguments[i++];){ var obj = fn(); if(obj !== false){ return obj; } } } /* *ôʾ * */ var getAObj = function(){ try{ return new ActiveXObject("TXFTNActiveX.FTNUpload"); }catch(e){ return false; } } var getFObj = function...
true
b7bbbbef61ae0f896144605ada1b6ff2d1d6dfd7
JavaScript
ali-master/intl-combiner
/src/utils/index.js
UTF-8
4,734
2.796875
3
[ "MIT" ]
permissive
import R from "ramda"; import path from "path"; import chalk from "chalk"; import { existsSync } from "fs"; import beautify from "js-beautify"; /** * Return a missing parameter error when the user did not mention the parameters in the function call. * @param {String} parameter Parameter name. * @return {Function} ...
true
83a9305023c8682bc8748b304fa93beb4a1752cb
JavaScript
martowu/node-rsa-bcrypt-jsencrypt
/nodeRsa/decryptJSEncrypt.js
UTF-8
1,087
2.796875
3
[]
no_license
const NodeRSA = require('node-rsa') const fs = require('fs') //解密前端传来的通过jsencrypt加密的码 function decryptJSEncrypt () { const key = fs.readFileSync('./pem/private.pem'); //读取私钥 const privateKey = new NodeRSA(key); privateKey.setOptions({encryptionScheme: 'pkcs1'}); // 因为jsencrypt自身使用的是pkcs1加密方案, nodejs需要修改成pkcs1...
true
642f9f8bcd5fa43af24b0b009d9df781115a780f
JavaScript
hamzaali81/React-Complete-Practice-SMIT
/projects/Receipe/SearchRecipes.js
UTF-8
1,493
2.78125
3
[]
no_license
import React, { Component } from 'react'; import { Form,FormGroup,FormControl,FormLabel,Button } from 'react-bootstrap'; export default class SearchRecipes extends Component { constructor(){ super(); this.state ={ ingredients: '', dish: '' } } search(){ let { i...
true
8cecdd10772a6d7bcc5e67cc0c58b744d6b02420
JavaScript
royriojas/RGEN2
/Web/Scripts/lib/xCaseOperations.js
WINDOWS-1250
4,707
3.265625
3
[]
no_license
/* xTextBoxCaseOperatos : convierte al case especificado en el atributo stringcase del textbox si no se especifica el stringcase el case por defecto es ORACION stringcase puede ser "ORACION" = Tipo oracin "MINUSC" = minusculas "MAYUSC" = MAYUSCULAS "CAMELCASE" = Oracin Tipo Camello y se coloca como una cl...
true
01218eea1bf7926dd5be9336fafa89a1f9c91c70
JavaScript
Vepa-SDET/javascriptbasics
/check_1.js
UTF-8
571
3.328125
3
[]
no_license
var TodaysDate="Tuesday,July 17!"; alert("Today is " + TodaysDate); var color= "red"; var age= 27; var answer1= true; var answer2= false; var field= null; var _definition$; console.log(color); console.log(age); console.log(answer1); console.log(answer2); console.log(field); console.log(_definition$); console.log(typ...
true
0b89d1a21c4b1c10c12bdbada159b736a2b154d0
JavaScript
k-tck/20210930_JS-05-Conditions-and-Expressions
/JS05_Exercise#2.js
UTF-8
726
3.28125
3
[]
no_license
// JS-05 Conditions and Expressions // https://github.com/generation-org/JS/tree/master/JS-05%20-%20Operators%20and%20Expressions // PLEASE open in Node.js https://replit.com/languages/javascript // Exercise#2 { false || (true && false); //false true || (11 + 12); //true (31 + 22) || true; ...
true
b2fe6e269aaa13352b4ae69ae48fb1c78cf904af
JavaScript
charleschomel/comparis
/slider.js
UTF-8
1,059
2.828125
3
[]
no_license
var Slider = { slides: undefined, current: 0, interval: undefined, ellapsed: 5000, right: -1, init: function() { this.slides = document.getElementsByClassName("match"); this.to_center(this.slides[0]); this.interval = setInterval(this.update, this.ellapsed); }, update: function() { ...
true
c2b0f8538a9936b09f3acf699fdfd91b1c288919
JavaScript
MaherMarawi/Community-Redux
/client/src/Components/Auth/AuthCheck.jsx
UTF-8
903
2.5625
3
[]
no_license
import React from 'react' function AuthCheck() { const [ loggedIn, setLoggedIn ] = React.useState(false) const [ id, setId ] = React.useState('') const [ name, setName ] = React.useState('') React.useEffect(() => { const token = localStorage.getItem('Token') const user = JSON.parse(sess...
true
e72be84c012a2330c8c29bd2162359acbc306581
JavaScript
egg27superman/MyProject
/AFH.Barcaldine_oneDB/AFH.Barcaldine.Online/Scripts/online.js
UTF-8
967
2.59375
3
[]
no_license
$(function () { //$(".datepicker").datepicker({ // dateFormat: 'dd/mm/yyyy' //}).val(); }); function formatFloat(num, pos) { var size = Math.pow(10, pos); return Math.round(num * size) / size; } function banBackSpace(e) { var ev = e || window.event; var obj = ev.target || ev.srcEle...
true
3bdc8790ef444282aa30da2fa6f1a784611a2c20
JavaScript
GraceyYY/js_collection_operation_practice_ES6
/main/section_3/practice_4/practice.js
UTF-8
712
2.953125
3
[]
no_license
function create_updated_collection(collection_a, object_b) { let objA = countWords(collection_a); let arrB = object_b.value; return Object.keys(objA).map(item => { if (arrB.includes(item)) { objA[item] = objA[item] >= 3 ? objA[item] - Math.floor(objA[item] / 3) : item.count; } return { key...
true
448a5ad74a5b35de9251b99c3b74030d5a2ac179
JavaScript
Sebastian-Russo/sebastian-russo-portfolio
/src/components/app-wrapper.js
UTF-8
1,457
2.625
3
[]
no_license
import React, { useState } from 'react'; import { AppCard } from './app-card'; import '../styling/app-wrapper.css'; import projects from '../project.json'; import { categories } from '../helpers/sort-projects'; import apps from '../project.json'; export const AppWrapper = () => { const [selected, setSelected] = us...
true
6a04f7291df010997dd4f507e1e2ce60e317c985
JavaScript
sonuuno2020/weatherForecast
/src/components/weather-dropdown/weather-dropdown.component.jsx
UTF-8
2,364
2.5625
3
[]
no_license
import React from 'react'; import CoOrdinates from '../../data'; import FormInput from '../form-input/form-input.component'; import './weather-dropdown.styles.scss'; class WeatherDropdown extends React.Component { state={ city:"", country:"", CoOrdinates : CoOrdinates, lat:'', lon:...
true
daf2aa136ac752f41d54b2457e023479b875244c
JavaScript
delmont11/sitio-conferencias
/js/main.js
UTF-8
6,879
3.1875
3
[ "MIT" ]
permissive
(function() { "use strict"; let regalo = document.getElementById('regalo'); document.addEventListener('DOMContentLoaded', function() { //campos datos usuarios let nombre = document.getElementById('nombre'); let apellido = document.getElementById('apellido'); let email = docu...
true
a81a4585f450a5799fbf729bca77a8c05c3f2295
JavaScript
haliciyazilim/matsoz-6
/app/assets/javascripts/library/permute.js
UTF-8
2,169
3.75
4
[]
no_license
/* * permute.js 1.0 - Permutation calculator * Copyright 2007 Scriptar.com, All Rights Reserved. * Author: Scriptar (scriptar@gmail.com) * Date: 2007-07-19 11:00:00 -0800 (Thu, 19 Jul 2007) * Description: The intent of this permutation generator is to * describe in simple terms how to change the order or ar...
true
e7e473bf798de1913d005c18477e74a312f5cf79
JavaScript
tuyetsang/todoapp
/src/utilities/util.js
UTF-8
209
3.171875
3
[]
no_license
export function createDateTime(){ var now = new Date(); var then = now.getFullYear()+'-'+(now.getMonth()+1)+'-'+now.getDay()+ ' '+now.getHours()+':'+now.getMinutes()+':'+now.getSeconds(); return then; }
true
0133fa1306114270f1ff40e1f68502a901dd46c3
JavaScript
thaisdalencar/pass-by-value-pass-by-reference.c
/pass-by-value-pass-by-reference.js
UTF-8
658
3.8125
4
[]
no_license
function receiveObjectsType(arr, obj) { //this not copy, it will point to original memory address arr.push('foo'); obj.name = 'alencar'; } function receivePrimitiveType(primiveType) { // this will make a copy, it will create a copy in another memory address primiveType = primiveType + 5; } function main()...
true
62f1903ccd7c4dc58c66d31dedfc37ce3eadb8cd
JavaScript
hridaewcca/hw5
/water-arrays.js
UTF-8
533
3.171875
3
[]
no_license
var a = []; var b = []; var velx = []; var vely = []; function setup() { createCanvas(400, 400); colorMode(HSB) for (var i = 0; i < 5; i++) { a[i] = 230; b[i] = 220; velx[i] = random(-0.5,0.5); vely[i] = random(3,2); } } function draw() { background(0); noStroke(); // draw pipe r...
true
be6cd3566dde90c48e2355786d7a17efe5fec917
JavaScript
Rosebud303/Foto-Finder
/photo.js
UTF-8
530
3.03125
3
[]
no_license
class Photo { constructor(id, title, caption, file, favorite) { this.id = id; this.title = title; this.caption = caption; this.file = file; this.favorite = favorite; } saveToStorage(photo) { localStorage.setItem(this.id, JSON.stringify(this)); } deleteFromStorage() { localStorage...
true
cd0ceeb9ce64838f0ffd63a38a0bae687bc73b73
JavaScript
ojripley/lotide
/findKey.js
UTF-8
259
3.484375
3
[]
no_license
// findKey will scan an object and return the first key that matches the callbacks truthy value const findKey = function(object, callback) { for (let key in object) { if (callback(object[key])) { return key; } } }; module.exports = findKey;
true
f81433f24311be4416312a996823a1767964debb
JavaScript
yinjialu/leetcode
/.leetcode/28.实现-str-str.js
UTF-8
1,364
3.34375
3
[ "MIT" ]
permissive
/** * /* * * [28] 实现 strStr() * * @format * @lc app=leetcode.cn id=28 lang=javascript */ // @lc code=start /** * @param {string} haystack * @param {string} needle * @return {number} */ var strStr = function (haystack, needle) { const check = (j) => { for (let i = 1; i < needle.length; i++) { ...
true
b346f52d4c0625c64725d0707bf7a0df273e6c75
JavaScript
david-reid/cwd.canvas
/ball.js
UTF-8
1,045
3.1875
3
[]
no_license
class Ball { constructor(graphics) { this.xpos = 60; this.ypos = graphics.dimensions().height/2; this.size = 25; this.fx = graphics; this.xvel = 0; this.yvel = 0; this.gravity = 0.1; this.lift = -8; } draw() { let gradient = this....
true
f6aebd5cac55f0736c75866d815f432ab560bfb5
JavaScript
wannabewayno/colour-tool
/Colour/convert/RGB2LCH.js
UTF-8
611
2.953125
3
[]
no_license
const { Lab_to_LCH } = require('./lib/helpers'); const RGB2LAB = require('./RGB2LAB'); /** * Converts an sRGB colour to a cyndrical LAB colour space,the LCH space. * @param {Number} R - Red channel on the range [0,255] * @param {Number} G - Green channel on the range [0,255] * @param {Number} B - Blue channel...
true
ff8c08cf7d8adebe7c831fc42306166ac8b3b952
JavaScript
rahul259/algos_data_structure_in_Javascript
/BSearch_Recursive.js
UTF-8
467
3.015625
3
[]
no_license
function BSearch_R(array, startIndex, endIndex, item){ if(!array instanceof Array) return; var mid = parseInt((startIndex+endIndex)/2); if(array[mid] === item) return mid; if(startIndex == endIndex) return if(item < array[mid]) return BSearch_R(array,startIndex,mid-1,item); else r...
true
a5c5947395bfba0e5969db6150105c279c2b71e1
JavaScript
spenserschwartz/palaver
/src/components/ResultsField/IntroMessage.js
UTF-8
2,344
2.625
3
[]
no_license
import React, { useState, useEffect } from 'react'; import './styles.css'; import CopyButton from '../../helpers/components/CopyButton'; import { useSelector } from 'react-redux'; const IntroMessage = () => { const [message, setMessage] = useState(''); const [message2, setMessage2] = useState(''); cons...
true
23324df5bda58d3ff35aeef31ecfb9f7ee5a1717
JavaScript
flow-ai/flowai-js-templates
/lib/messenger/components/receipt/address.js
UTF-8
4,058
2.75
3
[]
no_license
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0...
true
7f49ce8da7f699455f165f9277b1fc2a479346af
JavaScript
andrewff/ac5-javascript-calculadora-time_edu_dan_and
/js/Calculadora.js
UTF-8
2,349
3.609375
4
[ "Apache-2.0" ]
permissive
function digitar(valor){ document.getElementById("resultado").value += valor; } function digitar_opr(valor){ resultado = document.getElementById("resultado").value; if (resultado != "" && resultado.indexOf("*")<=0 && resultado.indexOf("-")<=0 && resultado.indexOf("+")<=0 && re...
true
3f637872d64378a8befaa248e77404ec23a08638
JavaScript
rjbultitude/theconditionalorchestra
/src/scripts/modules/audio-helpers.js
UTF-8
1,865
3.046875
3
[]
no_license
var duplicateArray = require('../utilities/duplicate-array-vals'); module.exports = (function() { function addRandomStops(notesArray, sketch) { //duplicate notes var _newNotesArray = duplicateArray(notesArray, 1); var _randomStopCount = _newNotesArray.length / 2; var _randomIndex; //Add stops ...
true
968e80562b512ef601d8954cd02cc1db06940f93
JavaScript
TrevTheDev/mash
/tests/example code.test.js
UTF-8
5,856
2.578125
3
[ "MIT" ]
permissive
/* eslint-disable mocha/no-hooks-for-single-case */ /* eslint-disable mocha/no-setup-in-describe */ /* eslint-disable no-useless-escape */ /* eslint-disable no-unused-expressions */ import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import Server, { ShellHarness, u, sh } from '../src/server.js' cha...
true