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
00cfb992bf2f260902e9c7e509b1562f9c8fea48
JavaScript
swaheed2/thequranreciters
/src/reducers/AppReducer.js
UTF-8
456
2.578125
3
[]
no_license
const initialState = { drawerOpen: false } const AppReducer = (state = initialState, action) => { const newState = { ...state }; switch (action.type) { case 'TOGGLE_DRAWER': newState.drawerOpen = action.data != null? action.data : (!newState...
true
8137aabddfb131ff5fd3ef89b80295cac3347e58
JavaScript
JustinJoyce88/Movie-Reviews
/seeds.js
UTF-8
2,685
2.546875
3
[]
no_license
var mongoose = require("mongoose"); var movie = require("./models/movie"); var Comment = require("./models/comment"); var data = [{ name: "Blue Springs", image: "http://www.ringfineart.com/wp-content/uploads/2014/02/Blue-Springs-1.jpg", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit,...
true
8a5717f0807db9ed63b2db80f46877e09dd7e8d5
JavaScript
NathnaelDS/tefa
/src/hooks/useClickOutside.js
UTF-8
681
2.609375
3
[]
no_license
import { useEffect, useState, useRef } from "react"; function useClickOutside() { const [outside, setOutside] = useState(false); const ref = useRef(null); useEffect(() => { function handleClickOutside(event) { if (ref.current && !ref.current.contains(event.target)) { setOutside(true); } ...
true
e1e680bb05501171fa44cb6bbc77148f70eb407f
JavaScript
sahilbajaj82/FAKE-NEWS-DETECTION-SYSTEM
/Chrome extension/options.js
UTF-8
2,298
2.640625
3
[ "MIT" ]
permissive
/** *DISCLAIMER: Any Part or segment of the comments presented as documentation cannot be modified or removed without the proper permission from the current author. If any of the documentation in the public domain is found without proper credits and permission of the author, it will be dealt as plagiarism of the origi...
true
b883a804d202e7b1e899c3c08bf8eacb40731a3f
JavaScript
selinaliu/Chupa-Chups-Cinema
/seats.js
UTF-8
2,780
3.234375
3
[]
no_license
//reflect seats selected in input text function getSeats() { const checkboxes = document.querySelectorAll(`input[name="seat"]:checked`); let values = []; checkboxes.forEach((checkbox) => { values.push(checkbox.value); }); var element = document.getElementById('selectedSeats'); if (e...
true
4d76614491e3dafcca2d5d6265a29003f0a89b3c
JavaScript
DanAbb/statchat
/public_html/assets/script/stats/index.js
UTF-8
2,195
2.625
3
[]
no_license
import fetch from '../helpers/fetch'; import DataWidget from '../helpers/data'; import Moment from 'moment'; class Stats extends DataWidget { constructor(element) { super(); this.element = element; this.gameweek = this.element.dataset.gameweek; if (this.element) { this.getData(); } } ...
true
14bb09045eb190a309b77b9c8f03d9c2ae79de73
JavaScript
DanaBida/hunter
/clientBotHunter/bot-hunter/src/api/apiRequest.js
UTF-8
637
2.671875
3
[]
no_license
import config from '../config'; const fetch = require('node-fetch'); export async function apiRequest(reqUrl, method, body = undefined) { const { baseUrl } = config; const url = `${baseUrl}/${reqUrl}`; let reqSettings = { method }; if (body) reqSettings[body] = body; return fetch(url, reqSettings) .th...
true
0551ae0b801722d619cc29814015bfb7522d2de8
JavaScript
freearhey/iptv-checker
/src/cache.js
UTF-8
287
2.625
3
[ "MIT" ]
permissive
module.exports.add = add module.exports.check = check let cache = new Set() function add({ url }) { let id = hashUrl(url) cache.add(id) } function check({ url }) { let id = hashUrl(url) return cache.has(id) } function hashUrl(u) { return Buffer.from(u).toString(`hex`) }
true
56197134a271177b53ee595bfd38b6f75c44d77d
JavaScript
fdecampredon/rx-react-example
/todomvc/src/actions/todoActions.js
UTF-8
1,266
2.515625
3
[]
no_license
var { Action } = require('rx-flux'); var uuid = require('node-uuid'); var TodoService = require('../services/todoService'); var TodoActions = { /** * @param {string} text */ create: Action.create(function (text) { var todo = { id: uuid.v4(), text: text, complete: false,...
true
e3f943f4fe35319a7df5060a7e2c701c61771133
JavaScript
microcosm1994/chatApp
/web/src/lib/db/lib/utils.js
UTF-8
279
2.578125
3
[]
no_license
export default { /** * 去掉字符串中的全部空格 * @method:trim * @param:{string} str:需要处理的字符串 * @return:{string} 返回处理完成的字符串 * */ trim: function (str) { return str.replace(/\s*/g, ""); } };
true
df9da29b18ef49b471994010ae8b7c13764b6d52
JavaScript
uldash/frontend-lessons
/BOOK/05 JavaScript для детей/99 Solutions/JavaScriptForKidsSolutions/Programming Challenges/Chapter 4/Programming Challenge #2.js
UTF-8
205
3
3
[ "MIT" ]
permissive
var myCrazyObject = { "name": "A ridiculous object", "some array": [7, 9, { purpose: "confusion", number: 123 }, 3.3], "random animal": "Banana Shark" }; myCrazyObject["some array"][2].number; // 123
true
6ea954a5c8b0b7c04f3119386acde918a02710fa
JavaScript
davvidbaker/blog-old
/app/containers/Posts/postInstances.bak.1.js
UTF-8
447
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
/** * Be aware teat months go from 0 to 11 */ const postInstances = new Map(); postInstances.set('Figuring Out Posts', { filename: 'figuring-out-posts', dates: [new Date(2017, 2, 4)], }); postInstances.set('Title Goes Here', { filename: 'title-goes-here', dates: [new Date(2017, 2, 5)], }); postInstances.se...
true
74c3079c3865bb4dd1d0869fbcad846821ae7a6c
JavaScript
FernandoMartinezDiaz/registroDePersonas
/src/context/DatosContext.js
UTF-8
1,258
2.984375
3
[]
no_license
import React, {useEffect, createContext, useState} from "react"; import { database } from "../components/db"; export const DatosContext = createContext({}); export const DatosContextProvider = props =>{ //Obtener los valores iniciales para el conetexto //Se obtienen desde los props const{ notes: i...
true
7a30dc366d841ea463c24d50ef31a297a5a82217
JavaScript
IanSavchenko/AdventOfCode2018
/09/task.js
UTF-8
917
2.921875
3
[ "MIT" ]
permissive
let _ = require('lodash'); let fs = require('fs'); let util = require('../util'); // INPUT PROCESSING let data = fs.readFileSync(__dirname + '/input.txt', 'utf8').trim(); let input = data.split(' '); let players = +input[0]; let last = +input[6]; // PART 1 let part1 = 0; let calc = function(players, last) { let m ...
true
d9c4063d38d8f3c628db242d7062bca87183a61f
JavaScript
phuocduc/serria-react-weather
/src/App.js
UTF-8
3,152
2.53125
3
[]
no_license
import React,{useState,useEffect} from 'react'; import "bootstrap/dist/css/bootstrap.min.css"; import { css } from '@emotion/core'; // First way to import import './App.css'; import MoonLoader from 'react-spinners/MoonLoader'; import Moment from 'react-moment'; // Can be a string as well. Need to ensure each key-val...
true
1bb2a02395fe6b7a09af3aca8078f2169650fa8b
JavaScript
vasilchavdarov/JavaScript-Core
/Exam JS Advanced/p02/tests.js
UTF-8
4,994
2.765625
3
[ "MIT" ]
permissive
const PaymentPackage = require('./Solotion'); let expect = require('chai').expect; describe("PaymentPackage Tests", function() { let payment; beforeEach(function () { payment = new PaymentPackage('Consultation',800); }); it("It should have initialized all methods", function() { expect(O...
true
3befbab6d4d13c22e9ec1dc7d2502468d9712234
JavaScript
ericelliott/hoodie.js
/test/specs/extensions/share.spec.js
UTF-8
15,924
2.53125
3
[ "Apache-2.0", "FSFAP", "BSD-3-Clause", "MIT", "LicenseRef-scancode-public-domain-disclaimer" ]
permissive
describe("Hoodie.Share", function() { beforeEach(function() { this.hoodie = new Mocks.Hoodie; this.share = new Hoodie.Share(this.hoodie); return spyOn(this.share, "instance"); }); describe("constructor", function() { return it("should extend hoodie.store API with share / unshare methods", function...
true
7cbe05fc085e330b86e3af8c940d9ec9d99e461e
JavaScript
gr11222/write
/JS/Vue/2.js
UTF-8
459
2.546875
3
[]
no_license
let fs = require('fs') fs.readFile("axios.md", () => { console.log(2222222222) setImmediate(() => { console.log('timeout1') Promise.resolve().then(() => console.log('promise resolve')) process.nextTick(() => console.log('next tick1')) }); setImmediate(() => { console.log('timeout2') process.next...
true
cfd16d0f1e7dff2d2288ef45376ebf55ec62dfde
JavaScript
rgsphilip/DiscreteNode
/public/setCheckpoint/unionIntersection.js
UTF-8
2,837
3.15625
3
[]
no_license
(function() { var generateSet = function() { //Generates the specific set used in the checkpoint question var setC = setGenerate(5, 5), setD = setGenerate(4, 4), union = setUnion(setC, setD), intersection = setIntersection(setC, setD), unionCard = setC...
true
8b9a1a909c20bdb3e140e2adcdc6e0aeeaa34172
JavaScript
hipsterhead91/symptom-desktop
/scripts/account.js
UTF-8
2,442
2.75
3
[]
no_license
// PROFILE VALIDATION class profileFormValidator extends FormValidator { constructor(formSelector) { super(formSelector); this._editButton = this._form.querySelector('#profile-edit-button'); this._nameInput = document.querySelector('#profile-name'); this._name = this._nameInput.value; this._surn...
true
88de65f54fc0e921361b2a50880bb009f0270494
JavaScript
geraldani/react-utils
/src/Components/Sticky/StickyElement.js
UTF-8
2,609
2.71875
3
[]
no_license
import React, { useState, useRef, useEffect } from 'react' import { StyledContainer } from './styles' import { totalHeight } from '../utils/Utils' const totalBox = (elem) => {// retorna la suma del borde, margen y padding de un elemento del DOM const styles = elem ? window.getComputedStyle(elem) : '' //obtengo los e...
true
152ce2dade12ee1c43ae2c992de1686c0b9ac434
JavaScript
kyunyan/node-study
/server1.js
UTF-8
2,504
3.140625
3
[]
no_license
const http = require("http"); /** http 모듈을 이용하여 서버프로그램으로 만들어준다 노드 자체가 서버가 아니다 노드는 런타임 http 모듈이 서버역활을 하는거고 http 모듈을 이용하여 서버로 만들어준다. */ /* http.createServer((req, res) => { // 방문이라는 것이 기본적으로 세팅 되어있다. console.log("서버 실행"); // 사람들이 서버에 들어오면 자동적으로 실행 // 요청이 왓을때 꼭 수락해야 하는 것은 아니고, 거절할 수도 있습니다. ...
true
cb73a80628930a60a3b0790064c2181c85756ac4
JavaScript
vince4128/React-with-Redux
/blog/src/reducers/reducer_posts.js
UTF-8
743
2.625
3
[]
no_license
import _ from 'lodash'; import { FETCH_POSTS, FETCH_POST, DELETE_POST } from '../actions'; export default function(state = {}, action){ switch(action.type) { case DELETE_POST: return _.omit(state, action.payload.id); case FETCH_POST: /*const post = action.payload.data; ...
true
a2c321dd913b93f1e20376e640b8c5ce0950de5c
JavaScript
chernikov/platform
/platformAthletic/Media/scripts/admin/edit-user-season.js
UTF-8
1,947
2.53125
3
[ "MIT" ]
permissive
function EditUserSeason() { _this = this; this.ajaxUpdateByWeek = "/admin/UserSeason/UpdateByWeek"; this.ajaxUpdateBySeasonAndDate = "/admin/UserSeason/UpdateBySeasonAndDate"; this.daysToDisable = [1, 2, 3, 4, 5, 6]; this.init = function () { $("#WeekID").change(function () { ...
true
269b95b46d08a490ff029a942c85e1ab06ec2646
JavaScript
meytirm/portfolio
/src/javascript/theme.js
UTF-8
875
2.765625
3
[]
no_license
const btn = document.querySelector(".btn-toggle"); const currentTheme = localStorage.getItem("theme"); if (currentTheme == "light") { document.body.classList.add("light-theme"); document .querySelector(".btn-toggle .ion-ios-moon") .classList.add("setting__theme--is-active"); } else { document .querySe...
true
4ba2d0fc34b77a4efc4f96aab38fc93a05b7a4e7
JavaScript
Gia1987/Hoover-react
/src/App.js
UTF-8
2,451
2.75
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import Grid from './component/Grid/Grid.js' import Hoover from './component/Hoover/Hoover.js' import Dirty from './component/dirty/dirty.js' class App extends Component { constructor(props) { super(props); this.state = { GridX: null, ...
true
e1eab0cd8b1948098c7f22361e6e4b903b15c0b5
JavaScript
Mshuu/cplweb
/src/models/PollData.js
UTF-8
2,252
2.625
3
[]
no_license
import ClearpollApi from './webApi'; import State from './state'; import Poll from './Poll'; const TEN_MINUTES = 10 * 60 * 1000; class PollData { constructor(){ this.pollCache = {}; this.voteCache = {}; this.voteCacheFetched = false; } async _prefetchCheck(){ if(!State.isLoggedIn()) throw new E...
true
329c4c689371d572827944690166494f3eed9b32
JavaScript
meekoder/toy-problems
/codesignal/bubbleSort.js
UTF-8
418
3.609375
4
[]
no_license
function bubbleSort(items) { const swap = (firstIndex, secondIndex) => { const temp = items[firstIndex]; items[firstIndex] = items[secondIndex]; items[secondIndex] = temp; } const len = items.length; for (let i = 0; i < len; i++) { const stop = len - i; for (let j = 0; j < stop - 1; j++) { ...
true
6ba25974d0c3534ea33f6d6b34957576a245f201
JavaScript
gillescastel/revealjs.com
/js/components/navigation.js
UTF-8
1,657
2.65625
3
[]
no_license
export default () => { let sidebar = document.querySelector( '.sidebar' ); if( sidebar ) { // Update the selected item in the navigation to // match the current URL & hash. let updateSelection = () => { let currentURL = window.location.pathname.replace( /\/$/, '' ) + '/' + window.location.hash; let newS...
true
7945f3403a4fdb14ba3d699eb698c6952a7321c1
JavaScript
SushiWorld/Nha-hang-SushiWorld
/public/admin_asset/dist/js/from.js
UTF-8
1,635
2.734375
3
[]
no_license
function contact() { var hoten = document.myform.hoten.value; var sdt = document.myform.sdt.value; var email = document.myform.email.value; var atposition = email.indexOf("@"); var dotposition = email.lastIndexOf("."); var textarea = document.myform.textarea.value; var submit = document.myfo...
true
8ba14c7f6751a990323156fc379081e853505c12
JavaScript
davidmstanleyjr/Bootleg-iTunes-Site
/js/app.js
UTF-8
1,321
3.171875
3
[]
no_license
//Selector's for getting elements on the page. const container = document.querySelector('.container'); const artistImage = document.querySelector('.artist'); const media = document.querySelector('.media'); const overlay = document.querySelector('.overlay'); const searchElem = document.querySelector('#search'); //Retr...
true
d76d262678b4a8ce6cd759b7670a5ad3ca78b7c4
JavaScript
Shawntaria91/KINGSLAND-FULL-STACK
/JS Fundamentals/TEXT PROCESSING/EXERCISE 22/extractFile.js
UTF-8
734
3.6875
4
[]
no_license
// Write a function that receives a single string - the path to a file (the '\' character is escaped) // Your task is to subtract the file name and its extension. (Beware of files like template.bak.pptx, as template.bak // should be the file name, while pptx is the extension). function main(filePath) { extrac...
true
941cf16fcc9847168c66e8cee1e76c1ad9814277
JavaScript
crane0/algorithm
/第2遍/044子集.js
UTF-8
765
3.828125
4
[]
no_license
/* https://leetcode-cn.com/problems/subsets/ */ /* 使用分治的思想 将 nums 数组当前 index 的内容分为填充,和不填充到 list 中的2种情况。 list 就是要填充到 ans 中的元素。 */ /* 使用分治的思想 将当前位置分为填充,和不填充2种。 */ /** * @param {number[]} nums * @return {number[][]} */ var subsets = function(nums) { if (nums.length === 0) return [] let ret = [], queu...
true
47d699050f30df0949f93c965febf210147285c9
JavaScript
lax4mike/set
/app/js/card/CardParams.js
UTF-8
1,020
2.5625
3
[]
no_license
var CardParams = module.exports = { // Colors colors: { RED : 'red', PURPLE : 'purple', GREEN : 'green' }, // Counts counts: { ONE : 1, TWO : 2, THREE : 3 }, // Shades shades: { SOLID : 'solid', STRIPED ...
true
dd74a1480e4b6931e892a037eeb5317761ce1854
JavaScript
vagner531/ProjetoIBM-Brother-Fiap-
/js/contato.js
UTF-8
850
3.15625
3
[ "MIT" ]
permissive
function EnviarContato() { var nome = document.querySelector('#nome').value; var rm = document.querySelector('#rm').value; var email = document.querySelector('#email').value; var msg = document.querySelector('#msg').value; // Validação if (nome.length == 0) { alert('Nome está vazio!'); document.que...
true
a31e544cabdbd7279830d7026ccb66b553375a6d
JavaScript
ezaznitd/Certificate-of-joining
/Certificate/certificate.js
UTF-8
884
2.765625
3
[]
no_license
var today = new Date(), month = '' + (today.getMonth() + 1), day = '' + today.getDate(), year = today.getFullYear(); if (month.length < 2) month = '0' + month; if (day.length < 2) day = '0' + day; document.getElementById('date').innerHTML = month+"/"+day+"/"+year; var myApp = new function () { this.prin...
true
8067bd2ae74b3a0b2e465b271cd1c5938b9acfc8
JavaScript
yd160513/learn-algorithm-javascript
/1. 二分查找法/二分查找法.js
UTF-8
2,551
4.59375
5
[]
no_license
/** * 在一个有序列表 list 中寻找 target, 存在则返回 target 在 list 中的索引,反之返回 -1 * 1. 初始化的时候获取一个开始的索引值 startIndex 和一个结束的索引值 endIndex,用来维护动态区间 * 2. 如果 startIndex <= endIndex 说明这个区间就是有值的,就需要取比对 * 3. 通过 (startIndex + endIndex) / 2 得到区间的中间的那个值对应的索引 middleIndex * 4. 通过 middleIndex 获取对应的 middleValue * 4. 用 middleValue 和 target 相比:...
true
c425a4f43380e7390b96bd3f7e6afd9cec924c7f
JavaScript
mthom26/sorcha-website
/src/components/gigs/Gigs.js
UTF-8
2,506
2.90625
3
[ "MIT" ]
permissive
import React from 'react'; import './Gigs.css'; import GigEntry from './GigEntry'; import PageHeader from '../PageHeader'; const Gigs = ({ data, localeData }) => { const dataFormatted = splitData(data); //console.log(dataFormatted); return ( <div> <PageHeader title={`${localeData.headerText}`} classes...
true
8b1c850083ffb22f9d1f0b7e46aa8893ad9a87d8
JavaScript
ohtaegwan03/admin
/js_ex01.js
UTF-8
247
3.09375
3
[]
no_license
//1. function showMessage(){ alert("김규하 저리가!"); } showMessage(); showMessage(); //2. function addToNumbers(a,b){ return a+b; } //3. let sayHi = function(){ alert ("Hello"); }
true
c4e991b93fbc0805b2e74c316fe5570756b1c5e3
JavaScript
AdamAtri/resume-app
/src/js/views/resume-view/education.js
UTF-8
806
2.640625
3
[]
no_license
// EducationView // Display my education info module.exports = (function() { const template = (data) => { let eds = data.education.map(ed => { return (` <hr> <div class="educator"> <h6 class="ed-degree">${ed.degree}</h6> <div class="ed-details"> ${ed.schoo...
true
e5f0937f3bad884b26134e8a79086ba1efe67c7f
JavaScript
BonkHo/color-flipper
/script.js
UTF-8
1,093
3.640625
4
[]
no_license
// Finds the background color of body and shows what color it is let body = document.querySelector('body'); let bodyStyle = window.getComputedStyle(body); let bodyBackground = bodyStyle.getPropertyValue('background-color'); document.getElementById("background-color").innerHTML = 'Periwinkle'; // If the button is click...
true
fbafe389587b006e6a3b55c5215a56fac215b5ee
JavaScript
ayub0809/Mars-Rover-MS
/src/marsRover/Algos/dijkstra.js
UTF-8
1,878
3.296875
3
[]
no_license
export function dijkstra(grid, start, finish) { const visitedNodesInOrder=[]; start.distance=0; const unvisitedNodes=getAllNodes(grid); while(!!unvisitedNodes.length) { sortNodesByDistance(unvisitedNodes); const closestNode=unvisitedNodes.shift(); if(closestNode.isWall===true...
true
2f3e6653d3abe0c5ec99f41743dcfbc161d5ee3c
JavaScript
angieprasanti/My-Pet-Cat
/script.js
UTF-8
10,127
3.390625
3
[]
no_license
// GLobal Scope & things that runs when the page is loaded. const larry = document.getElementById('larry'); const petPercent = document.getElementById('pet-percent'); const hungerPercent = document.getElementById('hunger-percent'); const date = document.getElementById('date'); const secretButton = document.getElem...
true
0881e3cd0d77bc3a78e4b5565e90159e51d22d94
JavaScript
hayatbiralem/js-swiper
/js-swiper.js
UTF-8
3,746
2.6875
3
[ "MIT" ]
permissive
(function(global){ var JSSwiper = function(el, options){ this.el = el; this.options = options || {}; this.first = null; this.last = null; this.moved = 0; this.precision = 50; this.events = { swipeLeft: null, swipeRight: null, ...
true
490efce6f4a4271bf751416e30aae947c6c781f4
JavaScript
JWCosta/Hackingflix
/src/repositories/index.js
UTF-8
368
2.546875
3
[]
no_license
import URL_BACKEND from "../config"; const URL_CATEGORIES = `${URL_BACKEND}/categorias`; function getAllCategories() { return fetch(`${URL_CATEGORIES}`).then(async (res) => { const retorno = await res.json(); if (retorno) { return retorno; } throw new Error("Não foi possível buscar os dados !!...
true
77d8b3fe9ad5ac938f9603cf309c18f884871240
JavaScript
xAaronWx/ElevenFiftyProjects
/JavaScript-Library/1-JavaScript-Basics/04-booleans.js
UTF-8
1,045
3.859375
4
[]
no_license
let isLoggedIn = true; let isAuthenticated = true; let hasLoggedInToday = false; let hasToken = false; // == Equality // === Strict Equality // != Inequality // !== Strict Inequality // > Greater Than // >= Greater Than or Equal to // < Less Than // <= Less Thank or Equal to console.log(2 > 1); //true...
true
d8ed5bc3078d164fec939112d9ea90cf435c4ed0
JavaScript
xndybxy598/class-79
/main.js
UTF-8
771
3.21875
3
[]
no_license
var NoS_Array = []; function submit(){ var name1 = document.getElementById("NoS#1").value; var name2 = document.getElementById("NoS#2").value; var name3 = document.getElementById("NoS#3").value; var name4 = document.getElementById("NoS#4").value; NoS_Array.push(name1); NoS_Array.push(...
true
73cc0867b69e2a4b507ec3e937e347402a513a26
JavaScript
jiankailee/event-locator
/frontend/eventlocator/src/components/landing/localEventBox.js
UTF-8
4,623
2.546875
3
[]
no_license
import React, { Component } from 'react'; import 'leaflet/dist/leaflet.css'; import '../../App.css'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; class eventInfoBox extends Component { state = { allLocation: [], privateLocation: [], } truncate_descri...
true
cbf2229409f16dd05fa1cafa836308b4e2887912
JavaScript
PKpRedeemingTime/Algorithms
/chapter2_fund_partII/pg33/extractOMatic.js
UTF-8
447
3.5
4
[]
no_license
function extractDigit(num,digitNum) { var test = num; var digits = 1; while(test > 9) { test = Math.floor(test*.1); digits++; } if(digitNum >= digits) { console.log("Error: The number doesn't have that many digits"); return; } test = num; while(digitNum > ...
true
c70ddf6e94777e614e49424f6163efb006bdfde6
JavaScript
mtmarsh2/InstaSellProject
/sellposts/static/sellposts/js/individualsellpost.js
UTF-8
4,911
2.625
3
[]
no_license
$("body").onload = start(); var shouldChange = true; function start() { load_disqus(); load_rating_html() } //loads proper stars for each sellpost function load_rating_html() { //grab all rating container divs and find each sellpost's respective rating var rating_container_list = $('.starratings') var current_...
true
ff9ad834cc9c25c7206faea0e4423f27b3e1b47a
JavaScript
Izowirus/Website
/controller.js
UTF-8
1,595
2.59375
3
[]
no_license
var app = angular.module('app', []); app.controller("controller", function ($scope) { $scope.parameter = { name: '', age: '', color: 'red', size: 'S' }; $scope.myStyle = { width: '0px', height: '0px', background: 'white' }; $scope.par...
true
f30d26d465ecb2c03f1940ce865af5f954d1d6cc
JavaScript
tylerdburrell/Fishing-Diary
/src/components/edit-trip.component.js
UTF-8
5,751
2.546875
3
[]
no_license
import React, {Component} from "react"; import axios from "axios"; import DatePicker from "react-datepicker"; import TimePicker from "react-time-picker"; import "react-datepicker/dist/react-datepicker.css"; export default class EditTrip extends Component{ constructor(props){ super(props); this.onC...
true
1e7b3158721e7d5fddc915665e1289802beea156
JavaScript
8906pijush-singha/FuncWithJs
/Gambler.js
UTF-8
1,695
3.484375
3
[]
no_license
/************************************************************************* * @ purpose :understanding Math.random() in js * @author Pijush Singha * @version 1.0 * @since 25/09/2018 *************************************************************************/ /* *require(path) is used to access the utility file funct...
true
8aec301a73d8d2ed5b167031fa01de713a0f23ff
JavaScript
bishopZ/synesthetic
/public/js/canvas.js
UTF-8
5,558
2.96875
3
[ "MIT" ]
permissive
define([ 'jquery' ], function($) { var context = null, centerX = 0, centerY = 0, radius = 0; var Canvas = { element: null, ctx: null, centerX: 0, centerY: 0, clearAll: function() { if (!context) return; context.clearRe...
true
47307ea8eb27102e967f5ce7902d03607e321cc0
JavaScript
carlos-palalo/2_DAW
/DWEC/TemarioDWEC/Tema1/teoria/ejemploTernario.js
UTF-8
145
3.328125
3
[]
no_license
var resultado; resultado=(true)?"Es verdadero":"Es falso"; console.log(resultado); resultado=(4>7)?"Mayor":"Menor"; console.log(resultado);
true
a105a37e58cdad0de714163d7f418217f477efd0
JavaScript
creeperyang/cepto
/src/core-init.js
UTF-8
2,270
2.609375
3
[ "MIT" ]
permissive
'use strict'; var util = require('./util.js'); var cepto = require('./core-core.js'); var reId = /^#([\w-]+)$/; var init = function(selector, context) { var match; var dom; // HANDLE: $(""), $(null), $(undefined), $(false) if (!selector) { return this; // Handle strings } else if (t...
true
09c812052bbca6f5db83e0594a6a99dbed4733f4
JavaScript
Tungnh89/BaiTapCty
/src/components/ListProduct/index.jsx
UTF-8
1,169
2.625
3
[]
no_license
import React, { useState } from 'react'; import './styles.css'; const ListProduct = ({ todo }) => { console.log("props in file ListProduct : ", todo); const [check, setCheck] = useState(todo); const handleCheckbox = (e) => { const newCheck = [...check]; // console.log(...
true
c0f19d4993a0e18fff9582bde390a911424e381c
JavaScript
Zeniker/Distorcao
/js/controllers/simulador.controller.js
UTF-8
8,503
2.6875
3
[]
no_license
angular .module('distorcao') .controller('simuladorController', simuladorController); function simuladorController() { var vm = this; //Funções vm.novoCombatente = novoCombatente; vm.removeCombatente = removeCombatente; vm.importaAcoes = importaAcoes; vm.teste = teste; ...
true
c2da2c1f2ad708c545ff14e97675c49b385865da
JavaScript
GuRuGuMaWaRu/test_calc
/src/tests/parsers.test.js
UTF-8
5,728
2.875
3
[]
no_license
import { handleKeyboardInput, maxOperatorNumber, maxNumberLength, maxDecimalDotLength, maxCharacterNumber, parseInput, deleteInput } from '../utils/parsers'; describe('handleKeyboardInput', () => { it('returns a string for a pressed key', () => { expect(handleKeyboardInput({keyCode: 48, shiftKey: f...
true
9db0e87f9a0bb3decc64208aad031bac65761e56
JavaScript
conveyal/modeify
/client/planner-walkthrough/index.js
UTF-8
1,902
2.53125
3
[ "BSD-3-Clause" ]
permissive
var config = require('../config') var introJs = require('intro.js').introJs /** * Expose a function to activate the walktrhough */ module.exports = function walkthrough () { var intro = introJs() intro.onbeforechange(function (el) { if (el.classList.contains('option')) { var simple = el.querySelector...
true
05647ff7e4258780125877353f7e0606640cbe66
JavaScript
IAmFiveHigh/Html
/q&a/js/rankingJS.js
UTF-8
2,432
2.75
3
[]
no_license
/** * Created by meitiannongzi on 2017/9/22. */ window.onload = function () { var requset = new XMLHttpRequest() requset.open("POST", "http://192.168.3.3:8888/under/app/findWenDaJiLu", true) requset.setRequestHeader("Content-type","application/x-www-form-urlencoded"); requset.send("OPENID=" + "111...
true
1005fe34da19302395b1b144466a56b7fef1f5c9
JavaScript
xMrShadyx/SoftUni
/Java Script Basic - April 2020/Simple_Operations_and_calculations_Exercise/05_Dance_Hall.js
UTF-8
419
3.1875
3
[]
no_license
function DanceHall(l, w, a) { let side1 = Number(l); let side2 = Number(w); let side3 = Number(a); let hall_width = (side1 * 100) * (side2 * 100) let wardrobe = (side3 * 100) * (side3 * 100) let bench_size = hall_width / 10 let free_space = hall_width - wardrobe - bench_size let last = ...
true
41b8df17b04e3f7942cfbec9af35df0152eb8e24
JavaScript
Rconduru/ApresentacaoJs
/frontend/src/components/controller/index.jsx
UTF-8
1,684
2.609375
3
[]
no_license
import React, { Component } from 'react' import './controller.scss' import 'fontAwesome' import { w3cwebsocket as WebSocketClient} from 'websocket' import websocketAddress from '../../helpers/websocketAddress' export default class Controller extends Component { constructor(props){ super(props) const client ...
true
1818f053720549377da5aaf01a026e8e72853a4d
JavaScript
PabloGomezCalvo/Macalcan.github.io
/js/menu_scene.js
UTF-8
1,240
2.515625
3
[]
no_license
var titlescreen; var MenuScene = { create: function () { var menuImage = this.game.add.tileSprite(0, 0, 800, 600, 'menuBackground'); menuImage.scale.setTo(1.5,2); var button = this.game.add.button(400, 300, 'button', ...
true
8bbf350b0bbf460148a20ae9b8f9f67e07d88750
JavaScript
vishsahane/react-code-generator
/server/helpers/common-helper.js
UTF-8
465
2.703125
3
[]
no_license
module.exports = { pascalCase: (str, splitting = " ") => { return str .split(splitting) .map((e) => e[0].toUpperCase() + e.slice(1).toLowerCase()) .join(""); }, camelCase: (str, splitting = " ") => { return str .split(splitting) .map((e, i) => { return i === 0 ? e : e[0].toUpperCase() + e.slic...
true
027d09789a221c5ee07f6d25c655da3a725b5770
JavaScript
notza6982/Numerical
/backup/my-app/src/App.js
UTF-8
323
2.703125
3
[]
no_license
/*import express from 'express'; const app = express(); app.listen(3000, () => console.log('Example app listening on port 3000!'), ); var server = app.listen(8081, function () { var host = server.address().address var port = server.address().port console.log("Application Run At http://%s:%s" ,host , port) });...
true
fb8937bf6047e1233c1897a333c3f6a1d976733b
JavaScript
colindresj/trellis
/test/trellis_test.js
UTF-8
2,768
2.84375
3
[ "MIT" ]
permissive
(function($) { /* ======== A Handy Little QUnit Reference ======== http://api.qunitjs.com/ Test methods: module(name, {[setup][ ,teardown]}) test(name, callback) expect(numberOfAssertions) stop(increment) start(decrement) Test assertions: ok(value, [message]) ...
true
d7fc87a2fb31ec155b6a75b58214e6cdbdb1c2d6
JavaScript
butterScotch-xx/Map
/resources/script/utils/layout.js
UTF-8
4,406
2.875
3
[]
no_license
// The layout.js file returns an object which reads / write to the local storage in the browser // and stores the information in a local object. Responsibily for updating when the user uses // dnd.js or resize.js and save the information accordingly will be deligated to those files define(['utils'], function (Utils) ...
true
01561761edb1ba0e50e132fd69b6bb622bcaa24f
JavaScript
teemulin/HH_mobiiliohjelmointi
/Find_address/App.js
UTF-8
2,949
2.65625
3
[]
no_license
import { StatusBar } from 'expo-status-bar'; import React, { useEffect, useState } from 'react'; import { Alert, Button, StyleSheet, TextInput, View } from 'react-native'; import MapView, { Marker } from 'react-native-maps'; import * as Location from 'expo-location'; export default function App() { const key = "ins...
true
35179ed8671d627e0eda7bc27f4cf96a55056803
JavaScript
theethiopian/subclass-dance-party
/src/mo.js
UTF-8
632
2.515625
3
[]
no_license
var moDancer = function(top, left, timeBetweenSteps){ albreyDancer.call(this, top, left, timeBetweenSteps); this.$node.addClass('mo'); this.$node.removeClass('brey'); }; moDancer.prototype = Object.create(makeDancer.prototype); moDancer.prototype.constructor = moDancer; moDancer.prototype.step = function(){ ...
true
6187e6d02f8d742044208607f144ef5fa68e51cd
JavaScript
pbarnard1/proj_algos_june_2021
/removeDuplicates.js
UTF-8
1,066
4.40625
4
[]
no_license
/* Efficient implementation of removing duplicates from a sorted array: */ function removeDuplicates(arr) { if (arr.length <= 1) { // If empty or only has one element, don't bother - no duplicates possible return; } var storageIndex = 1; // Index for where we will store nonduplicate values var ...
true
5a17e10f334e27ed82df7011dbb607f88e765736
JavaScript
amgadfahmi/js-binarysearch
/spec/mainSpec.js
UTF-8
2,620
3
3
[ "MIT" ]
permissive
console.log('Starting ...'); define(['BS'], function(BS) { describe("Initialize", function() { it("instance", function() { var bs = new BS([1, 2]).internalArray; expect(bs.length).toBe(2); }); }); describe("Initialize", function() { it("wrong contructor"...
true
e0f378015f7085daed34dc7ea4a1ef4599474ec0
JavaScript
buschjo/myDataMixer
/graphCreator.js
UTF-8
5,185
3.0625
3
[]
no_license
class GraphCreator { createCustomGraph(categories) { var traces = []; var id = ''; var label = ''; var moreSpaceNeeded = false; categories.forEach(category => { // datasource is not the same as a datasource from the constant list of datasources. It is a datastru...
true
b8179f016ab74902d6d5251144c214e019af62a7
JavaScript
frkator/fm-js
/src/ut/ut.UtTimer.js
UTF-8
1,689
2.703125
3
[ "Apache-2.0" ]
permissive
/** * Timer class. <b>Ovo bi trebalo srediti da extend FM.object</b> * * @class FM.UtTimer */ FM.UtTimer = function() { //this._init.apply(this, arguments); // new poziva _init() } FM.extendClass(FM.UtTimer,null); // properties FM.UtTimer.prototype.objectSubClass = "UtTimer"; // static FM.UtTimer.className = "U...
true
c0c885a4d970081f5274665550c548e814d556fa
JavaScript
ikoronka/tictactoe
/tictactoe.js
UTF-8
3,974
4.09375
4
[]
no_license
// OK, just so you know, i really wanted to die while checking if anyone's won.innerHTMLyet, so i took an itsy bitsy peek at the documentation of this "problem" // VARIABLES var tds = document.getElementsByTagName("td"); var xtimes = 0; //when to stop putting X and Os var numXOs = 0; var win = 0; var won = $("#win").g...
true
459c0fb56ccc9a3f397bd550cb7d25bb76d95d61
JavaScript
laarniastrid/angular-class
/modern-javascript/features/es5/object-keys.js
UTF-8
832
4.3125
4
[]
no_license
var dictionary = { "yolo": "what you say before doing something crazy", "gg": "good game, also used sarcastically when you win", "swag": "swag swag" }; var keys = Object.keys(dictionary); var upperKeys = keys.map(function(key) { return key.toUpperCase(); }); console.log(upperKeys); // ----- var obj1 = { "...
true
b1a543b8e3a5f21d959cc7b06579e94b5e18a545
JavaScript
harwoodjp/vivino-wine-scrape
/index.js
UTF-8
1,002
3.171875
3
[]
no_license
const fs = require("fs") const puppeteer = require("puppeteer") const scrape = async () => { const browser = await puppeteer.launch() const page = await browser.newPage() await page.goto("https://www.vivino.com/users/justin.harwood") // Returns array of unstructured wine data strings const wineStrArray = a...
true
dbf591f22eeb90bfe69c7df2e6696a175506d716
JavaScript
jacob-zietek/Life_Cycle_Of_Your_T-Shirt
/Code/JavaScript/LCOYT_UIManager.js
UTF-8
2,122
3.1875
3
[]
no_license
class UIManager { constructor(){ this.JSONManager = new JSONManager(); document.getElementById("submitButton").onclick = () => { this.loadInfo(document.getElementById("companyNameInput").value); } } loadInfo(inputCompany){ var company = this.JSONManager.searchFor...
true
53aaadf6b16d793532d3e23195be9fef4ed29582
JavaScript
Abdul-Sayed/ioChat
/public/app.js
UTF-8
4,156
3.28125
3
[]
no_license
/* Variable Declarations */ // h1 greeting const greeting = document.querySelector('#banner'); // section with login form const userFormArea = document.querySelector('#user-form-area'); // form for username with input and button const userForm = document.querySelector('#user-form'); // input element for userna...
true
5b87a8b8dcda61cafc2a1d187c52461a406f8ca0
JavaScript
vla9isla8/arkanoid
/js/ball.js
UTF-8
1,750
3.1875
3
[]
no_license
function Ball(gameZone, context) { this.context = context; this.size = gameZone.blockSize; this.x = gameZone.x1 + Math.floor(gameZone.width / 2 ); this.lastY = this.y; this.y = gameZone.y1 + gameZone.height - 2 * gameZone.blockSize; this.vector = new Victor(this.size/Math.sq...
true
b05b72c6cefc0fa679ef2ecbc52eb95d70683637
JavaScript
suryansh54/react-router
/src/components/employees-components/Employees.js
UTF-8
850
2.921875
3
[]
no_license
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; export function Employees() { // useEffect runs when component mounts useEffect(() => { fetchEmployees(); }, []) // Setting state of the application const [employees, setEmployees] = useState([]); ...
true
0c648f6ebffa5f4510ab90c239698f2dd81e4094
JavaScript
haotiaz/Todo-List
/index.js
UTF-8
1,713
3.4375
3
[]
no_license
// var list=document.getElementsByTagName("ul")[0]; // list.addEventListener('click',function(event){ // if(event.target.tagName="LI"){ // event.target.classList.toggle("checked"); // } // },false); var nodeList=document.getElementsByTagName("LI"); for(let i=0;i<nodeList.length;i++){ var close = d...
true
c6a53e52c7c5ca3443855bc49d9cd89e488b1a9f
JavaScript
brockinit/goux-bot
/handler.js
UTF-8
1,802
2.515625
3
[]
no_license
'use strict'; const request = require('request-promise-native'); const { GROUP_ME_API, GIPHY_API } = require('./config'); async function getFailGif() { const giphy = { baseURL: GIPHY_API, key: 'dc6zaTOxFJmzC', tag: 'fail', type: 'random', rating: 'r' }; const giphyURL = giphy.baseURL + gi...
true
ecab458e1c09c309759386495d5397bb3acc85f9
JavaScript
Napper15/cs360
/nodeWeatherAPI/nodeLab/routes/index.js
UTF-8
2,535
2.703125
3
[]
no_license
var express = require('express'); var fs = require('fs'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { res.sendFile('weather.html', { root: 'public' }); }); router.get('/getcity',function(req,res,next) { // console.log("In getcity route"); var myRe = new RegE...
true
7f3920aa98c0216f615aef43fa816aa98b6222bb
JavaScript
jdavidpeery/covid4connect
/src/index.js
UTF-8
12,947
3.078125
3
[]
no_license
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import './index.css'; function Square(props) { if (props.color === 'white') { return ( <div class='box has-text-white has-text-centered is-size-5'>⬤</div> ); } else if (props.color === 'blue') { return ( ...
true
162dea71d79aa9403159cd4410e44f01e36181be
JavaScript
iamrahman/traffic_light_javascript
/js/script.js
UTF-8
2,998
2.828125
3
[]
no_license
function myFunction() { nextSignaly3(); setTimeout(function(){ document.getElementById("greenleft").style.backgroundColor="green"; document.getElementById("redright").style.backgroundColor="red"; document.getElementById("greendown").style.backgroundColor="#d6d6c2"; document.getElementById("redup...
true
b2d38674209f04dc5a6630e72a6766b8bb8577ef
JavaScript
ShaneMarusczak/Battleship-JS-Analysis
/js/battleship_analysis.js
UTF-8
20,613
3.375
3
[ "Unlicense" ]
permissive
"use strict"; (function () { const rows = 10; const cols = 10; const squareSize = 50; const gameBoard = []; const gameBoardContainer = document.getElementById("gameboard"); const probabilityChart = []; //inclusive const randomIntFromInterval = (min, max) => Math.floor(Math.random() * (max - min + 1...
true
246f719f00b294941be14c1e511624658995f3eb
JavaScript
junjun19971111/class-code
/practice-7.js
UTF-8
998
3.96875
4
[]
no_license
class Person{ constructor(name,age){ this.name=name; this.age=age; } introduce(){ return 'My name is '+this.name+'.I am '+this.age+' years old'; } } class Student extends Person{ constructor(name,age,klass){ super(name,age); this.klass=klass; } introdu...
true
72e7d0654d4f662f4c21556f8b93438def9690b6
JavaScript
eliamue/e-commerce-site-lab
/cart/cart.js
UTF-8
922
2.734375
3
[]
no_license
import { renderCartItem, checkoutTotal } from './render-cart-items.js'; import { getCart } from './local-storage-utils.js'; const cartItems = getCart(); const anchor = document.querySelector('tbody'); const total = document.getElementById('total'); for (let item of cartItems) { const tableRow = renderCartItem(i...
true
9ed561ec59e13e9952491e0c706892603d4cd671
JavaScript
ttrbazar/Bootcamp-projects
/2020.10.15 - 04-Tip-Calculator/script.js
UTF-8
1,092
3.875
4
[]
no_license
let billArr = [124, 48, 75, 268, 22, 44, 88, 100, 200]; let totalBudget = 2000; // let firstBill = 124; // let secondBill = 48; // let thirdBill = 75; // let fourthBill = 268; function calculateTips(bill) { let percentage; if (bill < 50) { percentage = .2; } else if (bill >= 50 && bill < 200) { ...
true
76431d5b3a4fda0198476bde03ecf924d178494d
JavaScript
fangxiam/AudioGWAP2020
/project/server/api/admin/adminMgmt.js
UTF-8
1,751
2.65625
3
[]
no_license
/** * adminMgmt.js * Routes for managing the admins & permissions of users */ const Router = require('koa-router'); const User = require('../../models/user'); const Joi = require('@hapi/joi'); const userAuth = require('../../lib/session').authRole; const router = new Router(); const updateRoleSchema = Joi.object...
true
67d407996b50f80dd56f9db08e8a3b7d4a35628e
JavaScript
fnogcps/bootcamp
/JavaScript/Edabit/Regex Series: String Contains at Least One Digit/test.js
UTF-8
817
2.703125
3
[ "ISC" ]
permissive
var chai = require('chai'); var expect = chai.expect; const e = require('./solution.js'); const validate = str => e.x.test(str); describe('Regex Series: String Contains at Least One Digit (unit tests)\n', () => { it('[Test 1] Expected: true', () => expect(validate('c8')).to.equal(true)); it('[Test 2] Expected: t...
true
70490e2816ffbeef9839b443d02e331745e8c5a1
JavaScript
robhawkes/vizicities
/src/util/WorkerPool.js
UTF-8
3,385
2.828125
3
[ "BSD-3-Clause" ]
permissive
import WorkerPoolWorker from './WorkerPoolWorker'; const DEBUG = false; // Polyfill for Array.find if (!Array.prototype.find) { Object.defineProperty(Array.prototype, 'find', { value: function(predicate) { 'use strict'; if (this == null) { throw new TypeError('Array.prototype.find called on ...
true
22df7cacfc9cf9d051e82c3fee76c6ef8d8f69d3
JavaScript
Raulcmm/tendencys
/src/hooks/useFetch.js
UTF-8
687
2.640625
3
[]
no_license
import { useEffect, useState } from "react"; const useFetch = (api_url) => { const [data, setData] = useState([]); const AUTHORIZATION = process.env.REACT_APP_API_AUTHORIZATION; useEffect(() => { const headers = { method: "GET", headers: { Authorization: AUTHORIZATION, "Content-Type": "application/...
true
f096de60780c9b45553e022a3d732637c86caba4
JavaScript
GennaMarco/simulation-exam
/web/js/add_activity_dates.js
UTF-8
1,623
2.546875
3
[]
no_license
$(document).ready(function () { initDatePicker(); var lengthDates = $('.activity-dates-list input[data-role="activity-date"]').length - 1; $(document).on('click', 'a[data-role="add-activity-date"]', function (e) { lengthDates++; var dateNewtr = '<tr>' + ...
true
31bd1b9dc06c2f02ff6f117adf645c9ba5376f10
JavaScript
liokaraz/Brique_inverse
/js/objetGraphique.js
UTF-8
279
3.03125
3
[]
no_license
class ObjetGraphique { constructor(x, y, context, couleur, vx, vy) { this.x = x; this.y = y; this.context = context; this.couleur = couleur; this.vx = vx; this.vy = vy; } move() { this.x += this.vx; this.y += this.vy; } draw() { } }
true
8e0f4b6da043217006398d3ed489fbd67c3a4027
JavaScript
dapetcu21/bluetooth-cross-pair
/src/index.js
UTF-8
1,910
2.65625
3
[]
no_license
#!/usr/bin/env node const os = require('os') const fs = require('fs').promises function platformCommand(command) { const osType = os.type() let commandFunc; try { commandFunc = require(`./${command}_${osType}`) } catch (err) { if (err.code === 'MODULE_NOT_FOUND') { throw new Error(`Command "${co...
true
471b7289501fb81fcb85d397813426f11ccd72f6
JavaScript
r-pr/mocha-waterfall
/index.js
UTF-8
5,394
2.59375
3
[ "WTFPL" ]
permissive
const spawn = require('child_process').spawn; const colors = require('./lib/console-colors'); /** * Main class. * * @param {Object} options * @param {String[]} options.filenames * @param {Boolean} options.failOnStderr * @param {String} options.mochaDir * @param {Boolean=} options.bail * @param {Number=} optio...
true
7b90614ffbef41d04f0ef6e3e3ef3b47ab1b3608
JavaScript
karthyuom/psa_hackathon
/resources/frontend/main.js
UTF-8
795
2.53125
3
[]
no_license
$(function(){ var webSocket = new WebSocket(); webSocket.onopen = this.wsOnOpen.bind(this); webSocket.onmessage = this.wsOnMessage.bind(this); webSocket.onclose = this.wsOnClose.bind(this); webSocket.onerror = this.wsOnError.bind(this); $("#btn-auto").on("click", this.autoOnClick.bind(this)); ...
true
c4a3e70fd88d16c03e1698e5532ebe8c57550aec
JavaScript
ErinDuXiao/Sorting-Algorithms
/scripts/QuickSort.js
UTF-8
2,708
2.890625
3
[]
no_license
/** * Insertion sort visualization * * @copyright: Erin Du * @author: Erin Du * @version: 1.2.0 * * @summary: Framework Singleton Class to contain a web app * */ 'use strict'; class QuickSort { constructor(entities, startIdx, lastIdx, lastSortFlg) { this.entities = entities; this.currentT...
true