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
d11514ebb88f72aa03b7601aab72e9c7a7dd4b31
JavaScript
lloydcotten/passwordless-memorystore
/lib/memorystore.js
UTF-8
2,383
2.65625
3
[ "MIT" ]
permissive
'use strict'; var util = require('util'); var bcrypt = require('bcryptjs'); var TokenStore = require('passwordless-tokenstore'); function MemoryStore() { TokenStore.call(this); this._cache = {}; } util.inherits(MemoryStore, TokenStore); MemoryStore.prototype.authenticate = function(token, uid, callback) { ...
true
56dbe8bc0aa33d88c5d664db29b8851e81fd5e35
JavaScript
tearill/CodeWars
/WeIrD StRiNg CaSe/a.js
UTF-8
461
3.59375
4
[]
no_license
function toWeirdCase(string) { let res = string.split(' ').map(val => { return val.split('').map((val, index) => { return index % 2 === 0 ? val.toUpperCase() : val.toLowerCase(); }).join(''); }).join(' '); return res; } console.log(toWeirdCase("String"));//=> returns "StRiNg" co...
true
574f7d7a744d45d1b5e5ef0c5d2b35b964b245ff
JavaScript
bunchley/Calculator
/script/main.js
UTF-8
4,136
3.203125
3
[]
no_license
let numbers = document.querySelectorAll(".number"); let displayBox = document.querySelector(".display"); let clearButton = document.querySelector(".clear"); let operators = document.querySelectorAll(".operator"); let equalButton = document.querySelector(".equal"); let negativeButton = document.querySelector(".negative"...
true
543fa8c5613aabdc62e524cd7cbf53b74b4862e4
JavaScript
salmaglaied/Relational_model
/express/server.js
UTF-8
488
2.515625
3
[]
no_license
const express= require('express') const app= express() const port=8080 app.use(addActiveTime =(req, res, next)=> { let requestAt= new Date(Date.now()).getHours() let requestday=new Date(Date.now()).getDay() if((requestAt>=9)&&(requestAt<=17)&&(requestday!=0&&requestday!=6)) { next() } else{ ...
true
33aaacd4ee5c8d4aaf3d8d8c4b8ecc7473eb0113
JavaScript
tejohnso/string-permuter
/modules/formatter.js
UTF-8
251
2.640625
3
[]
no_license
module.exports = { uniqueElements(arr) { var dupeCheck = {}, output = []; arr.forEach((val)=>{ if (!dupeCheck.hasOwnProperty(val)) { output.push(val); dupeCheck[val] = 1; } }); return output; } };
true
d5927babe455f87930e2a760c368ffa855e56dd9
JavaScript
mattkj/React-Calculator
/src/components/NumberField.jsx
UTF-8
475
2.640625
3
[]
no_license
var React = require('react'); var NumberField = React.createClass({ getInitialState: function(){ return {value: ""}; }, handleChange: function(e){ this.setState({value: e.target.value}); }, render: function(){ return ( <div className="form-group"> <input type="number" className="for...
true
d18d42fdcfb70e383547d0512ec3d703b7a307d1
JavaScript
JeffWhitfill/SunriseSunset
/src/Components/Input.js
UTF-8
1,329
2.875
3
[]
no_license
import React, { Component } from 'react'; class Input extends Component { // set initial state for location state={ location: "" } // update the state with new location updateLocation = event=> { this.setState({location:event.target.value}) } // accept new location upon clicking submit but...
true
4152bb3b81398e7c483ec4eb31743ef238c5644b
JavaScript
arturkuznetsou/sortvis
/algs/mergesort.js
UTF-8
1,170
3.125
3
[]
no_license
async function merge(start, mid, end) { let startold = start; let ind = mid; //Color the arrays in distinct colors to distinguish them for(let n = start; n < mid; n++) { changeColor(n, mc1); } for(let n = mid; n < end; n++) { changeColor(n, mc2); } changeColor(start, mc1c); changeColor(mid, mc2c); awai...
true
e2394aeae624ef042c3d65a2a4c8c8e384bba5ba
JavaScript
chenrenliang/about-JavaScript-and-Node
/js basics/56.生成器嵌套.js
UTF-8
322
3.03125
3
[]
no_license
function *$cards(){ const points = ['A', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K'] yield *points.map(p => ['♠️', p]) yield *points.map(p => ['♣', p]) yield *points.map(p => ['♥', p]) yield *points.map(p => ['♦', p]) } let cards = $cards() console.log([...cards]) //生成器嵌套
true
92f7bd221fb4498b1c47379ccbd32bfee1752258
JavaScript
CoderShawnZhang/yii2-admin
/admin/views/System/Tag/js/_index_script.js
UTF-8
993
2.609375
3
[ "BSD-3-Clause" ]
permissive
function getListHtml(url,selector) { $.GET(url,function(res){ $(selector).html(res); $('.pagination a').on('click',function(i){ i.preventDefault(); var url = $(this).attr('href'); getListHtml(url,$(this).parents('.tab-pane')); }); $('.action-del')....
true
0f5ad2a746f59c8b7cca6314ab3cea3f0801e67d
JavaScript
utavegu/948947-code-and-magick-18
/js/stat.js
UTF-8
2,044
3.09375
3
[]
no_license
'use strict'; var CLOUD_WIDTH = 420; var CLOUD_HEIGHT = 270; var CLOUD_X = 100; var CLOUD_Y = 10; var GAP = 10; var COLUMN_WIDTH = 40; var COLUMN_HEIGHT = 150; var TEXT_X_GAP = 90; var TEXT_Y_GAP = 235; var FONT_GAP = 5; var CONGRATULATION_X = 235; var CONGRATULATION_Y = 30; var CLOUD_COLOR = '#fff'; var CLOUD_SHADOW ...
true
bcbf1a95d1aa1687b1cda4c195c5548abd14af63
JavaScript
johnynsk/sibsutis-labs
/visual/pages/clients-list.js
UTF-8
1,037
2.515625
3
[]
no_license
var $ = require("jquery"); var ClientsListPage = function ($container) { var that = {}; var renderTable = clients => { table = $('<table class="ui celled table"></table>'); table.append('<thead><tr><th>id</th><th>Название</th></tr></thead>'); tbody = $('<tbody>'); clients....
true
afa5aa30ce1cf4810ec0afa8f2153b056bd57499
JavaScript
obitel-forks/mindmap.js
/js/mindmap-md.js
UTF-8
3,847
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Markdown support based on https://github.com/arturadib/strapdown Copyright (c) 2012 Artur B. Adib (MIT Licensed) Copyright (c) 2014 Holger Reinhardt http://de.linkedin.com/in/hrreinhardt (MIT Licensed) */ var mindmap_md = { // render markdown to html render: function() { /////////////////////////...
true
4b4e2c0cd58ead7478dbc31e93069058c34e83ba
JavaScript
Teo-Altef4/Prog-2020
/teste/frontend/js/menuscript.js
UTF-8
6,578
2.59375
3
[]
no_license
$(function() { function exibir_fabricantes() { $.ajax({ url: 'http://localhost:5000/listar/Fabricante', method: 'GET', dataType: 'json', success: listar, error: function() { alert("erro ao ler dados, verifique o backend"); ...
true
2b32cb7883fc4ece507d201dce3f33ef81a41c7f
JavaScript
MarkChanner/notes-app
/spec/single-note-view-spec.js
UTF-8
315
2.84375
3
[]
no_license
(function() { function testReturnsHTMLString() { var note = new Note('Single note text'); var singleNoteView = new SingleNoteView(note); assert.isEqual( singleNoteView.getHTML(), '<div>Single note text</div>', 'testReturnsHTMLString' ); } testReturnsHTMLString(); })(this);
true
1bef85ea82c6ee5dadf015ec21108e37f1ef691b
JavaScript
tiwarinaman/Quizinut
/quiz/static/js/student/start_quiz.js
UTF-8
11,245
2.96875
3
[]
no_license
$(document).ready(function () { $("#quiz-body").hide(); $("#resultMessage").hide() $("#btnSubmit").hide() }); const uiCtrl = (function uiController() { const domControls = {}; const domString = { question: 'question', option1: 'option1', option2: 'option2', option3: ...
true
f2cddf806dbe9c6f31f66b6633fc9b7bc4afbfac
JavaScript
fred7896/p3-sandbox
/frontend/src/components/ApiMeteo.jsx
UTF-8
4,808
2.59375
3
[]
no_license
import React from "react"; import axios from "axios"; import "./ApiMeteo.css"; import "../assets/css/weather-icons.min.css"; import "../assets/css/weather-icons-wind.min.css"; let weatherIcons = require("../icons.json"); const APIKEY = "fc0124f80a3f6fcf2851870a5d963361"; class ApiMeteo extends React.Component { c...
true
2262097ef6dbdd085eb3aae6b2ec01f08919d6e3
JavaScript
nasawz/cem_app
/src/modules/ced/views/home.jsx
UTF-8
26,714
2.796875
3
[]
no_license
/** * create by nasa.wang */ import React from 'react' const Home = React.createClass({ main(container) { let mxClient = window.mxClient // Checks if the browser is supported if (!mxClient.isBrowserSupported()) { // Displays an error message if the browser is not supported. ...
true
1643f675bbc4283c0eaf2333b9ffd9d2ed7f6f5c
JavaScript
myaimer/CasemateGame
/assets/Main_2.js
UTF-8
4,119
2.59375
3
[]
no_license
cc.Class({ extends: cc.Component, properties: { }, start() { cc.director.getCollisionManager().enabled = true; cc.director.getPhysicsManager().enabled = true; //怪物的对象池 this.monsterPool = new cc.NodePool("monster"); this.square = []; this.init(1); ...
true
72d4bafca99b886adb9e25191c45d56bcd350779
JavaScript
Nikkely/muteResult
/scripts/options.js
UTF-8
3,169
2.671875
3
[]
no_license
function getYMD(dt) { const y = dt.getFullYear(); const m = ("00" + (dt.getMonth()+1)).slice(-2); const d = ("00" + dt.getDate()).slice(-2); return y + "/" + m + "/" + d; } chrome.storage.sync.get(null, items => { if (items.domain !== undefined) { for(let k of Object.keys(items.domain)) { let row =...
true
16b24e46ca1817d3b572d021e64e3db857b724bc
JavaScript
JuanRamino/http-json
/index.js
UTF-8
1,698
3.109375
3
[]
no_license
const http = require('http') /** * start http server * @param {number} port number listening * @param {string} host name listening * @param {function(object, http.ServerResponse)} function to handle an object * @return undefined */ exports.start = function(port, host, handleData) { function server(req, res...
true
4d5108c4fded91b11a6b15558861ad80079ccc68
JavaScript
IsThatTheWhat/JS-TP-Calcul
/convertir.js
UTF-8
4,009
3.25
3
[]
no_license
var div_calculer = document.getElementById("div_calculer") div_calculer.style.visibility = 'hidden' var div_input = document.getElementById("div_input") div_input.style.visibility = 'hidden' function showInputs(){ var conversion_value = document.getElementById("conversion").value var invert = document.getElementBy...
true
0d8288de3c76239214048e2cb984de16dc0454f7
JavaScript
omroid/weatherAppReactReduxSaga
/src/Redux/loaclStorage/localStorageAction.js
UTF-8
685
2.640625
3
[]
no_license
import {LOAD_LOCAL_STORAGE} from './localStorageTypes'; export const saveToLocalStorage=(state)=> { try { const serialisedState = JSON.stringify(state); localStorage.setItem("persistantState", serialisedState); } catch (e) { console.log(e); } } export const loadFromLocal...
true
1b58f4ae8ac870cc0509d421a86240ef781917a1
JavaScript
mhansart/if3-react-horoscope-chinois
/src/components/test/Test.js
UTF-8
749
2.8125
3
[]
no_license
import { useState } from 'react'; import rand from '../../functions/math'; function Test() { const padding = '15px'; const [faceHappy, setFaceHappy] = useState(true); const changeSmiley = () => { setFaceHappy(!faceHappy); }; const animals = ['🐒', '🦊', '🦁', '😸', '🐺', '🐲', '🐨', '🐗', '🏔', '🐼', '...
true
a56984bb8c8ae4fb56105ee14bb35b02882a967e
JavaScript
AnilKantMishra/esin-e1-p2025
/exercices/lesson/08-js-font-size/script.js
UTF-8
777
3.203125
3
[]
no_license
const textContainer = document.querySelector('.text-container') const text = textContainer.querySelector('.text') const less = textContainer.querySelector('.less') const more = textContainer.querySelector('.more') const textStyle = window.getComputedStyle(text) let fontSize = parseInt(textStyle.fontSize) function incr...
true
acadf79116b23ddd415d99c3c6a790df1cda5e80
JavaScript
arbyte-br/Arbyte-Atividades
/turma-2/joaopedrobarros777/Lista_8/atividade4.js
UTF-8
249
2.890625
3
[]
no_license
let rs = require ("readline-sync") let marca = rs.question("Qual a marca do carro?") let cor = rs.question("Qual eh a cor do carro?") let valor = rs.question("quanto custa?") let carro = {marca: marca, cor: cor, valor: valor} console.log(carro)
true
0ef5554e5a8570944d91ae3c69576cec7f4770fc
JavaScript
Mahamurahti/ComicVine-API
/js/fetchCharactersScript.js
UTF-8
2,809
2.96875
3
[]
no_license
'use strict'; let inputValue; let searchButton = document.getElementById('search'); let section = document.getElementById('outputSection'); let input = document.getElementById('inputField'); searchButton.addEventListener('click', function(evt) { inputValue = document.getElementById('inputField').value; fetchComic...
true
67c706931b70ba627d265f50a4a6b6858030d9e2
JavaScript
pvaliani/hacker_news_app
/src/components/Story.js
UTF-8
450
3.171875
3
[]
no_license
// Destructure the story into story component i.e story, and index objects const Story = ({story, index}) => { // story object has a url - the href - i.e hyperlink // story object anchor is the title // h5 is the index - single parameter with a . after the value used to format return ( <span>...
true
63750947742efa068d0e65759793f19423ff031b
JavaScript
javiermvaldecantos/challenge-katas-js
/tests/kata-2.spec.js
UTF-8
1,754
3.109375
3
[ "MIT" ]
permissive
import assert from 'assert' import { kata2 } from '../src/kata-2' describe('kata-2', function() { const obj1 = { p1: 'a', p2: { p3: 'b', p4: { p5: { p6: 'c' } } } } it('accessor p1 should return "a"', () => { assert.equal(kata2(obj1, null, 'p1'), 'a')...
true
b49836baea6d1550ee4508e63901495d37721fed
JavaScript
CarlosAraki/react_plus_node
/react/akiko/src/App5ciclodevida.js
UTF-8
707
2.78125
3
[]
no_license
import React, {Component} from 'react'; class App extends Component{ constructor(props){ super(props); this.state = { hora: '00:00:00', } } componentWillMount() { } componentDidMount(){ setInterval( () =>{ this.setState({ ...
true
f234c5e762e66a0fe753914da6e58fea0077c8b3
JavaScript
anthony-tran2/c0621-code-solutions
/array-manipulation-2/src/take.js
UTF-8
413
3.890625
4
[]
no_license
/* exported take */ // create output Storage // for how many ever items in the Array you want, starting at the first one: // -add the current value to the output Storage // return storage output function take(array, count) { var newArray = []; if (array.length > count) { for (var i = 0; i < count; i++) { ...
true
20bd528bcae909bf5b04729fbebd15e58d777f83
JavaScript
tvdburgt/life
/grid.js
UTF-8
5,797
3.453125
3
[]
no_license
function Cell(x, y) { this.x = x; this.y = y; this.isPopulated = false; } function GameOfLife(canvas) { console.log(1); var grid = new Grid(canvas); console.log(2); grid.draw(); } function Grid(canvas) { this.draw = function() { console.log("a"); ...
true
8ffd7d5f4561259c40457212412625686b5be871
JavaScript
Okojie615/PasswordGeneratorM3C
/script.js
UTF-8
2,513
3.875
4
[]
no_license
// HTML IDs const generateBtn = document.getElementById('generate'); const resultVar = document.getElementById('password'); const uppercaseVar = document.getElementById('uppercaseStatus'); const lowercaseVar = document.getElementById('lowercaseStatus'); const numbersVar = document.getElementById('numbersStatus'); const...
true
cd1857bb2eeab74ec9c4c4349094bfb7c8292faf
JavaScript
PassionZale/QA-LeetCode
/13. Roman to Integer/index.js
UTF-8
727
3.96875
4
[]
no_license
const romanToInt = s => { // 罗马数字集合 const ROMANS = { "I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000 } const len = s.length; // 存储最终返回结果 let num = 0; // 根据罗马计数规则 // IV: I < V, 则 V - I = 4 // LV: L > V, 则 L + V = 55 // II: I = I, 则 I + I = 2 for (le...
true
bb574d3cee1261d89d548a139e8e29dc4e003e15
JavaScript
LUSHDigital/lush-codejam
/Lush Code Jam/Lush Code Jam 2019/Team1/faces.js
UTF-8
2,863
2.84375
3
[]
no_license
var nb_r; var all_diam; var average_diam; var r = []; var img = []; var pg1; var pg2; var current_img; function preload() { // We have to load image before setup() for (var i = 1; i <= 1; i++) { img[i] = loadImage("dick.jpg"); } } function setup() { createCanvas(1024, 768); pixelDensity(1); // Set 1 ...
true
259507b6983c62dcf4b1711461d7ca979e5856a5
JavaScript
johnhunsley/auth0-vue-template
/server.js
UTF-8
500
2.734375
3
[]
no_license
//A Node.js static resource http server which provides URL rewrite for the callback var express = require('express'); var path = require('path'); var serveStatic = require('serve-static'); app = express(); app.use(serveStatic(__dirname + "/dist")); app.use(function(req, res, next) { if (req.url == '/callback') { ...
true
7e1fb14b956a467549e2fa18eec8b1f225b17d04
JavaScript
AnirudhKumar99/bingo-25
/test.js
UTF-8
640
3.15625
3
[ "MIT" ]
permissive
const {Game,Player}=require('./game.js') const game=new Game(); game.addPlayer('Anirudh') game.addPlayer('Kumar') console.table(game.players['Anirudh'].board) console.table(game.players['Kumar'].board) // game.startGame(); game.crossNumber(1) game.crossNumber(2) game.crossNumber(3) game.crossNumber(4) game.cross...
true
b8a9fa7b4ca84db925ec6f7a6ff964844e49f160
JavaScript
currency-converter/pwa
/src/util/index.js
UTF-8
966
3.15625
3
[]
no_license
/** * 保留指定位数的小数,并对结果四舍五入 * @param {number} number 需要处理的原始数字 * @param {number} decimals 需要保留的数据精度 * @return {number} 处理后的数字 */ export const toFixed = (number, decimals) => { // eslint-disable-next-line const pow = Math.pow(10, decimals); return Math.round(number * pow) / pow; }; /** * 将数据保存到 localStorge * ...
true
f3a97123967c7ece83753706177f29f8c382b211
JavaScript
aibrahim3546/react-redux-flow
/src/views/Home.js
UTF-8
2,046
2.546875
3
[]
no_license
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; import { addTodo } from '../store/actions/todoActions'; type Props = { addTodo: Function; } const MainContainer = styled.div` width: 442px; ma...
true
75df2a2f432b76501dc2da5745dcb5a91b6dbf89
JavaScript
appendto/ps-tree
/index.js
UTF-8
1,616
2.71875
3
[]
no_license
'use strict'; var spawn = require('child_process').spawn, es = require('event-stream'); // helper method to return whether an array or string contains a value var contains = function (source, value) { return !!~source.indexOf(value); }; var childrenOfPid = function (pid, callback) { var headers; // call...
true
ce0bd191dc929d58a8d6d826a514cd2b1a98d811
JavaScript
beausmith/msgboy
/src/tests/models/message.js
UTF-8
4,725
2.59375
3
[]
no_license
var Message = require('../../models/message.js').Message; var should = require('chai').should(); describe('Message', function(){ before(function() { // We need to save a couple fixture messages! }); beforeEach(function() { }); describe('defaults', function() { it('should h...
true
d798a19f19ac9f8a7efa543e79aae6ee28c7b17e
JavaScript
dipteshcc/node-app
/controllers/employees.js
UTF-8
4,063
2.71875
3
[]
no_license
const fs = require('fs'); const path = require('path'); const bcrypt = require('bcryptjs'); const Emp = require('../models/employees'); const User = require('../models/user'); // this method is used to fetch the details of every employees exports.getEmps = (req, res, next) => { Emp.find() .then(count => { ...
true
b56393bdd4705f13470584b26ec539e70ed46b69
JavaScript
Liqueseous/CompCareBackEnd
/routes/tickets.js
UTF-8
4,098
2.5625
3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
const express = require('express'); const router = express.Router(); const mongoose = require('mongoose'); const User = require('../models/user'); const Ticket = require('../models/ticket'); router.post('/:ticketNumber', async (req, res, next) => { const { userData } = req; const { ticketNumber } = req.params; ...
true
57a2d225aaa38761d093d369d1ef4c37526da1de
JavaScript
manuel-factual/cascalog-tool
/resources/public/javascript/index.js
UTF-8
984
2.515625
3
[]
no_license
function submitText(text) { $.post('/run', {text : text}, function(data) { console.log(data); } ); $("#runner_output").empty(); setTimeout(pollAndUpdateRunnerOutput, 1000); } $(document).ready(function() { editor = ace.edit("editor"); editor.setTheme("ace/theme/idle_fingers"); editor.getS...
true
fbac6a18431ee673aff452bdd66eb51a207545b2
JavaScript
sempostma/heaptree
/common.test.js
UTF-8
2,608
3.484375
3
[ "MIT" ]
permissive
const Heap = require('./heap') const randomNumber = () => Math.floor(Math.random() * 100) const createARangeOfRandomIntegers = length => { return new Array(length) .fill(0) .map(randomNumber) } const ascendingComparator = (a, b) => a - b const descendingComparator = (a, b) => b - a const isValid...
true
6e29f39fef64527b736edd2d3dcecf05c9ba7fc9
JavaScript
Shadia-Nasman/javaScriptExercises
/1.Read-Fix-Write/03-Write-It/02/js/ex2.js
UTF-8
439
3.03125
3
[]
no_license
const movies = ['Martin Eden', 'La Belle Époque', 'The Mustang','Joker', 'La Ragazza Nella Nebbia', 'Downton Abbey', 'Parasite', 'Once Upon a Time… in Hollywood', 'Hors normes' , ]; const wrapWithTag = (content, tagname) => `<${tagname}>${content}</${tagname}>`; const lowerCaseMovies = movies.map(movie => movie.to...
true
84d84eff465d29550af4fabda011c2e5485319fc
JavaScript
terry-zo/ChickFilA-Scraper
/src/resources/brute.js
UTF-8
357
2.9375
3
[]
no_license
const worker = require("./worker.js") async function hello() { while (true) { try { let results = await Promise.all([worker(), worker(), worker(), worker(), worker(), worker(), worker(), worker(), worker(), worker()]); console.log(results) } catch (err) { consol...
true
d6f71c830c1afff2a41aab913447f7b697fbce46
JavaScript
kamenyanakiev/SoftUni-Programming-Basics
/Exam-Preparation/Exam-2-3-May-2019/05-TouristShop.js
UTF-8
650
3.609375
4
[]
no_license
function touristShop(input) { let budget = Number(input[0]); let itemCost = 0; let totalCost = 0; let itemCount = 0; for (let i = 1; i < input.length; i+=2) { if (input[i] === 'Stop'){ console.log(`You bought ${(i-1)/2} products for ${(totalCost).toFixed(2)} leva.`); return; } itemCou...
true
2be93f51a61216a3879a7e88cc9a02c54d0f8a44
JavaScript
andersgl/discordbotjs
/bot/commands/aids/aids.js
UTF-8
3,801
2.671875
3
[]
no_license
const Command = require('../command') class Aids extends Command { triggers() { return ['giveaids'] } help() { return [ { trigger: 'aids', description: 'Show aids status' }, { trigger: 'aids <@user>', description: 'Check to see if a user has aids' }, { ...
true
5e47c6f03f9707556de41fd587a57603069ce47e
JavaScript
kevinfmoody/tracon-simulator
/server/providers/LiveInboundFlights.js
UTF-8
1,912
2.515625
3
[]
no_license
var LiveFlightsAPI = {}, request = require('request'), FacilitiesAPI = require('../FacilitiesAPI.js'), LatLon = require('../../latlon.js'), FLIGHTAWARE_BASE_URL = 'http://flightaware.com/live/airport/'; LiveFlightsAPI.processICAO = function (icao) { switch (icao.length) { case 3: icao = 'K'...
true
78584242eb8c3898b211662a83bbd0f58395b34c
JavaScript
ericarojo692/phase-1-practice-dog-show
/src/index.js
UTF-8
2,733
3.4375
3
[]
no_license
const getTable = document.getElementById('table-body') fetch('http://localhost:3000/dogs') .then(res => res.json()) .then(data => { const dogForm = document.getElementById('dog-form') data.forEach( (dog) => { const table = document.getElementById('table-body') const r...
true
5dd8735f5f1a7e7c85683c85c7533584eab2ce2f
JavaScript
Derplime/Fortuna_SD2_Archive
/src/marketplace/MakeAComponentSaleView.js
UTF-8
2,790
2.640625
3
[]
no_license
//@flow strict import * as React from 'react'; import { ToastContainer , toast } from 'react-toastify'; import Component from '../globalComponents/typesAndClasses/Component.js'; import getUserAPICall from '../globalComponents/apiCalls/getUserAPICall.js'; import { makeASale } from '../globalComponents/apiCalls/marketPla...
true
eb7ecb351d802ce6294b3af4626621ec1cbb9ce9
JavaScript
elazar91/teaching-html-css-js
/const.js
UTF-8
100
2.6875
3
[]
no_license
// const FOO = 1; // FOO = 2; // const שגיאה, אי אפשר לשנות // console.log(FOO);
true
d69876ba79935628f01e0cd2ca74cfd6bdba765f
JavaScript
nesa-by-makers/assignments-Prince-Damoche
/VFD FORM/js/exception_handling.js
UTF-8
167
2.984375
3
[]
no_license
console.log("Before exception"); try { console.log(name); } catch(error){ console.log("An error occured: " + error); } finally { console.log("The end"); }
true
a2b3894dd769d022b2f2044f581fb1c8646a81b9
JavaScript
Hamsteez/JS101
/smallProblems/medium1/fibonacciNumbersProcedural.js
UTF-8
397
3.953125
4
[]
no_license
function fibonacci(nVal) { if (nVal === 1 || nVal === 2) { return 1; } let sum = 1; let prevNum = 1; let total = 0; for (let counter = 3; counter <= nVal; counter++) { total = sum + prevNum; prevNum = sum; sum = total; } console.log(total); return total; } fibonacci(20); // 6765...
true
6dcd39b26362cd674f7120dd2066d4632f650e8d
JavaScript
Grassboy/gClipboard
/main.js
UTF-8
2,853
2.875
3
[]
no_license
var getClipboard = function() { if( confirm([ "[gClipboard] 您確定要透過程式讀取您的系統剪貼簿內容?\r\n" ].join('')) ) { var pasteTarget = document.getElementById('grassboy-paste-area'); if(!pasteTarget) { pasteTarget = document.createElement("div"); pas...
true
1f2d1291e7d878d07a8c6c359a221d12ab996d8b
JavaScript
zichunping/VividFootball
/service/rankService.js
UTF-8
944
2.515625
3
[]
no_license
var request = require('superagent'); var cheerio = require('cheerio'); var eventproxy = require('eventproxy'); var rankService = {}; rankService.getRank = function (leagueName,eventproxy){ var rank = []; request.get('http://soccer.hupu.com/table/' + leagueName + '.html') .end(function(err,sres){ ...
true
897535043529f131db00deda7d04507148f50422
JavaScript
KreisichD/WebProjectPWR
/PWRProject/JSCombos.js
UTF-8
648
3.40625
3
[]
no_license
var element = document.createElement("p"); function alertSomething() { alert('Przykładowy alert z listenerem'); var container = document.getElementsByClassName("container"); var node = document.createTextNode("Click this one to prompt"); element.appendChild(node); container[0].appendChild(element...
true
0d69f905fe28fdc98e523c048f8deb362795cb2b
JavaScript
honghonghongliqi/BookStore-1
/WebRoot/js/jump.js
GB18030
2,261
2.625
3
[]
no_license
/* תǰҳ棬ֵΪգĬתҳ*/ function jumpPreLocation(preLocation){ if(preLocation != "null"){ location.href = preLocation; }else{ location.href = "http://localhost:8080/BookStore/HomePage.jsp"; } } /*ת¼*/ function jumpToLogin(){ location.href="jumpToLogin?locationHref=" + location.href; } /*תע*/ function jumpToLogoff(){ ...
true
f414c71635e505482001c372cf83ba288cb6cae5
JavaScript
kratner/krlivehomepagesplash
/src/dataaccess/SplashLinksData.js
UTF-8
572
2.546875
3
[]
no_license
import { qryPostsFromSplashLinksCategory } from "./GetDataWPRESTAPI"; const handleData = (data, callback) => { let listItems = []; data.forEach(element => { listItems.push({ href: element.acf.splashlinkhref, title: element.acf.splashlinktitle, linkText: element.acf.splashlinklinktext }); ...
true
57774ac45dd8af5595e23f64384a2251801b606b
JavaScript
NoahWarnke/interweave.network
/solidity/test/interweave-free/test_proposals.js
UTF-8
38,272
2.640625
3
[]
no_license
var assert = require('assert'); const InterweaveFreeProposals = artifacts.require("InterweaveFreeProposals"); /** A function that lets you assert that some called contract function (wrapped in another async function) experiences a given require error. */ assert.requireEquals = async function(expectedError, funcToTest)...
true
481edde2fdbd5ab3c24cbd09c66dc526c3eb29d6
JavaScript
ivanisayenko/miniJocsJS
/src/1/codi/codi.js
UTF-8
7,398
2.8125
3
[]
no_license
var rojo = true, terminado = false; function dibujarArea() { d3.select('body').append('svg').attr('width', 436).attr("height", 375); var svg = d3.select('svg'); var defs = svg.append('defs'); defs.append("circle").attr("id", "circuloBlanco").attr("cx", 0).attr("cy", 0).attr("r", 30); for (var x = 0;...
true
4c9d04572c152526e2384dd51aa0cd1b3670ad7c
JavaScript
jstafford74/googbooksearch
/client/src/pages/SearchBook.js
UTF-8
1,576
2.515625
3
[]
no_license
import React, { Component } from "react"; import API from "../utils/API"; import Jumbotron from "../components/Jumbotron"; import { Container } from "../components/Grid"; // import SearchForm from "../components/SearchForm"; import SearchResult from "../components/SearchResult" class SearchBook extends Component { ...
true
121a8e8887dca499e2142901ebc7aa8e9a2895ac
JavaScript
skuranov/marketplace_JDBC_JSP
/target/marketplace-0.0.1-SNAPSHOT/js/showItems.js
UTF-8
4,629
2.921875
3
[]
no_license
var my_ajax_req ={ // создаем экземпляр объекта // задаем свойства объекта updInterval: 10000, // 10 сек. - интервал времени между запросами url: 'getTable', // скрипт который должен отвечать на Ajax запросы init: function(){ var self = my_ajax_req; setInterval($.proxy(my_ajax_req.requestData, self), self.upd...
true
c19f314aa7da5c804014d9fb919b5b81de033b4d
JavaScript
thinktecture/spa-framework-ratatouille
/demo-3/index.js
UTF-8
856
2.875
3
[]
no_license
'use strict'; var frames = { 'frame-1': document.querySelector('#frame-1'), 'frame-2': document.querySelector('#frame-2'), 'frame-3': document.querySelector('#frame-3') }; function onMessage(event) { // For production always check the full url here. // For this demo, we just check the port if ...
true
a47043c8eddfe82501f9a19d5da7ef0511fbc882
JavaScript
Radiotechniman/nl.scanno.owntracks
/messagehandling.js
UTF-8
8,530
2.625
3
[]
no_license
var globalVar = require("./global.js"); var logmodule = require("./logmodule.js"); var DEBUG = false; module.exports = { receiveMessage: function(topic, message, args, state) { receiveMessage(topic, message, args, state); } } function receiveMessage(topic, message, args, state) { var validJSON = true...
true
c4479b1ddb576d3df98fc1a06c3b8c343812d5e0
JavaScript
ricardoblancobarbara/JSOct2019
/3-Loops/02-forInLoops.js
UTF-8
1,334
4.5
4
[]
no_license
/**************** FOR IN LOOPS ****************/ //* Great for iterating over values in an object let student = { name: 'Peter', awesome: true, degree: 'JavaScript', week: 1 } for (item in student) { console.log('item =>', item); console.log('student[item] =>', student[item]); } let dogA...
true
dcf0c1248a1d19315b3cab653a1026caa2fbd442
JavaScript
wonntann/loopingWords
/js/script.js
UTF-8
372
2.6875
3
[]
no_license
var texts = ["swimming with the dolphins.", "skipping stones.", "riding ten."]; var count = 0; function changeText() { $("#example").text(texts[count]); count < 3 ? count++ : count = 0; }...
true
b128a69c1b951da67478c04c8377a2e5fe1a3639
JavaScript
jacquelinthes/jacquelinthes.github.io
/js/lab4-2.js
UTF-8
628
2.6875
3
[]
no_license
function applyscripture(){ // INPUT let name = document.getElementById('nameInputBox').value; //PROCESSING let scripture = "I, " + name + ", having been born of goodly parents," + " therefore I was taught somewhat in all the learning of my father; and having seen many afflictions in the course of ...
true
875ad612f02b123d145c2dd134221a180326fe7f
JavaScript
Abdul-sid/React-Bootcamp
/2- Hooks, Use state/src/App.js
UTF-8
1,178
3.09375
3
[]
no_license
import React, {useState} from 'react'; import logo from './logo.svg'; import './App.css'; import {Message} from './Message.js' function App() { let [count, setCount] = useState(1); let [isMorning, setMorning] = useState(true) return ( <div className={`box ${isMorning ? 'daylight' : 'box'}`}> <h1>Hav...
true
738a9ca60a931c7429a78f9f72a2b66ac77c7d69
JavaScript
harshaashok93/Hackathon2019
/BMO-Capital-Markets-UI/client/utils/reactutils.js
UTF-8
676
2.640625
3
[]
no_license
const React = require('react'); export const mapPropsToChildren = (children, childProps) => { if (!children || !children.length || !childProps || (typeof childProps !== 'object')) return children; return children.map(child => { return child.map(item => { return React.cloneElement(item, Object.assign({}, ...
true
631a39fb48e8421cfa2db2e9c0028a6dac8eea20
JavaScript
ringosingson/javascriptplayground
/src/algo/20.Tree/findclosestvalueinbst.js
UTF-8
693
3.46875
3
[]
no_license
///aveage:time- O(logn(n)), space - O(1) //worst: time- O(n), space - O(1) function findClosestValueInBst(tree, target) { return findClosestValueInBstHelper(tree, target, Infinity); } function findClosestValueInBstHelper(tree, target, closest) { if (tree === null) { return closest; } if (Math.a...
true
91272815973b245aab1cdaa353a5cd3eb3f5d032
JavaScript
Mherfromlightin/blog
/public/js/modules/carousel.js
UTF-8
1,696
2.78125
3
[ "MIT" ]
permissive
$(function () { var arrayImages = [ '/images/1.jpg', '/images/2.jpg', '/images/3.jpg' ]; var i = 0; var prev = arrayImages[2]; var active = arrayImages[i]; var next = arrayImages[1]; var isSliderRunning = false; $('.imgPrev').attr("src", prev); $('.imgActive'...
true
18478f85883e29bae938c3650fd9a6c5a78caf53
JavaScript
NawazKhanMd/NawazNews
/src/UI Components/TopStories/index.jsx
UTF-8
1,639
2.671875
3
[]
no_license
import React from 'react'; import { memo } from 'react'; import { ErrorBoundary } from './ErroBoundry'; import TopStory from '../EachStory'; const TopStories = ({ TopNewsCodes }) => { const RowCount = Math.ceil(window.innerHeight/ 37); const [page, setPage] = React.useState(1); const paginate = function (a...
true
4f4ae0a890529551c23a49ba79239b85f945da1f
JavaScript
aduminh/btvn
/ad js/clone-shopee-master/js/index.js
UTF-8
2,547
3.15625
3
[]
no_license
const data = [ { img: "./images/new-product.jpg", name: "Bột mỳ baker choice số 13", priceFrom: 200000, priceTo: 409000, sold: "Đã bán 26,3K", }, { img: "./images/new-product.jpg", name: "Mỳ ăn liền ô ma chi", priceFrom: 5000, priceTo: 9900, sold: "Đã bán 10,5K", }, ]; l...
true
dc03f1bfc5ae50d161f5ece73fbbf8153e799c13
JavaScript
Ryan-yang125/LeetcodeTags
/LinkedList/Merge/L86-PartitionList.js
UTF-8
653
3.40625
3
[]
no_license
/** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } */ /** * @param {ListNode} head * @param {number} x * @return {ListNode} */ var partition = function (head, x) { if (!head) return hea...
true
2a224ac5e7b20cd5454b57e3d953ac2e1d368cb8
JavaScript
ShreelataKandkoor/JAVASCRIPT
/loopScript.js
UTF-8
482
4.5
4
[]
no_license
//Use of For Loop to print out the word "hello" times //While Loop var x = 0; while(x<5) { console.log("hello world !"); x++; } //For loop for (var i = 0; i < 5; i++) { console.log("Hello with for loop"); } //Printing the odd numbers var num =1; while (num<25) { if(num%2 !==0){ c...
true
5cff7619f9a06b0c7d74864837bdb7905cb1397d
JavaScript
Maha-Mustafa/React-app-Router
/src/components/Blog.js
UTF-8
897
2.546875
3
[]
no_license
import React from "react"; import Navbar from "./Navbar"; import sampleimg from "./images/sampleimg.png"; function Blog() { return ( <> <h2 className="blog-title">Blog</h2> <div className="showcase"> <div className="showcase-inner-a"> <h2>A Simple Component</h2> <p> ...
true
a0f7196a7c70a22e42eb1c1266b1aa870224a267
JavaScript
daniloWD/curso_node_portal_noticias
/noticias.js
UTF-8
673
2.578125
3
[]
no_license
var http = require('http'); var server = http.createServer(function(req , res){ var categoria = req.url; if (categoria == '/'){ res.end("<html><body>Portal de Noticias</body></html>"); } else if(categoria == '/tecnologia'){ res.end("<html><body>Noticias de Tecnologia</body></html>"); }...
true
4af6ca8080ef90e65f77f76884f9cd32494b4561
JavaScript
MOHAMMADArsalan/100DaysOfCode
/day-4/findKthElement-solu1.js
UTF-8
625
3.84375
4
[]
no_license
/** * Return Kth to Last: Implement an algorithm to find the kth to last element of a singly linked list. */ function findKthElement(list, kth) { let size = 0; var current = list; while (current !== null) { size += 1; current = current.next; } let diff = size - kth; if (diff < 0) { return nul...
true
ae6ac0fed778c07326a9fe3e4ba95be44a6cb96f
JavaScript
sdaniels6363/hot-restaurant
/server.js
UTF-8
2,251
3.25
3
[]
no_license
// Dependencies // ============================================================= var express = require("express"); var path = require("path"); // Sets up the Express App // ============================================================= var app = express(); var PORT = 3000; // Sets up the Express app to handle data par...
true
3e944dbc6d4e25c223b2e6b81928ec14065ce50c
JavaScript
jimbob68/week6_day_1_hwk
/functions_homework.js
UTF-8
5,372
4.3125
4
[]
no_license
// #### Episode 1 // // const scenario = { // murderer: 'Miss Scarlet', // room: 'Library', // weapon: 'Rope' // }; // // const declareMurderer = function() { // return `The murderer is ${scenario.murderer}.`; // } // // const verdict = declareMurderer(); // console.log(verdict); // I think the murderer is Mi...
true
1f3c885a7ff08b40f93c5d9fd547fe13137120ef
JavaScript
Miguel-EpicJS/tecno
/backend/src/services/SignupUser.js
UTF-8
2,373
2.640625
3
[ "MIT" ]
permissive
const fs = require('fs'); const { EncryptUserDataBcrypt } = require("../middleware/EncryptUser"); const readTheFile = require("./readFile"); const signupUSERservice = async (user) => { const token = new Date().getTime(); let session = {}; let userToSend= {} try { const response = await re...
true
bcdbf19f18811e9efd3af194ae3fbc0ac176ee82
JavaScript
Leo501/client_project_1
/assets/scripts/tools/NodePoolMng.js
UTF-8
2,302
2.75
3
[]
no_license
/** * 预制体管理类。 * 通过G.nodePoolArr[item.name]来取得某个预制体对象。 */ const Item = cc.Class({ name: 'Item', properties: { id: 0, name: '', numb: 0, prefab: cc.Prefab, _pool: null, _reuseArr: [], }, init: function (data) { console.log('init Item'); if...
true
674edf3ba138bf6e5fad3086eae7dcda0024dd84
JavaScript
alinagw/interactive-graphics
/homework/hw6/snowman/sketch.js
UTF-8
1,814
2.625
3
[ "MIT" ]
permissive
let speed = 30; function setup() { createCanvas(600, 800, WEBGL); angleMode(DEGREES); } function draw() { background(59, 158, 200); ambientLight(213, 242, 252); pointLight(255, 218, 101, -300, -600, 300); noStroke(); rotateY(millis() / 1000 * speed); drawBottom(); rotateY(millis() / 1000 * speed); ...
true
f2868d97814a775c44142248453ec6ce9c7ff057
JavaScript
plter/HTML5Course20161017
/20161212/HelloReact/src/ClickCount.js
UTF-8
552
2.625
3
[]
no_license
/** * Created by plter on 2016/12/12. */ import React from "react" class ClickCount extends React.Component { constructor() { super(); this.state = { count: 0 }; } btnClickedHandler() { this.setState({ count: this.state.count + 1 }); ...
true
83f6082725271a5f9575bbd0cd5e43407d8c33b4
JavaScript
PaoloLaurenti/nodeschool
/count-to-6/tagged-template-strings.js
UTF-8
553
3.5
4
[ "MIT" ]
permissive
var username = process.argv[2]; var comment = process.argv[3]; console.log(html`<b>${username} says</b>: "${comment}"`); function html(text, ...args){ var escaped = args.map(x => toHtml(x)); return escaped.reduce((soFar, current, currentIndex, array) => `${soFar}${current}${text[currentIndex + 1]}` , text[0...
true
c65fef716b3ebcdd5f07aea97a1183329c346ec9
JavaScript
peterstaghoj/progsommer
/adfunc/index.js
UTF-8
922
2.703125
3
[]
no_license
db = require ('../database/db') module.exports = async function (context, req) { context.log('JavaScript HTTP trigger function processed a request.') try { await db.startDb(); } catch (error) { console.log("Error connecting to the database", error.message) } switch (req.method) {...
true
a0e459c68ea8c71530eaf35bbb56f5cf48314604
JavaScript
asiareal/vue-ssr-example
/demo5/src/api/index.js
UTF-8
175
2.515625
3
[]
no_license
// api export const fetchItem = (id) => { return new Promise((resolve, reject) => { setTimeout(() => { resolve({id: id, title: 'title-' + id}) }, 1000) }) }
true
dc29a1f36c3a131c48365b2b41f4d33e52672e99
JavaScript
jinwangchina/jiamingwang-website
/js/character.js
UTF-8
1,282
3.296875
3
[]
no_license
function randNum() { let rand = Math.floor(Math.random() * 10) + 1; if (rand == 1) { $(".long").show(); } else { $(".long").hide(); } } function sayHi() { let things = ["can you play a game?", "what is 10+100?"]; let games = ["games/game.html", "games/game2.html", "games/new_game...
true
fc6b2ac9c48dbbeeb3a4a1b8e3ab4773bf2b063b
JavaScript
mariiasonina/external-courses
/src/ex16_js-async/task-02/task-02.js
UTF-8
944
3.0625
3
[ "MIT" ]
permissive
const board = document.querySelector('.board__animals'); const inputEl = document.querySelector('.board__search-animals'); const serverRequest = () => { fetch('http://localhost:3000/get') .then((res) => { return res.json(); }) .then((data) => { const findedEl = data.filter(elem => elem.match(...
true
e2e009465da80d84f505c04c737415a1338fecd7
JavaScript
sndr-ms/EmployeeDetails
/WebContent/login/operations.js
UTF-8
1,296
2.671875
3
[]
no_license
$(function() { $(location).attr('href',"#menu"); $("#adde").click(getAddEmployee); $("#search").click(getSearchEmployee); $("#del").click(getDeleteEmployee); $("#update").click(getUpdateEmployee); }); function getAddEmployee(){ $("ul li a").css('background-color','tomato'); $("#adde").css('background-color','bl...
true
3a0a45a3dd91234a5811054ecd33e2a9e099d338
JavaScript
half-potato/Solar-Centrifuge
/Assets/Scripts/Player Controllers/Old Ship.js
UTF-8
466
2.546875
3
[]
no_license
#pragma strict public var thrust = 1000; var rotate = 100; var currentRotation:float; function Start () { currentRotation = 90; } function Update () { var yVelocity = Input.GetAxis("Vertical")*thrust*Time.deltaTime; var rotatetion:int = Input.GetAxis("Horizontal")*rotate*Time.deltaTime; rigidbody2D.AddForce(t...
true
4dbbe8e1ee24cb18a43a9e0789240b7aaf28498e
JavaScript
r-portfolio/whatsapp-clone
/src/models/Model.js
UTF-8
593
2.90625
3
[ "MIT" ]
permissive
import { ClassEvent } from "../utils/ClassEvent"; export class Model extends ClassEvent { constructor() { super(); this._data = {}; } /** * Receives data in JSON. * - Creates an object with this data. * - Sends a trigger to the datachange event with the JSON created. * @param { JSON } json...
true
21391c836acc18d37a84e9b86b48ca0c7faada03
JavaScript
fotisz/MachineLearningIntro
/static/page/helpers.js
UTF-8
7,311
2.9375
3
[ "MIT" ]
permissive
var makeAttributeFn = function(scaleType) { var currentValue = 0; var scroll = 0; var clamp = true; var abstractDomain = [0, 0.3, 1]; var inputRange = [0,100]; var inputScale = d3.scale.linear() .domain([0,1]) .range(inputRange); var domain = [0, 30, 100]; var abstractRange = [0, 1, 1]; var ...
true
634eb57be882d5f3e3c50aa25bb1241898a7bb3c
JavaScript
dricketts/WebCustomizer
/customizeDoc.js
UTF-8
2,903
2.875
3
[]
no_license
function mouseMove(e) { var srcElement = e.srcElement; console.log(e); if (srcElement.nodeName = "DIV") { // For NPE checking, we check safely. We need to remove the class name // Since we will be styling the new one after. if (prevDOM != null) { prevDOM.classList.remove(MOUSE_VISITED_CLASSNAME); ...
true
af1d23a6cee1e9fbb6291527f79641c56b54df3f
JavaScript
rmolinamir/hackernews-react-apollo
/src/configureApolloClient.js
UTF-8
3,264
2.8125
3
[ "MIT" ]
permissive
// Importing the required dependencies from the installed packages. import { ApolloClient } from 'apollo-client'; import { createHttpLink } from 'apollo-link-http'; import { InMemoryCache } from 'apollo-cache-inmemory'; // This middleware will be invoked every time ApolloClient sends a request to the server. Apollo Li...
true
5005dc2945d9a6055ad4dc40767f3dac5c5cdb0e
JavaScript
rayxiao92/webvoting
/www/js/my-app.js
UTF-8
13,028
2.640625
3
[]
no_license
// Initialize your app var myApp = new Framework7(); // Export selectors engine var $$ = Dom7; var currentUser = null; // Add view var mainView = myApp.addView('.view-main', { // Because we use fixed-through navbar we can enable dynamic navbar dynamicNavbar: true }); // Callbacks to run specific code for spec...
true
0ab65743dbada1f0a7ca89cf28693bd68a9b7bce
JavaScript
RodrigoMagallan/Bedumarket
/controllers/compras.js
UTF-8
1,285
2.625
3
[]
no_license
const db = require ("../models"); const Compra = db.compra; const Op = db.Sequelize.Op; //Generar una compra exports.create = (req, res) => { // Validate request // Create a Compra const compra = { id: req.body.id, id_usuario: req.body.id_usuario, id_curso: req.body.id_curso, nombre_curso: req.bo...
true
88ac7b5bf07381deb4cdefa1102677ff719268c4
JavaScript
d-ang1993/voting_poll
/client/src/components/Auth.jsx
UTF-8
1,729
2.53125
3
[]
no_license
import React from "react"; import { connect } from "react-redux"; import decode from 'jwt-decode' import { authUser, logout } from "../store/actions"; class Auth extends React.Component { constructor(props) { super(props); this.state = { email: "", password: "", authenticated: "false" ...
true