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
b93ec1afa6c7afe8e7fbf4b0c35f1b2122370991
JavaScript
S-E-Pashin/1072207-keksobooking-20
/js/validation.js
UTF-8
3,287
3
3
[]
no_license
'use strict'; (function () { // Количество возможных гостей в зависимости от количество арендуемых комнат. var roomNumbers = document.querySelector('#room_number'); var guestsNumber = document.querySelector('#capacity'); // var roomNumbers = document.getElementById('room_number');/* Поле выбора количества комна...
true
099c11569fbb871fac9e7aa55820185fc0507b40
JavaScript
peterkarabinovic/protoplan
/web3/src/utils/leaflet-handler-stack.js
UTF-8
1,263
2.875
3
[]
no_license
/** * Add inqueue_on/inqueue_off methods on obj * with these methods clients could add event handler into stack * event handlers call from the tail, if handler return true? then processing stop * @param {*} obj */ export function EventHandlerStack(obj) { var stack = {}; obj.inqueue_on = function(event_ty...
true
f7e1a31cabd60f0e627dcbbdcb12764acbba7947
JavaScript
zacbennett/environmental-index-react
/src/components/FormB.jsx
UTF-8
996
2.65625
3
[]
no_license
import React, { Component } from 'react'; export class FormB extends Component { constructor(props) { super(props); } render() { return ( <div> <h1>THIS IS PART 2</h1> <button onClick={this.props.backButtonClick}>Go to Part 1</button> <label htmlFor="feelingElem">How are you...
true
ba8c969f68eb51be6c3b45093845d6a23c4b5577
JavaScript
wija/json-database.js
/src/TextIndex.js
UTF-8
1,890
2.59375
3
[ "MIT" ]
permissive
//TextIndex.js ;(function (exports) { var db; if(typeof module !== 'undefined' && module.exports) { // node db = {}; db.sets = require('./sets').sets; db.Trie = require('./trie').Trie; db.stopWords = require('./stopwords').stopWords; } else { // browser db = window.db; } //opts = extractKeyFn, tokeni...
true
9088fe1fe235cdc328bcf717f311f012be203e97
JavaScript
lee-philip-n/hrsf91-mvp-gamehub
/hrsf91-mvp-rps/client/src/Game.jsx
UTF-8
2,834
2.953125
3
[]
no_license
import React from 'react'; import './index.css'; class Game extends React.Component { constructor(props) { super(props); this.state = { socketID: this.props.socket.id, condition: null, selection: '', opponentSelection: '', }; } componentDidMount() { this.props.socket.on("...
true
45fde744d351e39a7c8801a75ea0bcbb6c716480
JavaScript
pixelherd/little_scripts
/app/javascript/packs/standalone_clock.jsx
UTF-8
810
2.703125
3
[]
no_license
import React, {useState, useEffect} from 'react' import {render} from 'react-dom' const Clock = (props) => { const [time, updateTime] = useState(new Date(props.date).getTime()); useEffect( () => { let timer = setTimeout( () => { updateTime(time => time +...
true
c9268089c33d559edef920f36db3ce68d1107678
JavaScript
Kryptonian92/eosio-test
/src/App.js
UTF-8
760
2.609375
3
[]
no_license
import React, {Component} from 'react'; import logo from './logo.svg'; import './App.css'; import Toggle from './Toggle'; class App extends Component{ constructor(props){ super(props); this.state={ items: [], isLoaded: false, toggle: false, } } componentDidMount() { fetch('...
true
99c295713e9375011b6d0bed03504d9cb9a4eca2
JavaScript
pclose/gesture-ships
/js/core.js
UTF-8
8,368
2.796875
3
[]
no_license
/*Copyright 2012 Google Inc. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
true
91dee314e90eab29877d9cb3d457a55f15fbe942
JavaScript
aalexeev239/shri-tasks
/assets/js/build/scripts.js
UTF-8
10,898
2.53125
3
[]
no_license
var flightTable = (function() { 'use strict'; var table, head, fixedHead, rows = [], popup, popupCells = [], popupClose, externalLinks = [], scrollBarW = 0, startPos = 0; // #js-flight // #js-flight-head // #js-flight-fixed // .js-flight-row // #js-f...
true
30205554f1ab91043f39887b969fbf8d46b696ab
JavaScript
JohannaXX/lab-javascript-memory-game
/js/memory.js
UTF-8
771
3.59375
4
[]
no_license
class MemoryGame { constructor(cards){ this.cards = cards; // add the rest of the class properties here this.pickedCards = []; this.pairsClicked = 0; this.pairsGuessed = 0; } shuffleCards() { if(!this.cards) { return undefined; } else { const mixedCards = []; while (...
true
d392a70596a839ba1d261a1e6116afab8771eaa4
JavaScript
thiscouldbebetter/GameFramework
/Source/Model/Usables/Usable.js
UTF-8
479
2.609375
3
[]
no_license
class Usable { _use; isDisabled; constructor(use) { this._use = use; this.isDisabled = false; } use(u, w, p, eUsing, eUsed) { if (this.isDisabled) { return null; } return this._use(u, w, p, eUsing, eUsed); } // Clonable. clone() { return new Usable(this._use); } overwriteWith(oth...
true
6e28d52077b12bed2e34fd0ad8c9fec3d594c65e
JavaScript
DiaLight/SimpleWebFramework
/share/old/input.js
UTF-8
2,565
3.125
3
[ "MIT" ]
permissive
class DataInputStream { constructor(buffer) { this.b = new Uint8Array(buffer); this.p = 0; } read(size) { if (size) { let arr = new Array(size); for(let i = 0; i < size; i++) { arr[i] = this.read(); } retu...
true
3bb3c173be8eaa0c247cd68f2be9c7c994fe9fbf
JavaScript
Utkarsh-1996/Sapientlearn-UI
/Javascript/first.js
UTF-8
293
2.96875
3
[]
no_license
"use strict" function init(){ console.log(getFullName('Utkarsh',' Awesome')); } function getFullName(fname,lname){ return fname+lname; } init(); function init(){ console.log(getFullName('Utkarsh',' Amazing')); } function getFullName(fname,lname){ return fname+lname; } init();
true
7f92fa186130dbc4c5e8560752ada25bbc176301
JavaScript
Zenika-Training/formation-html5-avance
/Exercices/workspaces/TP3/server/server_file.js
UTF-8
2,167
2.5625
3
[]
no_license
var express = require('express'); var fs = require('fs'); var serv = express(); serv.configure(function() { serv.use(express.static('../client/')); serv.use(express.static('./uploads/')); serv.use(express.bodyParser({uploadDir: './uploads'})); }); serv.post('/fileUpload', function(req, res) { console.log(req.body...
true
0b8e01c12fd25ef313c17aade25fda883937a1f1
JavaScript
Iolandap/Curso2018
/Modulo 1/06 - Javascript JQuery/Ejerc/13b - Ejerc/js/codigo.js
UTF-8
629
3.546875
4
[]
no_license
$(document).ready(function(){ //document.getElementById("add").addEventListener("click",addItem); $("#add") .on("click",addItem); //document.getElementById("remove").addEventListener("click",removeItem); $("#remove") .on("click",removeItem); }); /* Funcion para añadir elementos */ function add...
true
a35d1e0a206a77930d9b49aeaa9b8657a898bffc
JavaScript
bryanmej/lab-canvas-hangman
/starter_code/hangman.js
UTF-8
1,337
3.59375
4
[]
no_license
var hangman; function Hangman() { this.words = ['hola' , 'jello', 'ornitorrinco'] this.secretWord = this.words[2] this.letters=[] this.guessedLetter = "" this.errorsLeft = 10 } Hangman.prototype.getWord = function () { return this.secretWord }; Hangman.prototype.checkIfLetter = function (keyCode) { if(keyCode >= 61 ...
true
70b77fe205acd6ee443c1a0262b27ac5f5adbff5
JavaScript
stevenwanderski/instafetch
/test/instagram/request_test.js
UTF-8
2,723
2.640625
3
[]
no_license
describe("Instagram Request", function(){ describe("#run", function(){ afterEach(function(){ $.ajax.restore(); }); describe("when a successful API response", function(){ it("returns the api response", function(){ var fakeResponse = { meta: { code: 200 } } sinon.stub($, "ajax",...
true
6fe1287828f1205465e783349fffe5d3c4d4bb04
JavaScript
p4bloch/superliga-gql
/src/util/excel.js
UTF-8
422
2.546875
3
[ "MIT" ]
permissive
import { range } from './collection' export const getCellNumber = (cell) => parseInt(cell.match(/\w(\d*)/)[1]) export const getCellColumn = (cell) => cell.match(/^([A-Z])+/)[0] export const getRange = (ws, c1, c2) => { const column = getCellColumn(c1) const cells = range(getCellNumber(c1), getCellNumber(c2)) ...
true
bcd3321fef342c0d00c24873502fc106368a7ba4
JavaScript
Soronkkk/homework
/src/main/resources/static/employeeMethods.js
UTF-8
4,091
3.234375
3
[]
no_license
$(document).ready( function () { // SUBMIT FORM $("#employeeForm").submit(function (event) { // Prevent the form from submitting via the browser. event.preventDefault(); ajaxPost(); }); function ajaxPost() { // PREPARE FORM DATA ...
true
036d2bef9390496571d7a0bd931d0da05140aa89
JavaScript
LukeGeneva/tetris-clone
/src/index.js
UTF-8
428
2.953125
3
[ "MIT" ]
permissive
import { TILE_SIZE } from './constants'; const canvas = document.createElement('canvas'); document.body.appendChild(canvas); const context = canvas.getContext('2d'); const rows = 20; const columns = 10; canvas.height = rows * TILE_SIZE; canvas.width = columns * TILE_SIZE; function main() { context.fillStyle = 'blac...
true
c7cbab91ca3a33a6cc4722047b91332e3bcd20c6
JavaScript
JarlMartinez/memory-game
/src/assets/functions/createDeck.js
UTF-8
1,488
3.265625
3
[ "MIT" ]
permissive
import createDesorderedArray from './createDesorderedArray' export default (pairsPlaying, characters) => { // The total characters will always be 20, tahts what every request brings const TOTAL_CHARACTERS = 400 // The min ID es dif on every page, we need to know the id of the first character // and th...
true
894244a41a761216dcbfb2b98a95bcc85c92bb05
JavaScript
dryyun/algorithms-note
/LeetCode/ProblemSet/110.Balanced Binary Tree/balanced-binary-tree.js
UTF-8
991
3.328125
3
[ "MIT" ]
permissive
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ const {LeetCode, TreeNode} = require('../../leetcode.js'); /** * @param {TreeNode} root * @return {boolean} */ var isBalanced = function (root) { let isBal = true; let ...
true
e8bf15479bd5ba8478c46e8efb7f2660536e978a
JavaScript
C-Garza/pokedex-react
/src/components/utils/helper-functions.js
UTF-8
6,301
2.953125
3
[]
no_license
import typesClass from "../shared-css/types.module.css" ////GETS ARRAY OF TYPES AND RETURNS ARRAY OF CLASS NAMES FOR typesClass export const getTypesClass = (types) => { return types.map(type => { if(type === "fire") { return { card: `${typesClass.pokeTypeLogoFireCard}`, logo: `${typesClas...
true
1df217a878b63f2b596128c4e232e4e9637ea39f
JavaScript
Ms-V-isa-Dev/web-340
/week-3/putting-it-all-together/washington-assignment-3.4.js
UTF-8
1,037
2.578125
3
[]
no_license
/* ============================================ ; Title: Exercise 3.4 ; Author: Professor Krasso ; Date: 7 March 2020 ; Modified by: Verlee Washington ; Description: Demonstration of putting it all ; together. ;=========================================== */ var express=require("express"); var http=require("http"); ...
true
b1858fba84c35c54b03d02ad65dbeee9a902903a
JavaScript
ilyamikhaylus/Freecodecamp
/Intermediate-Algorithm-Scripting/20 Bonfire: Everything Be True.js
UTF-8
691
4.125
4
[]
no_license
/* Check if the predicate (second argument) returns truthy (defined) for all elements of a collection (first argument). For this, check to see if the property defined in the second argument is present on every element of the collection. Remember, you can access object properties through either dot notation or [] notati...
true
aef6a9f2b1ab3ee036b031ad2ce755aa619ca908
JavaScript
RyanChiu/NCC-3.5x
/webroot/js/zrkits/extrakits.inc.js
UTF-8
1,338
3.21875
3
[ "MIT" ]
permissive
function __zShowClock() { var now = new Date(); /* 2 a.m. on the Second Sunday in March to 2 a.m. on the First Sunday of November, GMT - 4 (Other time, GMT - 5) */ var secSundayInMar = new Date(); var frtSundayInNov = new Date(); secSundayInMar.setUTCMonth(2); secSundayInMar.setUTCDate(1); secSundayInMar.s...
true
6448c7593208c2054a7a24013501e9d11f2e0a7d
JavaScript
bjamey/libuseless
/Java Script/Miscellaneous/Fade an Element.js
UTF-8
2,162
2.984375
3
[]
no_license
// ---------------------------------------------------------------------------- // DTT 2.1.5.2 (c)2007 FSL - FreeSoftLand // Title: Fade an Element // // Date : 15/05/2007 // By : FSL // ---------------------------------------------------------------------------- var fad...
true
707822dd788fc2f7dd7c52e3929864a7dcf4e60e
JavaScript
lapotnikov/helplib
/dist/node/modules/object.js
UTF-8
4,267
2.578125
3
[ "MIT" ]
permissive
const helpLibModule = (helpLib) => { helpLib.regHelper('obj', 'is', null, function(obj) { return typeof obj === 'object' && obj !== null ? true : false; }); helpLib.regHelper('obj', 'isSet', {'.': 'isInstance'}, function(obj) { return this.obj.is(obj) && this.isInstance(obj,' Set') ? true : false; }); helpL...
true
11e813ada1e07bd84f5bae40581cc4ed0d2bab1c
JavaScript
krushiraj/krushiraj.github.io
/terminal-app/src/components/fs.js
UTF-8
4,356
2.921875
3
[]
no_license
/*eslint-disable*/ const fs = { '~': { type: 'directory', data: { folder1: { type: 'directory', data: { folder2: { type: 'directory', data: {} }, file2: { type: 'file', data: 'Hello from file2.' } ...
true
23b3aed8c5fc998c2ec02101a8a0e115f9ccbcfd
JavaScript
mzs07/blk
/public/javascripts/result.js
UTF-8
1,609
2.515625
3
[ "MIT" ]
permissive
$(document).ready(function () { var query = $('h2').text(); $('.sbar').val(query); query = query.split(' '); var display = [], k; var data, prodlist = [], i=0; for (var index = 0; index < query.length; index++){ data = {elem : query[index]} $.ajax({ type : 'POST', url : '/bor...
true
b7421a0b13e0afa0b896a0670e5f4f5c8edf1b9a
JavaScript
Goawayjose/oneOnOne
/resources/assets/js/app.js
UTF-8
2,279
2.71875
3
[]
no_license
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * Next, we will create a fresh Vue a...
true
6dced8fd9d8877fb5ed628c1f161087758815b00
JavaScript
liamokeeffe42/Portable-Air-Cleaner-Calculator
/src/components/Calculator/AirCleanerCADRInput.js
UTF-8
4,039
2.65625
3
[]
no_license
import "./Calculator.css"; import { useState } from "react"; import CadrImg from '../../images/cadr_clipart.png'; import React from "react"; import ReactToolTip from "react-tooltip"; export function AirCleanerCADRInput(props) { const [cadr, setCadr] = useState(props.airCleanerInfo.cadr === 0 ? "" : props.airClean...
true
8a2e2e833495a025284af02fc1bee4e535925a80
JavaScript
mfeineis/game01
/js/app/main.js
UTF-8
364
2.625
3
[ "BSD-3-Clause" ]
permissive
const trace = (...args) => console.log("[app]", ...args); export const createApp = (store, root) => { trace(`createApp`, store, root); root.onclick = (evt) => store.dispatch({ topic: "ROOT_CLICK", }); store.subscribe(({ initialized }) => { root.innerHTML = ` <b>initialized: ${Boolea...
true
f4e65cce8bba843b30ac39763c0b56152daa341e
JavaScript
mayankingithub/AppAcademy-Projects
/W2D1/problem_set.js
UTF-8
2,167
3.546875
4
[]
no_license
var divisibleByThreePairSum = function(array) { var arr = []; for(var i = 0; i < array.length; i++) { for(var j = i+1; j < array.length; j++) { if((array[i] + array[j]) %3 === 0 ) { arr.push([i,j]); } } } return arr; }; // console.log(divisibleByThreePairSum([1, 6, 3, 4, 2, 0])...
true
59683f043632404ef8d22603338f703fe62b14e5
JavaScript
JCamp-12/flaskTest
/full_stack_template/static/src/Person/Person.js
UTF-8
733
2.796875
3
[]
no_license
import React, { Component } from 'react'; class Person extends Component { render ( ) { return ( <div style={{ color: "black", border: "black 1px solid", background: "#1323" }}> <h1>{this.props.name} said:</h1> {/* <h2> Finally! this was my {Math.floor(M...
true
ee68c65deeef600f2f1387c30866d0fc750a54c8
JavaScript
chrisbristow/atc872
/web/atc872.js
UTF-8
12,092
2.546875
3
[ "BSD-2-Clause-Views" ]
permissive
// atc872.js - Part of the ATC872 project which delivers a low-maintenance online // chat forum service. // // Copyright (c) 2013, Chris Bristow // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following condit...
true
1fac34933d7bdd5a7230f9aca8c134dacdd0357a
JavaScript
OfirIsraeli/Beat-Jumper---Internship-Project
/src/classes/Staff.js
UTF-8
3,125
2.875
3
[ "MIT" ]
permissive
import teoria from "teoria-extra"; export default class Staff { constructor(config, clef) { // constants this.yStart = config.yStart; this.scene = config.scene.scene; this.gameSize = { height: this.scene.sys.game.config.height, width: this.scene.sys.game.config.width, }; this.STAF...
true
f85ac5c6dea81f69ca9456d47dd3597e1b9bb605
JavaScript
radar-tov/radar.com.ua-5.4
/public/admin/assets/js/towns.js
UTF-8
2,362
2.734375
3
[ "MIT" ]
permissive
new Vue({ el: "#towns", ready: function(){ this.getTowns(); }, data: { towns: [], next: null, prev: null, perPage: null, token: null, town: {} }, methods: { index: function (event) { event.preventDefault(); ...
true
f078af5ce27d6f381800081637297768428455cb
JavaScript
vitaliiHoncharuk/Clinic-
/node/controllers/clinicSections/addDoctorToSection.js
UTF-8
1,364
2.671875
3
[]
no_license
/* admin only <- expected request [PUT] http://localhost:3000/api/section/ Headers - > token [admin] example of expected data : { "sectionName":"Surgery", "doctorId" : "5cff92575024c01ca5d0fa48" } */ const SectionModel = require("../../DB/models/SectionModel"); const tokenVerificator = require("../../helpers/t...
true
81ac504cbf9d3e721c7f0b489ca4ac5cef69b221
JavaScript
cps90/vschool-assignments
/warm-ups/fizzbuzz/app.js
UTF-8
423
3.640625
4
[]
no_license
// https://coursework.vschool.io/fizz-buzz/ function fizzBuzz() { var numArray = []; for (i = 1; i <= 100; i++) { if (i % 3 === 0 && i % 5 === 0) { numArray.push("fizzbuzz") } else if (i % 3 === 0) { numArray.push("fizz") } else if (i % 5 === 0) { numArray.push("buzz...
true
037599c22cd85bc29678d7436c9969f97f3b551c
JavaScript
robhogfeldt-fron15/ReactiveDogs
/app/components/MyEvents.js
UTF-8
3,719
2.609375
3
[ "MIT" ]
permissive
import React from "react"; import request from "superagent"; import Result from "./Result"; import AddEvent from "./events/addEvent.js"; import Events from "./events/event.js"; class MyEvents extends React.Component { constructor(props) { super(props); this.handleEventSubmit = this.handleEventSubmit.bind(thi...
true
4c37dadfad67d8a0e1513731c567218d1908fd9a
JavaScript
mnswaleh/sendIT
/UI/js/change_delivery.js
UTF-8
3,206
2.609375
3
[ "MIT" ]
permissive
request = new Request(SERVER + 'parcels/' + params.get('order'), myGet); let fetch_order = () => { fetch(request).then((response) => { if (response.status !== 200 && response.status !== 403) { myresponse.login = "login afresh"; } else { myresponse = response.json(); ...
true
27577324421e239f6fac26485170641a9aa173f9
JavaScript
fernando-estrad/assignments
/exercises/module3/friends-with-pets/src/components/Friend.js
UTF-8
416
2.859375
3
[]
no_license
import React from "react" import Pet from "./Pet" function Friend(props){ let {pets, name, age} = props.friend const petProps = pets.map(pet => <Pet pet={pet}/>) console.log(petProps) return( <div className="friend"> <h1>Friend Name: {name}</h1> <p>Friend Age: {age}</p>...
true
a94f555537b5edc705743732db085943fac81875
JavaScript
sachin888/goodreads-book-search
/src/store/reducers/BookReducer.js
UTF-8
1,448
2.640625
3
[]
no_license
import {SET_FETCHING_BOOK_SEARCH_RESULT, SET_BOOK_SEARCH_RESULT, SET_BOOK_SEARCH_ERROR, SET_FETCHING_BOOK_DETAIL, SET_BOOK_DETAIL, SET_BOOK_DETAIL_ERROR} from '../actions/BookSearchAction'; export const defaultState ={ fetchingSearchResult:null, bookResults : [], bookSearchError : null, fetchingBo...
true
747dba8ebb06650cde444092d6c83615e36b3325
JavaScript
screenleon/javascript
/CodeForLearn/Leetcode/Height_Checker.js
UTF-8
1,743
4.03125
4
[ "MIT" ]
permissive
// 1051. Height Checker /* Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students that must move in order for all students to be standing in non-decreasing order of height. Notice that when a group of students is selected they can reorder in any possibl...
true
7ca44ccbf3d42ae36573db1b3791af3343d4ff21
JavaScript
chenstarx/GoDB.js
/test/godb/getDB.test.js
UTF-8
899
2.578125
3
[ "MIT" ]
permissive
function getDBTest(dbName) { if (!dbName) return alert('database name required'); const testDB = new GoDB(dbName); testDB.getDB((db) => { console.log('Init getDB', db); }); setTimeout(() => { testDB.getDB((db) => { console.log('settimeout 1000', db); }); }, 1000); testDB.getDB((db) =...
true
d0b3342798b8858a539f0556f05b025a4a590685
JavaScript
Dhauzur/api-sochamar
/test/placeServices.test.js
UTF-8
5,559
2.734375
3
[ "ISC" ]
permissive
import app from '../server/app'; import request from 'supertest'; let token; const validUser = { email: 'unitTesting@prueba.cl', password: 'prueba12345', }; beforeAll(done => { request(app) .post('/api/v1/auth/login') .send(validUser) .then(response => { token = response.body.token; done(); }); }); /*P...
true
01dd96c3e42ce1d6ee7d0257a2e9a02559c588ed
JavaScript
czw2pv/FirstBot
/Labb/Lab 1/app.js
UTF-8
849
2.53125
3
[]
no_license
/*----------------------------------------------------------------------------- Lab 1 Add instructions to build the Node.js App # RUN THE BOT: Run the bot from the command line using "node app.js" and then type "hello" to wake the bot up. ---------------------------------------------------------------------...
true
c81e3ef9f289db23c7980aa270eb4d19e0b1449f
JavaScript
lilisantos/gym-api
/src/controller/bookings.js
UTF-8
2,028
2.90625
3
[]
no_license
//Require model bookings const bookings = require('../model/bookings.js')(); module.exports = () => { //Get bookings const getController = async (req, res) => { const {bookingsList, error} = await bookings.get(); if(error){ console.log("=== get:: Bookings Error"); retur...
true
ac8597f744104b2a55ffcd889ff2da47c7ee82a0
JavaScript
nvdnkpr/limdu
/utils/PrecisionRecall.js
UTF-8
3,429
3.1875
3
[]
no_license
var hash = require("./hash"); var sprintf = require('sprintf').sprintf; /** * PrecisionRecall - an object for tracking results of experiments: precision, recall, f1, and execution time. * * @author Erel Segal-haLevi * @since 2013-06 */ var PrecisionRecall = function() { this.count = 0; this.TP = 0; this.TN = ...
true
1ec86759a188423c39e851cecd4cae9f31560db3
JavaScript
klyopa255/sampleNuxtClient
/store/createEvent.js
UTF-8
1,213
2.671875
3
[]
no_license
export const state = () => ({ artists: [], message: '', status: 0, }) export const mutations = { setArtists(state, artists) { state.artists = artists }, setMessage(state, message) { state.message = message }, setStatus(state, status) { state.status = status }, } export const actions = { ...
true
2300032463ea7b5a24094009c572005c720368b2
JavaScript
Zepolimer/frontend-mentor-testimonials-slider
/app.js
UTF-8
1,060
2.8125
3
[]
no_license
const btnPrev = document.querySelector('#switch1'); const btnNext = document.querySelector('#switch2'); const btnPrevbis = document.querySelector('#switch1bis'); const btnNextbis = document.querySelector('#switch2bis'); const tanya = document.querySelector('.quote-container1'); const john = document.querySelector('.quo...
true
d4aa3a4d24c24fd514b5c9cf9ce0b00fb50c1994
JavaScript
ShuangChenGust/Leetcoderecord
/Codilty_RectanglesStrip.js
UTF-8
3,260
3.9375
4
[]
no_license
// Task description // There are N rectangles numbered from 0 to N-1. The K-th rectangle has size A[K] × B[K]. // We want to arrange as many rectangles as possible into a strip. The rectangles can be arranged into a strip if they all share a side of the same length (which becomes the height of the strip). Note that re...
true
d082a6adfb6d4e280383221e562b35ed51be15bd
JavaScript
stevenchu/nircocastillo
/js/scripts.js
UTF-8
6,690
2.59375
3
[]
no_license
/**************************************************** SET HEIGHT ****************************************************/ $(document).ready(function() { function handleResize() { var h = $(window).height(); $('section').css({'height':h+'px'}); } $(function(){ handleResize(); $(window).resi...
true
fcfbcdf37e6d71b95d02780ac3276c8e8d5e4bd9
JavaScript
enchoyism/nodejs-pattern
/model/index.js
UTF-8
615
2.515625
3
[]
no_license
'use strict'; const crypto = require('lib/crypto'); const ModelBase = require('model/base'); module.exports = class ModelIndex extends ModelBase { constructor(req, res) { super(req, res); } yell(string) { return new Promise((resolve, reject) => { string = this.mysql.conn.escape(string); const sql = `se...
true
ea02b61523e44c0794cc3abc1696c944c9031ed5
JavaScript
francois-roseberry/proxicity
/server/src/main/district-provider.js
UTF-8
2,013
2.5625
3
[ "MIT" ]
permissive
"use strict"; const fs = require('fs'); const Rx = require('rx'); const wicket = require('wicket/wicket'); const inside = require('turf-inside'); const flipCoordinates = require('turf-flip'); const _ = require('underscore'); const precondition = require('./infrastructure/contract.js').precondition; class DistrictProv...
true
e39a496235c35b807b8200aa8bac4297aded9c93
JavaScript
Mindo-Joseph/TextEditor
/src/index.js
UTF-8
271
3.609375
4
[]
no_license
const output = document.getElementById('output'); const incrementButton = document.getElementById('increment-button') incrementButton.addEventListener('click', () => { const currentNumber = Number.parseInt(output.innerText); output.innerText = currentNumber + 1; });
true
efe5e7a7348d7d3c6380fb3ef72dc04a93296749
JavaScript
noegagnon/tp1-1015
/js/tp1.js
UTF-8
5,307
3.390625
3
[]
no_license
/* Auteurs: PERSONNE 1 (matricule), PERSONNE 2 (matricule) TODO : Remplacez ce commentaire par un commentaire expliquant l'utilité de ce programme */ function luminance(r, g, b) { return 0.2126*r + 0.7152*g + 0.0722*b; } function noirEtBlanc(imageOriginale) { var nouvelleImage = []; var luminancePixel ...
true
6a57cc1ee7ed4a473b71341c5c0aa2540af42b1b
JavaScript
yoan972/pendu-reactjs
/src/Keyboard.js
UTF-8
524
2.703125
3
[]
no_license
import React from 'react'; class Keyboard extends React.Component { render() { const Letters = (() => { const caps = [...Array(26)].map((val, i) => String.fromCharCode(i + 65)); return caps })(); return ( <div className="keyboard"> {Letters.map((letter,index) => ( <div...
true
617503462401dea40c518ae32de40bf653210c1f
JavaScript
hustlaviola/epic-mail
/server/usingDataStructure/middlewares/UserValidator.js
UTF-8
4,038
2.625
3
[ "MIT" ]
permissive
import Helper from '../../utils/Helper'; import ErrorHandler from '../../utils/ErrorHandler'; import users from '../models/userModel'; /** * @class UserValidator * @description A middleware class to validate signup and signin details * @exports UserValidator */ class UserValidator { /** * @method validateSignU...
true
3acdccd024c1d1d10d8214ae68e181ba64c9e142
JavaScript
himulawang/greedoislando
/client/class_map.js
UTF-8
1,623
2.671875
3
[]
no_license
var Map = Coordinate.extend({ init : function() { this._super(); } ,getCanvas : function(el) { el.width = this.MAPWIDTH; el.height = this.MAPHEIGHT; this.context = el.getContext('2d'); } ,draw : function() { // Draw Map Side this.context.beginPath(); t...
true
66d909c1cd1428a90d2686df3ca16c735d0007ed
JavaScript
arago/hiro-graph-js
/__tests__/gremlin.test.js
UTF-8
8,996
2.609375
3
[ "MIT" ]
permissive
/* eslint-env jest */ /** * Testing the Gremlin Query Builder */ import queryBuilder, { GremlinQueryBuilder, T } from '../src/gremlin'; describe('Gremlin Query Builder', function () { const argFormatTests = [ { name: 'obj capable method single prop, single value', build: (g) => g...
true
0e25aefeeb573cdc309db8efa93dbb70ca4d0bef
JavaScript
gustavokira/brasileiro-2016
/controller.js
UTF-8
2,488
2.53125
3
[]
no_license
function Controller () { var self = this; this.buffer = new Array(6).fill(0); this.selected; this.raw; this.times = {}; this.colorScale = function colorScale(abr){ var idx = self.buffer.indexOf(abr); var scale = [ "#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", // "#a6cee3", //...
true
e9e7ce6b5dc760941e2d4aa679d9c2955f144b2c
JavaScript
Sundaybrian/saka-jira
/src/services/email.service.js
UTF-8
2,619
2.5625
3
[ "MIT" ]
permissive
const EmailClient = require("../utils/email"); class MailService { constructor() {} static async sendVerificationEmail(account, origin) { let message; if (origin) { const verifyUrl = `${origin}/verify-email?token=${account.verification_token}`; message = `<p> Please cli...
true
e754483f86852d1e74121937a2ac57329c27f0ee
JavaScript
arthuralmeidap/transducers-example
/src/exemplo1.js
UTF-8
756
3.25
3
[]
no_license
const R = require("ramda"); const { double, addOne, isBiggerThanTen, sum } = require("./operations"); const list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; const sumList = list .map(addOne) .map(double) .filter(isBiggerThanTen) .reduce(sum, 0); console.log(sumList); const addOneAndDouble = R.compose(double, addOne);...
true
01807e31974fbf341fface074515e08d41f5c5d5
JavaScript
aalangs/20213-PWA-GSA-U2-P2
/sw.js
UTF-8
2,154
2.59375
3
[]
no_license
const CACHE_STATIC_NAME = 'static-v1'; const CACHE_DYNAMIC_NAME = 'dynamic-v1'; const CACHE_INMUTABLE_NAME = 'inmutable-v1'; function clean(cacheName, sizeItems){ caches.open(cacheName) .then(cache => { cache.keys().then(k => { if (k.length >= sizeItems) { ca...
true
c8c3182bf51125747d1138f1b0551c6844b132ff
JavaScript
FrRichard/kaikoWidgets
/client/js/embeddableWidgets/format.js
UTF-8
567
3.0625
3
[]
no_license
function formatDate(timestamp) { if(!timestamp) { var date = new Date(); } else { var date = new Date(timestamp); } var hours = date.getHours(); var minutes = "0" + date.getMinutes(); var seconds = "0" + date.getSeconds(); formattedDate = hours + ':' + minutes.substr(-2) + ':' + seconds.substr(-2); return ...
true
cd877fbad8d5cb2c2cc141b7a513b487d6de20e4
JavaScript
cadumega/JS_B7WEB
/script30.js
UTF-8
769
3.890625
4
[]
no_license
// Precisamos enviar o que queremos e entender o que foi recebido . // Posso me comunicar em JSON ou xml ,etc... // Objeto Javascript em que você armazena infinita informações /* let pessoa = {nome:'Carlos' , idade: 99}; console.log(pessoa.nome); */ // A partir de agora a var pessoa esta como um objeto. let pess...
true
e8023b6edda052156af5f531ec2e61f45c4dc282
JavaScript
PmcFizz/snake
/pritice.js
UTF-8
2,560
3.703125
4
[]
no_license
/** * Created by FizzPang on 2017/9/5. */ var isPalindrome = function (x) { var reSt = x.toString().split("").reverse().join(""); return x == reSt; } // console.log(isPalindrome(-27483648)); var romanToInt = function (s) { var sum = 0; var romanToIntObj = {I: 1, V: 5, X: 10, L: 50, C: 100, D: 500, M...
true
24f5874f549cb40c8cb9f4ace8717eba2f745594
JavaScript
thesli/code
/work/foodticket/bower_components/ionic/js/views/headerBarView.js
UTF-8
2,716
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
(function(ionic) { 'use strict'; ionic.views.HeaderBar = ionic.views.View.inherit({ initialize: function(opts) { this.el = opts.el; ionic.extend(this, { alignTitle: 'center' }, opts); this.align(); }, /** * Align the title text given the buttons in the header ...
true
5b49445521d470f87b80a58f1565a1b2bd37cf78
JavaScript
santosmarco/hacka-foodhero
/src/store/reducers/player.js
UTF-8
1,626
2.671875
3
[]
no_license
import { ADD_BITBANANAS, SET_NEXT_CHAR } from "../actions/actionTypes"; const initialState = { name: "Cneopompeo", bitBananas: 300, level: { current: 7, xp: 300, targetXP: 700 }, hero: { attributes: { health: "100%", strength: 100, armor: 80, spell: 40, stamina: 60, }, ...
true
74713f6b442f5559cdff5bbae65a9197bbb54957
JavaScript
aditya3198/aditya3198.github.io
/js/animateAfterLoad.js
UTF-8
161
2.796875
3
[ "MIT" ]
permissive
document.body.classList.add('js-loading'); window.addEventListener("load", showPage); function showPage() { document.body.classList.remove('js-loading'); }
true
301bc3ce6d04a870d24930d304e7ce180eb65d87
JavaScript
wilkhp29/pokedex
/src/Components/detalhes/index.js
UTF-8
4,937
2.53125
3
[]
no_license
import React, {useState,useEffect,useRef} from 'react'; import {useDispatch,useSelector} from "react-redux"; import { Link } from "react-router-dom"; import chamada from "axios"; import api from "../../services/api"; import { Container } from './styles'; import PokemonDetail from "../pokemon"; export default function ...
true
8d984c724b6ac155b4bfe205d085e734190e0bf6
JavaScript
pierre-lourens/backbone-youtube
/collections/VideosCollection.js
UTF-8
1,250
2.703125
3
[]
no_license
var VideosCollection = Backbone.Collection.extend({ model: VideoModel, // the url for the API call gets set in the app model // for each video, we'll need to parse its data parse: function (response) { console.log("The response to the API call is", response); // we want a mapped array of video object...
true
9ef22e591a535c20f5bbc80c471b6a13768216a1
JavaScript
joufulpen/nothing
/src/js/index.js
UTF-8
7,041
2.640625
3
[]
no_license
$(function() { //nav //给ul绑定事件 让每个li鼠标移入时出现内容 鼠标移出时内容消失 // let navUl = $('.nav_list'); // let navLi = $('.nav_list_li'); let navShow = $('.nav_show'); $(".nav_list").on("mouseover", "li", function() { navShow.css({ display: 'block' }) }) $(".nav_list").on("mouseout", "li", function() { navShow.css({ ...
true
5cce3389a90e077d593c74a6d28d63847d80116d
JavaScript
StayCalmFIAP/CheckPoint3
/JS/scrip.js
UTF-8
2,962
3.28125
3
[]
no_license
//@author Gabriel var rnome = ['Gabriel','Debora','Gustavo','Matheus','Ryan',]; var rsenha = ['RM88760','RM86829','RM88392','RM88286','RM89176',]; function Pessoa(nome, senha) { this.nome = nome, this.senha = senha } function Sac(assunto, nome, coment) { this.assunto = assunto, this.nome = nom...
true
680631fa9592ee8abc602fb4c0fdc5c2b9ee2e71
JavaScript
150414/BooksApp
/BooksApp/Services/Api.js
UTF-8
1,378
2.59375
3
[]
no_license
import axios from 'axios' import { delay } from 'redux-saga/effects'; function service() { const getAllProducts = () => { return fetch( 'https://api.nytimes.com/svc/books/v3/lists/names.json?api-key=zwTsVGzlFwALheo6oGVio9BJbBxMrpt9', ) .then((res) => res.json()) .then((data) => dat...
true
a2f7e5ea1fbeaa7ca2e32d155e8f926297930e59
JavaScript
FSDavila/AppletDesafioBridge
/cliente/src/visao/UI.jsx
UTF-8
4,436
3.09375
3
[]
no_license
import React, { Component, useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios' import { Panel } from 'primereact/panel' import { Button } from 'primereact/button' import 'primereact/resources/themes/nova-light/theme.css' import 'primereact/resources/primereact.min.css' import...
true
0f2976be2913308aee0c740ede50392afc426cbf
JavaScript
JoshW94/CodeChallenge
/js/checkAnswerMaths.js
UTF-8
3,539
3.21875
3
[ "BSD-3-Clause" ]
permissive
var questionsMathsBasics = { 1 : { "question": "2 x 7 = ?", "answer": "14" }, 2 : { "question": "8 x 8 = ?", "answer": "64" }, 3 : { "question": "4 x 6?", "answer": "24" }, 4 : { "question": "11 x 3?", "answer" :"33" }, 5 : { "question": "12 x 12 = ?...
true
7bc4c78b62eba92c55e0968b3197bca84bc21589
JavaScript
shaoxia57/Delp
/Delp/content.js
UTF-8
6,052
2.90625
3
[ "MIT" ]
permissive
/* action: 'fetch', 'upvote', 'downvote' name: String */ function accessMenuItem(action, name, next) { var xhr = new XMLHttpRequest(); xhr.open("GET", 'http://192.241.229.194/?'+action+'='+name, true); xhr.send(); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { //console.log(xhr.response...
true
7ff6ef599e06298f74dfa38de4b0c846d3257c02
JavaScript
OfficialFerdi/wifibot
/commands/staffwarn.js
UTF-8
2,398
2.6875
3
[]
no_license
const Discord = require("discord.js"); const fs = require("fs"); const ms = require("ms"); let warns = JSON.parse(fs.readFileSync("./staffwarns.json", "utf8")); module.exports.run = async (bot, message, args) => { if(!message.member.roles.find('id', `530060967053230090`)) return message.channel.sen...
true
20fbd25fd40d0c8199ff833f38367b72ce822bc6
JavaScript
leandrofita/SERRATEC-LOGICA-DE-PROGRAMACAO
/FaseDois/teste Math.random.js
UTF-8
74
2.890625
3
[]
no_license
var aleatorio = Math.trunc(Math.random()* 10); console.log(aleatorio);
true
68f1a405ff710b24eec4c55ee7933e4d9d1a089f
JavaScript
michaeldgraham/cypher-tag
/src/index.js
UTF-8
1,005
2.796875
3
[]
no_license
import stripIndent from "strip-indent"; const cql = (statement, ...substitutions) => { const BLOCK_QUOTE = `"""`; // Get the array of string literals const literals = statement.raw; // Add each substitution inbetween all const composed = substitutions.reduce((composed, substitution, index) => { // Format...
true
983b6c05c055a77f59ebc785d765e8c7b0869749
JavaScript
MWotring/FullStackProjectJavascriptNode
/public/script.js
UTF-8
1,910
3.265625
3
[]
no_license
var form = document.getElementById('simpleForm'); if(form.attachEvent) { form.attachEvent("submit", get_form_req); }else{ form.addEventListener("submit", get_form_req); } function get_form_req(e) { if (e.preventDefault) e.preventDefault(); var first = document.forms["simpleForm"]["first_name"].value; var last = d...
true
dac84e2a0191551bf54b5c28243cd5e465edcd53
JavaScript
MuhammadAffanAli123/React-redux_concept
/src/actions/action1.js
UTF-8
861
2.578125
3
[]
no_license
// export const anotheraction =(name)=>{ // return {type:"change_name", // payload :name} // } export const anotheraction =()=>{ return async (dis)=>{ var data = await fetch('https://jsonplaceholder.typicode.com/users') var res= await data.json() dis({ type:"ch...
true
f7865010f96c270431b7a280fc6a07e0b04fb68b
JavaScript
pan1982/todo-react
/src/App.js
UTF-8
1,086
3.0625
3
[]
no_license
import React, { useState } from 'react'; import './App.css'; import ToDoList from './todoList'; function App() { const [todo, setToDo] = useState(''); const [todoList, setToDoList] = useState([]); const [, setToDoLength] = useState(todoList.length); const addTodo = () => { const list = todoList; const...
true
c019e0c295f9fcad5e3ef7025cf3948c70b33d48
JavaScript
paulchabz/React-playgound
/src/App.js
UTF-8
3,306
3.203125
3
[]
no_license
import React, { Component } from "react"; import "./App.css"; // declare the state const list = [ { title: "React", url: "https://facebook.github.io/react/", author: "Jordan Walke", num_comments: 3, points: 4, objectID: 0 } ]; // using es6 higher order func const isSearched = searchTerm =>...
true
cae2866d490650a0a1f1c20174110a98af8e2246
JavaScript
andrewsanc/algos
/subtractProductAndSum/index.js
UTF-8
796
4.0625
4
[]
no_license
// Leetcode: https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/ // Description: Given an integer number n, return the difference between the product of its digits and the sum of its digits. // Example 1: // Input: n = 234 // Output: 15 // Explanation: // Product of digits = 2 * 3 * 4 =...
true
7c32e89d62a332661a54396ed250db94e169b519
JavaScript
khaitruong1301/reactfe66
/src/RenderWithState/BaiTapChonXe.js
UTF-8
4,583
2.59375
3
[]
no_license
import React, { Component } from 'react'; //Import 'đường dẫn css' : Ảnh hưởng toàn bộ ứng dụng import './BaiTapChonXe.css'; //Import cách 2: import style from './BaiTapChonXe.module.css'; export default class BaiTapChonXe extends Component { /* Các bước thực hành bài tập react 1/ Dàn layout chia...
true
425ac7aa53de8bd7f5c1a219c28133dfe4c68424
JavaScript
sarroyave27/pracefit
/js/while.js
UTF-8
486
3.625
4
[]
no_license
let nota1; let nota2; let nota3; let n; let acumulador; let tope; tope = 1; acumulador = 0; n = prompt("Ingrese el numero de estudiantes"); while (tope <= n){ nombre = prompt("Ingrese su nombre"); nota1 = parseFloat(prompt("Ingrese su nota")); nota2 = parseFloat(prompt("Ingrese su nota")); nota3 = parseFloat(pro...
true
e7c9dfbf09d258e602d7578062fe92deeaa3002c
JavaScript
cheesecakenl/git-screeps.com
/role.mover.js
UTF-8
1,626
2.65625
3
[]
no_license
var utilStructure = require('util.structure'); var roleMover = { run: function (creep) { // default behaviour if (!creep.memory.gettingEnergy && !creep.memory.moving) { creep.memory.gettingEnergy = true; creep.say('M < E'); } if (!creep.memory.gettingEnergy ...
true
6d34e12812988b81ad0d12b77efd1724e16f2599
JavaScript
dariakholodenko/Converter
/converter.js
UTF-8
940
3.296875
3
[]
no_license
function convertBD() { let bin = document.querySelector("#bin").value; document.querySelector("#dec").value = twoTOten(bin); } function convertDB() { let dec = document.querySelector("#dec").value; document.querySelector("#bin").value = tenToTwo(dec); } function twoTOten(num) { let ret = 0; let cnt = 1; whi...
true
20ea471aed7d2ce2fdb5df9f17cb703c88adc4f0
JavaScript
willburstein/RotationTimer
/custom.js
UTF-8
1,768
3.1875
3
[]
no_license
let queueIndex = 0; let startTime = [parseInt(prompt("Enter time interval per rotation in minutes", 30)), 0]; let timeRemaining = (startTime[0] * 60 * 1000) + (startTime[1] * 1000); const writeable = document.getElementById("playing"); const timer = document.getElementById("time"); const audio = new Audio("alert.m...
true
eff21071ecfbdb87a2e7bdd2bfd30af71eb1d31e
JavaScript
ejfdezrdgz/phpttt
/lobby.js
UTF-8
636
2.53125
3
[ "MIT" ]
permissive
window.onload = function() { var timer = window.setInterval(lobbyreload, 5000); function lobbyreload() { let req = new XMLHttpRequest(); req.open("GET", "ajax.php?lr", true); req.addEventListener("load", function() { data = JSON.parse(req.response); ...
true
8ed38b6d01652c450402ee3548dabdb7e6630d5f
JavaScript
Rinkikumari19/javascript
/CONVERSION/parseInt.js
UTF-8
200
3.34375
3
[]
no_license
// let b = String('458877j67'); // console.log(b,typeof(b)); // //converting in interger data type // b = parseInt(b); // console.log(b,typeof(b)); var a = "3.5"; a = parseFloat(a); console.log(a)
true
33631bdb63ce3ea6a08ea98a2a5ebfb7142d76b8
JavaScript
NEbere/music-recommender-mvp-app
/controllers/recommendation.js
UTF-8
2,587
2.59375
3
[]
no_license
// Third party imports const sequelize = require('sequelize') // Local imports const Music = require('../models').Music const User = require('../models').User const { handleApiErrors } = require('../utils/apiErrorHandler') const { STATUS_CODES } = require('../utils/constants') const Op = sequelize.Op /** * getUserA...
true
a8b10a35bef4fb0e871efa8a7a41a3161c0d7460
JavaScript
minichloe/reacto
/numbers/4sum.js
UTF-8
1,208
3.9375
4
[]
no_license
// Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. function fourSum(nums, target) { if (nums.length < 4) return []; nums = nums.sort((a, b) => a - b); const...
true
c57b3272956a4bbf1f6e4d8e5ef6732ceb8a1b4e
JavaScript
rab1/knockout-spinner
/lib/spinner.js
UTF-8
4,186
2.5625
3
[ "MIT" ]
permissive
/*global console*/ /** * Spinner knockout handler * <div data-bind="spinner:{ value: quantity, max: 12, min:0, step:1 }"></div> */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define(['jquery', 'knockout'], factory); } else { factory(root.jQuery, root.ko); ...
true
c633544356393fdc5d3f907c8f01eb6d1d7fe43c
JavaScript
afsaa/ES6
/src/destructObjects.js
UTF-8
463
3.3125
3
[ "MIT" ]
permissive
// Object destructuring is really useful and is being used a lot by js developers and by popular frameworks like React, Angular and Vue. const song = { title: "One More Light", band: "Linkin Park", genre: "Alternative", length: "3:10" }; const { title, band, genre, length } = song; const getSongInfo = ({ titl...
true
ea07b4e34136645c69b727dd1b22e8199b442a1f
JavaScript
EmreKeskin47/futkids_client
/redux/reducers/playerCard-reducer.js
UTF-8
1,949
2.5625
3
[]
no_license
import PlayerCard from "../../models/PlayerCard"; import { ADD_PLAYER_CARD, DELETE_PLAYER_CARD, FETCH_PLAYER_CARD, GET_PLAYER_CARD, UPDATE_PLAYER_CARD, WEEKLY_VOTE, PROFILE_CARD, } from "../actions/playerCard-action"; const initialState = { playerCards: [], selectedPlayerCard: {}, ...
true