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
9db431d265a43a0cfe0d4f6c1351ed2a4a65d9d5
JavaScript
goldrix96/Clock
/js/myscripts.js
UTF-8
1,179
3.34375
3
[]
no_license
var siteWrap = document.querySelector('.siteWrap') var markup = ` <div class="container"> <div class="clock-face"> <div class="hand hourHand"></div> <div class="hand minHand"></div> <div class="hand secHand"></div> </div> </div> ` siteWrap.innerHTML = markup; var secHand =...
true
ff94cfc28b87211df452484dd8900cfabe23c137
JavaScript
aimienadiaa/WordAnalyzer
/App.js
UTF-8
2,153
2.765625
3
[]
no_license
import { StatusBar } from 'expo-status-bar'; import React, {Component} from 'react'; import { StyleSheet, Text, View, Button, TextInput, Alert } from 'react-native'; export default class App extends Component { constructor () { super(); this.state = { word: '', consonants: 0, vowel: 0, ...
true
bf4a7713070c2ec810ccadcf01c0d700efa36ac6
JavaScript
TanaTanoi/zealous-giggle
/TrademeLiveServer/WebContent/js/loadModels.js
UTF-8
2,601
2.703125
3
[]
no_license
function loadNZMap() { var group = new THREE.Object3D(); var basicVertShaderPath = "shaders/basicVertexShader.vert"; var shadelessFragShaderPath = "shaders/shadelessFragmentShader.frag"; loadModel(group, basicVertShaderPath, shadelessFragShaderPath, [0,.5,.5], THREE.FlatShading, "models/nzmap.json"); return grou...
true
392a0c2c5ebf6b48f7ae48b992d16f291fda4905
JavaScript
pedrohnf688/Projeto-Stock-Trader
/src/store/modulos/portfolio.js
UTF-8
1,796
2.546875
3
[]
no_license
export default { state: { funds: 10000, stocks: [] }, mutations: { comprarAcoes(state, {stockId, stockPreco, stockQuantidade}){ const record = state.stocks.find(elemento =>elemento.id == stockId) if(record){ record.stockQuantidade += stockQuan...
true
6cdfa5385c6a3b4948f91e982ac9d94494d41cdf
JavaScript
Mixshaker/riolie
/js/script.js
UTF-8
3,015
2.71875
3
[]
no_license
// Home hero section document.addEventListener("DOMContentLoaded", function() { let heroBlock = document.querySelector('.hero'); let heroText = document.querySelector('.hero h1'); if (heroText) { heroBlock.addEventListener("mousemove", function(e) { let x = e.clientX, y...
true
21ba9b922c2a6a70edf75f9a8516533ec269b0bc
JavaScript
KandikuntaAruna/assin4
/script.js
UTF-8
377
2.9375
3
[]
no_license
(function (window) { var names = ["aruna", "John", "Jen", "Jason", "aru", "sandy", "Larry", "lalli", "punya", "Jim"]; for (var i = 0; i < names.length; i++) { var firstLetter = names[i].charAt(0).toLowerCase(); if (firstLetter == 'j') { window.byeSpeaker.speak(names[i]); } else { wind...
true
bd98672682e31b99048caaa48b0de9de6baa072b
JavaScript
NovaLynxie/CoraBot_Heroku
/cora_modules/commands/admin/warn.js
UTF-8
3,995
2.5625
3
[ "MIT" ]
permissive
const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); const getLocalTime = require('../../functions/localtime') module.exports = class WarnCommand extends Command { constructor(client) { super(client, { ...
true
11d8a8faa88eb0b2ded4f7cc420489f2b7d5c75a
JavaScript
maheshabhi/react-table-dragDrop-example
/src/components/drag/longText.component.jsx
UTF-8
1,418
2.59375
3
[]
no_license
import React from 'react'; import styled from 'styled-components' // const ReadMoretext = styled.a` // color: blue; // cursor: pointer; // text-decoration: underline !important; // ` function LogoutButton(props) { return ( <a onClick={props.onClick}> {props.content} </a> ); } ...
true
61603125762995e003d6bc03a73fd8bf7683a50e
JavaScript
xishimohuanhuan/NUV
/1/src/commons/cutDown/cutDownIMG.js
UTF-8
2,345
2.9375
3
[]
no_license
const cutDownImg = (file, encoder=0.5) => { return new Promise((resolve, reject) => { if(!file) return; let img = new Image(); img.src = URL.createObjectURL(file); if (img.complete) { callback(); } else { img.onload = callback; } function callback() { let data = compress(...
true
acff5384e0c85d1175da086ee764dae4adacbb7d
JavaScript
taenykim/canvas-webgl-playground
/filter.js
UTF-8
2,802
3.25
3
[]
no_license
(function () { const CANVAS_WIDTH = 500; const CANVAS_HEIGHT = 500; const canvas = document.getElementById("canvas4"); const ctx = canvas.getContext("2d"); canvas.width = CANVAS_WIDTH; canvas.height = CANVAS_HEIGHT; const img = new Image(); img.src = "./images/taeeun.JPG"; img.crossOrigin = "Anonymo...
true
07c958b3f3d8e08f33b58742b5156adb3d19a831
JavaScript
BeliefRC/websocket-russia
/single/js/game.js
UTF-8
9,369
2.875
3
[]
no_license
const Game = function () { //domElem let gameDiv, nextDiv, timeDiv, scoreDiv, resultDiv; //current square,next square let cur, next; //divs let nextDivs = [], gameDivs = []; let score = 0; //gameMatrix let gameData = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ...
true
033933d3af9c15007d968e1279a6fa82629494ca
JavaScript
andreiwahyu/simpleScraping
/app.js
UTF-8
1,411
2.65625
3
[]
no_license
var request = require('request'), fs = require('fs'), cheerio = require('cheerio'), data = []; request('http://library.itats.ac.id/index.php?search=search', function (error, response, html) { if (!error && response.statusCode == 200) { //if using form with method get // request.get({ // url : 'htt...
true
5c2680379a17886ee23ba1cb83ae2904fbf3aec0
JavaScript
JesusSotoT/NMRepoLog
/webapp/modulos/nominas/js/tipoperiodo.js
UTF-8
5,403
2.53125
3
[ "Apache-2.0" ]
permissive
$(document).ready(function(){ $('.solo-numero').keypress(function(e) { var verified = (e.which == 8 || e.which == undefined || e.which == 0) ? null : String.fromCharCode(e.which).match(/[^0-9]/); if (verified) {e.preventDefault();} }); //$("#idajuste").attr('onchange','return tipoperiodos(this.value)')...
true
9a3ae3bedf2012a88558a52a4b65d3f5ae848361
JavaScript
bavarianstance/my-coding-bootcamp
/course-content/11-mysql/activities/09-iceCreamCRUD/playlist_explicitentry.js
UTF-8
1,923
2.875
3
[]
no_license
var mysql = require("mysql"); var connection = mysql.createConnection({ host: "localhost", // Your port; if not 3306 port: 3306, // Your username user: "root", // Your password password: "iseeyoutoorsql", database: "playlist_db" }); connection.connect(function(err) { if (err) throw err; console...
true
a2b4f26ed4ca5ef0ab96caf5bf4248daf43572a4
JavaScript
brianneisler/stutter
/src/lang/isIterable.js
UTF-8
540
2.765625
3
[ "MIT", "Apache-2.0" ]
permissive
import { anyIsIterable } from './util' import defn from './defn' /** * Checks if `any` implements the iterator symbol or is iterable * * @function * @since v0.1.0 * @category lang * @param {*} any The value to check. * @returns {boolean} Returns `true` if `any` is iterable, else `false`. * @example * * isIte...
true
c288c58f346b0ca50081af8b84034c9da780ab85
JavaScript
jonathanbrincat/chrysalis.server.adonis
/database/migrations/1503248427889_posts_schema.js
UTF-8
1,783
2.515625
3
[]
no_license
'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ const Schema = use('Schema') class PostsSchema extends Schema { up () { this.create('posts', (table) => { table.increments() table.integer('user_id').unsigned() // table.foreign('user_id').references('users.id').onDelete('cascade...
true
7825a9f999a9413cd21dfa68d3fdefe940eb68cb
JavaScript
CCGSRobotics/RoboHUD
/App/JS/client.js
UTF-8
16,756
3.09375
3
[ "MIT" ]
permissive
for (let i = 0; i <= 20; i++) { lastVals.push(0); } lastVals[10] = 100 /* var GrabberSlider = document.getElementById("grabberSpeed"); var GrabberOutput = document.getElementById("grabberSpeedDisplay"); // Update the current slider value (each time you drag the slider handle) GrabberSlider.oninput = function() { G...
true
35ae4c328120b8a74c2582b6682e4a9c33b4e0e6
JavaScript
NehaSijaria/wikiMap-midterm
/routes/favourites.js
UTF-8
2,266
2.65625
3
[]
no_license
const express = require('express'); const router = express.Router(); const { getFavourites } = require("./helpers"); module.exports = (db) => { router.get('/:id', (req, res) => { const userID = req.session.user_id; const mapID = req.params.id; // console.log(userID, mapID); let values = [userID, map...
true
c5dc9d53e4c18f10703dba8f07e4b9bd79fb6147
JavaScript
MinskyNg/leetcode
/132_PalindromePartitioningII.js
UTF-8
647
3.015625
3
[]
no_license
/** * @param {string} s * @return {number} */ var minCut = function(s) { if (s === null || s.length === 0) { return 0; } var len = s.length, dpCut = [], dpPalindrome = []; for (var i = 0; i < len; i++) { dpCut[i] = len - i; dpPalindrome[i] = []; } fo...
true
80d5c8094047c00184d169a585430b3b7d306589
JavaScript
bennett000/angular-training-examples
/language-examples/observables/4.0-for-each/app/exercise.js
UTF-8
737
3.265625
3
[]
no_license
'use strict'; 'format es6'; // force SystemJS to transpile exercise import { Observable } from 'rxjs/Rx'; const exampleDiv = document.getElementById('example'); exampleDiv.innerHTML = 'Waiting for Observations'; const observable = Observable.create((obs) => { setTimeout(() => { obs.next('First!'); }, 2000);...
true
5420221a052057327fa15571e56eae2c3c47870a
JavaScript
jankney2/dropIn
/src/redux/store.js
UTF-8
1,246
2.53125
3
[]
no_license
import {createStore} from 'redux' //redux will be used to access user info from the db across multiple components const initialState= { user: {}, userPropLists: [], isLoggedIn: false } export const GET_SESSION ='GET_SESSION' export const GET_USER_PROP_LISTS='GET_USER_PROP_LISTS' export const UPDATE_USER_INFO...
true
c86ec7dd7f471811ab1c1b1cff9fe8fccaf07c2a
JavaScript
frankheggeness/reactive-book-list
/src/reducers/index.js
UTF-8
727
2.640625
3
[]
no_license
import { ADD_BOOK, LOAD_BOOKS } from '../actions'; const initialState = { books: [ // { // title: 'Of Mice and Men', // author: 'John Steinbeck', // }, // { // title: 'Deception Well', // author: 'Linda nagata', // }, // { // title: 'The Catcher in the Rye', // ...
true
c22dadc23c36e4c1866744688c6e319304eb30f3
JavaScript
vojtech-havlik/gfa-short-workshop
/src/workshop/teoreticka_priprava/private/config.js
UTF-8
297
3.1875
3
[]
no_license
export function print(text) { let paragraph = document.createElement("p"); let node = document.createTextNode(text); paragraph.appendChild(node); document.querySelector("#console").appendChild(paragraph); } export function clear() { document.querySelector("#console").innerText = ""; }
true
d7613181bc13a635d5aa913ffc4442430b07c299
JavaScript
apottr/time-dash
/app.js
UTF-8
2,491
2.734375
3
[]
no_license
const blessed = require('blessed') ,contrib = require('blessed-contrib') ,time = require('time') ,screen = blessed.screen() const grid = new contrib.grid({rows: 1, cols: 3, screen: screen}) const numbers = [ [ "┌──┐", "│ │", "└──┘" ], [ " ┐ ", " │ ", " ╵ " ], [ ...
true
07878b14e22234369f7399614d7a7a271cc6d671
JavaScript
hajczek/Neighborhood---Warsaw-Cultural-Map
/src/components/wikipediaApi.js
UTF-8
1,281
3.28125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/** * @description Get data from Wikipedia Api */ export const getInfo = (search) => { fetch("https://pl.wikipedia.org/w/api.php?&origin=*&action=opensearch&search=" + search + "&limit=1", { headers: {'Accept': 'application/json'}, }).then(response => response.json()) .then(addInfo) .c...
true
d8c3899a700af14af7a4f7ece9411c03012a4880
JavaScript
leandrobez/il-kaizen-dashboard
/src/common/schedule.js
UTF-8
3,240
2.8125
3
[ "MIT" ]
permissive
import moment from 'moment'; const timeIsMoney = moment(); const hours = [7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19]; //set locale fr Brazil timeIsMoney.locale('pt-br'); let configToday = { data: timeIsMoney.format('D') + ' de ' + timeIsMoney.format('MMMM'), activeDay: +timeIsMoney.format('D'), day: timeIsMone...
true
5173752be417d342b8057987ae6cf084dd596088
JavaScript
ahodyna/web-experiments
/js-homework/homework_26_console_art.js
UTF-8
1,042
3.390625
3
[]
no_license
// node.exe .\js-homework\homework_26_console_art.js // Используя циклы нарисовать в консоли рисунок: // 100001 // 010010 // 001100 // 001100 // 010010 // 100001 function print(str) { process.stdout.write(str) } let len = 110; function shouldPrintPlusForEven(i, j, len) { return i == len / 2 - 1 && j == le...
true
9c757aa7e5408c260847ed4ae59d744b6da5e5b9
JavaScript
lorimccurry/NSS-FrontEnd
/2013-10-01-jQuery-Reverse-PigLatin/js/main.js
UTF-8
629
3.328125
3
[]
no_license
$(document).ready(initialize); function convert_word_to_pig_latin(word) { return word.slice(1) + word[0] + 'a'; } function reverse_word_order_add_semicolon(sentence) { debugger; var words = sentence.split(", ").reverse(); var pig_words = []; for(i = 0; i < words.length; i++) { pig_words.push(conve...
true
3852e0a3918291ac7f99d0196900b136147fd497
JavaScript
toddbontrager/test-batch
/ask_about.js
UTF-8
912
4.0625
4
[]
no_license
var without = function(array, value){ var results = array.slice(); var argSource = Array.prototype.slice.call(arguments); var args = argSource.slice(1, argSource.length); _.each(results, function(val, index){ _.each(args, function(valArg){ if (val === valArg){ console.log(index); result...
true
f8b50f5caf15b6a922c058a7860a6be9e36b9c3e
JavaScript
oli414/OliUI
/src/Oui/Widgets/Spinner.js
UTF-8
3,406
3.171875
3
[ "MIT" ]
permissive
import Widget from "./Widget"; /** * A number input with an increase and decrease button. */ class Spinner extends Widget { /** * Construct a spinner widget. The number of decimal places is set to the number of decimals of either the default value, or the step size whichever has more decimal places. * ...
true
5a042610f2614585a5ba6d83c85e3871cb0c5319
JavaScript
TarasBULBA79/prakt1
/prakt14.07.js
UTF-8
7,077
4.03125
4
[]
no_license
// 1. Оголосіть змінні str, num, flag і txt зі значеннями «Привіт», 123, true, «true». // С помощью typeof Переконайся, что значення змінніх належати типам: string, number і boolean. // let str = 'tgghfghfghg'; // console.log(typeof str) // // let num = 123; // console.log(typeof num) // // let flag = true // console...
true
cfb821f3af69ab89f7c6a5c7d5b6c6bd65df936d
JavaScript
dragonregure/react-hello-world
/src/containers/pages/Post/Detail/DetailComponent.jsx
UTF-8
880
2.609375
3
[]
no_license
import axios from 'axios'; import React, { Component, Fragment } from 'react'; class DetailComponent extends Component { state = { title: '', body: '' } componentDidMount() { axios.get(`http://localhost:3004/posts/${this.props.match.params.id}`) .then(response => { ...
true
045b23471887b1dd818e8b2eada9e47337b64f76
JavaScript
PatrykMaternicki/api_image
/tests/helpers/requestValidator.spec.js
UTF-8
2,451
2.546875
3
[]
no_license
const requestValidator = require('../../helpers/requestValidator') test('when query is empty, but validMethod have is required should be return false', () => { expect(requestValidator.valid({}, {search: ['required']})).toBe(false) }) test('when query is empty and validMethod is empty should be return true', () => {...
true
3d1ebcdef3a08fc3de083df10ff957f76a79680c
JavaScript
Kluy/Kluy.github.io
/Frontend/js3-4/script.js
UTF-8
1,237
3.1875
3
[]
no_license
/** * Created by TERM2 on 13.01.2017. */ var body = document.querySelector('body'); var wrapper = document.createElement('div'); wrapper.classList.add('wrapper'); body.appendChild(wrapper); var header = document.createElement('header'); header.innerHTML = 'Programming test'; wrapper.appendChild(header); var form ...
true
2c22880ed85ecb0be33bb272fddfa11371a222e0
JavaScript
paper-lark/remind-me
/source/main/main.js
UTF-8
2,657
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Imports */ const { app, ipcMain, Notification } = require('electron'); const agent = require('./fs-agent'); const windows = require('./windows'); const lifetime = 7 * 24 * 60 * 60 * 1000; // after a week completed reminders are deleted let colors = undefined; /* Function creates IPC channels on the main process end...
true
ee6985078739e4ff80c6dcd61c0ee4205bcc989f
JavaScript
Monacrylic/SnakeGame-p5
/snake.js
UTF-8
1,241
3.46875
3
[]
no_license
class snake { constructor(x, y, len) { this.x = x; this.y = y; this.len = len; this.history=[]; } eatfood(foodObject){ this.history.unshift([foodObject.x,foodObject.y]); this.len++; } show() { fill(148, 198,35); for(var i=0; i<this.history.length ;i++){ ...
true
5966e16a61756ba37181211869b74ce419bbf6c4
JavaScript
Wotsits/fullstackopen
/part2/phonebook/src/services/phonebook.js
UTF-8
807
2.625
3
[]
no_license
import axios from 'axios' const baseUrl = 'http://localhost:3001/persons' const getAll = () => { const request = axios.get(baseUrl) return request.then(response => response.data) } const create = newObject => { const request = axios.post(baseUrl, newObject) return request.then(response => response.dat...
true
48e4b8c914bbbd89f927b73d4f2ec554cda18e37
JavaScript
RojasJorge/recruiting-system-admin
/components/jobs/Add/age.jsx
UTF-8
1,682
2.546875
3
[ "MIT" ]
permissive
import { useState } from 'react'; import { isEmpty } from 'lodash'; import { InputNumber, Slider } from 'antd'; const Age = ({ value, onChange }) => { let initialState = { min: 18, max: 60, }; if (isEmpty(value)) { initialState = { min: value.min, max: value.max, }; } const [stat...
true
ef2e65db456e67e74fc2fcd9dfbc1074cdb9e75c
JavaScript
antgod/class-framework
/design-patterns/行为型模式/3.发布订阅模式/5.发布订阅-登录.js
UTF-8
1,342
2.59375
3
[]
no_license
var extend = function (child, parent) { for (var i in parent) { child[i] = parent[i] } } var event = { clientList: [], listen: function (key, fn) { if (!this.clientList[key]) { this.clientList[key] = [] } this.clientList[key].push(fn) }, trigger: function (key) { var fns = this.clientList[key] if ...
true
f94220acc055d151abccb411d8567ca493941745
JavaScript
prototype9449/NFA-to-DFA
/src/logic.js
UTF-8
2,015
2.71875
3
[]
no_license
import isEqual from 'lodash/isEqual' export default function dnaToDfa({states, symbols, transitions, start, end}) { const filteredTransitions = transitions .filter(x => symbols.find(y => y === x.symbol)) .filter(x => states.find(y => y === x.first)) .filter(x => states.find(y => y === x.second)) const...
true
0bcbddeb7cd4c00a511f9653d31837286dc131fa
JavaScript
Liaoct/cap4_form
/src/common/util.js
UTF-8
2,671
2.9375
3
[]
no_license
/* eslint-disable */ const hasOwnProperty = Object.prototype.hasOwnProperty; export function hasOwn(obj, key) { return hasOwnProperty.call(obj, key); } function extend(to, _from) { for (const key in _from) { to[key] = _from[key]; } return to; } export function toObject(arr) { ...
true
04735981fc8d5eff7ab6d9dabaa9c16833e96832
JavaScript
es6513/Mario-Game
/js/ObjectJs/fireballObject.js
UTF-8
8,280
2.53125
3
[]
no_license
import {PositionAndSpeed} from "../positionAndSpeed.js"; class Fireball{ constructor(){ this.pos = new PositionAndSpeed(); this.previousPos = new PositionAndSpeed(); this.speed = new PositionAndSpeed(8,2); this.frameIndex = 0; this.faceDirection = 1; this.goRight = false; this.goLeft = false; this.dir...
true
49a1ada460bc2793d9e6bd1f6d88dbf48189a552
JavaScript
DiNitride/OrgChart
/web/src/App.js
UTF-8
3,663
2.515625
3
[]
no_license
import React from 'react'; import Employee from './components/employee' import EditModal from './components/editModal' import SwapModal from './components/swapModal' import CreateModal from './components/createModal' import Menu from './components/menu' import Error from './components/error' import './api/employees' im...
true
001eb5296c70eeed424354d2a6b5ebb24b6ae4cf
JavaScript
Cesar-Javier-Ramirez-Manzo/CJRM
/2p/modules/point.1.js
UTF-8
397
3.390625
3
[]
no_license
class Point{ constructor(x,y){ this._x=x this._y=y verificate(this._x) verificate(this._y) } draw(){console.log('draw point')} clone(){return new point(this.x,this.y)} get x(){return this._x} get y(){return this._y} set x(x){this._x=x} set y(y){this._y=y} } function verifi...
true
1a6a64fd8667be3d11307179949171a58d2a9523
JavaScript
rinakawamura/fewpjs-oo-static-methods-lab-yale-web-yss-052719
/index.js
UTF-8
892
3.546875
4
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
class Formatter { static capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1) } static sanitize(string) { let arr = string.split('') let filtered = arr.map(letter => { if (letter.match(/^[0-9a-zA-Z]+$/) != null || letter === '-' || letter === "'" || letter === " ") { ...
true
a60d44f84a3cd4208754d79b910fc61a73e8ac41
JavaScript
magic-script/magic-script-components-lumin
/src/platform/lumin-runtime/types/date-format.js
UTF-8
1,902
3
3
[ "Apache-2.0", "CDDL-1.1", "LGPL-2.1-only", "GPL-3.0-only", "ISC", "GPL-2.0-only", "CC-BY-3.0", "BSD-3-Clause", "CDDL-1.0", "MPL-2.0", "AGPL-3.0-only", "MIT", "LicenseRef-scancode-free-unknown", "MPL-1.1", "BSD-2-Clause", "AGPL-3.0-or-later", "MPL-2.0-no-copyleft-exception", "CC-BY-...
permissive
// Copyright (c) 2019 Magic Leap, Inc. All Rights Reserved import { ui } from 'lumin'; function createDate (year, month, day) { let date; try { date = new ui.Date(Number.parseInt(year), Number.parseInt(month), Number.parseInt(day)); } catch (error) { throw new TypeError(`Cannot convert date string to D...
true
486d9b59d852c67d4c4e5aa3c8b08c0b2db2303c
JavaScript
thangathirupathi1297/june-full-stack-assignment-9-javascript
/script.js
UTF-8
1,283
4.875
5
[]
no_license
/* Having a number, determine whether it is even or odd. Use JS ‘function with return’ to implement the logic. Pass values 67 and 76 to the function and print the result. */ //odd or even using conditional operator function oddoreven() { var num=document.getElementById("even").value; (num%2==0)?document.ge...
true
4a4ef28290a61be3be9e510eea5a8a3184caecbd
JavaScript
c-dante/aoc
/src/2017/09.js
UTF-8
938
3.359375
3
[ "MIT" ]
permissive
const group = (start, end, depth) => ({ start, end, depth }); const stream = (input) => { const closedGroups = []; const openGroups = []; let garbageCount = 0; let garbage = false; for (let i = 0; i < input.length; i++) { const tok = input.charAt(i); if (tok === '!') { i++; continue; } if (garbage...
true
72a3b69c2697548f9085e1910d1a98d76bea9cf0
JavaScript
kwamito/branches
/app.js
UTF-8
575
4.09375
4
[]
no_license
let p = new Promise((resolve, reject) => { let a = 2 + 1 if ( a==2 ){ resolve('Success') }else{ reject('Failed') } }) p.then((message) => { console.log('This is in the then '+ message) }).catch((message) => { console.log('This is in the catch '+ message) }) let me = new Promise...
true
a9eca109e3ef955518fa9bbc3ad81fdf785da85e
JavaScript
laminegaci/Reactjs_TudoList
/src/Components/AddItems/AddItem.js
UTF-8
928
2.65625
3
[]
no_license
import React, { Component } from 'react'; import './AddItem.css'; class AddItem extends Component { state = { name : "", age : "" } handleChange = (e) => { this.setState({ [e.target.id] : e.target.value }) } handleSubmit = (e) => { e.preve...
true
b33910313ad4fead4fc050fe5aed994c79cca227
JavaScript
zfrancisconicolas/JavaScript
/08-21-2020/js/app.js
UTF-8
598
3.140625
3
[]
no_license
// Eliminar de Local Storage localStorage.clear(); let element; element = document; element = document.body; console.log("Getting the html body", element); element = document.getElementsByTagName("th"); console.log("Headers from the cart:"); for(let i = 0 ; i < element.length ; i++){ console.log(element[i].i...
true
18f1dcc74882a27632aed6ecc9416111d4b85cb4
JavaScript
lgiraudel/moohbox
/test/moohbox.spec.js
UTF-8
587
2.640625
3
[]
no_license
var moohbox = require('../index'); var sinon = require('sinon'); var assert = require('chai').assert; describe('Moohbox tests', function() { beforeEach(function() { sinon.spy(console, 'log'); }); afterEach(function() { console.log.restore(); }); it('should say mooh', function() { moohbox.mooh(...
true
393efcd1ea71066f80b66d93eacc5f200d81ce55
JavaScript
dannycrief/full-stack-web-dev-couse
/Web/C/1/1.11/checked/2 @IrishPhone/script.js
UTF-8
3,147
3.109375
3
[]
no_license
let running = false; let t; //setInterval(timerUpdate, 1000); //let initialMinutes; let initialSeconds; function resetTimer() { $(".progress-bar").css("width", "0"); $(".progress-bar").html("0%"); document.getElementById("minutes").value = "0"; document.getElementById("seconds").value = "0"; $("#minute-minus").pro...
true
dbbd7e7d5127ccc587ada3434aef9c195122fc8c
JavaScript
tanishatasnin/API-first-day
/json.js
UTF-8
1,517
3.171875
3
[]
no_license
function dataLode(){ fetch('https://jsonplaceholder.typicode.com/todos/1') .then(response => response.json()) .then(data => console.log(data)) } function dataUsers(){ fetch('https://jsonplaceholder.typicode.com/users') .then(res=>res.json()) .then(data=>displayusers(data)) } // dataUsers();//a...
true
a39ea700fcb77c1da8abbd08e0fdc43b8ba4d60d
JavaScript
miguelarbalestrini/secret-voldemort
/Frontend/src/features/game/reducers/playerActionsReducer.js
UTF-8
1,562
2.515625
3
[]
no_license
import { SELECT_CANDIDATE, SELECT_CANDIDATE_FAIL, SELECT_CANDIDATE_SUCCESS, VOTE, VOTE_FAIL, VOTE_SUCCESS, GET_RESULTS, GET_RESULTS_SUCCESS, GET_RESULTS_FAIL, PUT_RESULTS, PUT_RESULTS_FAIL, PUT_RESULTS_SUCCESS } from '../../../constants/actionTypes/playersActions'; const initialState= { status: 'unk...
true
f57e03b7a8beacf850bf3791b78fc1556d258106
JavaScript
tjmcclure/pokedex
/src/PokemonListItem.js
UTF-8
811
2.75
3
[]
no_license
function PokemonListItem({ data, setSelectedPokemon }) { //Callback to set the selected pokemon const onSetPokemon = () => { setSelectedPokemon(data) } return ( <div className="PokemonListItem" onClick={onSetPokemon}> <p className="number">#{data.num}</p> <img className="pokem...
true
8491e0db7e909e6187a294c9f64add21c8a8ad31
JavaScript
hwq2017/node-
/fileSystem/access.js
UTF-8
524
2.875
3
[]
no_license
var fs = require('fs'); fs.access('./txt1.md','fs.constants.F_OK | fs.constants.W_OK',function (err) { // console.log(err); if (err) { fs.mkdir('./txt1.md',function (err) { if (err) { console.log('err'); }else{ console.log('create success'); } }) }else{ fs.rmdir('./t...
true
76080a1986e8c74a34c66e6881095474d17ea762
JavaScript
JanMod/spotifyGuessWebgame
/spotifyGuessGame/server/game/player.js
UTF-8
245
2.5625
3
[]
no_license
class Player extends User{ constructor(name){ super(name) //this.icon = TODO } changeName(name){ this.name = name; } addPoints(points){ this.points += points; } } module.exports = Player;
true
26e40b77cfadf3b1fea5ad033cac4b5ba7eb1a41
JavaScript
Chidroopa/WMS
/AdminCodes/addaccom.js
UTF-8
1,879
2.921875
3
[]
no_license
function formAccomdation() { var hname = document.addaccomd.h_name; var cnum = document.addaccomd.c_hall; var uinch = document.addaccomd.incharge; var uaddr=document.addaccomd.addr; if(allLetter(hname)) { if(allnumeric(cnum)) { if(allfield(uinch)) ...
true
533dfac2a4187c163c163ebee5e03d9471fd070b
JavaScript
Jessica-Koch/battleships
/src/js/gameUI.js
UTF-8
4,180
2.65625
3
[]
no_license
import * as THREE from "three"; // importing a module with options isn't supported yet so we need to require orbitControls const OrbitControls = require('three-orbit-controls')(THREE); class GameUI { constructor(boardController) { // dont need the board from UI class, should be injected directly ...
true
b4eb6903a86340b721c8f77ab2c0c2601a6941a9
JavaScript
purpLEEEE/ProjetPhotobox
/js/gallery_ui.js
UTF-8
1,438
2.734375
3
[]
no_license
import lightbox from './lightbox.js' let lightbox_courante = null; /** * Ajoute et affiche le markup HTML de la galerie courante * @param { object } gallery */ let display_gallery = (gallery) => { let gallery_container = document.querySelector('#gallery_container') gallery_container.innerHTML = "" gallery.p...
true
ef83cf81856451634ad56589b176ed7d9bde5fc9
JavaScript
Pandanaax/Pet-
/PET/Pet.js
UTF-8
2,071
3.046875
3
[]
no_license
console.log("Si tu vois ce message, c'est que tout va bien :)") $("document").ready(() => { console.log("jQuery est prêt."); }); // Call api for pet $.ajax({ url: 'https://randomapi.com/api/4f0c33b9f6ad0d08db6182cd7984157c?results=6', dataType: 'json', success: function(data) { console.log(dat...
true
21049029092a5977f6cb177d75b71966a24ac1ae
JavaScript
schriker/jar-vue
/src/components/notes/notes.worker.js
UTF-8
1,159
2.828125
3
[]
no_license
let messageInterval let timeInterval onmessage = ({ data }) => { const intervalFunction = () => { const messagesInView = data.fetched.filter((message, index) => { const condition = (message.timestamp * 1000) <= data.startTime if (condition) { data.fetched.splice(index, 1) } return...
true
c9a14e1f2b10163252a101bc822b74ff5e0a3daa
JavaScript
gouravkhator/File-Upload-NodeJS-Multer
/app.js
UTF-8
2,536
2.65625
3
[]
no_license
const express = require('express'); const multer = require('multer'); const path = require('path'); const ejs = require('ejs'); const app = express(); //Set storage engine const storage = multer.diskStorage({ destination: './public/uploads', filename: (req, file, cb) => { cb(null, file.fieldn...
true
439f344bd0d87d3ff27c931387fadc85da5567e2
JavaScript
bgtaber/d3-repo
/assets/js/app_work.js
UTF-8
4,729
3.59375
4
[]
no_license
// @TODO: YOUR CODE HERE! //Define SVG area dimensions var svgWidth= 960; var svgHeight= 500; //Define the chart's margins as an object var margin= { top: 20, right: 20, bottom: 20, left: 20 }; //Define dimensions of the chart area var chartWidth= svgWidth-margin.left-margin.right; var chartHeight= svgHeight-mar...
true
225e95928185b88ae97b55de0b1270ebbdafa415
JavaScript
YanGen/allin
/render/winMessage.js
UTF-8
782
2.640625
3
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
// 弹窗 const {dialog} = require('electron').remote var xiaoxiBtn = document.getElementById('xiaoxi') xiaoxiBtn.onclick = function(){ dialog.showMessageBox({ type:'warning', title:'核警报', message:'是不是你!!', //点击后返回数组下标 buttons:['yes','no'] }).then(result=>{ console.l...
true
0c85fab8d71a0b6b60b9ba41af5c534a209c02bc
JavaScript
jonahlatham/code-wars
/javascript/8 Kata/NewCodeWars/powerOfTwo.js
UTF-8
275
3.515625
4
[]
no_license
// https://www.codewars.com/kata/534d0a229345375d520006a0 function isPowerOfTwo(n){ if(Math.sqrt(n)%2 === 0) { return true } else { return false } } console.log(Math.sqrt(2048)) console.log(2048*2) console.log(isPowerOfTwo(2048))
true
db44745c57b57b4f28b4c91e89cf5395c873f191
JavaScript
sqq1992/plugins
/animate/plugin.js
UTF-8
13,920
3.109375
3
[]
no_license
;(function(){ 'use strict'; /** * 异步加载图片的函数 * @param images 传入的图片数组 * @param callback 回调函数 * @param timeout 超时时间 */ var loadingImage = function(images,callback,timeout){ var conut = 0, item = {}, isTimeout = false, //是否超时 timeoutId = n...
true
0def065cbb5dcd44b086f5f74188b9938561fb38
JavaScript
emartin-cfe/meeting_minutes
/javascript/addTaskButtons.js
UTF-8
717
2.875
3
[]
no_license
function addTask(meetingID) { var e = document.getElementById("topicID"); if(e.options[e.selectedIndex].text == "") { alert("Select a topic!"); return false; } if (document.getElementById("actionDescription").value == "") { alert("Enter an action/decision!"); return false; } // Mirror the value of the div contain...
true
045b7bc7731d3562a6aa0514f4966cd6a039a8bd
JavaScript
SerhatKayacan/serhat-kayacan-react-router-app
/src/movies-components/components/search.js
UTF-8
2,678
2.546875
3
[]
no_license
import React from "react"; import "./Search.css"; import MoviesDataService from "./api"; import Form from "./form"; import InputArea from "./inputArea"; import MovieTableSearched from "./movieTableSearched"; class Search extends React.Component { state = { inputValue: "", movies: [], catogory: "", fa...
true
057e7b0a4e795fcac5f077704babfec538ff3aea
JavaScript
noomorph/vote-upp
/public/js/results.js
UTF-8
3,025
3.03125
3
[ "MIT" ]
permissive
/* global io */ /* jshint browser: true */ (function () { 'use strict'; var BAR_COLORS = [ 'rgb(93, 188, 95)', 'rgb(219, 83, 38)', 'rgb(38, 200, 236)', 'rgb(23, 119, 210)', 'rgb(200, 0, 0)' ]; function BarChart(view) { var bars = view.querySelectorAll('...
true
663d74f8a0e4cd965a22ceb330efbd6d87db88bf
JavaScript
Haloren/fewpjs-class-extensions-super-lab-onl01-seng-pt-030220
/index.js
UTF-8
1,223
3.8125
4
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
// Write your classes here class Tree { //A `Tree` instance should take in one parameter when created, `species` constructor(species) { this.species = species; } //A `Tree` should have a static method, `definition()` static definition() { return `A tree is a perennial plant with an e...
true
123a53ba702707a57b143465062d041673b12ab5
JavaScript
jakerella/piggy
/app/public/script/vendor/jquery-pattern-input.js
UTF-8
10,974
2.84375
3
[ "MIT" ]
permissive
(function ($) { function hitTest(state, x, y) { var columnHit = -1; var rowHit = -1; if (((x - state.border) % state.dotHSpace) <= state.dotSize) { columnHit = Math.floor((x - state.border) / state.dotHSpace); if (columnHit > state.horizontalDots - 1) { ...
true
2210dbe2d9443d151785f038a4ae0c2244db4c9d
JavaScript
alexisjlv/interview
/javascript_apprenticeship/ex1_algo/1_fibonnacci.js
UTF-8
816
3.84375
4
[]
no_license
"use strict"; /* Write an ES6 simple algorithm which compute the first 100n of the Fibonnacci sequence As a friendly reminder : ∀ n > 2, i(n) = i(n-1) + i(n-2) Bonus : Format the numbers (tip, check the numeral lib on npmjs.com) */ var rabbit = ` , /| __ / | ,-~ / ...
true
aecefec8fad851e6299765248a96138e2bb3ba99
JavaScript
atorian/game
/src/skills/1122.js
UTF-8
729
2.515625
3
[]
no_license
// @flow import type { Ability } from "../index" import { step, targetEnemy, debuff, multistep, GenericSkill } from "../skill" // skill id: 1122 /** Increases the damage inflicted on enemies with harmful effects by 30% and makes an enemy (Boss monsters excluded) oblivious for 2 turns with each attack. Passive skills ...
true
e4b9e107fd77d2f7502a3bc2a69c21640784ba28
JavaScript
hamzahejja/lodash-recreated
/test/array/flattenDeep.test.js
UTF-8
405
2.53125
3
[ "MIT" ]
permissive
const _flattenDeep = require('lodash/flattenDeep'); const { flattenDeep } = require('../../src/functions/array'); describe('_.flattenDeep(array): Recursively Flattens Array of any depth', () => { it('It Should Match Result with Lodash _.flattenDeep and flattens array of any depth', () => { expect(flattenDe...
true
a2b5943bb3c3d261fbffd3a46147b1fdf6e82ebd
JavaScript
prameshbajra/expensify
/src/tests/apis/expensesTotal.test.js
UTF-8
625
2.640625
3
[]
no_license
import expensesTotal from '../../apis/expensesTotal'; const expenses = [{ id: 'one1', description: 'desc 1', note: 'Some note 1', amount: 200, createdAt: 0, }, { id: 'two2', description: 'Some 2', note: 'Some note 2', amount: 1200, createdAt: 5, }, { id: 'three3', descri...
true
3e909d7542ddf8334000f069a3e4bae6881205c4
JavaScript
adrienjoly/cours-nodejs-exercise-testers
/partiel-solution/server.js
UTF-8
1,429
2.78125
3
[]
no_license
'use strict'; const { PORT, MONGODB_URL, MONGODB_DATABASE, MONGODB_COLLECTION } = process.env; const express = require('express'); const app = express(); const MongoClient = require('mongodb').MongoClient; async function getLastVistor() { const client = new MongoClient(MONGODB_URL); await client.connect(); co...
true
46102f2cab3f6ac10d22266a5181c24d9cfe1c91
JavaScript
mikodev350/simple-app-product-
/Admin/node Service/Controll/authController.js
UTF-8
5,785
2.65625
3
[]
no_license
const { promisify } = require('util'); const jwt = require('jsonwebtoken'); const Admin = require('./../Schema/authSchema'); const Question = require('../Schema/questionSchemat') const catchAsync = require('./../apiUtile/catchAsync'); const AppError = require('./../apiUtile/appError'); // const sendEmail = require('./....
true
22a1c82d0f06b8bfb72a8da0211a7448f38b9a64
JavaScript
AFresnedo/pizza-bot
/bot.js
UTF-8
7,442
2.640625
3
[]
no_license
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. const { ActivityTypes } = require('botbuilder'); const { ChoicePrompt, DialogSet, WaterfallDialog } = require('botbuilder-dialogs'); // // Property IDs for all PizzaBot states... why are these global constants? Is it wet o...
true
01d0e555686b56f4c1a0bb9ab3bd2ef5607994f6
JavaScript
zt283869/protogenesis-js
/js-原生技术/event事件/cookie.js
UTF-8
557
2.984375
3
[]
no_license
//cookie存时间 function changedate(n){ var d = new Date(); d.setDate(d.getDate()+n); return d; } //保存cookie function savecookie(key,value,n){ document.cookie = encodeURIComponent(key)+"="+encodeURIComponent(value)+";expires="+changedate(n); } //删除cookie function deletecookie(key){ savecookie(key,"",-1); } //获取Cooki...
true
33a02ab933fa2e00b1e49632c0788fe46ec6ea23
JavaScript
jberwick12/-OSU-CS362-W19-2048-testing
/test/tile.test.js
UTF-8
723
2.6875
3
[ "MIT" ]
permissive
const Tile = require('../js/tile.js'); test('', () =>{ var x =0; expect(x).toBe(0); }); describe('Create Tile', function() { test('Tile Creation', function() { var x = function Tile(position, value) { this.x = null; this.y = null; this.v...
true
2aacd94c68db92cc603bcda008f770170cb4c7cc
JavaScript
MrPIvanov/SoftUni
/08-JS Fundamentals/06_EXERCISE DOCUMENT OBJECT MODEL/DOM_Exercises/05_Number-Convertor/solution.js
UTF-8
959
3.140625
3
[ "MIT" ]
permissive
function solve() { let selectOptionsElement = document.getElementById("selectMenuTo"); let binaryOption = document.createElement("option"); let hexadecimalOption = document.createElement("option"); binaryOption.textContent = "Binary"; binaryOption.value = "binary"; hexadecimalOption.textContent...
true
b5a3a979a12b5ec2b71b7bb8fd7dc0a26705c138
JavaScript
L-seaung/JavascriptByExample
/JavascriptExample/The_Base/variavles/main.js
UTF-8
167
2.734375
3
[]
no_license
(function(){ 'use strict'; var hello, world; hello = 'hello'; world = 'world'; document.getElementById('ex').innerHTML = hello + '' + world; }());
true
4cb0b0348e3bac0bab87e0c176bb455a2cb19341
JavaScript
ilredian/ROOT
/WebContent/js/home/boardLaw/createXMLHttpRequest.js
UTF-8
1,207
2.53125
3
[]
no_license
function createXMLHttpRequest(){ var xmlHttp; if(window.ActiveXObject){ try{ xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e){ ...
true
0b2588b776522e36fccd2601403b73804a694aa2
JavaScript
iamousseni/runtheons-validate
/test/integer.test.js
UTF-8
1,128
2.671875
3
[]
no_license
const assert = require('assert'); const Validator = require('../index'); var schema = { id: { type: Validator.INTEGER, min: 0, max: 1000, required: true } }; describe('INTEGER', function() { it('Example', async() => { const result = await Validator.validate(schema, { id: 1 }); assert.equal(result.stat...
true
7094931c9eb19af261e489c452ed33135e44c7a5
JavaScript
JohnCodez/Hangman
/src/state/start.js
UTF-8
1,808
3.296875
3
[]
no_license
function setup() { fresh() wrongGuesses = 0 const enterWordForm = document.createElement('form') const enterWord = document.createElement('input') enterWord.id = 'entered-word' enterWord.placeholder = 'Word (10 letters max)' enterWord.autocomplete = 'off' enterWordForm.addEventListener('...
true
6bb6a398de4e316ec259f024388393d590a2f2ef
JavaScript
Michele-Carbone/js-jsnacks-blocco-1
/js/snack3.js
UTF-8
1,276
3.40625
3
[]
no_license
/*SNACK 3: Generatore di “nomi cognomi” casuali: prendendo una lista di nomi e una lista di cognomi, Gatsby vuole generare una falsa lista di 3 invitati. /* 1 - Creare una lista di Nomi; 2 - Creare una lista di Cognomi; 3 - Creare una lista vuota; 4 - Sorteggiare un nome a Caso (Random); 5 - Sorteggiare un cognome ...
true
e9faa25ddcecaea8a44c3d81fe21c3b0f1c043f2
JavaScript
sorayaleon/notas-back-nem
/src/controllers/users.js
UTF-8
5,538
2.875
3
[ "MIT" ]
permissive
/** * CONTROLADOR DE USUARIOS * Controlador de usuarios para realizar los métodos que le indiquemos a través del enrutador. */ import bcrypt from 'bcryptjs'; import User from '../models/users'; import env from '../env'; /* eslint-disable class-methods-use-this */ class UsersController { /** * GET all. Devuel...
true
40fb4a063a739b890b18e3b76b882ae4d04a4c83
JavaScript
InaccessibleCardinal/some-comps
/src/samples/Counter.js
UTF-8
1,996
3.125
3
[]
no_license
import React, {Component} from 'react'; let funcs = []; function compareFuncs(f) { funcs.push(f); console.log('are they the same? ', f === funcs[funcs.length - 2]); console.log('funcs: ', funcs); } export default class Counter extends Component { constructor(props) { super(props); thi...
true
f8d158b1ec58b834f42a03be60a7a711ca3e744b
JavaScript
AdriannaJedrzejczak/ZadanieRekJs
/libs/PeselGenerator.js
UTF-8
604
3.234375
3
[]
no_license
import {generateNumber} from "./NumberGenerator.js"; export function generatePesel(birthDate) { let pesel = insertBirthDateToPesel(birthDate); pesel += generateNumber(0, 9, 5).join(""); return pesel; } function insertBirthDateToPesel(birthDate) { let pesel = ""; if(birthDate.day.toString().lengt...
true
2df44f321a2008c21d864e31271289d9559a9438
JavaScript
BuckUbel/buckubel.github.io
/rssFeedGenerator/creator.js
UTF-8
2,549
2.5625
3
[ "MIT" ]
permissive
const Feed = require("feed").Feed; const markdown = require("markdown").markdown; const fs = require("fs"); const dotenvConfig = require("dotenv").config(); const extractBlogData = require("./extractBlogData.js"); if (!!dotenvConfig.error) { console.error(dotenvConfig.error); } const environment = dotenvConfig.parse...
true
f499c39cc949715e52feb477895c67a5df27e6d6
JavaScript
shanugoyal3/Tracalorie
/App.js
UTF-8
18,165
3.4375
3
[]
no_license
// will make controllers for item ui ,App and storage // Storage Controller const StorageCtrl = (function(){ // Public Methods return { storeItems: function(item){ // lets take an aaray let items; // check if there is any item in local Sotrage ...
true
3337c9305316270240944447c1e556f24db0834e
JavaScript
373974360/cicroCms
/web/manager/js/jquery.c.js
UTF-8
11,165
2.890625
3
[]
no_license
/** * 本文件是对Jquery的扩展,以减轻工作中的重复劳动, 其中的利用JS反射自动填写表单和填充对象的功能相当有用 * * @author Chunson */ /** * 操作checkBox的扩展 用法: $("#aa").check("on"); $("input").check("on"); * * @param {} * mode on=选择 off=取消 fan=反选 默认值为on * @return {} */ $.fn.check = function(mode){ var mode = mode || 'on'; // if mode is undefine...
true
cf8f8ca593f875162555f7ecbefb1a0fbcba0a6c
JavaScript
Aittaleb/weatherApp
/app-promise.js
UTF-8
1,524
2.71875
3
[]
no_license
const yargs = require('yargs'); const request = require('request'); const axios = require('axios'); const argv = yargs.options({ a: { demand: true, alias: 'address', string: true, describe: 'adress to get weather for' } }) .help() .alias('help', 'h') .argv; v...
true
38caab0407da453afc25755871b191a0f58cdf3e
JavaScript
shivmangalsingh/Shopping
/checkOut.js
UTF-8
866
2.90625
3
[]
no_license
const prompt = require("prompt-sync")(); const chalk = require("chalk"); let { viewCart } = require('./viewCart.js'); const { itemList } = require('./data.js'); function checkOut(userItemList) { if (userItemList.length == 0) { console.log(chalk.red("You did not have any item in your Cart! First add then c...
true
fc89a2a91400d5030d7d83f2764209c2ba9a24af
JavaScript
aficionadoventures/gustav
/bubble-4/js/index.js
UTF-8
468
2.828125
3
[ "MIT" ]
permissive
jQuery(document).ready(function($) { /* $(document).on('click', function() { $('body').removeClass('anim-start'); setTimeout(function() { $('body').addClass('anim-start'); }, 100); }); */ setTimeout(function() { $('body').toggleClass('anim-start'); }, 500); setInterval(function() { ...
true
ed474d671717bf2f655b577e24b7b86019e73976
JavaScript
MickaelAlliel/itc_portfolio
/BuzzQuizz/js/script.js
UTF-8
6,777
3.125
3
[ "MIT" ]
permissive
var quizTitle = 'Are you a good person ?'; var scoreRules = '0-5 points - Do you really want me to tell you if you are a good person or not?<br/>6-10 points - You are normal, as average as the normal american can be.<br/>11-16 points - You are a saint. Continue doing what you\'re doing!'; var questions = [ 'You see ...
true
1a8feac0ff56aeada7c5d4459185a5a74732bfb2
JavaScript
yurigava/almoxdaeln
/src/reducers/prepareReserve.jsx
UTF-8
3,800
2.5625
3
[ "GPL-3.0-or-later" ]
permissive
import update from 'immutability-helper'; const emptyBarCode = { value: "", equipTipo: null, isLoading: false, errorCode: "", id: 0 }; const initialState = { infoNumber: 0, reserves: [], barCodes: [emptyBarCode], reserveEquips: [], requisicao: null, availableCarrinhos: [], carrinhoErrorText: "...
true
d2f726e4a826aae86e59622ffb9d5a1e6d3d6804
JavaScript
narroviz/article-basketball-recordigami
/src/js/footer.js
UTF-8
2,353
2.9375
3
[ "MIT" ]
permissive
const fallbackData = [ {}, {"image":"nba","url":"html/nba-season-history","hed":"NBA Season History"}, {"image":"nba","url":"html/wnba-season-history","hed":"WNBA Season History"}, {}, ] let storyData = null; function loadJS(src, cb) { const ref = document.getElementsByTagName("script")...
true