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
2a2524eac9661ea2364e50c9a55d7bebc1f9c81e
JavaScript
npdr/keeper-app
/keeper-app/src/components/Note/Note.jsx
UTF-8
2,010
2.640625
3
[]
no_license
import React, { useState } from 'react'; import DeleteIcon from '@material-ui/icons/Delete'; import EditIcon from '@material-ui/icons/Edit'; import CheckCircleIcon from '@material-ui/icons/CheckCircle'; import './styles.css'; function Note(props) { const [editable, setEditable] = useState(false); const [note, ...
true
146a0b5f5cc6f21d0a0b59fdaede3f03ee89fe48
JavaScript
ASE-thingy-blue/thingy-api-blue
/test/test.js
UTF-8
12,759
2.65625
3
[]
no_license
//-----SETUP----- // install ava as global package // execute: // npm install --global ava //all test in the "test" folder will get executed //you can execute the files via npm test in the route folder //!!!!!!!!!!!!DONT FORGET TO START THE DATABASE!!!!!!! //test values get injected! import test from 'ava'; import s...
true
704a5a1cbcf4696038252a2c5910755759d3309a
JavaScript
patdaburu/jingling
/proxy/ProxyMiddleware.js
UTF-8
12,235
2.578125
3
[ "MIT" ]
permissive
/** * ProxyMiddleware * @module proxy/ProxyMiddleware * {@link http://expressjs.com/en/guide/routing.html|Express Routing} */ "use strict"; var _ = require('underscore'); var Logger = require('../log/Logger'); var EventEmitter = require('events').EventEmitter; var express = require('express'); var inherits = requi...
true
4a948db7e0ddcdbc750403d8c2b9d60493a290bb
JavaScript
Californ1a/AoC
/2020/2/part1.js
UTF-8
787
3.6875
4
[]
no_license
const fs = require("fs"); async function readInput(filename) { const input = await fs.promises.readFile(filename, "utf-8"); return input.replace(/\r\n/g, "\n").trim().split("\n"); } function puzzle(input) { let sum = 0; input.forEach((line) => { const reg = /^(\d+)-(\d+) (\w): (.+)$/gi; const matches = reg.ex...
true
e57daa35fdc8afe44943ddc073647bb61ec4c66e
JavaScript
PatriciaPoveda/Buscador-de-series-Codeflix
/src/js/9listener.js
UTF-8
549
2.546875
3
[ "MIT" ]
permissive
const listenRemoveFavList = function () { const icons = document.querySelectorAll(".js-fa-times-circle"); for (let i = 0; i < icons.length; i++) { icons[i].addEventListener("click", removeFavList); } }; const listenFavList = function () { const seriesPaint = document.querySelectorAll(".js-serie"); ...
true
b12d9e0352b347c311ea7b3654b94367ec83996f
JavaScript
OmarBara/warmUp
/warmUp18.js
UTF-8
786
4.34375
4
[]
no_license
// You are given an input string. // For each symbol in the string if it's the first character occurence, replace it with a '1', else replace it with the amount of times you've already seen it... // But will your code be performant enough? // Examples: // input = "Hello, World!" // result = "1112111121311" // ...
true
8a223c3d5e5f2d27d8742cfbde5a337e560096d2
JavaScript
1kyte/Linkedin-Analysis
/linkedintest/collectionBox/Linkedin Analysis_files/companyChart.js
UTF-8
2,564
2.921875
3
[ "MIT", "Apache-2.0" ]
permissive
( function () { $.get("/data/read?type=company_inAU",function (data, status) { if(status=="success") { dataList = data.data; console.log({'company':data}); createButton(dataList); // createPiaChart(data) }else{ ...
true
7f08bc5553abaa9c5bf75d445e3ad3e24ecfe1fc
JavaScript
avi-walia/ang-cur
/src/app/core/services/page.state.resolver.js
UTF-8
3,567
2.515625
3
[]
no_license
(function () { 'use strict'; angular .module('evolution') .service('pageStateResolver', pageStateResolver); pageStateResolver.$inject = [ 'i18nService', 'ROUTES' ]; /* @ngInject */ function pageStateResolver( i18nService, ROUTES ) { ...
true
c2ddfe7afa9cb4800bafda97dece8cc23db63296
JavaScript
St0rage/DanComp
/script/products.js
UTF-8
1,008
2.71875
3
[]
no_license
// ANIMASI HOVER BOX let hoverProducts = document.querySelector('#hover-box'); let hoverMarketPlace = document.querySelector('#hover-box2'); function hoverBox() { hoverMarketPlace.classList.remove('hover-market-place'); hoverProducts.classList.toggle('hover-products'); } function hoverBox2() { hoverProducts...
true
aec2630a10e887c6cce42660782eab366002d98f
JavaScript
rizkyzonna/demokbb
/assets/js/script copy.js
UTF-8
6,112
2.71875
3
[ "MIT" ]
permissive
// date var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; var yyyy = today.getFullYear(); if(dd<10) { dd='0'+dd } if(mm<10) { mm='0'+mm } today = dd+'/'+mm+'/'+yyyy; $("#date").html(today); //time function updateClock ( ) { var currentTime = new Date ...
true
8197246f080dae3e64b4d90309f0cf0f43208479
JavaScript
francogramas/blog
/public/js/dropdown.js
UTF-8
1,053
2.796875
3
[ "MIT" ]
permissive
$(document).ready(function(){ $("#paises").change(function(event){ $.get("/departamentos/"+event.target.value+"", function(response,state){ $("#departamentos").empty(); for (i = 0; i < response.length; i++) { $("#departamentos").append("<option value='" + response[i].id+ "'>" + response[i]....
true
110ba5cac5f240cfd54654e55579ec3df98e0fb0
JavaScript
bchaperon/crystal
/src/server/createCard.js
UTF-8
3,326
2.734375
3
[]
no_license
function pickCardValues (values) { var card; var allySubTypeName; // pick out the white listed keys card = _.pick(values, 'cardSet', 'rankInCardSet', 'imageUrl', 'name', 'type', 'subType', 'faction', 'classes', 'castingCost', 'attack', 'defense', 'durability', 'unique', 'restricted', 'rar...
true
6ddd47b3a208baf074551bd63d92840fa1521498
JavaScript
coltonw/AcidPlatformer
/src/js/physics/runPhysics.js
UTF-8
5,608
2.78125
3
[]
no_license
(function(acidgame, $, undefined) { /** * Physics engine will handle distances in blocks and times in seconds (rather than pixels and frames) This will allow easy adjustment later. */ var pixelsPerBlock = 40 var framesPerSecond = 40; acidgame.physics = acidgame.physics || {}; var character; var p...
true
4543cd7362d98a0b9e939a189884a13c066bcfb7
JavaScript
it-teaching-abo-akademi/csdewas-project-2-ottolindfors
/my-react-app/src/AddStockModal.js
UTF-8
5,271
2.859375
3
[]
no_license
import React from "react"; import {urlBuilderDate} from "./api"; export class AddStockModal extends React.Component { constructor(props) { super(props); this.state = { stockSymbol: "", purchaseDate: "", shares: "", hasErrors: false, errorM...
true
b4505568c9a2b8a9308b904b282c3c0592bbc34a
JavaScript
dominic-taylor/frontend-nanodegree-resume
/js/resumeBuilder.js
UTF-8
5,453
2.546875
3
[]
no_license
var name = 'Dominic Taylor'; var role = 'Web Dev'; var bio = { 'name': 'Dominic', 'role': 'Web Dev', 'contact': { 'email': 'blah@blah.net', 'mobile': '123654', 'location': 'Wellington, NZ' }, 'bioPic': 'images/fry.jpg', 'welcomeMessage': 'SUP!', 'skills': ['eating',...
true
9fc739a297ab21f1c02c90925bc40c0914c4a58f
JavaScript
MalinduPabasara/Car_Rental_Project
/Car_Rent_FrontEnd/assets/js/payment.js
UTF-8
2,662
3.046875
3
[]
no_license
let cusCardNumRegEx = /^4[0-9]{12}(?:[0-9]{3})?$/; $('#cardnum').on('keyup', function (event) { if (event.key == 'Enter') { $('#expiry').focus(); } let inputID = $('#cardnum').val(); if (cusCardNumRegEx.test(inputID)) { $('#cardnum').css('border', '2px solid green'); $('#lblCar...
true
4b1a3f68abc61e8cb7a40b6fc5620660b975dd07
JavaScript
Peilin-D/web-server
/static/src/register.js
UTF-8
925
2.8125
3
[]
no_license
$("#register").click(e => { var registerInfo ={ "name":document.getElementById("full-name").value, "username":document.getElementById("user-name").value, "password":document.getElementById("pass-word").value, "department":document.getElementById("department").value } if(registerInfo.username.length...
true
e3a9a0278d948a426c8bdde7e2c71917f100a050
JavaScript
pristas-peter/react-app
/packages/react-intl-extract-webpack-plugin/babel/print-icu-message.js
UTF-8
2,091
2.65625
3
[ "MIT" ]
permissive
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ const {parse} = require('intl-messageformat-parser'); const ESCAPED_CHARS = { '\\' : '\\\\', '\\#': '\\#', '{' : '\\{', '}' : '\\}', }; const ESAPE_CHARS_REGEXP = /...
true
299ec5e98522b211fd34c255863931a2b83e5f1f
JavaScript
gnehzr/tnoodle
/jracer/src_tnoodle_resources/tnoodleServerHandler/jracer/nowjs/now.js
UTF-8
2,326
2.75
3
[]
no_license
var now = {}; (function() { now.core = {}; now.core.clientId = 4242; now.core.user = null; var loaded = false; window.addEventListener('load', function() { loaded = true; for(var i = 0; i < readyCallbacks.length; i++) { readyCallbacks[i](); } }, false); var readyCallbacks = []; now.ready = function...
true
267cb4582c7d4af0ba280291d907e0508e228431
JavaScript
nikhilvibhav/learnyounode-solutions
/modular-filter.js
UTF-8
378
2.75
3
[]
no_license
var fs = require('fs'); var path = require('path'); function filterFilesByExt(dir, filterString, callback) { fs.readdir(dir, function(err, listOfFiles) { if (err) return callback(err); listOfFiles = listOfFiles.filter(function (file) { return path.extname(file) === "." + filterString; }); callback(null,...
true
a3c4b42173e979668e3bf596f1571520bb194b1e
JavaScript
baked-dev/cluster-electron
/index.js
UTF-8
6,851
2.671875
3
[]
no_license
const cluster = require('cluster'); const numCPUs = require('os').cpus().length; class Logger { log (string, processID = process.pid) { console.log(`${new Date().toISOString()} | ${processID} | ${string}`) } } const logger = new Logger; //custom emitter to wrap the emit stuff into functions if (cl...
true
3047aa3b45218e82606cba2bbfda6274cb25fa4a
JavaScript
sanket0896/DSA-Practice
/Scaler/046_Stacks-2/A4-Maximum_Rectangle.js
UTF-8
1,790
4.15625
4
[]
no_license
/** * Maximum Rectangle Given a 2D binary matrix of integers A containing 0's and 1's of size N x M. Find the largest rectangle containing only 1's and return its area. Note: Rows are numbered from top to bottom and columns are numbered from left to right. Input Format The only argument given is the integer matrix A....
true
c6a23965172aeaa3859d2a8ecf53572174f5c4c1
JavaScript
shhuang123/polling-app
/src/components/Display.js
UTF-8
1,582
3
3
[]
no_license
import React from 'react'; import Button from './Button' class Form extends React.Component { constructor(props){ super(props) this.state = { choices: ['Sushi', 'Burger'], addition: '', count: 0 } this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleS...
true
2cd6c649c2831a6c12daa16fc3630737201c11b0
JavaScript
musichopin/InfiniteSkills_Learning-JavaScript-Programming
/Chapter 13 Form Handling/api-forms/scripts/custom.js
UTF-8
2,963
3.640625
4
[]
no_license
// custom controls // DOM nodes var form = { register: document.getElementById("register"), email: document.getElementById("email"), pass1: document.getElementById("pass1"), pass2: document.getElementById("pass2"), strength: document.getElementById("strength") // we added a reference to span node }; // form...
true
d67a4e6a783b3217e97d649571d0ee78a59fe471
JavaScript
jjwjack/baidu_ife
/task-16/main.js
UTF-8
3,091
3.21875
3
[]
no_license
/** * aqiData,存储用户输入的空气指数数据 * 示例格式: * aqiData = { * "北京": 90, * "上海": 40 * }; */ var aqiData = {}; var btn_add = document.getElementById("btn_add"); /** * 从用户输入中获取数据,向aqiData中增加一条数据 * 然后渲染aqi-list列表,增加新增的数据 */ function addAqiData() { var input_city = document.getElementById("aqi-city-input").value...
true
2498e021ad5e149d20d70241d2990be9eae7385f
JavaScript
mohammadalmoqdad/bussmall
/js/results.js
UTF-8
484
2.515625
3
[]
no_license
// function renderSummary() { // imagesSection.removeEventListener('click', handleClickonProducts); // console.log('you selected 25 times already!!'); // var ulE1 = document.getElementById('finalResults'); // for (var i = 0; i < Products.all.length; i++) { // var liE = document.createElement('li')...
true
2d53ed50b33d9329f89efd443eeb1109bd41bd17
JavaScript
AkankshaShrimal/Nodejs-Practice
/Day3/app.js
UTF-8
3,200
3.125
3
[ "MIT" ]
permissive
const Joi = require('joi') // returns a class, joi package for validation const express = require('express'); //Importing dependencies const port = process.env.PORT || 3000; var app = express(); app.use(express.json()); var courses = [ // putting courses manually {id :1 ,n...
true
8521a8e2d507bf657e814032825ed1bc1a30a780
JavaScript
tiarss/games-movie-app
/src/components/ViewGame.js
UTF-8
1,810
2.578125
3
[]
no_license
import { Box, Flex, Image, Heading, Text } from "@chakra-ui/react"; import axios from "axios"; import React, { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import Navbar from "./Navbar"; function ViewGame() { let { id } = useParams(); const [dataById, setDataById] = useState([])...
true
60a6addad2a8cde81ab08029841aa2c811e04d24
JavaScript
PavelZankin/Intensive
/scripts/search/sj.search.controller.js
UTF-8
1,547
2.703125
3
[]
no_license
/* SuperJob */ sj.getLocalParams = function() { return { keyword: $('#specialty')[0].value, town: getArea() || 'Россия', currency: 'rub', payment_from: +($('.min')[0].innerHTML + '000') || 1000, count: $('#per_page')[0].value /2 || 50 }; } function sjParseDate(date) { var d = new Date(date*1...
true
d8d12b33f8991793f586717168d08164465e40d0
JavaScript
Katsiaryna31/My-projects
/JS/keksobooking/js/map.js
UTF-8
1,780
2.671875
3
[]
no_license
'use strict'; (function () { var MAIN_PIN_LOCATION_X = 570; var MAIN_PIN_LOCATION_Y = 375; var MAIN_PIN_WIDTH = 64; var MAIN_PIN_HEIGHT = 80; var MAP_TOP_SIDE = 130; var MAP_BOTTOM_SIDE = 630; var MAP_LEFT_LIMIT = 0; var mainPinCenterX = MAIN_PIN_LOCATION_X + MAIN_PIN_WIDTH / 2; var mainPinCenterY =...
true
3f696ff65c1b826dd682d74049b6eeb18d597801
JavaScript
orinocoz/Traffic
/js/traffic.js
UTF-8
12,208
2.828125
3
[ "MIT" ]
permissive
/** * Created by mm on 15/08/15. */ function newSerie(s, par) { // Return a new serie from s, normalize vs first element var r = [], e = []; var f = s[0][par]; for (var i = 0; i < s.length; i++) { e = [s[i]['Time'], (s[i][par] - f)]; r.push(e); } return r; } function sumSeri...
true
118f61c01d97354fdc17bf540ba976639e90291b
JavaScript
AroundTheCorne7/UniversitiyProjects
/sketch.js
UTF-8
1,751
3.25
3
[]
no_license
/** * Created by AroundTheCorner on 7/1/2017. */ var bird; var target; var maxObstacles = 15; var obstacles = []; var updateFromBeg = true; function setup() { createCanvas(800, 600); resetSketch(); while (obstacles.length < maxObstacles) { var x = random(700) + 50; var y = random(500) + 50; var si...
true
deb771d0bfce1e9c4b161f645d8f9d111301bf67
JavaScript
Vankum100/Javascript
/es6-learning/src/Person.js
UTF-8
373
3.234375
3
[]
no_license
// Babel Helps us `output` this `src` es2015 code in vanilla js // transformations are only possible with help of // babel-preset-es2015 package // set up the presets in `.babelrc` file class Person { constructor(name){ this.name = name; } greet() { return this.name + ' says hello.'; ...
true
808db210ee92c322a760913dced67277eea207d9
JavaScript
tautvydascoding/2018-07
/dirbame_cia/diena_5/Gvidas/js_pradmenys/js/main.js
UTF-8
3,407
3.625
4
[]
no_license
// console.log("labas"); // // var namas = "daugiabutis"; // var spalva = "geltona A233"; // var aukstuSkaicius = 5; // var butuSkaiciusAukste = 4; // var laiptiniuSk = 3; // // // uzduotis suskaiciuoti butu skaiciu daugiabutyje // var laiptinejeButu = aukstuSkaicius * butuSkaiciusAukste; // // console.log("butu skaic...
true
59f146c0a3736c967e986670efaec59854309789
JavaScript
wangdoudou86/32-senior-slide
/main.js
UTF-8
2,250
3.109375
3
[]
no_license
let $buttons = $('#buttonWrapper>button') let $slides = $('#slides') let current = 0 let $images = $slides.children('img') makefakeSlides() $slides.css({transform:'translateX(-400px)'})//真的第一张位置在-400px处 bindEvents() $('#previous').on('click',function(){ gotoSlide(current-1) }) $(next).on('click',function(){ go...
true
2c7b0a050977bcc9c8bfdabc8566f3c78f789322
JavaScript
hub-i/hub-i.github.io
/교재/chap 8/p212_1.js
UTF-8
924
4.15625
4
[ "MIT" ]
permissive
let a; var arr = [ { id: 5, name: "Judith" }, { id: 7, name: "Francis" } ]; a=arr.findIndex(o => o.id === 7); // returns 0 arr.findIndex(o => o.name === "Francis"); // returns 1 arr.findIndex(o => o === 3); // returns -1 arr.findIndex(o => o.id === 17); // returns -1 console.log(a); var arr = [ { id: 5, name...
true
d9be6b27c03abf5c829f8eeeffb3009057cf7081
JavaScript
RivaD2/data-structures-and-algorithms
/data-structures/fizzBuzzTree/fizz-buzz-tree.js
UTF-8
3,400
4
4
[ "MIT" ]
permissive
'use strict'; class Node { constructor(value, k) { this.value = value; // I need to know what k it is so when I copy tree I can use the same num this.k = k; //a new array of k length this.children = new Array(k); } } class Tree extends Node { constructor() { ...
true
fda9e1cd050a721dd8119fb6538fbd5f0da7a5bf
JavaScript
Lucas-Brum/Programacao-para-Web-II
/Unidade 2/Livro 1/EX03/Script.js
UTF-8
446
2.890625
3
[]
no_license
function flores(){ var array = ['Anturio.jpg','Bromelia.jpg','Dente de leão.jpg', 'Flor da meia noite.jpg','Girassol.jpg','Lirio.jpg', 'Rosa.jpg','Tulipa.jpg','Flor de lis.jpg','Crisantemo.jpg'] for (let i = 0; i <= 9; i++){ let flor = document.createElement('img...
true
6037619cd29305f745db4c4c054aaed8228064fc
JavaScript
liubiantaotest/web-security-docker
/back-end/XSS/persistent/client/js.js
UTF-8
897
2.703125
3
[]
no_license
const template = data => { return ` <div class="message-item"> <i>IP: ${data.ip} 说道: </i> <sapn class="content">${data.content}</sapn> </div>`; }; // 获取内容 const getContent = () => { $.ajax({ url: 'http://127.0.0.1:8084/getContent.php', method: 'GET', async: true }) .done(data =>...
true
8b304ac13f7325f4f22e4b3a2d7de72859d14103
JavaScript
massimilianobraglia/jymfony
/src/Component/Cache/src/Adapter/AbstractAdapter.js
UTF-8
6,068
2.625
3
[ "MIT" ]
permissive
import * as fs from 'fs'; const ArrayAdapter = Jymfony.Component.Cache.Adapter.ArrayAdapter; const FilesystemAdapter = Jymfony.Component.Cache.Adapter.FilesystemAdapter; const RedisAdapter = Jymfony.Component.Cache.Adapter.RedisAdapter; const CacheItem = Jymfony.Component.Cache.CacheItem; const CacheItemPoolInterface ...
true
c992e79492e67713d594bb5872a83ac8feb5570b
JavaScript
denny999222/Rype
/src/components/common/components/Header.js
UTF-8
3,641
2.78125
3
[]
no_license
// Takes in props of {name, imageURL, containerStyle, contentStyle, leftButton, rightButton, onPressLeft, onPressRight} // "name" : which is the text it will show // "imageURL" : (could be logo, etc) which has a fixed size to fit into header // "containerStyle" : pertains to the view surrounding the content (whether te...
true
f83ed8576190824694504abf491e100f24ce4ad1
JavaScript
Novoidarskyi/goit-js-hw-08-gallery
/js/make-gallery.js
UTF-8
1,873
2.53125
3
[]
no_license
import galleryItems from "./gallery-items.js"; const refs = { galleryPictures: document.querySelector(".js-gallery"), modal: document.querySelector(".js-lightbox"), modalImage: document.querySelector(".lightbox__image"), buttonClose: document.querySelector('[data-action="close-lightbox"]'), }; let activeIndex...
true
5c359a1f332fd51377fc1e94020194364d079434
JavaScript
HongseockKim/javascript
/javascript_1/array.js
UTF-8
4,260
4.09375
4
[]
no_license
//array 배열 자료 구조 중 하나 //다른 언어 같은 경우 같은 종류의 type 의 object 만 담을 수 있다. // 자바스크립트는 다른 type 의 자료를 보관할수 있지만 // 되도록이면 같은 종류의 type의 object 를 보관 하도록 한다. 'use strict'; // 1. Array🐶 //배열의 선언 방법 Decleartion const arr1 = new Array(); const arr2 = [1,2]; //2. Index position 인덱스를 통한 접근 const fruits = ['🍎','🍌']; console.log...
true
bc7c71d53a00c3a943d23deda194ecc72ff6d547
JavaScript
MichaelMurry49/aA_Classwork
/W10D3/minesweeper_react/frontend/tile.jsx
UTF-8
1,421
2.75
3
[]
no_license
import React from "react"; class Tile extends React.Component { constructor(props){ super(props) this.state = { icon: "T" } this.text = "T"; // debugger; //this.setIcon(); } setIcon(){ // debugger let tile = this.props.tile; ...
true
9a24affeed18ff5f9515420dc394bce02606da84
JavaScript
lenalast/nolhagaBigard
/js/script.js
UTF-8
1,889
2.984375
3
[ "MIT" ]
permissive
var emailRegexp = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*"); var nanRegexp = new RegExp("^([^0-9]*)$"); function submitForm(event) { event.preventDefault(); var firstname = document.getElementById("firstname").value; var lastname = document.getElementById("lastname").value; ...
true
e90bd39e586ec08c68b82e56634daf95aa7a0fc6
JavaScript
moroclash/NodeExpress
/index.js
UTF-8
1,812
2.84375
3
[]
no_license
const Joi = require('joi') const express = require('express') const app = express() // get this file or import them internaly inside express app.set('view engine', 'pug') app.set('views', './views') //enable to pars to jsone by adding json as midel ware so it will add it in pipline // of reciving reques so when we ...
true
27f0190280193999b5c5cf384920c17afdc6f825
JavaScript
dfala/edq
/app/utils/firebase/classHelpers.js
UTF-8
2,197
2.546875
3
[ "MIT" ]
permissive
var ref = require('../../constants/fbref'); var helpers = require('./helpers'); function addClassToUser(userId, newClassName, role, classId){ var classObj = { isTeacher: false, isMentor: false, isStudent: false, name: newClassName }; role === 'teacher' && (classObj.isTeacher = true); role === ...
true
635a27e616a163cd12608f5e65f8fae11f98a15b
JavaScript
kinan92/WepAppMVC1
/WepAppMVC1/Scripts/sokoban.js
UTF-8
4,499
3.203125
3
[ "MIT" ]
permissive
var player = new PlayerPos(-1, -1); document.getElementById("restart").onclick = restart; document.getElementById("randomMap").onclick =randomMap; var goalList=[];// a list function DrawMap() { var map = document.getElementById("mapHeere"); goalList=[]; for (var y = 0; y < 16; y++) { for (var x =...
true
1707bfda5e3a0eed0ca1bb4516def678f80e0cfa
JavaScript
Katchau/omoshiroitest
/store/index.js
UTF-8
4,810
2.859375
3
[]
no_license
/* Currency structure id - name - picture - value (chaos worth) */ export const state = () => ({ currency: null, ratio: { id: 1, value: 1, picture: '', name: '' }, items: null, selection: null, searchResults: null, loadingScreen: false, itemInfo: [], statInfo: [] }) export const mut...
true
dae7835e27e918598bf3b27f511e6502d2bb1a4a
JavaScript
huip/Algorithm
/Code/LeetCode/46.permute.js
UTF-8
604
3.234375
3
[ "MIT" ]
permissive
/** * @param {number[]} nums * @return {number[][]} */ var permute = function (nums) { let res = [] function helper(arr, len, currLen, visited, path) { if (currLen == len) { res.push([...path]) } for (let i = 0; i < len; i++) { if (!visited[i]) { ...
true
661f7bf5ced980a12833af1f6edb234d1c7aa069
JavaScript
rinkuagarwal/angulay-typescript
/array.js
UTF-8
536
4.15625
4
[]
no_license
var numbers = [4, 6, -1, 1]; //number //numbers.push('1');/type safety // const sum=numbers.reduce(function(previous,current){ // return previous+current; // }) var sum = numbers.reduce(function (previous, current) { return previous + current; }); console.log(sum); // numbers.sort(function(number1:number, number2:n...
true
dd09854c83a325025723195a9ca235855bae9d09
JavaScript
ibramaida/e_commerce_clothing
/public/js/search.js
UTF-8
251
2.53125
3
[]
no_license
const searchKey = decodeURI(location.pathname.split("/").pop()) const searchSpanElement = document.querySelector("#search-key") searchSpanElement.innerHTML = searchKey getProducts(searchKey).then(data => createProductCards(data, ".card-container"))
true
2bd1492692a58eb19c1545e9fdfd9a9577868e18
JavaScript
n1re/JavaScriptPractise
/w3resource/Functions/5.everyWordFirstLetterToUpperCase.js
UTF-8
423
3.71875
4
[]
no_license
function everyWordFirstLetterToUpperCase(string) { const words = string.split(' ') for (let i = 0; i < words.length; i++) { let word = words[i] const firstLetter = word[0] const upperCased = firstLetter.toUpperCase() words[i] = word.replace(firstLetter, upperCased) } r...
true
61332367e7e679ada143cd9444f74237dc523bb2
JavaScript
Fahrul23/digital-invitation
/src/config/redux/reducer/profileReducer.js
UTF-8
272
2.625
3
[]
no_license
const initialState = { name: 'fahrul' } const profileReducer = (state=initialState,action) =>{ if(action.type === 'UPDATE_NAME'){ return{ ...state, name : 'Fahrul Ihsan' } } return state; } export default profileReducer;
true
5e2ca3f23f523bb274a80db8fd0932bfd87abd9c
JavaScript
Silvana123/SoftUni
/Level 1/03. JavaScript Basics (November 2014)/ExamProblems/ExamProblems/Exam29Jul14/01. PricesTrends.js
UTF-8
822
3.109375
3
[]
no_license
function solve(arr) { console.log('<table>'); console.log('<tr><th>Price</th><th>Trend</th></tr>'); var prev = undefined; for (var i = 0; i < arr.length; i++) { var trend; var rounded = Number(arr[i]).toFixed(2); rounded = Number(rounded); if (i === 0 || rou...
true
b3fbe6925f5cd7b87d9bae8259cbfe5ea70a100d
JavaScript
mangione77/film-finder
/src/components/App.js
UTF-8
5,359
2.53125
3
[]
no_license
import React, { Component } from 'react' import Main from './Main' import {sendData, generateUrl, getPersonId} from './api' import { Sidebar } from './Sidebar' import './css/App.css' import { Grid, Row, Col } from 'react-bootstrap' class App extends Component { constructor () { super() const newDate = new D...
true
49fc079a86f91e49a7b16af1114b08f4efe05c25
JavaScript
AHeroOfTime/bjs
/playground/modules/scripts.js
UTF-8
457
2.609375
3
[]
no_license
import first, { returnHi as sayHi, last, middle } from './utils.js'; // import wes from './wes.js'; import * as everything from './wes.js'; import { handleButtonClick } from './handlers.js'; // console.log(wes); // console.log(everything); // console.log(first); // const name = 'aaron'; // console.log(sayHi(name))...
true
d27f1ea6fa9a25bb60de168bed6d6c945618a3e8
JavaScript
salvatore-trimarchi/js-lista-cognomi
/js/main.js
UTF-8
4,839
2.9375
3
[]
no_license
//###################################################### // // latinitas switch var latinitas = true; // global variables var usrSurnameValue, formErase = false, listErase = false, surnameList = [ 'Bianchi', 'Rossi', 'Duzioni', 'Balsano', 'Verdi', 'Gia...
true
0b0070361ced9374da2b184ae2a85e02b9a2e879
JavaScript
manolomaroto/coursera
/assignment1/app.js
UTF-8
740
2.9375
3
[]
no_license
(function(){ 'use strict'; angular.module('LunchCheck',[]) .controller('LunchCheckController',['$scope',LunchCheckController]); function LunchCheckController($scope){ $scope.lunch = ""; $scope.result =""; $scope.checkIfTooMuch = function(){ var lunchFood = $...
true
619fa3b358fefb520d8f8ab447c1673d39bcb3f6
JavaScript
derekdg/Stock-Data-jQM-1.1
/js/myQuote.js
UTF-8
3,480
2.546875
3
[]
no_license
var myQuote = { yqlURL: "http://query.yahooapis.com/v1/public/yql?q=", dataFormat: "&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys", symbol: "", stockStats: "", init: function() { //Sumbit click handler: $("#submit").click(function() { //Get the ticker from the form: myQuote.sy...
true
d8bcc05ca7550ad081e33eaa502f4f2d8da7e599
JavaScript
xu-126/qt_lesson
/leetcode/lru/index.js
UTF-8
2,168
3.046875
3
[]
no_license
<<<<<<< HEAD /** * 最近最少使用原则 * @param capacity:number 容量 */ var LRUCache = function(capacity){ this.capacity = capacity;//空间的上限 this.arr = [];//数据结构 this.obj = {};// 3,3 // 使用的空间 arr.length // set push // get }; LRUCache.prototype.get = function(key){ //调整优先级 if(arr.length<this....
true
2e413f37c242f56bfa9c1e18526422c1c30a78f6
JavaScript
emiliawanat/playlist
/app.js
UTF-8
826
2.84375
3
[]
no_license
var playlist = new Playlist(); var chandelier = new Song("Chandelier", "Sia", "3:36"); var chicago = new Song("Chicago", "Sufjan Stevens", "6:05"); var boyhood = new Movie("Boyhood", 2014, "2:45:00"); playlist.add(chandelier); playlist.add(chicago); playlist.add(boyhood); var playlistElement = document.getElementB...
true
471f2fae9f9a3f3035278d10a3284e61a7582f60
JavaScript
vivcis/Maniera-fe-pjt-51
/javascript/sign-in.js
UTF-8
1,372
2.53125
3
[]
no_license
const form = document.getElementById('form'); const email = document.getElementById('email'); const password = document.getElementById('password'); const BASE_URL = 'https://maniera-dev.herokuapp.com/api/'; //----signin loader--- const loading = document.getElementById('loading'); loading.style.display = 'none'; ...
true
1d664aad1c7c7fd849efefbbc0b927b393b51535
JavaScript
ilonabudapesti/yi-summer-2015
/03 functional-js/underscore-rewrite/src/myUnderbar.js
UTF-8
4,293
2.96875
3
[]
no_license
(function() { 'use strict'; window._ = {}; _.identity = function(val) { return val; }; /** * COLLECTIONS * =========== */ _.first = function(array, n) { return n === undefined ? array[0] : array.slice(0, n); }; _.last = function(array, n) { if (n === undefined) { return a...
true
05141a3c4256bae57c85aa6a7f2b75ace220e59c
JavaScript
MohamedSaidMuse/BudgetApp-usingReact.js
/src/Components/Chart/Chart.js
UTF-8
605
2.8125
3
[]
no_license
import ChartBar from './ChartBar'; import './Chart.css' const Chart = (props) => { const dataPointValues =props. dataPoints.map(dataPoint => dataPoint.value); // the above code will return an array of values // the spread opetator below here is to pull out the ... array elemnets and add them as stand lone a...
true
d51ed3c273450ce6f24771cc4f03ae19eff8c35d
JavaScript
RaviPatel1713/data-structures-javascript
/exercises/mini-projects-challenges/telephone_number_validator.js
UTF-8
3,010
3.796875
4
[]
no_license
function telephoneCheck(str) { str = str.trim(); let invalidCharRegex = /[^0-9\s-()]/g; let invalidLength = (arg) => arg.length < 10 || arg.length > 16; let invalidNumberCount = (arg) => { let numberCount = (arg.match(/\d/g) || []).length; return numberCount !== 10 && numberCount !== 11;...
true
9ce26304521a8ee7bcb22bf3f212ccb2fd5f85ab
JavaScript
ByjusAbi/carritos
/player.js
UTF-8
753
2.6875
3
[]
no_license
class Player { constructor(){ this.index=null; this.distancia=0; this.nombre=null; } getCount(){ var playerCountRef = database.ref('playerCount'); playerCountRef.on("value",function(data){ playerCount = data.val(); }) } updateCount(count){ ...
true
b5a4e09f93476fa65dd09ac79eed5bf6b53fd81d
JavaScript
SandorDavid/codecoolchat
/src/main/resources/static/script/login.js
UTF-8
2,284
2.625
3
[]
no_license
$(function () { function postRegistrationData(event) { let validInput = true; $.each($('#registrationForm').serializeArray(), function (index, inputField) { if(inputField.value == "" && validInput == true){ $("#loginError").html("&nbsp;"); $("#registratio...
true
527e7270e6453636b63c9e282f41db6f111971f3
JavaScript
kykyxDD/biblioGlobus-fligths
/src/js/nav.js
UTF-8
6,912
2.75
3
[]
no_license
!function() { var nextFrame = window. requestAnimationFrame || window. oRequestAnimationFrame || window. msRequestAnimationFrame || window. mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function(cb) { return setTimeout(cb, 17, +new Date +17) } function loop(time) { if(navigat...
true
3e52459efccaede400ed0e6fe4a730f8087031b2
JavaScript
kikardo/contador_de_cliques
/src/estados.js
UTF-8
511
2.71875
3
[]
no_license
import React, {Component} from 'react'; class Botao extends Component { state={vezesPressionado:0} handleButtonPress = () => { const vezesPressionado = this.state.vezesPressionado + 1; this.setState({vezesPressionado})} render() { return( <div> <span> Fui pressionado: {this.sta...
true
c3a9199595e367103b5e90db4877f6a5f60f820e
JavaScript
eugenekhristo/react-fundamentals-github-battle
/app/components/Battle.jsx
UTF-8
3,811
2.515625
3
[]
no_license
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; class BattleInput extends Component { state = { username: '' }; handleChange = e => this.setState({ username: e.target.value.trim().toLowerCase() }); handleSubmit = e => { ...
true
dba45834572272be73881c51584afef9246b5d4e
JavaScript
Raj-Sanjay-Shah/ai-games-research
/koboldai/koboldai-scenarios/src/javaman-scenarios/javaman-scenarios.js
UTF-8
1,441
2.5625
3
[]
no_license
const rl = require('readline-sync'); const menu = require('../app/menu.js'); const katariah = require('./katariah/katariah.js'); // const tamrielGen = require('./tamriel-gen.js'); // const advCall = require('./adventure-call.js'); let message; let menuOptions = [ { text: `Back`, execute: () => { menu.s...
true
8b081e6cce87c555868a5af32d079bd5bb151f3e
JavaScript
tomasfrancizco/pomodoro
/script.js
UTF-8
2,347
3.09375
3
[]
no_license
const timer = document.getElementById("timer"); const startButton = document.getElementById("start-button"); const pauseButton = document.getElementById("pause-button"); const clearButton = document.getElementById("clear-button"); const newTimeInput = document.getElementById("set-time-input"); const newTimeForm = docum...
true
a44e18fe6842f7d93989f85a2eeaba50a68b7ef1
JavaScript
azukaar/blossom-js
/modules/serialise.js
UTF-8
3,386
2.96875
3
[]
no_license
import { contextTrap } from './ctx'; import { BlossomProxyElement } from './convertElement'; function subSerialise(element) { if (element === null) { return null; } else if (typeof element === 'boolean') { return element; } else if (typeof element === 'function') { return element.toString(); } else...
true
a49e102fd3f4b22be0b3ed9cb8d04b7fe39e83cc
JavaScript
huutu289/Javascript-selfStudy
/JAVASCRIPT/Phần 8 - ECMAScript 6+/3.arrow-function.js
UTF-8
1,805
5.0625
5
[]
no_license
/* --viết ngắn gọn hơn */ const arrowFunction = (log) => { console.log(log); } arrowFunction('arrow function: '); //-nếu return trên 1 dòng,có thể viết như sau const sum = (a, b) => { return a + b; } console.log('viết bình thường: ', sum(2, 3)); //viết gọn, k cần từ khóa return const sum1 = (a, b) => a + b; ...
true
a73a5f1ef3f0e7f410dc3362e9eb1536c0e102e7
JavaScript
lizlux/mercury-cli
/es6/CuratedContentEditModel.js
UTF-8
1,924
2.578125
3
[]
no_license
/// <reference path="../app.ts" /> 'use strict'; App.CuratedContentEditModel = Em.Object.extend({ featured: null, regular: null, optional: null }); App.CuratedContentEditModel.reopenClass({ find: function () { return new Em.RSVP.Promise(function (resolve, reject) { Em.$.ajax({ ...
true
1df73892be7109e9d9cd26806302af5217d687f5
JavaScript
crolson/Kanakatana2014
/Assets/Resources/Scripts/Player.js
UTF-8
4,798
3.03125
3
[]
no_license
/* * this script controls the player movement and health */ #pragma strict //The players normal max health var maxHealth : float; //The players max health after all modifiers var modifiedMaxHealth : float; //The players current health. var currentHealth : float; //Whether the player is invulnerable. If true, the p...
true
f2e15fc23317f397b7f025392fc4eb902bf5a5ce
JavaScript
KaraioYu/algorithm
/main.js
UTF-8
607
3.859375
4
[]
no_license
/** * 求两个数的最大公约是 */ function GCD(n1, n2) { return n1 * n2; } function LCM(n1, n2) { return 1; } function test() { var dom = document.createElement('div'); dom.innerHTML = 'GCD 400 and 800 equals: ' + GCD(400, 800); document.getElementById('main').appendChild(dom); dom = document.createElement('div'); ...
true
ec3a6daa2d841aa15afbdaf2e6b16179238b2f19
JavaScript
kfcteh/aws-search-back
/tests/integration.test.js
UTF-8
709
2.5625
3
[]
no_license
const request = require('supertest'); const app = require('../index') describe('POST /products', () => { it('respond with json containing product to add', () => { return request(app) .post('/products') .send({ asin: 'B002QYW8LW' }) .expect(201) .then(response => { expect(response...
true
232acf85bd58faeeba30acd07f957e62f6234dfa
JavaScript
wangtao0101/leetcode-problem-types
/template/409.js
UTF-8
257
2.828125
3
[ "MIT" ]
permissive
/* * @lc app=leetcode.cn id=409 lang=javascript * * [409] 最长回文串 */ // @lc code=start /** * @param {string} s * @return {number} */ var longestPalindrome = function(s) { }; // @lc code=end //* Testcase Example: '"abccccdd"'
true
47b1605f22934be431da016078d6b6ef6cd89b6f
JavaScript
QGtiger/vueProject
/iview-Blog/src/libs/proxy.js
UTF-8
844
2.578125
3
[ "MIT" ]
permissive
const http = require('http'); const request = require('request'); const host = '127.0.0.1'; const port = 8010; //创建一个api代理服务 const apiServer = http.createServer((req, res)=>{ const url = 'http://blog.qnpic.top'+req.url; const options = { url: url }; function callback(error, response, body){ ...
true
65956fe7260b3a53849d95a3744b0e588147933e
JavaScript
lfmichel/Programming
/webProg/jquery/script_jquery copy.js
UTF-8
564
2.671875
3
[]
no_license
/* Sintaxe */ /* $(seletor).acao(); */ /* $(document).ready(function(){ $('button').click(function(){ $('h1').hide(); }); }); */ /* Simplificando o jquery */ /* Forma reduzida do .ready */ /* $(function(){ $('button').click(function(){ $('h1').hide(); }); }); */ /* /* Alterando a cor do ...
true
429e16afe7cac090cbbb839d74e8c9f3e31facef
JavaScript
llllllllr/breastfeed
/部分样式修改/me_queResult/me_queResult.js
UTF-8
3,523
2.671875
3
[]
no_license
// page/jieguo/jieguo.js Page({ /** * 页面的初始数据 */ data: { n:1, type1:"自我效能量表", type2:"情绪调查量表", con_height: "1250rpx", count_zw: 3, //统计自我效能量表显示个数 count_qx: 3, //统计情绪调查量显示个数 用于决定container的height是100%还是固定rpx count_all:6, //统计所有显示个数 jieguo: [ { "id...
true
aa251a5245e782df739e5f13f5b7f733f053d188
JavaScript
bluecrayon52/node-course-3-chat-app
/server/utils/message.test.js
UTF-8
1,036
2.890625
3
[]
no_license
var expect = require('expect'); var {generateMessage, generateLocationMessage} = require('./message'); /* ----TEMPLATE-------- describe('', () => { it('', (done) => { }); }); */ // synchronous, no need to call done describe('generateMessage', () => { it('should generate correct message obje...
true
e46693d7c4aa59730d29531469a81b3b851a830f
JavaScript
MisterTrent/petcam
/static/scripts.js
UTF-8
1,263
2.6875
3
[]
no_license
var myLib = (function(){ 'use strict'; var lib = {}; lib.loadMore = function(){ var xhr = new XMLHttpRequest(); var method = 'GET'; var url = '/ajax/load_snapshots'; xhr.addEventListener('load',lib.displayLoadedImages); xhr.addEventListener('error',lib.dis...
true
b9bda79e8fd7e86e77fc02532883127f0d8a879c
JavaScript
spyrocash/todo-app
/src/App.js
UTF-8
2,464
2.734375
3
[]
no_license
import React, { Component } from 'react'; import _ from 'lodash'; import logo from './logo.svg'; import './App.css'; import cuid from 'cuid'; import TodoHeader from './components/TodoHeader'; import TodoMain from './components/TodoMain'; import TodoFooter from './components/TodoFooter'; class App extends Component { ...
true
76bd3f34b4d79ed17e4ce87eefc53c9a9c9bd2bb
JavaScript
jjsants/Dicee-Game
/index.js
UTF-8
766
3.84375
4
[]
no_license
document.querySelector(".btn").addEventListener("click", trowDices); function trowDices(){ //dice 1; var diceOne = Math.floor(Math.random() * 6) + 1; var randomDiceOne = "images/dice"+diceOne+".png"; document.querySelectorAll("img")[0].setAttribute("src", randomDiceOne); //dice 2; var diceTwo = Math....
true
97b3c4267429a131a22b2835378fa4556d6c551f
JavaScript
pdxwebdev/yadacoin
/static/app/plugins/cordova-plugin-googlemaps/www/geomodel.js
UTF-8
3,870
2.671875
3
[ "MIT" ]
permissive
cordova.define("cordova-plugin-googlemaps.geomodel", function(require, exports, module) { /** # # Copyright 2010 Alexandre Gellibert # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ht...
true
81cae85f8e704d86c614f6a5abc87023e45ac687
JavaScript
FiorelaBasilioManrique/LIM011-card-validation
/src/index.js
UTF-8
1,574
3.125
3
[]
no_license
import isValid from './validator.js'; const number = document.getElementById('numero'); const validar = document.getElementById('validar'); const cardTarje = document.getElementById('cardTarje'); const message = document.getElementById('mensaje'); // MODAL const modal = document.getElementById('modal'); const flex = ...
true
22954c43044d3faf1be3a342f2c7ac74fe097955
JavaScript
wurishi/note
/xstate/03.js
UTF-8
3,416
2.609375
3
[]
no_license
import { Machine, interpret, assign, } from "./node_modules/xstate/dist/xstate.web.js"; const machine = Machine({ initial: "red", states: { red: {}, }, context: { count: 0, user: null, }, }); console.log(machine.initialState.context); const service = interpret( machine.withContext({ ...
true
b8d0590520e92481d4f22faaebfa41041d5cfe9f
JavaScript
SorielV/club
/server/web/middleware/auth.js
UTF-8
3,564
2.515625
3
[]
no_license
import { verify, COOKIE_KEY } from './../../utils/jwt' // Auth Information export const authInformation = async (req) => { return await (process.env.AUTH_BASE === 'st' ? getSessionHeader(req) : getSessionCookie(req) ) } // Normal Auth export const HandleAuth = async (req, res, next) => { try { const...
true
58431fbeda70ee0772943d3d9a730051d5359cea
JavaScript
vardan099/anyfin
/server/controllers/CountriesController.js
UTF-8
1,439
2.515625
3
[]
no_license
const CountriesService = require('../services/CountriesService'); const Fixer = require('fixer-node'); const fixer = new Fixer('65a46a3c3c9c4a87ab07b6a72500b80d'); class CountriesController { async getCountriesByName(req, res, next) { try { const { name } = req.params; let newCoun...
true
106f9e21365fede64605cf859e2802913e0af1e5
JavaScript
beaulabs/ColoradoScooters
/UpdateLocation.js
UTF-8
1,076
2.8125
3
[]
no_license
// nohup bash UpdateLocation.sh &>/dev/null & // Create 5K upserts and bulk write var _id_min = 1; var _id_max = 999999 var lat_min = 37.020691; var lat_max = 40.988098; var lon_min = -109.015325; var lon_max = -102.101746; function getRnd(bottom, top) { return Math.floor( Math.random() * ( 1 + top - bottom ) )...
true
9815dc5b3081328a619c7ce61c324c3b0dd57b26
JavaScript
mankoty567/dodo-la-saumure
/.gitignore/commands/weather.js
UTF-8
1,831
2.96875
3
[]
no_license
const Discord = require("discord.js"); //Ajouter toutes les autres const que la commande need ici module.exports.run = async (bot, message, args) => { message.delete() if(args[1].toLowerCase() === "sun" || args[1].toLowerCase() === "soleil") { message.channel.send("```Markdown\nLe temps est maintenant en...
true
9c1c2d3439a13626d7a6920a034ff6fa98ce4b92
JavaScript
sosaysthecaptain/vehicleRouting
/testing/manualMap.js
UTF-8
3,398
2.921875
3
[]
no_license
// Testing things live here var upperLeft; var upperLeftInner; var lowerLeft; var lowerLeftInner; var upperRight; var upperRightInner; var lowerRight; var lowerRightInner; var testRoutePair; var bestRoutePair; var correctRoutePair; var needsExchange; var needsFlip; // individually grabbable stops on test map functio...
true
41be8552db660558440b07c0d6f40d96113214db
JavaScript
erielrj/landing-agil-fotografia
/scripts/sidemenu.js
UTF-8
444
3.015625
3
[]
no_license
function openNav() { document.getElementById("mySidenav").style.width = "250px"; } function closeNav() { document.getElementById("mySidenav").style.width = "0"; } /* Colocando o evento click nos links da sidenav para disparar as função closeNav */ (function () { const navLinks = document.querySelectorAll('na...
true
54174fc4ad8c6786989317f765cd4a54dbfa12ae
JavaScript
omardkh/Discord_Sticky-Message-Bot
/src/commands/edit.js
UTF-8
3,148
2.5625
3
[ "MIT" ]
permissive
// Edit command const BotFunctions = require("../bot_functions.js"); const Errors = require("../messages/errors.js"); const Colors = require("../messages/colors.js"); function Run(client, msg) { const msgParams = msg.content.toLowerCase().split(" "); const server_id = msg.guild.id; const channel_id = BotFu...
true
70b38383ec6f5858fbb5c1ce93ac382aa39efe1c
JavaScript
VisualSJ/harbors-engine
/harbors/lib/debug/console.js
UTF-8
3,068
2.609375
3
[]
no_license
(function(block, node, font, loop){ var console, line1, line2, line3, infoElem,task, time, info, draw; var init = function(harbors){ if(!h.options.debug){ return false; } console = (new block).set({ width: 200, height: 195, background: "#...
true
ff8c54d16e00a08f4be2614d3095f8eacd22d1d4
JavaScript
handleman/jsconcepts
/algorithms/fast_sorting.js
UTF-8
470
2.90625
3
[ "MIT" ]
permissive
const fast_sort = (item) => { if(item && Array.isArray(item)){ if(item.length <= 2 ){ return item; } else{ var pivot = item[Math.floor((item.length)/2)-1]; item.splice(item.indexOf(pivot),1); var leftPart = item.filter(function(val){ return val <= pivot}); var rightPart = item.filter(function(val)...
true
7b141091d51a32d3f86046c018399592c32b4297
JavaScript
neknek25251989/helloworld
/JavaScript/assignment/assignment_example.js
UTF-8
399
3
3
[ "MIT" ]
permissive
var a = 10; document.getElementById("demoa").innerHTML = a; var b = 10; b += 5; document.getElementById("demob").innerHTML = b; var c = 10; c -= 5; document.getElementById("democ").innerHTML = c; var d = 10; d *= 5; document.getElementById("demod").innerHTML = d; var e = 10; e /= 5; document.getElementById("demoe").inn...
true