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
16b837e6f28b47f6a08d28114f4141f4d65a6bcc
JavaScript
Sarwar-Putul/es6-practice
/inheritance.js
UTF-8
390
3.5625
4
[]
no_license
class Parent { constructor() { this.fatherName = "Schwarzenegger"; } } class Child extends Parent { constructor(name) { super(); this.name = name; } getFulName() { return this.name + " " + this.fatherName; } } const Child1 = new Child("Arnold"); const Child2 = ne...
true
44b0aac2a36165c9ed5ef40516cdde4e2a686857
JavaScript
rryb77/dotard-and-simbleton
/scripts/manufacturing/manufacturingList.js
UTF-8
754
2.8125
3
[]
no_license
import { manufacturing } from './manufacturing.js' import { useBusinesses } from '../BusinessProvider.js' const manuArray = useBusinesses(); const businessContent = document.querySelector(".businesses"); export const manufacturingList = () => { businessContent.innerHTML = "<h1>Manufacturing Industry</h1>"; m...
true
8d4cd766e7195f7ddac82843ded0066690345466
JavaScript
ferdi2005/bootstrap-italia
/src/js/plugins/track-focus.js
UTF-8
576
2.90625
3
[ "BSD-3-Clause" ]
permissive
(function(body) { var usingMouse; var preFocus = function(event) { usingMouse = (event.type === 'mousedown'); }; var addFocus = function(event) { if (usingMouse) event.target.classList.add('focus--mouse'); }; var removeFocus = function(event) { event.target.classList.remove('focus--mouse'); }; var...
true
8e94c7299bf8fa3bcda2ad9cf2fe56aa304e8709
JavaScript
dolphub/nodepong
/src/app/server.js
UTF-8
1,383
2.515625
3
[]
no_license
import express from 'express'; import http from 'http'; import IO from 'socket.io'; import config, { logger } from './config'; import expressapp from './express'; class ServerImplementation { constructor() { this.instance = http.createServer(expressapp); this.io = IO(this.instance); ...
true
fb2810521a47bd8d784f7554d97fdf8be099f576
JavaScript
fsantos96/EjercicioReactNativeLogin
/Services/apiService.js
UTF-8
2,550
2.96875
3
[]
no_license
//const request = require('request-promise-native'); const filters = { ingredients: "i=", fistLetter: "f=", name: "s=", idCocktail: "i=", idIngredient: "iid=", category: "c=", alcoholic: "a=", glass: "g=" }; function sentRequest(method, params) { var options ={ url:"https://...
true
27405253db151ac3d951db0f834462e86da1325f
JavaScript
acloudguru-vijay/oprah
/lib/services/parameter-store/stores/ddb/make-get-all-parameters.test.js
UTF-8
1,302
2.515625
3
[ "MIT" ]
permissive
const mockGetLatestVersion = jest.fn(); const { makeGetAllParameters } = require('./make-get-all-parameters'); const getAllParameters = makeGetAllParameters({ getLatestVersion: mockGetLatestVersion }); describe('getAllParameters', () => { it('should retrieve all the parameters that exists', () => { mockGetLa...
true
e99333415babff64a96fdf191ca81128f42f425f
JavaScript
drjorgepolanco/react-skeleton
/src/components/IngredientList.jsx
UTF-8
645
3.1875
3
[]
no_license
// start with CAPS because is a component. It's not mandatory to do it that way. var React = require('react'); var Ingredient = require('./Ingredient.jsx'); var ingredients = [ {"id": 1, "text": "ham"}, {"id": 2, "text": "cheese"}, {"id": 3, "text": "potatoes"}, {"id": 4, "text": "banana"} ]; // ...
true
630dfa2411dcaa5c9b7aadb2c71bf99ebb5407b1
JavaScript
MarkMurphy/faktory_worker_node
/lib/client.js
UTF-8
8,542
2.53125
3
[ "MIT" ]
permissive
const debug = require('debug')('faktory-worker:client'); const { URL } = require('url'); const querystring = require('querystring'); const os = require('os'); const { createPool } = require('generic-pool'); const heartDebug = require('debug')('faktory-worker:client:heart'); const encode = require('./encode'); const Jo...
true
055c3facdbde70b763c4b53aaf7458f53231ee75
JavaScript
padawanR0k/ToDoList
/V2/js/app-es6.js
UTF-8
5,164
3
3
[]
no_license
const todo = document.getElementById('todo-list'); const inputbox = document.getElementById('input-todo'); const btnViewAll = document.getElementById('all'); const btnViewActive = document.getElementById('active'); const btnViewCompleted = document.getElementById('completed'); const navPill = document.querySelectorAll(...
true
ba70a99bd0271ca7e9cb1ed50ccbd8a88a50f216
JavaScript
phishchiang/exhausted-squat-porn
/client/src/components/NeuralNetwork.js
UTF-8
4,969
2.578125
3
[ "MIT" ]
permissive
import React, { useEffect, useState, Fragment, useRef } from "react"; import * as ml5 from "ml5"; import P5 from "./P5"; import VideoPlayer from "./VideoPlayer"; import { DATA_JSON_URL, MODEL_JSON_URL, MODEL_META_JSON_URL, MODEL_WEIGHTS_BIN_URL } from "./url"; let poseNet; let neuralNetwork; export default f...
true
79dc69826ca7a7051b3ed373fbea22d5e27362bb
JavaScript
SaimumDEV/React_Boilerplate
/context-api/src/sections/counter/index.jsx
UTF-8
1,944
2.546875
3
[ "MIT" ]
permissive
import React, { useState, useCallback } from "react"; import { useCounterContext } from "store/contexts/counter"; import styles from "./index.module.css"; const Counter = () => { const { count, increment, decrement, incrementByAmount, incrementAsync, resetCount, } = useCounterContext(); ...
true
4fe4cbdedddc8922b02f728a79ce8d6cd9f44b91
JavaScript
VinitTomar/SocketIOBroadcastChatApp
/server.js
UTF-8
1,322
2.71875
3
[]
no_license
var express = require('express'); var http = require('http'); var socketIO = require('socket.io'); var app = express(); var server = http.createServer(app); var io = socketIO.listen(server); users = []; connections = []; server.listen(3000, function(){ console.log('server started at port 3000'); }); app.get('/',...
true
3293772b7df550209dfa5ce143fc136a21d0eef1
JavaScript
arpho/bb
/web/static/script/commodity/User.js
UTF-8
339
2.5625
3
[ "MIT" ]
permissive
function isEnabled(){ return this.user.enabled } function isLogged(){ return this.user.logged } function isAdmin(){ return this.user.superuser } function setUser(user){ this.user = user } function User(user){ this.user = user this.isAdmin = isAdmin this.isLogged = isLogged this.isEnabled = isEnabled this.s...
true
aa5cab4c43ef6aaab98002f7ec3055460edb5952
JavaScript
PederSchacht/nss-cohort-iv
/2014-02-12-Node-Mongo.Movies/client/app/js/source/main.js
UTF-8
4,799
2.890625
3
[]
no_license
(function(){ 'use strict'; $(document).ready(initialize); var movies = []; function initialize(){ $(document).foundation(); $('#save').click(saveMovie); $('#update').click(updateMovie); $('#toggle-form').click(toggleForm); $('#movies').on('click', '.studio', filterStudio); $('#movies...
true
60b6309b54b295dd50a3f64d91aa37b333a2dcd2
JavaScript
SeniorIgor/BKS-Swiper
/src/actions/news-item.js
UTF-8
781
2.515625
3
[]
no_license
import { FETCH_NEWS_ITEM_REQUEST, FETCH_NEWS_ITEM_SUCCESS, FETCH_NEWS_ITEM_FAILURE, CLEAR_NEWS_ITEM, } from '../constants'; const newsItemRequested = () => { return { type: FETCH_NEWS_ITEM_REQUEST, } } const newsItemLoaded = (newsItem) => { return { type: FETCH_NEWS_ITEM_SUCCESS, payload: newsItem }; } ...
true
48529b6f1607c1535c7463946ef3619917bed4f8
JavaScript
cha-n/homework
/myProject/static/main.js
UTF-8
7,246
2.828125
3
[]
no_license
// 도서 검색_책 이름으로 검색 function searchByTitle() { bookTitle = $('#book-title').val() console.log(bookTitle) $('#searchedBookList').html("") $.ajax({ method: "GET", url: "https://dapi.kakao.com/v3/search/book?target=title", data: { 'query': bookTitle }, hea...
true
2faf84df01fd6872d900b73cc8f9e598b30f5b32
JavaScript
weihanchen/elastic-search-builder
/src/body/query/bool/index.js
UTF-8
4,393
2.578125
3
[]
no_license
import mustBuilder from './must'; import mustNotBuilder from './mustNot'; import shouldBuilder from './should'; import boolFilterBuilder from './filter'; export default (boolBody = {}) => ({ /** * The clause (query) must appear in matching documents and will contribute to the score. * @param {...*} args...
true
95a1fd7a31b9db822d3666c17b585895f2758869
JavaScript
joshua-simon/codecademyExercises
/asyncStuff.js
UTF-8
311
3.25
3
[]
no_license
const addSugar = () => { return new Promise((resolve,reject) => { setTimeout(() => { resolve('add sugar') },2000) }) } const isTeaSweet = async () => { let resolvedValue = await addSugar() console.log(`Tea is not sweet enough, so ${resolvedValue}`) } isTeaSweet()
true
eafecdffb92cd409db4e0eea6199ef7a8983b5c7
JavaScript
emmkay1/codewars
/7 Kyu/Javascript/population.js
UTF-8
285
3.1875
3
[]
no_license
function nbYear(p0, percent, aug, p) { let years = 0; while (p0 < p) { p0 += p0 * (percent / 100) + aug; years++; } return years; } console.log(nbYear(1500, 5, 100, 5000)); console.log(nbYear(1500000, 2.5, 10000, 2000000)); console.log(nbYear(1500000, 0.25, 1000, 2000000));
true
fc164fa4663b18cb1b488347ddacc1445b89c7bf
JavaScript
MatthewM1986/kennel
/src/components/animal/AnimalList.js
UTF-8
4,592
3.171875
3
[]
no_license
import React, { useState, useContext, useEffect } from "react" import { AnimalContext } from "./AnimalProvider" import { Animal } from "./Animal" import "./Animal.css" export const AnimalList = ({ history }) => { const { getAnimals, animalsArray, searchTerms } = useContext(AnimalContext) /* Since you d...
true
d2ab665415ea839a443df9095dd39949dfb65677
JavaScript
ddneat/zeitgeist.js
/src/datetime/calculations/ceil.spec.js
UTF-8
3,471
2.578125
3
[ "MIT", "ISC" ]
permissive
import { assertThat, equalTo } from 'hamjest'; import { INVALID_DATETIME } from '../constants'; import { ceilSecond, ceilMinute, ceilHour, ceilDay, ceilMonth, ceilYear, } from '../index'; describe('ceil', () => { describe('ceilSecond', () => { it('2000-01-01T11:12:13.123 results in 2000-01-01T11:12:1...
true
4d2505016779c3f791d829420e3ef738d355bb11
JavaScript
ThiagoPederzolli/trybe-exercises
/modulo_front-end/bloco_15/dia_1/sd-06-project-movie-card-library-crud/src/pages/MovieDetails.js
UTF-8
2,091
2.71875
3
[]
no_license
import React, { Component } from 'react'; import * as movieAPI from '../services/movieAPI'; import { Loading } from '../components'; import { Link } from 'react-router-dom'; class MovieDetails extends Component { constructor() { super(); this.state = { loading: true, movie: '', }; this....
true
b7268042742889fb57d0c4c155ffe4384480d496
JavaScript
TOM09/up-down
/updown/this2/js/js.js
UTF-8
2,416
3.125
3
[]
no_license
window.onload = function() { //获取元素 var prevGroup = document.querySelector("#prevGroup"); var nextGroup = document.querySelector("#nextGroup"); var imgLeft = document.querySelector(".imgLeft img"); var imgRight = document.querySelector(".imgRight img"); var imgNumR = document.querySelector(".imgRight .imgNum"); ...
true
d2217831da61e9cf0b52822f70d2b5c698e9064a
JavaScript
CiscoDevNet/Glance
/public/lib/next/module-base/geometry/Line.js
UTF-8
4,092
2.59375
3
[ "Apache-2.0", "MIT" ]
permissive
(function (nx) { var sqrt = Math.sqrt; var square = nx.math.square; var abs = Math.abs; /** * @class Line * @namespace nx.geometry */ var EXPORT = nx.define("nx.geometry.Line", { statics: { getDistance: function (x1, y1, x2, y2) { return sqrt(square...
true
4cdea7bb89fa7571718d5d21a0c6913c3722f394
JavaScript
elvisgs/sped-gen
/test/sped-utils-spec.js
UTF-8
1,726
2.546875
3
[]
no_license
'use strict'; const spedUtils = require('../lib/sped-utils.js'); require('should'); describe('Sped Utils', function() { describe('ehRegistroSped', function() { it('deve retornar true se string representar um registro Sped', function() { spedUtils.ehRegistroSped('A100').should.be.true(); spe...
true
1b4efac8881c4fec6507dc02e08bfe833e24f3d4
JavaScript
Sahil3554/Capital-Movies-Frontend
/src/components/Pagination.jsx
UTF-8
1,235
2.609375
3
[]
no_license
import React from "react"; const Pagination = ({ page, setPage, total }) => { const getPaginate = (total) => { let content = []; for (let i = page; i <= page + 2; i++) { content.push( <li className="page-item" onClick={() => setPage(i)} key={i}> <button className="page-link text-prima...
true
38ea8eab73961c9669a585e70e7ceb965c4edfba
JavaScript
LzpTec/ts-method-cache
/dist/core/object/cache-container.object.js
UTF-8
560
2.75
3
[ "Apache-2.0" ]
permissive
export class CacheContainerObject { constructor(options) { this.options = options; this.cacheObjects = []; } get key() { return this.options.key; } addCache(cacheObject) { if (this.cacheObjects.indexOf(cacheObject) === -1) { this.cacheObjects.push(cacheObj...
true
9ea67d6c5cb3c2fcae93f04c516badc10af72666
JavaScript
AlpinL/http_web_app-template
/src/web_client/internal/manageMyData.js
UTF-8
827
2.65625
3
[]
no_license
'use strict'; function showMessage(message) { console.log('Message: ', message); } function getNewXMLHttpRequest() { const xhr = new XMLHttpRequest(); xhr.onload = console.log; xhr.onerror = console.log; xhr.onreadystatechange = console.log; return xhr; } function testGetRequest(dataKey) { // c...
true
2d42c16dabe567cf7f75a8fa9922777b1b3d4231
JavaScript
marcoswlrich/basic-js
/ex5.js
UTF-8
742
4.28125
4
[]
no_license
/* 5) Dado um vetor de valores, retorne um vetor com somente os valores únicos do vetor (aqueles que ocorrem apenas 1 vez dentro do vetor) (Dica 1: utilize reduce, filter e keys, Dica 2: escreva console.log(objeto.keys()) e veja como ele poderá te ajudar neste exercício) */ const vetor = [1, 2, 2, 3, 4, 5,...
true
758725095dcfc99a2a899f38ab8cc8d4e551f052
JavaScript
Chang-CH/CVWO-task-manager
/task-app/src/components/Categoryview.js
UTF-8
4,557
2.671875
3
[]
no_license
import React, { Component } from 'react' import Navbar from './Navbar' import axios from 'axios' // import update from 'immutability-helper' import { Link } from 'react-router-dom' import * as Constants from './../constants' class Taskview extends Component { constructor(props){ // Category 0 is used as an...
true
42c05b25c8f2fe7dfbfe53fb836ce6d4779096d0
JavaScript
evandeininger/microzine_json
/src/components/TextInput.jsx
UTF-8
712
2.53125
3
[]
no_license
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class TextInput extends Component { constructor(props) { super(props); this.defaultValue = props.initialValue ? props.initialValue : ''; props.inputValue(this.defaultValue); } static propTypes = { initialValue: PropTypes.string, ...
true
5a3e70f0a51405f37530eba4aa151dff0af2a7af
JavaScript
LJYco/nav_follow
/common.js
UTF-8
777
3.28125
3
[]
no_license
//根据id获取对应的元素 function my$(id) { return document.getElementById(id); } /* * element----要移动的元素 * target----移动的目标 * * */ function animate1(element, target) { clearInterval(element.timeId); element.timeId = setInterval(function() { //获取当前的位置 var current = element.offsetLeft; //每次移动多...
true
b992a9c281b15a9545ecc3769920547bf5ede6d4
JavaScript
boatdev085/cousejavascript
/day2/homework2-1.js
UTF-8
129
3.59375
4
[]
no_license
let arr= [1,2,3,4,5,6,7,8,9,10]; let arrpaste = arr.filter(item => item % 2 != 1) .map(item => item*1000) console.log(arrpaste)
true
df3a8414834f7cbd0ff46c46a009496d1aff0ead
JavaScript
10up/wp-local-docker-v2
/src/utils/make-link.js
UTF-8
582
2.5625
3
[ "MIT" ]
permissive
const chalk = require( 'chalk' ); const terminalLink = require( 'terminal-link' ); const stripAnsi = require( 'strip-ansi' ); function makeLink( text, link ) { if ( ! terminalLink.isSupported ) { return link !== stripAnsi( text ) ? `${ text } (${ link })` : link; } return terminalLink( text, link ); } function ...
true
575a670fcc01a3d81054dc4f76f822a217a43144
JavaScript
samtai1229/BA101G2
/WebContent/frontend/location/js/googlemap.js
UTF-8
3,442
2.625
3
[]
no_license
var Lon,Lat; var myMap; var map; var myPosition =[]; var i=0,j=0; function doFirst(){ myMap = document.getElementById('myMap'); Lon = 24.01; Lat = 121.1; myPosition = new google.maps.LatLng(Lon,Lat); var a=2; var b=3; var c=6; var lo...
true
3e61a18fc9cd0d0e7ec91159dda6390702a72721
JavaScript
johngagon/jhg-common
/src/utils/title/title.test.js
UTF-8
1,138
2.734375
3
[]
no_license
import { Title, generateRandom, labels, jsonSchema } from './title'; describe('title', () => { describe('#Title', () => { it('errs on empty', ()=>{ const invalid = ''; const invalidTitle = Title(invalid); expect(invalidTitle.error.details[0].message).toMatch(/is not allowed t...
true
54cf64f58d36c5940ae209f6ea3d6aea072d7fc0
JavaScript
krnets/codewars-practice
/8kyu/Correct the mistakes of the character recognition software/index.js
UTF-8
268
3.078125
3
[]
no_license
let str = '51NGAP0RE' // str = str.replace(/5/g, 'S') // str = str.replace(/1/g, 'I') // q = str.replace(/0/g, 'O') const correct = s => s .replace(/0/g, 'O') .replace(/5/g, 'S') .replace(/1/g, 'I') q = correct(str) q
true
95948453b17c1204e742a33663c79ba562a325e6
JavaScript
pperreiah/project-bitcoin
/assets/javascript/mobile.js
UTF-8
1,036
2.71875
3
[]
no_license
$(document).ready(function () { // if ( $(window).width() > 768) { // //Add your javascript for large screens here // } else if(document.documentElement.clientWidth < 768){ //Add your javascript for small screens here console.log('js for mobile!!!!!!!!!!!!!!!!!!!!!!!!'); ...
true
6f2c65381b6cb446d1a54df477dd15ec1ceb1fb2
JavaScript
tim-evans/django-canadanewyork
/static/js/lightbox.js
UTF-8
7,212
2.5625
3
[]
no_license
(function () { var slice = Array.prototype.slice; var bind = function (fn, scope, args) { args = slice.call(arguments, 2); return function () { fn.apply(scope, args.concat(slice.call(arguments, 0))); }; }; var hasTouchCapabilities = ('ontouchstart' in window) || window.DocumentTouch && document instanceof D...
true
5752b306f3e828ee6dba5688d21d09726f33ba29
JavaScript
amir-alaj/Infinite-Runner
/src/scenes/Menu.js
UTF-8
1,362
2.59375
3
[]
no_license
class Menu extends Phaser.Scene { constructor() { super("menuScene"); } create() { this.backround = this.add.tileSprite(0, 0, 960, 640, 'background').setOrigin(0,0); //menu display let menuConfig = { //fontFamily: 'Helvetica', fontSize: '28px', ...
true
be5e84ea5906199d8762fa61563e351d30edb3db
JavaScript
codingscode/Javascript30
/07 - Array Cardio Day 2/js.js
UTF-8
1,683
3.9375
4
[]
no_license
// ## Array Cardio Day 2 const pessoas = [ { nome: 'Wes', ano: 1988 }, { nome: 'Kait', ano: 1986 }, { nome: 'Irv', ano: 1970 }, { nome: 'Lux', ano: 2015 } ] const comentarios = [ { texto: 'Love this!', id: 523423 }, { texto: 'Super good', id: 823423 }, { texto: 'You are the best', id: 2039...
true
5e81c09277aee3ca0a34f78f4694db0b7f8720e5
JavaScript
cakeinpanic/advent
/day18.js
UTF-8
2,264
3.625
4
[]
no_license
let input = require('./data/18'); const JUMP = 'jgz'; class Instruction { constructor() { this.library = {}; } getValue(str) { const int = parseInt(str); if (isNaN(int)) { return this.library[str] === undefined ? 0 : this.library[str]; } return int; ...
true
11de6d058ddaaf8166a5f112ac15df2d48663ce9
JavaScript
gokulkrishh/lets-code-in-js
/prime-or-not.js
UTF-8
253
3.109375
3
[]
no_license
/* Prime Number or Not ------------- @params {number} @return boolean */ var primeOrNot = function(num) { if (num < 2) return false; for (var i = 2; i < num; i++) { if (num % i === 0) { return false; } } return true; };
true
903196628c47b604e6cb0757918862924e865993
JavaScript
sanskar-19/Booksouls-Project
/Landing Page Mobile/scroll.js
UTF-8
2,873
2.734375
3
[]
no_license
var n = 0 var g2=document.getElementById('contain') var g3=document.getElementsByClassName('card') var g4=document.getElementById('slidepod') var g5=document.getElementsByClassName('d') window.addEventListener('scroll', () => { // console.log('Scrolled') var g1 = window.scrollY; // console.log(n) ...
true
839ea517f5ad5f2455ede461b941d04c8c98ff9f
JavaScript
Sam152/Sams-Days-Since-Script
/app.js
UTF-8
1,512
3.53125
4
[]
no_license
(function(){ window.onload = function(){ // Get the form. var form = document.getElementById('create'); // If the form is in the DOM if(form !== null){ // When the form is submitted. form.onsubmit = function(){ // If auth is enabled. if(auth_enabled){ // Ask for a password. var pa...
true
5ca30d6f6d37e48eb8f1ddbbafb0decd5eac6f58
JavaScript
sdawes/node_webserver
/app.js
UTF-8
1,268
2.921875
3
[]
no_license
const express = require('express'); const path = require('path'); // core module - no need to download const bodyParser = require('body-parser'); const app = express(); // Set Static path using middleware app.use(express.static(path.join(__dirname, 'public'))); // parse application/x-www-form-urlencoded app.use(bod...
true
7a5fc3b6f568e00cbe2a139074309f24d1a0aa80
JavaScript
carlosgioram/Repo-Bitacora-2.0
/SpreadSheetServer.gs
UTF-8
18,038
3.078125
3
[]
no_license
/** * Takes a positive integer and returns the corresponding column name. * @param {number} num The positive integer to convert to a column name. * @return {string} The column name. */ function toColumnName(num) { for (var ret = '', a = 1, b = 26; (num -= a) >= 0; a = b, b *= 26) { ret = String.fromCharCode...
true
726de3306781183fb4d0a6aa4a64cddc897f6838
JavaScript
jupepe/node_kirja
/node_esim/echoServer/TcpEchoServer.js
UTF-8
575
2.96875
3
[]
no_license
const net = require('net') const server = net.createServer((socket) => { // Identify the client socket.name = socket.remoteAddress + ":" + socket.remotePort // Message from the client socket.on('data', (data) => { console.log( "Connection from " + socket.name + " " + socket.name + ...
true
7c788636550be079a892722c986cb7070c4e7c27
JavaScript
pwlee/code-samples
/javascript/leet-code/0091-decode-ways.js
UTF-8
1,565
3.59375
4
[]
no_license
// https://leetcode.com/problems/decode-ways/ // // A message containing letters from A-Z is being encoded to numbers using the // following mapping: // // 'A' -> 1 // 'B' -> 2 // ... // 'Z' -> 26 // Given a non-empty string containing only digits, determine the total number of // ways to decode it. // // Example 1:...
true
3dee7e2d112a8fe7b149e32c5fd0ca87cf6bdf90
JavaScript
codesolver88/Planets
/src/Components/Login.js
UTF-8
2,075
2.703125
3
[]
no_license
import React,{Component} from 'react'; class Login extends Component { constructor () { super(); this.state = { error : false, user : "", password : "" } } // Login page input handler in order to update state onChangeHandler = (e) => { if(e.target.value !== "") ...
true
baa252632a06c73cc62949c073b7338c8501c530
JavaScript
ValVarius/https-projecteuler.net-archives
/25 1000-digit Fibonacci number.js
UTF-8
719
4.1875
4
[]
no_license
// The Fibonacci sequence is defined by the recurrence relation: // Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. // Hence the first 12 terms will be: // F1 = 1 // F2 = 1 // F3 = 2 // F4 = 3 // F5 = 5 // F6 = 8 // F7 = 13 // F8 = 21 // F9 = 34 // F10 = 55 // F11 = 89 // F12 = 144 // The 12th term, F12, is the first term...
true
b0bd32ea9f148404a3a2f79e81dffdab515222f9
JavaScript
Minnnnn/richtext-promise
/myPromise/1.js
UTF-8
5,221
3.46875
3
[]
no_license
const promiseStatus = { PENDING:'PENDING', FULFILLED:'FULFILLED', REJECTED:'REJECTED' } class myPromise { constructor(myExecutorFunc) { if(typeof myExecutorFunc !=="function"){ throw new Error('MyPromise only accept a functon handle!') } //添加状态 this.status = ...
true
82d5186092c89949c4505dd3490d44b3627b1b13
JavaScript
filrak/Vuejs-introduction
/src/vue-basics/main.js
UTF-8
911
2.859375
3
[]
no_license
// In this file we are instantiating our Vue.js application. // Its your applications entry point where you can specify many useful properties about your app (eg. where it should render) // More about Vue instance: https://vuejs.org/v2/guide/instance.html // --------------------------------------------------- // We are...
true
41ae7b90c1421ea3ff310f80dc32b3f14abf4018
JavaScript
strawberry-grace/Redux-Todo
/todo/src/components/Form.js
UTF-8
1,102
2.53125
3
[]
no_license
import React, { Component } from 'react'; export default class Form extends Component { constructor(props) { super(props); this.state = { input: '', } } changeHandler = e => { this.setState({ input: e.target.value, }) } submitHandler...
true
c9acc23112c64699a426ad409d71487af32124b0
JavaScript
ajbajb/ARTTECH3135-spring2019
/day04/04_00_movementNoVector/sketch.js
UTF-8
607
3.34375
3
[ "MIT" ]
permissive
// no Vectors let xPos = 1; let yPos = 1; let xDirection = 1; let yDirection = 1; function setup() { createCanvas( 600, 600 ); } function draw() { background( 0 ); let xSpeed = map( mouseX, 0, width, 0, 50 ); let ySpeed = map( mouseY, 0, height, 0, 50 ); checkWalls(); xPos += xSpeed * x...
true
b6f67a0ff3003c2e37dfb572bcf8384df1153d20
JavaScript
xiaobaicai4220/-
/面试准备/python复习笔记.js
UTF-8
2,976
2.734375
3
[]
no_license
1:什么是python 1:python是一种解释型语言,也就是说,与C语言和C的衍生语言不同,python代码在运行之前不需要编译 2:python是动态类型语言,指的是你在声明变量的时候,不需要说明变量的类型 3:python非常适合面向对象编程,因为它支持通过组合与继承的方式来继承类.python中没有访问说明符 4:在Python中,函数是第一类对象.这指的是它们可以被指定给变量,函数即能返回函数类型,也可以接受函数作为输入,类也是第一类对象 5:python代码编写快,但是运行速度比编译语言通常要慢.好在python允许加入基于C编写的扩展,像numpy就是一个很好的例子 6:python用途非常广泛:网络应用...
true
f927a73b5b6c198a39bc93826f8fd2d02e11cd24
JavaScript
paxorus/monopoly
/react/lobby/image-picker.jsx
UTF-8
1,189
2.515625
3
[]
no_license
import validate from "/javascripts/validate-props.js"; class ImagePicker extends React.Component { constructor(props) { validate(super(props)); this.state = { mousedOverImage: null }; } handleMouseOverImage(sprite) { this.setState({mousedOverImage: sprite}); } handleMouseOutOfImage(sprite) { this....
true
f389ed9368a0ce689bfdbab7981559d653ed938c
JavaScript
MetaMmodern/Fill-the-Fridge
/articlesFromPage/index.js
UTF-8
2,858
2.828125
3
[]
no_license
const needle = require('needle'); const cheerio = require('cheerio'); const creatorurl = require('../urlcreate'); function getIngredientsObject(currentHTML) { const ingredients = []; currentHTML(".ingredients-bl ul li > span[itemprop='ingredient']").each((_index, value) => { const ingredientAndAmount = {}; ...
true
b7ac64f3a3ee353852b675defd2b0b0fc08eb530
JavaScript
1051756002/ideal-framework
/bak/2018.5.2 (单例ideal.net)/network/iService.js
UTF-8
1,085
2.84375
3
[]
no_license
/** * 业务服务器 * 用于解析服务器推送过来的消息,分发出业务指令。 */ let service = {}; let serviceList = []; service.add = function(obj) { if (serviceList.indexOf(obj) == -1) { serviceList.push(obj); } }; service.removeAll = function() { while (serviceList.length > 0) { serviceList.shift(); }; }; // 发送指令 service.sendMsg = function(c...
true
2ede32de79129f37d494fea076a231f1f05d8ccb
JavaScript
ForveX/GoIT-JS_HW21-22
/spec/spec.js
UTF-8
405
2.6875
3
[]
no_license
var pow = require('../js/pow.js'); describe("Test", function() { it("pow() test 2^3", function() { expect(pow(2,3)).toBe(8); }); it("pow() test 7^1", function() { expect(pow(7,1)).toBe(7); }); it("pow() test 6^empty", function() { expect(pow(6,'')).toBe('Необходимо ввести числовое значение вып...
true
aae68fdbcb29e1037ac64cccbd5be4380e32121b
JavaScript
kkoushik9/Charlotte_Today
/utilities/UserDB.js
UTF-8
550
2.5625
3
[]
no_license
var user = require('./../model/User'); var userModel= require('../model/User.model'); var getUser = async function(username) { var userFound; await userModel.findOne({$or:[{ 'email': username },{ 'userID': username }]}).exec().then((userRet) => { if (userRet) { userFound = new user.User(u...
true
9a1bb4d00942757394c31b5e626f12c7f93b3272
JavaScript
cheng022074/zbee-sdk
/src/directory/copy.fn.js
UTF-8
932
2.71875
3
[]
no_license
/** * * 拷贝文件夹 * * @import is.directory * * @import getAllFilePaths from .paths.file.all * * @import createDirectory from directory.create * * @import emptyFn from function.empty value * * @param {string} src 拷贝的源文件夹目录 * * @param {string} dest 目标文件夹目录 * * @param {boolean} [isCopySrcFolder = true...
true
fd24fe5648fc711d4cef6efc0a9690f9543d3e7c
JavaScript
nathanphan26/Access-able
/src/components/Main.js
UTF-8
4,804
2.5625
3
[]
no_license
import React, { Component } from 'react' import Nav from './Nav'; import Editor from './Editor'; import * as MainHelper from '../helpers/Main-helper'; import { Container, Divider, Form, Grid, Segment, Button, Icon, Dropdown, Label } from 'semantic-ui-react' export class Main extends Component { state = { rows:...
true
1293c58658d95ae007dbda8073f62b119bc80f83
JavaScript
thomasmillergb/The-Intelligent-Web-nodejs
/IntelligentWeb/solution/oAuth/twitter.js
UTF-8
2,209
2.53125
3
[]
no_license
/** Performs the oAuth for twitter to get the access token and secret, then send the token back to client */ var OAuth = require('oauth').OAuth; //var express = require('express'); //var app = express(); var expressSession = require('express-session'); module.exports = function(app) { var oa = new OAuth("https://a...
true
0b046e2cc4fc1dc13ecae388a82b29bb6883d727
JavaScript
eliabevces/projeto-final-programacao-para-internet
/clinica/login/sessao_restrita/listagem_agendamentos_medico/js/script.js
UTF-8
567
2.953125
3
[]
no_license
window.addEventListener("load",function(event) { const el = document.querySelector("#logout"); el.addEventListener('click', logout); },false); function logout(event) { event.preventDefault(); const options = { method: "GET" } fetch("../logout/php/logout.php", options) .then(r...
true
a445645f3381ec7833f2a32bf62d6f52a2972d74
JavaScript
ecodercc5/firebase-auth
/backend/functions/api/models/class.js
UTF-8
1,670
2.53125
3
[]
no_license
const { Model } = require("./model"); const { uid } = require("uid"); const { db } = require("../../firestore"); class Class extends Model { constructor({ id, name, code = uid(6), teacher }) { super({ id }); this.name = name; this.code = code; this.teacher = teacher; } static async getClassesByT...
true
dc1a537cdf6c6b74426241500961393bae13c195
JavaScript
bmangeat/movies-ghibli
/src/states/MovieContext.js
UTF-8
1,621
2.703125
3
[]
no_license
import React, { useEffect, useState, createContext } from "react" export const MovieContext = createContext() export const MovieProvider = ( props ) => { const [ movies, setMovies ] = useState( [] ) useEffect( () => { fetchData() }, [] ) const fetchData = () => ...
true
b8bb760b3b23d62dff0d9c5febcdb3cefa19eecb
JavaScript
GeneralOneill/NEOSA
/neosa-uiuc/scripts/schedule.js
UTF-8
2,483
2.96875
3
[]
no_license
$(document).ready(function(){ var selected_Times = []; ; //schedule handler implemented in profile page and schedule page var isMouseDown = false; $("#our_table td").mousedown(function () { isMouseDown = true; //check to see if the object is going from selected to unselected if ($(this).hasClass( ...
true
21eb0218cd6dc425e44d0e210d521aea4fd980ff
JavaScript
CITunitec/NodePong
/public/js/game.js
UTF-8
2,676
2.546875
3
[]
no_license
window.init = (function() { var $ , io , socket , owner = false // jQuery Handlers var $player1 , $player2 , $pp1 , $pp2 , $ball , $lock , $newGame , $wait // In-game variables var players = [null, null] , ball // Avoiding Type Re-creation var str_px = 'px' ...
true
453a0b1bbe0dc1673ae1d5e1ec916074cff88763
JavaScript
aibolik/advanced-js-self-study
/5 - Hoisting/hoisting.js
UTF-8
329
3.875
4
[]
no_license
// conseptual thing - HOISTING // a and b hoisted, so they will be undefined in 1-2 lines // console.log(a); console.log(b); var a = b; // here still undefined var b = 2; console.log(b); console.log(a); // Mutual recursion - two or more functions call each other. // It is impossible to make mutual recursion without h...
true
e461242b096ef517e7c24a69b9d41cf28883d4ca
JavaScript
etnbrd/due-paper
/src/snippets/pr-exp.js
UTF-8
283
2.625
3
[]
no_license
var my_fn = require('./my-fn'), arg = '1'; my_fn(arg).then(function(res) { // resolve return (function callback(err, res) { console.log(res); })(null, res); }, function(reason) { // reject return (function callback(err, res) { console.log(res); })(reason); });
true
a58e8f137e8ba6c3180086d27beaff5e65e15e45
JavaScript
marvinthompson-code/FSW-Redux-One-Lab
/src/containers/CounterContainer.js
UTF-8
981
2.609375
3
[]
no_license
import React from "react"; import Counter from "../components/Counter"; import { useDispatch, useSelector } from "react-redux" import { incrementCount, decrementCount, resetCount, setCount, even, odd} from "../actions/counterActions"; const CounterContainer = () => { let count = useSelector(state => state.count) c...
true
be4757e0f2a9b9ac360add74a7b3bcd7717ac103
JavaScript
kikemarquez8/spaceInvader
/js/mainGame.js
UTF-8
1,181
2.984375
3
[]
no_license
/** * Created by Kike Marquez on 2/28/15. */ var aliens = []; var shooter = []; var barriers = []; var bullet= []; var movement = false; var direction = true; var created = false; var shooterAlive = true; var speed= {"x":10,"y":10}; var increase = {x:0,y:0}; var multishot = true; var fpm = {"counter":0,movemax:10} f...
true
8a0dbda9848d230b9b4d147a0d1368677f7dd53b
JavaScript
Steve-YJ/daily_algorithm
/자바스크립트/구명보트.js
UTF-8
446
3.5
4
[]
no_license
function solution(people, limit) { people.sort((a, b) => a - b); const number = people.length; let together = 0; let right = number - 1; for (let left = 0; left < number; left++) { while (left < right) { if (people[left] + people[right] <= limit) { together++; ...
true
e92941d73e00e4721cff28b7bad4696cbffa39b2
JavaScript
VinnyV88/GifTastic
/assets/js/app.js
UTF-8
3,169
3
3
[]
no_license
$(document).ready(function() { var gifTastic = { topics: [], initialTopics: function() { this.topics = ["Game of Thrones", "30 Rock", "Seinfeld", "Breaking Bad", "Lost", "Chuck", "Married With Children", "Curb Your Enthusiasm", "The Sopranos", "Modern Family", "The Wire", "Entourage", "Parks and Rec...
true
a0ad3ea14fa261f0a61c4670a20f5ed0a93b8044
JavaScript
ma7modsidky/pricing_component_interactive
/app/js/slider.js
UTF-8
1,440
3.3125
3
[]
no_license
const slider = document.getElementById("slider"); const price = document.getElementById("price"); const period = document.getElementById("period"); const toggle = document.getElementById("toggle"); const pageViews = document.getElementById("pageviews"); const sliderFill = document.documentElement; const priceHandler ...
true
aff30643b1bd07e665363b592e8bf7fcf66664e4
JavaScript
MackyDev-14/reactkizapp
/src/components/play/play.js
UTF-8
2,195
2.515625
3
[]
no_license
import React, {useState} from 'react' import './play.css' import {connect} from 'react-redux' import ScoreBoard from '../scoreboard/scoreboard' function Choices(props){ return( <label className = 'radio'> <input onChange = { e => props.radioOnChange(e)} type = 'radio' name = 'choice' value={props.value}/>...
true
7780f8cf13d9526e2942e4f16cbce4c086bf6cc5
JavaScript
rscharfer/rejection
/src/reducers/questions-reducer.js
UTF-8
755
2.671875
3
[ "MIT" ]
permissive
import cuid from "cuid"; const questionsReducer = (state = [], action = {}) => { switch (action.type) { case addQuestion.type: return [...state, action.payload]; default: return state; } }; // addQuestion action creator const addQuestion = ({ timestamp = Date.now(), id = cuid(), askee, ...
true
60d90f8cd10a7b38a051eb5e0487c94690314ddb
JavaScript
ZLester/Leetcode-Solutions
/42_trapping_rain_water.js
UTF-8
816
3.453125
3
[]
no_license
/** * @param {number[]} height * @return {number} */ var trap = function(height) { let water = 0; let leftIndex = 0; let leftMax = height[leftIndex]; let rightIndex = height.length - 1; let rightMax = height[rightIndex]; while (leftIndex < rightIndex) { const curLeft = height[leftInde...
true
7abec606d62675137eac72fd79a338d3b2eafd96
JavaScript
conc2304/e28
/p3/src/js/sketches/SketchConstructorCenterWave.js
UTF-8
4,423
2.96875
3
[]
no_license
import easeInto from '@/js/services/EasingService'; import NumericProperty from '@/js/services/PropertyConstructorNumeric'; import VariableProperty from '@/js/services/PropertyConstructorVariable'; class CenterWave { constructor(windowWidth, windowHeight, p5) { this.windowWidth = windowWidth; this.windowHeig...
true
3e66c990df3b699c46f680bfde1a5db3cf57a137
JavaScript
BaroqueEngine/misago
/static/play/e8905b1f/main.js
UTF-8
1,635
3.234375
3
[]
no_license
const CellType = { Floor: "floor", Wall: "wall", }; new p5((p) => { const tileWidth = 61; const tileHeight = 41; const tileSize = 10; let map; p.setup = () => { p.createCanvas(p.windowWidth, p.windowHeight).parent("canvas-container"); map = []; for (let y = 0; y < tileHeight; y++) { map[...
true
1d609610600a7e92743b127c79f424ebe8a75adb
JavaScript
jxmot/website_template-markdown
/public_html/assets/js/httpget.js
UTF-8
671
3.296875
3
[ "MIT" ]
permissive
/* Send a GET request and invoke a callback function when completed. */ function httpGet(url, callback, tickle = false) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if(this.readyState == 4 && this.status == 200) { var resp = this.responseText; // ...
true
ac4e72969eb975f18056d3039c6bba67384f0c4c
JavaScript
iammunir/data_structure_and_algorithms_with_js
/04-problemSolvingApproach/problemSolvingApproach.js
UTF-8
3,871
4.1875
4
[]
no_license
/* 1. Understanting the problem - can I restate the problem in my own words? - what are the inputs that go to the problem? - what are the outputs that should come from the solution to the problem? - can the outputs be determined from the inputs? In other words, do I have enough information to solve the problem? (you m...
true
06322210e6722baea0df747960f71bc75bd7234b
JavaScript
tfreed94/profilegenerator
/tests/Employee.test.js
UTF-8
456
2.734375
3
[ "ISC" ]
permissive
const employee = require("../lib/employee"); describe("Employee", () => { it("Obtain a name", () => { const test = new employee("troy"); expect(test.name).toEqual("troy"); }); it("Obtain an ID", () => { const test = new employee("troy", "003"); expect(test.id).toEqual("003"); }); it("Ob...
true
f2f3ac8a2b5d0a29188d280bce12b3f4a81ddddb
JavaScript
udeep1995/url_validator
/index.js
UTF-8
903
2.5625
3
[ "MIT" ]
permissive
const express = require('express'); const bp = require('body-parser'); const request = require('request'); const app = express(); const port = process.env.PORT || 3000; app.use(express.static('./public')); app.use(bp.urlencoded({ extended: true })) app.use(bp.json()); app.listen(port, function(req, res) { console....
true
52ca69cc284236ead2e747a6ca1e4b3a93d4c066
JavaScript
bhardwajashutosh9520/complete-Library-Management-system
/src/routes/Student/components/Student.js
UTF-8
2,787
2.796875
3
[ "MIT" ]
permissive
import React from 'react' import { Field, reduxForm} from 'redux-form' import RenderField from './renderfield'; const required = value => (value || typeof value === 'number' ? undefined : 'Required') const maxLength = max => value => value && value.length > max ? `Must be ${max} characters or less` : undefined const...
true
77c1bfec3977bc642c365ad21d2cdb7c7b55a759
JavaScript
marilynpi/jbsrur-landings
/js/ajax-post.js
UTF-8
1,786
2.9375
3
[ "MIT" ]
permissive
(function(){ $('.loader').hide(); $("#enviar").click(function() { var nombre = $("#nombre").val(), asunto = $("#asunto").val(), email = $("#email").val(), telefono = $("#telefono").val(), mensaje = $("#mensaje").val(); console.log() if (nombre == "") { $("#nombre").focus(...
true
3a7f2a79d51ace611433cd370b3a0e6626360f4f
JavaScript
g-q-b/shop
/project/js/details/detail.js
UTF-8
1,605
2.6875
3
[]
no_license
$(function(){ //获取url中的参数 function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); //匹配目标参数 if (r != null) return unescape(r[2]); return null; //返回参数值 } //接收URL中的参数booksId var id = getUrlParam(...
true
c9ef86001e67eabf0721c24effc0e9de54a06e38
JavaScript
SkewedAspect/rfi-webgl-client
/client/components/content/sceneman.js
UTF-8
8,362
2.765625
3
[ "MIT" ]
permissive
// --------------------------------------------------------------------------------------------------------------------- /// SceneManager - Manages BabylonJS scenes /// /// @module sceneman.js // --------------------------------------------------------------------------------------------------------------------- funct...
true
79fa7cdb991c2587ede462b2579cc5c071f089b3
JavaScript
RichardZetterberg/ES6_project
/template.js
UTF-8
652
4
4
[]
no_license
function greet(name){ console.log(`Hello ${name}`.toUpperCase()); } function createEmail(to, from, subject, message){ console.log(` To: ${to} From: ${from} Subject: ${subject} Message: ${message} `); } createEmail('John', 'Jane', 'Hello', 'Hello John'); func...
true
c4ae0c4ed4472e302a6f33e9c70963692d08ab92
JavaScript
bsa-git/vue-business-light
/app/store/modules/socials.js
UTF-8
1,159
2.5625
3
[ "MIT" ]
permissive
define([], function () { // initial state var state = { my: {}, share: {}, twitter: { url: '', tag: '', msgs: [] } }; var mutations = { RECEIVE_MY_SOCIALS: function (state, my_socials) { // Clone the object passed...
true
cf2bafde94e54f5475edf36525f67a9bd68bc7ad
JavaScript
ira77kim/p5-intro
/p5 hw 02/js/sketch.js
UTF-8
250
2.625
3
[]
no_license
function setup() { createCanvas(400, 400, WEBGL); } function draw() { background(0); rotateX(frameCount * 0.01+mouseX/10); rotateY(frameCount * 0.01+mouseY/10); fill(100+mouseY/4,150,220) box(50,mouseX,mouseY); }
true
de43ec7db4ea291bdd5496ec8759b68456cf6f6d
JavaScript
bashkoen/JavaScript-homeWork
/Otrabotka zaniatij/A.73d Хэш как счетчик/js/1.js
UTF-8
385
2.84375
3
[]
no_license
var animals=['собака', 'кошка', 'тушкан', 'собака', 'собака', 'тушкан']; var count = {}; //ключ - животное, значение - сколько раз оно встретилось for (var i=0; i<animals.length; i++) { var animal = animals[i]; if (!(animal in count)) count[animal]=0; count[animal]++; } console.log(count);
true
1e12db056f3034bed7465885124883ba83a14b7c
JavaScript
shikibum/furigana_javascript
/008.js
UTF-8
410
3.671875
4
[]
no_license
for (let cnt = 10; cnt > 0; cnt--) { console.log(cnt + '回目のハロー'); } for (let x = 1; x < 10; x++) { for (let y = 1; y < 10; y++) { console.log(x * y); } } for (let x = 1; x < 10; x++) { for (let y = 1; y < 10; y++) { console.log(x + '×' + y + '=' + x * y); } } let wdays = ['月', '火', '水', '木', ...
true
81fedd2684d18e73ce03d7c3f18fabecdfea98ae
JavaScript
Misinin/1087735-keksobooking-20
/js/avatar.js
UTF-8
1,733
2.65625
3
[]
no_license
'use strict'; (function () { var FILE_TYPES = ['gif', 'jpg', 'jpeg', 'png']; var DEFAULT_AVATAR = 'img/muffin-grey.svg'; var PhotoAtribute = { ALT: 'Фото жилья', WIDTH: '70px', HEIGHT: '70px' }; var adForm = document.querySelector('.ad-form'); var avatarChooser = adForm.querySelector('#avatar'...
true
8109de8dd497acef7ab7dd8c18b87e4554cba4e7
JavaScript
ceck95/node-helpers
/helpers/data-access.js
UTF-8
1,412
2.65625
3
[]
no_license
/* * @Author: toan.nguyen * @Date: 2016-09-08 09:39:11 * @Last Modified by: toan.nguyen * @Last Modified time: 2016-09-08 10:30:04 */ 'use strict'; const Hoek = require('hoek'); const stringer = require('./stringer'); const arrayHelpers = require('./array'); class DataAccessHelpers { /** * Gets servic...
true
c252e7bea52982800cdc24785d774214eb85db20
JavaScript
Makio64/vj_dd20
/src/js/vjing/obj/sky/Sky.js
UTF-8
2,329
2.515625
3
[]
no_license
const stage = require("mnf/core/stage") const stage3d = require("mnf/core/stage3d") const gui = require('mnf/utils/gui') class Sky extends THREE.Group { constructor(){ const geometry = new THREE.IcosahedronBufferGeometry(1,3) const material = new THREE.ShaderMaterial({ vertexShader: require('./Sky.vs'), fra...
true
29c5b13008e578cd6f2087350315fb32eba0a447
JavaScript
uuuchit/reactjs-app
/src/App.js
UTF-8
1,313
2.765625
3
[]
no_license
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Clock from './Clock'; class App extends Component { constructor(props){ super(props); this.state= {list: [0,1,2]} // this.delete= this.delete.bind(this); } combine= (user) =>{ return user.firstName ...
true
c901c6609cc5ab1d7859ac90f97df737abdc60a3
JavaScript
AshishRanjan-004/analytics-board-code
/routes/train.js
UTF-8
8,631
2.78125
3
[]
no_license
//npm libraries const fetch = require("node-fetch"); const express = require("express"); const router = express.Router(); const fs = require("fs"); const saveToDb = require('../utility_functions/saveToDb') const doc = require('../utility_functions/docPerMonth') //middlewares var bodyParser = require("body-parser"); ro...
true
c1ac2accd66f760a5b5ace89eeef81227c472e76
JavaScript
aristidjakaj/inovacion
/public/assets/ecmascript/form_view_control.js
UTF-8
397
2.75
3
[ "MIT" ]
permissive
let logIN = $("#login_button"); let signUP = $("#signup_button"); let signUP_form = $('#signupSection'); let logIN_form = $(`#loginSection`); logIN.on("click", function(){ signUP_form.fadeOut(600); setTimeout(function(){ logIN_form.fadeIn(600); }, 550); }); signUP.on("click", function(){ logIN_form.fadeOu...
true