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
5227e06b658de17db55e325836ef5b139f34a4cc
JavaScript
jagadeshwarrao/REST_API_using_NodeJs_Express_MySQL
/RESTAPI/app/models/customer.model.js
UTF-8
2,011
2.640625
3
[]
no_license
const sql = require("./db.js"); const Customer = function(customer) { this.CompanyName = customer.CompanyName; this.ContactName = customer.ContactName; this.ContactTitle = customer.ContactTitle; this.Address = customer.Address; this.City = customer.City; this.Region = customer.Region; this.PostalCode = ...
true
886df87814977e21d79c40bde01be950ed10ad59
JavaScript
ONSdigital/response-operations-ui
/response_operations_ui/assets/js/includes/alert-library.js
UTF-8
2,378
2.734375
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
(function(window) { const publicFunctions = {}; const privateFunctions = {}; privateFunctions._getErrorContainer = function() { return document.getElementById('error-alerts'); }; privateFunctions._clearAlerts = function() { privateFunctions._getErrorContainer().innerHTML = ''; ...
true
978c180ab2c8bfe97facc9a55eedb3c8da64ec46
JavaScript
starksm64/locationforcelayout
/server/thousand.js
UTF-8
2,362
2.640625
3
[]
no_license
'use strict'; var Rx = require('rx') , EventEmitter = require("events").EventEmitter ; // Returns a random integer between min included) and max (excluded) var getRandomInt = function (min, max) { return Math.floor(Math.random() * (max - min) + min); }; var events2 = Rx.Observable.range(0, 1026) .flatMap(fun...
true
aa2646802a10895debc35dd0e58ea0fcdd1ad407
JavaScript
ChaosCabbage/forever-jump
/draw.js
UTF-8
2,904
3.140625
3
[]
no_license
define(function() { var the_game_canvas = document.getElementById("game"); var the_canvas_context = the_game_canvas.getContext("2d"); the_game_canvas.setAttribute("width", 500); the_game_canvas.setAttribute("height", the_game_canvas.offsetHeight); function w() { return the_game_canvas.width; } function h() {...
true
eefb6b6560c0ec4592f27f55768135d2d4c51848
JavaScript
frankdre46/CursoIngresoJS
/6-InstruccionFor/jsIteracionesFor (1).js
UTF-8
134
2.875
3
[]
no_license
function mostrar() { for (var contador = 0; contador <10 ; contador++) { console.log("numero:"+contador); document.write(contador) } }
true
13830e205935bf14bd3f13a4a5a0a12a709e5e86
JavaScript
shamroz1122/RafhanMaize
/src/redux/reducers/authReducer.js
UTF-8
651
2.65625
3
[]
no_license
const initState = { authError: null, user:{}, isAuthenticated: false, error:false } const authReducer = (state = initState, action) => { switch(action.type){ case 'LOGIN_ERROR': return { ...state, authError: action.msg, error:!state.error } case 'LOGIN_SUCCESS': retur...
true
9cd9f23b7b94c267bdc89af56e07c3436a8a7bd5
JavaScript
katiekim17/20200210.github.io
/src/namePersistance.js
UTF-8
1,298
3.375
3
[]
no_license
const input = document.querySelector(".js-input"), greeting = document.querySelector(".js-display"), USERNAME = "Name", DISPLAY = "showing"; function saveNameHandle(event) { event.preventDefault(); const currentName = input.value; saveName(currentName); paintName(currentName); } function sav...
true
17ba5a6cc7a105771de3e53a32924601b03d4321
JavaScript
JakeP123/VR-Fitness-Scraper
/server.js
UTF-8
3,284
2.5625
3
[]
no_license
const express = require("express"); const axios = require("axios"); const cheerio = require("cheerio"); const mongoose = require("mongoose"); const logger = require("morgan"); //Require models const db = require("./models"); const PORT = process.env.PORT || 3000; //Initialize Express const app = express(); //Morga...
true
d8090bd55e74c243fef531b8139ff977e65f1344
JavaScript
Gillbert333/PaSe-Week-1
/Week#2 Assignment/js/play.js
UTF-8
233
3.78125
4
[]
no_license
const input = function (name) { if (name) { alert(`Your name is ${name}`); } else { alert(`Invalid Input`); } } let name = window.prompt("Please enter your name"); input(name)
true
85106aa21c76648c71ae00e3b0ce73c6cb3b670a
JavaScript
richard-chiuyh/HKWeather
/index.js
UTF-8
6,324
3.015625
3
[]
no_license
var d = new Date(); var weekday = ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"]; var a = 0; var b = 5; document.getElementById("left").style.display = "none"; function date(){ for (let i = 1; i <= 5; i++) { var week = `week${i}`; var date = `date${i}`; var x = d.getDay() + i + a; var y = d.getDate() + i + ...
true
51a7e92ba7ab37221aacf75a762926286cc8a60a
JavaScript
boy0516/data-structure
/choi/js_study/1~2/app.js
UTF-8
3,027
4.25
4
[]
no_license
// const a =5; // const b =2; // let c =3; // const myName = "nico"; // console.log('lslsl'); // console.log(a+b); // console.log(a/b); // console.log(a*b); // console.log(c); // console.log("hello"+ myName); //์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ๋Š” ๋‚™ํƒ€์ฒด๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ํŒŒ์ด์ฌ์—์„œ๋Š” _๋ฅผ ๊น”์•„์ฃผ๊ณ  // const๋ง๊ณ  let์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค. //์ด๊ฒŒ ์šฐ๋ฆฌ ํ”„๋กœ๊ทธ๋žจ์— ์–ด๋–ค ์ฐจ์ด๋ฅผ ์ฃผ๋Š”๊ฐ€. ์•„๋ฌด๋ฅธ ์ฐจ์ด๋ฅผ ์ฃผ๋Š”๊ฒƒ๊ฐ™์ง€ ...
true
c7ed4357e85721781942351e7e01070852fb089e
JavaScript
Bhawana3/food-delivery
/src/components/restaurant/RestaurantView.js
UTF-8
2,973
2.53125
3
[]
no_license
import React, {useEffect, useState} from 'react'; import {usePosition} from '../../hooks/position'; import RestaurantList from './RestaurantList'; import Pagination from '../common/pagination/Pagination'; import { get } from '../../apis/callApi'; import Header from '../common/header/Header'; import './styles.css'; con...
true
58fe2c2b1feb44cf808e6143eba929395f91f1eb
JavaScript
florauson/SportsBettingSite
/routes/leagues.js
UTF-8
616
2.59375
3
[]
no_license
// Tworzyฤ‡ crud dla lig? const express = require('express'); const router = express.Router(); const League = require('../models/league'); const mongoose = require('mongoose'); // Get all leagues router.get('/', async(req, res) => { const leagues = await League.find(); res.send(leagues); }); // Add new league route...
true
3684d3244de6b22208a56f26281afa2b1dc578ed
JavaScript
weswhitney/notes
/app/controllers/notes.js
UTF-8
851
2.515625
3
[]
no_license
import Ember from "ember"; export default Ember.ArrayController.extend({ actions: { newNote: function() { var body = this.get('noteCopy'); var title = this.get('noteTitle'); if ((body == null) || (title == null)) { this.flashMessage('fail', 'You cannot have an empty note.'); } el...
true
044c52093dcefeeff2db691a373049e836e76926
JavaScript
lp249839965/three-mesh-ui
/src/components/InlineImage.js
UTF-8
2,041
2.6875
3
[ "MIT" ]
permissive
/* Job: - computing its own size according to user measurements or content measurement - creating 'inlines' object with info, so that the parent component can organise it along with other inlines Knows: - Its content parameter (what to render) - Parent block */ import { Object3D } from 'three/src/core/Object3D....
true
a1d8d13b79ca8a827c782ca0572c974e21b9422d
JavaScript
flightstats/hub
/src/test/javascript/scripts/delete_objects.js
UTF-8
1,849
2.71875
3
[ "MIT" ]
permissive
let request = require('request'); /* usage: node delete_objects.js [hubURL] [namePrefix] [objectType] examples: node delete_objects.js hub.iad.dev.flightstats.io TeSt_0_ webhook node delete_objects.js hub.pdx.dev.flightstats.io foo_ channel */ let hubURL = process.argv[2] || 'hub.dls.dev.flightstats...
true
a6aa161ca1fe11c52b5e41a9fb49ce9033ee029b
JavaScript
arog678/git-grab
/src/modules/searchComponents/searchTextInput.js
UTF-8
1,249
2.546875
3
[]
no_license
import { Component } from "react"; import "../style/searchStyleComponents.css"; class SearchTextInput extends Component { constructor(props) { super(props); console.log(props); const pt = props.textInput this.state = { textInput: (pt !== null && pt !== undefined) ? pt : "" }; } changeTextInput(ev...
true
d63311384d1ef746830cc1475a9022e23d4fd188
JavaScript
blainw0w/yandexInterview
/hoisting.js
UTF-8
540
3.984375
4
[]
no_license
// console.log(n) //undefined // var n = 20 // console.log(n) //20 // console.log(n) //ERROR: referenceerror (const,let) // let n = 20 // console.log(n) //function expression (var,const) //ะผะพะถะตะผ ะฒั‹ะทั‹ะฒะฐั‚ัŒ ั„-ัŽ ั‚ะพะปัŒะบะพ ะฟะพัะปะต ะพะฑัŠัะฒะปะตะฝะธั // var square = function (n) { // return n ** 2 // } // console.log(squ...
true
7c13a12f92cfb411eba296e97374ccbc7501e515
JavaScript
felipedreis/agar-mmo
/server/domain/player.js
UTF-8
1,063
2.75
3
[]
no_license
const position = require( './position' ); module.exports = ( function() { var players = []; var idCount = 0; function register() { idCount++; var player = { ID : idCount, name : 'Jogador ' + idCount, color : Math.random() * 0xffffff...
true
916417001005819720c7b8017be858e3c7119ad3
JavaScript
alakajam-team/alakajam-irc
/lib/util.js
UTF-8
3,526
2.71875
3
[]
no_license
const moment = require('moment'); const identity = (u) => u; module.exports.identity = identity; const programHasOption = (...aliases) => { const regex = new RegExp(`^(${aliases.join('|')})$`); return !!process.argv.find(arg => regex.test(arg)); }; module.exports.programHasOption = programHasOption; let cli; ...
true
3ac39e0ff7d6c16d12d351af63b44c96382badf2
JavaScript
AdemirRamos/Age_Checker
/script.js
UTF-8
2,531
3.640625
4
[]
no_license
function verificar() { var data = new Date() var ano = data.getFullYear() //"getFullYear" coletarรก a data com os quatro digitos. var formulรกrio_ano = document.getElementById('txtano') var resultado = document.querySelector('div#resultado') if (formulรกrio_ano.value.length == 0 || formulรกrio_ano....
true
8868f354db1b23f70db3fe1c245bc25bd320d23f
JavaScript
caglarylmz/alsat
/src/main/resources/static/vue/admin/category.js
UTF-8
4,326
2.671875
3
[]
no_license
window.addEventListener('load', () => { new Vue({ el: '#app', data: { loading: false, isHasSubCat: false, parentCats: [], subCats1: [], subCats2: [], subCats3: [], subCats4: [], subCats5: [], selectedParent: 0, selectedsub1: 0, selectedsub2: 0, selectedsub3: 0, selectedsub4:...
true
675671127b5c037a528477e6b61274e28004f3c6
JavaScript
digia/arnac
/test/unit/product/line-item-calculator.js
UTF-8
2,315
2.8125
3
[ "MIT" ]
permissive
import _ from 'lodash'; import LineItemCalculator from '../../../src/product/line-item-calculator'; const makeItem = function (currency='usd') { return { amount: _.random(1, 99), quantity: _.random(1, 99), currency, }; } describe('LineItemCalculator', function () { it(`instantiates`, function (don...
true
aa0fd32e318aa174e6b86234b0ee1b17043e0aa7
JavaScript
HTMLhead/javascriptabit
/Habitually/1~50/34.js
UTF-8
75
2.75
3
[]
no_license
function match(s1, s2) { return s2.toLowerCase() === s1.toLowerCase(); }
true
97a6791da573a102413b4efa35369790e5c55bd8
JavaScript
drjparry/Thermostat-JavaScript
/src/thermostat.js
UTF-8
1,280
3.484375
3
[ "MIT" ]
permissive
function Thermostat(){ this.temperature = 20 this.powerSavingMode = true; MINTEMPERATURE = 10 MAXTEMPWITHPSMON = 25 MAXTEMPWITHPSMOFF = 32 }; Thermostat.prototype.getCurrentTemperature = function() { return this.temperature }; Thermostat.prototype.turnUp = function() { if(this.powerSavingMode === true) ...
true
987e78ea9420e603b19e9b58f2bf6f8738d180c6
JavaScript
M3tiii/Reverse-Runner
/src/js/game.js
UTF-8
2,932
2.984375
3
[ "MIT" ]
permissive
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill by Erik Mรถller // fixes from Paul Irish and Tino Zijdel (function() { var lastTime = 0; var vendors = ['ms', 'mo...
true
f5fbfbe0562b7be562a7821bdb3e339f049e2d32
JavaScript
t7/dra-web-frameworkless
/lib/get-position-from-zip.mjs
UTF-8
524
3
3
[]
no_license
// promise the position from a zip code export default function getPositionFromZip(zip) { const promise = positionByZip[zip] = positionByZip[zip] || fetch('http://api.zippopotam.us/us/' + zip).then( response => response.json() ).then( json => { const place = Object(Object(json.places)[0]); const position = ...
true
ff7b38f42b0215044c8f219e286286c1498908ff
JavaScript
vertonghen/algorithm
/tencent-3.js
UTF-8
1,473
3.84375
4
[]
no_license
const input = [1, 99, 100, 98, 97, 96, 2, 1]; const m = 4; const main = (array, number) => { let result = 0; for(let i = 0; i < m; i++){ let temp = Math.max.apply(Math, array); let index = array.indexOf(temp); result += array[index]; if(array.length > 4){ let addNumb...
true
61cecfb743a185bf203d0044cedab10dfc38b711
JavaScript
MaitreYoda/3-musketeers
/starwars/src/index.test.js
UTF-8
792
2.890625
3
[]
no_license
const starWars = require('./index'); const starWarsNames = require('./starwars-names.json'); describe('starwars-names', () => { describe('all', () => { test('should be a fulfilled array', () => { expect(starWars.all).toHaveLength(starWarsNames.length) }); test('should be an arra...
true
c9146c33d8ae09b417486e34db7ec4461082675f
JavaScript
green64/Indecision-app
/src/playground/arrow.js
UTF-8
600
4.5625
5
[]
no_license
function square (x) { return x * x; }; console.log(square(3)); // all arrow functions are anonymous // you have to assign them to a variable // const squareArrow = (x) => { // return x * x; // }; //this is identical to the function above const squareArrow = (x) => x * x; console.log(squareArrow(4)); //ve...
true
55f08435b7ea7061b0248c3ad5d11eaf0d0c7fce
JavaScript
mdselimme/pin-matcher
/js/app.js
UTF-8
1,561
3.28125
3
[]
no_license
function randomNumber() { const pin = Math.round(Math.random() * 10000); const minFourDigit = pin + ''; if (minFourDigit.length == 4) { return pin; } else { // console.log('Minumum Four Digit Need', pin); return randomNumber(); } } function generatePin() { const pin = ...
true
9f0608e26132c6272002dbe15d3086584e9cc104
JavaScript
cloudconfig/cloco-node-client
/lib/settings-error.js
UTF-8
897
2.828125
3
[ "MIT" ]
permissive
/** * encryption-error.ts * Copyright (c) 345 Systems LLP 2016, all rights reserved. */ "use strict"; /** * Class that represents an error with the settings. */ class SettingsError extends Error { /** * constructor * @param {string} message Initialize error message to this * @param {string...
true
3c2ff3217a20ed953feb91c8f71b3ee4a198d469
JavaScript
Yegorich555/web-ui-pack
/test/jest/helpers/helper.isIntoView.test.js
UTF-8
8,457
2.65625
3
[ "MIT" ]
permissive
import isIntoView from "web-ui-pack/helpers/isIntoView"; const bodySize = { width: 400, height: 600, }; const elRect = { x: 0, y: 0, top: 0, left: 0, height: 50, width: 100, bottom: 50, right: 100, }; jest.useFakeTimers(); const moveTo = (x, y) => { elRect.x = x; elRect.y = y; elRect.left ...
true
8197ea8cc7b8c90c45d3d31d7e5f0dbd47132290
JavaScript
huu4707/jest
/user.test.js
UTF-8
864
2.703125
3
[]
no_license
const { getName, ERROR, getNamePromise } = require('./services/user') test('get name', () => { expect(getName('huu')).toBe("huu") expect(getName('huu1')).toBe(ERROR.NAME_NOT_EXSIT) expect(getName('')).toBe(ERROR.NAME_NOT_EMPTY) }) test('get name promise huu equals huu', async () => { let data = await ...
true
0479bc854a60ee9e00d61b7241f7b2e7fd309850
JavaScript
28msec/28.io-nodejs
/lib/datasources.api.28.io.js
UTF-8
55,727
2.609375
3
[ "Apache-2.0" ]
permissive
/*jshint -W069 */ /** * <p>These resources can be used to manage and explore data sources. The endpoint of these resources is based on your project name. For instance, if your 28.io project is named <code>myproject</code>, your endpoint for this API will be will be: <code>http://myproject.28.io/v1/_datasources</code>....
true
ca01d2cba24255960663600e6328e262e716de16
JavaScript
jinchi2013/react-redux
/HigherOrderComponents/HigherOrderComponents.js
UTF-8
5,215
3.4375
3
[]
no_license
/** A typical HOC will follow this pattern */ function myHOC(){ return function(WrappedComponent) { // It creates a new wrappercomponent class TheHOC extends React.Component { render() { // And it renders the component it was given return <WrappedComponent {...this.props}/>; } } // Remember: ...
true
6ac99c12270e119a68c8cefcd00ce6a0854d1547
JavaScript
meesky/voting-system
/src/component/board.js
UTF-8
1,461
2.65625
3
[]
no_license
import React, { Component } from 'react' class Board extends Component { constructor(props) { super(props) this.state = { rule : 'Rule of The Game', content1 : 'Start the game voting in 5 minutes and after 5 minutes the system will display the result the score', ...
true
e012e5b800f9ed29f6e390d95faec571b179323a
JavaScript
bjornicus/orbitalboardgame
/timer-app/www/js/app.js
UTF-8
4,040
2.59375
3
[ "MIT" ]
permissive
// Init F7 Vue Plugin Framework7.use(Framework7Vue); // Init Page Components Vue.component('page-about', { template: '#page-about' }); Vue.component('page-form', { template: '#page-form' }); Vue.component('page-dynamic-routing', { template: '#page-dynamic-routing' }); Vue.component('page-not-found', { template...
true
a3c17adc4b20bb0b7bfe288c1120419dbe47e360
JavaScript
Litzenz/WebDev
/cs732-examples/lecture-03-redux/example-03-react-redux/src/redux/reducers/todos.js
UTF-8
1,776
3.640625
4
[]
no_license
import { ADD_TODO, SET_TODO_COMPLETE } from '../action-types'; /** * This function handles modifications to the "todos" property of the overall state. It handles adding new to-do items, * and toggling the "completed" status of existing ones. * * @param state the current todos array. Will be set to [] if it doesn'...
true
f4731bd5f287ee9a7d439168af97a7e2ea991335
JavaScript
dongqui/problemSolving
/programmers/all/makeBigNum.js
UTF-8
1,168
4.28125
4
[]
no_license
function solution(number, k) { const answer = []; for (let i = 0; i < number.length; i++) { while (k && answer.length && number[i] > answer[answer.length - 1]) { answer.pop(); k--; } answer.push(number[i]); } return answer.slice(0, answer.length - k).join(''); } // ํฐ...
true
6a9c60d421073ad6b917169a672ec2d02928394d
JavaScript
Final-year-project-v-1-0/Final-year-project
/client/src/components/AddQuestions/Display/Intro.js
UTF-8
1,127
2.78125
3
[]
no_license
import React, {useEffect, useState} from 'react'; import axios from 'axios'; const Intro = ({updateSub}) => { const [subject, setSubject] = useState(null); const [loading, setLoading] = useState(true); const [value, setValue] = useState(null); async function callback() { const response = await...
true
18532ad53a9c762cf4b7d64ff7819deee94e314f
JavaScript
DanyVns/C61-ProjetSynthese
/dev/controllers/userController.js
UTF-8
899
2.53125
3
[]
no_license
var express = require("express"); var User = require('../models/user'); var passport = require("passport"); //Afficher le formulaire de signup exports.user_create_get = (req, res, next) => { res.render('signup', { title: 'Audience' }); }; // Gestion du formulaire d'enregistrement exports.user_create_post = (req, r...
true
2a2637da77f40f811fe808cc9588149021ebec34
JavaScript
anstosa/mailgun-services
/index.js
UTF-8
3,934
2.578125
3
[]
no_license
const http = require('http'); // global variables let mailgun; const domains = {}; initMailgun(process.env.DOMAIN); getDomains().then(startServer); // we need to be able to re-init the Mailgun API for different domains function initMailgun(domain) { mailgun = require('mailgun-js')({ apiKey: process.env.A...
true
c43efb6887e63a15f3672ee74c53344d5a62553a
JavaScript
tommiollila/ohsiha
/staticfiles/first_app/javaScript.js
UTF-8
760
2.734375
3
[ "MIT" ]
permissive
function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zoom: 17, center: {lat: 61.49911, lng: 23.78712} }); $.get({ url: 'getcoordinates', success: function(data){ var keys = Object.keys(data); for (var i = 0; i < keys.length; i++) { ...
true
2f8b9bfdfda719bab8a8e6cd92a104ff0e7a8621
JavaScript
endang-ismaya/javascript_guide
/arrays/array-concat.js
UTF-8
238
2.65625
3
[]
no_license
function panggilConcat() { var kota = ['jakarta', 'medan', 'bekasi', 'malang']; var kabupaten = ['lampung timur', 'jombang', 'kediri']; var kotaKabupaten = kota.concat(kabupaten); return kotaKabupaten; } console.log(panggilConcat());
true
d15c42d1b31a8ef29a513615db007f89f3fa81b6
JavaScript
VanGog06/JavaScriptAdvanced
/07. ObjectCompositionLab/07. HTMLHighlighter.js
UTF-8
680
2.9375
3
[]
no_license
function highlight(selector) { let start = $(selector); let maxDepth = 0; let maxDepthElement = 1; function depthLookup(depth, element) { if (depth > maxDepth) { maxDepth = depth; maxDepthElement = element; } let children = $(element).children(); ...
true
4cdb9ae46028646fe2fe5bb06e2d796ff21b168f
JavaScript
pludlum/app_academy_projects
/a06-demo/frontend/components/posts/post_form.jsx
UTF-8
1,012
2.5625
3
[]
no_license
import React from 'react'; class PostForm extends React.Component { constructor(props) { super(props); this.state = this.props.post; this.handleSubmit = this.handleSubmit.bind(this); } componentDidMount() { console.log(this.props.match.params); if (this.props.formType === "edit") { th...
true
12f394f47d814ed31e4f3c3b74a1305c116a705f
JavaScript
Nickolay-Dudaryk/basic-js
/src/carbon-dating.js
UTF-8
441
3.109375
3
[ "MIT" ]
permissive
const MODERN_ACTIVITY = 15; const HALF_LIFE_PERIOD = 5730; module.exports = function dateSample(given) { if (typeof given !== "string" || given == "" || given > 15 || given < 1) { return false; } let regExp = /^[0-9]|\.$/; if (regExp.test(given) == false) { return false; } let givenNum = parseFloa...
true
510b68622e2cdb5b707a828218538b13101fc5f0
JavaScript
jruizsilva/clima
/js/weather.js
UTF-8
2,268
2.9375
3
[]
no_license
const d = document; import { mostrarAlerta } from "./UI/alert.js"; const $ciudad = d.getElementById("ciudad"); const $formulario = d.getElementById("formulario"); const $result = d.getElementById("result"); const regionNamesInSpanish = new Intl.DisplayNames(["es"], { type: "region" }); const obtenerClima = (ciudad)...
true
e915cff720563525d2bd8a02f1b3f9a99265dd2c
JavaScript
aballah-chamakh/the_exam
/src/Frontend/mbkexam/src/Reducers/Reducer.js
UTF-8
1,006
2.65625
3
[]
no_license
const initialState = { student_authenticated: false, admin_authenticated: false, } const Reducer = (state = initialState, action) => { let newState = Object.assign({}, state); switch (action.type) { // Para Authentication related actions case 'student_login': newState.student_authenticated = tru...
true
0a4f7300b5afddde1c2e5a80695c362b3876bcdb
JavaScript
tzhuuu/miniscape-old
/client/js/stores/projectileStore.js
UTF-8
310
2.796875
3
[ "MIT" ]
permissive
class ProjectileStore{ constructor(){ this.projectiles = {}; } addProjectile(name, projectile){ this.projectiles[name] = projectile; } getProjectile(name) { return this.projectiles[name]; } } var instance = new ProjectileStore(); Object.freeze(instance); module.exports = instance;
true
09ac4100d250a731eacee55cb8035f8b240d1e77
JavaScript
SkylabCoders/skylab-bootcamp-202104-bcn
/hosni-marco/Precurso/BINGO/bingo.js
UTF-8
6,231
3.59375
4
[]
no_license
let userName; let tableArr = []; //CARTULINA BINGO. // -Factorial plantilla bingo. num random = 1-15. // -Push tableArr. (Cartulina bingo) // -Minimo 2 digitos. // -VOLVER A JUGAR let repeatNumberTable = []; let table = { tableNum: 0, start() { const randomTableFactory = (a, b, c, d, e) =...
true
9002859964e70546e1737d05e485984332bbeec8
JavaScript
macbury/battleground
/app/javascript/packs/lang/ast/context.js
UTF-8
2,412
2.859375
3
[ "MIT" ]
permissive
import { Type } from './values' class Symbol { constructor(name, type, id, kind = 'variable') { this.name = name this.type = type this.id = id this.kind = kind } isMethod() { return this.kind == 'method' } isLabel() { return this.kind == 'label' } isLoop() { return this.nam...
true
b5a1b0a909bd24bb6b858d27351ba542cea77121
JavaScript
ilaksono/file-server
/client.js
UTF-8
763
2.890625
3
[]
no_license
const net = require('net'); const readline = require('readline'); const fs = require('fs'); const conn = net.createConnection({ host: 'localhost', port: 8000 }); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); conn.setEncoding('utf8'); conn.on('connect', () => { cons...
true
32d3f268ac7b6cfd8190493f0a94b3ffabe52f3c
JavaScript
harsha499/cashbookapp
/src/App.js
UTF-8
4,773
2.609375
3
[]
no_license
import React, { useState, useEffect,useCallback } from 'react'; import Moment from 'react-moment'; import './App.css'; function App() { let [Localstate,updaterLocalstate]=useState({ val:0, message:"" }) let [firststate,updaterstate]=useState({ cashbook:[ ], totalvalue:0, toggleIn:false, tog...
true
f9008c9658db42ca221c2057ace4ff6708fb3b50
JavaScript
LauraB22/ECMAScript-6
/src/es7/index.js
UTF-8
320
4.375
4
[]
no_license
let numbers = [1, 2, 3, 7, 8]; if(numbers.includes(9)){ console.log(`Si se encuentra el valor 7`); }else{ console.log(`No se encuentra`); } //Elevar a la potencia let base = 4; let exponent = 3; let result = base ** exponent; //Se usa el doble asterisco para poder elevarlo a la potencia console.log(result);
true
13847e5b1006e4273f1937a03d9e69deeeccd7f4
JavaScript
mfrancis95/base64ify
/base64ify.js
UTF-8
1,206
2.5625
3
[]
no_license
var mime = require("mime-types"); var fs = require("fs"); var srcRegex = /src=['"].*(?='|")/g; var urlRegex = /url\(.*(?=\))/g; function base64ifyHTML(html, blacklist) { blacklist = (blacklist || []).map(mime.lookup); return html.replace(srcRegex, match => { try { var file = match.slice(5)...
true
a424ef5cc4ab221b0f1f8370bb7e092fdfc678b8
JavaScript
cpabbot/ParagonData
/js/action_button.js
UTF-8
1,913
2.953125
3
[]
no_license
/****************************************************** JS for action button --- used on all main pages to input data --- Code from Captain Anonymous https://codepen.io/anon/pen/wgPQZG ******************************************************/ $(document).ready(function() { $("#new-donation").click(functio...
true
4afd765b6b6a30b807a01ae5542721a7c584aad7
JavaScript
Aarass/CS-2D
/players.js
UTF-8
210
2.8125
3
[]
no_license
class Players { constructor() { this.arr = []; } add(obj) { this.arr.push(obj); } update(obs) { for(let i = 0; i < this.arr.length; i++) this.arr[i].update(this, obs); } }
true
e00856dbf8a212f5ade1a56e381e3225ca91402c
JavaScript
MakeMeSenpai/audio_visualizer
/radialRayRenderer.js
UTF-8
1,242
3.578125
4
[ "MIT" ]
permissive
// ************************************************************* // Draw radial // This draws lines out from the center circle function render(frequencyArray, ctx, centerX, centerY, radius) { // Clear the canvas ctx.beginPath() ctx.fillStyle = 'rgba(0, 0, 0, 0.2)' ctx.fillRect(0, 0, 500, 500) ctx.fill() // Dra...
true
f3f18d31d48cf798e279dbb7321ea2d1bf0a4013
JavaScript
sonnythedev/Day_32
/node_js_server_fs.js
UTF-8
1,149
3.078125
3
[]
no_license
/** Exercise: You will have a about.html and homepage.html files in your directory. These can be simple divs html. When you hit the url with pagename=about it will pull about.html through fs and output to res. And if pagename=home then it will pull from homepage.html(and send to res) */ const http=require('http')...
true
ab0d34c121fc6aacdf9984a632dfc4782cfc3799
JavaScript
waellomari/FBW5-lessons
/9-react/11-components-state/app.js
UTF-8
1,881
2.625
3
[]
no_license
import React from 'react' import ReactDOM from 'react-dom' import Oclock from './components/Oclock' //import getPosition from './services/getPosition' import ShowPosition from './components/ShowPosition' // functional component // const App = () => { // let lat = '' // window.navigator.geolocation.getCurrentPosi...
true
aae29b4cf25ff00d56356b1c828d96796fd4d5d2
JavaScript
dajuanenonli/Ralph
/animateX/animate-book/All_in_one/_internals/components/pile/pile.js
UTF-8
9,259
2.703125
3
[]
no_license
//============================== // Notes/Bugs //============================== /* + 2 Behaviors */ //============================== // External Helpers //============================== /* * debouncedresize: special jQuery event that happens once after a window resize * * latest version and complete README availa...
true
9150d3fb64751a9deeeff968f3242d60ef364b7b
JavaScript
Ru8icks/pong
/public/controllers/controller.js
UTF-8
2,378
2.78125
3
[]
no_license
var myApp = angular.module('myApp', []); myApp.controller('AppCtrl', ['$scope', '$http', function($scope, $http) { console.log("Hello World from controller"); var animate = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(...
true
e076fc6e1730096097fa1bc153831d0bb60ddc7b
JavaScript
divyanshi-johri/Tasky-Cards
/index.js
UTF-8
3,572
3.578125
4
[]
no_license
const taskContainer = document.querySelector(".task__container"); var globalStore = []; //array of object console.log(taskContainer); const generateNewCard = (taskData) => ` <div class="col-sm-12 col-md-6 col-lg-4" > <div class="card"> <div class="card-header d-flex justify-content-end gap-2"> ...
true
54c4e8d776aa4ef11e552229c2fc5191c9c76d9c
JavaScript
RogerioDosSantos/RogerioDosSantos.github.io
/ChromeExtension/Evergit/Evernote.js
UTF-8
1,563
2.703125
3
[ "MIT" ]
permissive
var background = chrome.extension.getBackgroundPage(); function TestEvernote(button_id) { console.log("V03 - This is a message from the button " + button_id); var hostName = "http://sandbox.evernote.com"; var options, oauth; options = { consumerKey: "rogerio-9518", consumerSecret: "70...
true
d6eb99dbf9a1d4c857a93eb9809396f0225aa61e
JavaScript
Dan8816/IntroJSFunds
/jsobjects.js
UTF-8
1,450
3.625
4
[]
no_license
//challenge 1 function PrintStudents(arr) { var str = "" for (var i = 0; i<arr.length; i++) { str += ("Name: " + arr[i].name + ", Cohort: " + arr[i].cohort + "\n"); } return (str) } let students = [ {name: 'Remy', cohort: 'Jan'}, {name: 'Genevieve', cohort: 'March'}, {name: 'Chu...
true
c359937a459e64cef3db894e4e3c7f30eaf5037e
JavaScript
BrianNBarton/codeup-web-exercises
/js/iterating.js
UTF-8
2,079
4.875
5
[ "MIT" ]
permissive
(function() {} "use strict"; /** * TODO: * Create an array of 4 people's names and store it in a variable called * 'names'. */ var names = ["Donnie", "Hannah", "Tracy", "Tristan"] /** * TODO: * Create a log statement that will log the number of elements in the names * array. */ consol...
true
1bfbb5c17d6699acad1d908b910fb47c5097a44d
JavaScript
aaronwebster88/jsLibrary
/1-JavaScript-Fundamentals/01-grammarAndType/01-comments.js
UTF-8
236
2.984375
3
[]
no_license
// console.log("yay"); // console.log("Hey this worked"); console.log("Aaron Webster"); console.log("How to make bread below (Multi-Line Comment)"); /* Comments - another method of making them appear, yo! Still more comment, multi line */
true
be8e5d1c62b76f3eef55ffbd14ec9d6ead2e23c5
JavaScript
masawik/sibdev-weblayout
/js/headerMinifyController.js
UTF-8
845
2.671875
3
[]
no_license
(() => { const MINIFIED_CLASS = 'header_minified' const $main = document.querySelector('.main-js') const $header = document.querySelector('.header-js') const $headerTitle = $header.querySelector('.header__title-js') const headerTitleBottom = $headerTitle.getBoundingClientRect().bottom const headerHeight = ...
true
08107e4fba14803263134978bab63adffa01980a
JavaScript
SriDashakaran/game-of-spaceship-
/sketch.js
UTF-8
2,188
2.875
3
[]
no_license
const Engine = Matter.Engine; const World= Matter.World; const Bodies = Matter.Bodies; var engine, world; var spaceship1; var bg; var bombGroup; var select_enemy; var gameState = "start" function preload(){ backgroundImg = loadImage("bg.jpeg") } function setup(){ var canvas = createCanvas(153...
true
4a98526e1c6a6f71937b36ad85f27022289e6b4b
JavaScript
kuzbida/leetcode
/string/almostPalindromes.js
UTF-8
1,269
3.796875
4
[]
no_license
const regex = new RegExp(/[A-Za-z0-9]/); function f1(s, left, right, removedLetters) { let result = true; while (left <= right) { let leftCh = s[left].toLowerCase(); let rightCh = s[right].toLowerCase(); if (!leftCh.match(regex)) { while (!leftCh.match(regex) && left < righ...
true
314f45e7a3c684525389076129a08dc3e250774c
JavaScript
YakambramSai/AjayNodeTrainingdemos
/HttpModuleDemo/server2.js
UTF-8
418
2.53125
3
[]
no_license
var http = require('http'); var fileSystem = require('fs'); http.createServer(function(request, response) { response.writeHead(200, { 'Content-Type': 'text/html', }); var readStream = fileSystem.createReadStream('./index.html'); readStream.on("data",function(data){ response.write(data); ...
true
4f2857c4fe5b8f1d4e0945697c67ad1623f950ec
JavaScript
rckim77/askup
/app/assets/javascripts/questions.js
UTF-8
3,613
2.625
3
[ "MIT" ]
permissive
function validateEditQuestionInput() { // disables/enables submit button depending on if there is text in the question and answer boxes var isValid = $('#question_text').val().trim() && $('#question_answers_attributes_0_text').val().trim(); $('.submit-question').attr('disabled', !isValid); } function initQuestio...
true
f302fa58682a8de69c38fb0fb03174360690e39b
JavaScript
wasabiyip/oms
/node/Handler.js
UTF-8
4,818
2.828125
3
[]
no_license
//Esta parte maneja operaciones con las graficas que se encuentran conectadas var server_precios, server_op; var clients = []; var Graficas = []; //Creamos una grafica y la aรฑadimos a Graficas[]. exports.createGrafica = function(symbol, socket, settings){ Graficas.push(new Grafica(symbol, socket, settings)); ...
true
e4909f8bb21e727823d58e724b185a861499730d
JavaScript
vaddulagopal/problem-in-assignment-1-with-date-formate
/app.js
UTF-8
8,554
2.6875
3
[]
no_license
const express = require("express"); const { open } = require("sqlite"); const sqlite3 = require("sqlite3"); const path = require("path"); const date = require("date-fns"); const isMatch = require("date-fns/isMatch"); const format = require("date-fns/format"); const databasePath = path.join(__dirname, "todoApplication....
true
79d9b812e9087649771a287221614f2219a3a7a5
JavaScript
abuschhorn/cssi-react-notes-tutorial
/src/App.js
UTF-8
1,022
2.8125
3
[]
no_license
import React, {useState} from 'react'; import './App.css'; import { NoteForm } from "./components/NoteForm" import {Note} from "./components/Note" import {ClearAll} from "./components/ClearAll" function App() { const [notes, setNotes] = useState([ { title: "Make dinner", subtitle: "4 servings", ...
true
d676ccd7e282dd93974f7c984a37cfa014f42c6d
JavaScript
iamgabrielsiqueira/AppContatos
/App.js
UTF-8
6,046
2.75
3
[]
no_license
/** * INSTALAร‡รƒO AXIOS * $ npm install axios --save */ import React from 'react'; import {StyleSheet, Text, View, ActivityIndicator, TextInput, Button, TouchableOpacity} from 'react-native'; import axios from 'axios'; import MonitoringTable from './src/components/MonitoringTable'; export default class App extend...
true
522133e8fb26e0904fbbc9c56bc09541df26c920
JavaScript
yasminamayot/tavares_y_portfolio
/public/js/main.js
UTF-8
3,707
2.984375
3
[]
no_license
const myVM = (() => { console.log('js is connected'); //display portfolio item inside lightbox let viewBut = document.querySelectorAll('.viewItem'), lightbox = document.querySelector('.LightBox'); function getPortfolioData(portfolioData) { let targetDiv = document.querySelector('.lig...
true
e0bc88417e69f506521d78fdc8a9c9adc978031c
JavaScript
BrandedNomad/SimpleMERN
/frontend/src/api/api.js
UTF-8
4,446
2.8125
3
[ "MIT" ]
permissive
//Creating a new account export const createAccount = async (name,email,password,avatarImage,callback)=>{ const url = process.env.REACT_APP_API_URL + '/user/register'; const method = 'post'; const mode ='no-cors' const headers = { 'content-type':'application/json' } const body = JSON.s...
true
7d626bc630a91b55b2395af5101ac1a28526a8fd
JavaScript
designergrafico/lotexbet
/scripts.js
UTF-8
3,981
2.8125
3
[]
no_license
/************************ BANNER-MAIN ************************/ let time = 3800 let currentImageIndex = 0 let imagens = document.querySelectorAll(".banner-main img") let max = imagens.length; function nextImage(){ imagens[currentImageIndex].classList.remove("selected") currentImageIndex++ ...
true
42ae0d03fbe09d54eaf7a69f8c603a5d45014c82
JavaScript
luxiao0314/react_native
/burqa/store/AnimeNewsStore.js
UTF-8
1,024
2.53125
3
[]
no_license
/** * Created by lucio on 10/06/2017. */ import {action, computed, observable} from "../../../node_modules/mobx/lib/mobx"; /** * @Description ๅŠจๆผซ่ต„่ฎฏstore * @Author lucio * @Email lucio0314@163.com * @Date 10/06/2017 1:42 PM * @Version 1:42 PM */ export default class AnimeNewsStore { @observable errorMsg = ''...
true
55aaa6b57f3bd2cf4e07959d72f6904be6730e72
JavaScript
RCHS-Programming/pixel-art-website-RAS06
/script.js
UTF-8
609
3.765625
4
[]
no_license
var penColor = 'black'; var cleared = 'white'; var pixels = []; function setPixelColor(pixel) { pixel.style.backgroundColor = penColor; pixels.push(pixel); //Add to the list of pixels } function setPenColor (pen) { penColor = pen; } function clearAll( ) { //Loop through all list items h...
true
29aadd392db5c9929a19ef494de0e061e506ff33
JavaScript
JeffLeFoll/angular15-generator
/lib/utils/pathUtil_spec.js
UTF-8
1,140
2.671875
3
[ "MIT" ]
permissive
'use strict'; let expect = require('chai').expect; let PathUtil = require('./pathUtil'); describe('PathUtil functionalities', function () { it('should return the string if there is no path element', function () { let name = PathUtil.stripPathIfPResent('word'); expect(name).to.equal('word'); }); it(...
true
fe3d1e4123fe67156775f1e2a35a84d2f3627a3d
JavaScript
aiyam/mi.com
/src/js/index2.js
UTF-8
1,144
2.5625
3
[ "MIT" ]
permissive
$(function() { console.log(1) let oli = document.querySelectorAll('.home-app1 .home-tab>li'); for (let i = 0; i < oli.length; i++) { oli[i].addEventListener('mouseenter', function() { console.log(i) $(this).addClass('active').siblings().removeClass('active'); $('....
true
1047e1d5e0b3383aa481b895e6c8d69fee0c4c6d
JavaScript
kroskwls/js-study
/algorithm/baekjoon/์•Œ๊ณ ๋ฆฌ์ฆ˜ ๊ธฐ์ดˆ 1/์ž๋ฃŒ๊ตฌ์กฐ/[1874] ์Šคํƒ ์ˆ˜์—ด.js
UTF-8
575
3.21875
3
[]
no_license
var inputs = require('fs').readFileSync('/dev/stdin').toString().split('\n').map(n => Number(n)); var range = inputs.shift(); var obj = []; var stack = { push: (n) => (outputs += '+\n', obj.push(n)), pop: () => (outputs += '-\n', obj.pop()), top: () => obj[obj.length -1], size: () => obj.length }; var...
true
1379674057c454d95ee6a631796eef77092dafdc
JavaScript
terentevrv/terentevrvitoggrid
/js/js.js
UTF-8
472
2.921875
3
[]
no_license
let hamb = document.querySelector(".hamb"); let navMenu = document.querySelector(".nav__menu"); hamb.addEventListener("click", mobileMenu); function mobileMenu() { hamb.classList.toggle("active"); navMenu.classList.toggle("active"); } const navLink = document.querySelectorAll(".nav__link"); navLink.forE...
true
499d635bfa2208fc1f0db5d2e7cca2dbca27452f
JavaScript
P-Saw/Loopstudios-landing-page
/js.js
UTF-8
334
2.890625
3
[]
no_license
// MENU HAMBURGER TOGGLE// const hamburgerBtn = document.querySelector('.menu-hamburger'); const navbar = document.querySelector('.nav'); hamburgerBtn.addEventListener('click', () =>{ hamburgerBtn.classList.toggle('open'); navbar.classList.toggle('nav-open') document.body.classList.toggle('nav...
true
df9233485d45529820d6a765706f302feac5fddd
JavaScript
annazetterstrom/JavaScript-1-Nacakdemin-2018
/Lektion-4/exempel-3.js
UTF-8
1,109
4.0625
4
[]
no_license
// Arbeta med primitiva typer (datatyper) // 1. String let firstName = "Anna"; let lastName = "Zetterstrรถm"; console.log(firstName, lastName); console.log("Itยดs very nice"); console.log(`I Love You JS!`); // ES6 Template Strings, OBS! Backticks (รถverkurs) // 2. number let age = 23; const PI = 3.14159; let price = 5.5...
true
4a4a284f97c41098b8240a3de29281fb4b956617
JavaScript
tfd/password-generator
/test/addProperty.test.js
UTF-8
1,155
2.78125
3
[ "MIT" ]
permissive
/* jshint -W030 */ var addProperty = require('../src/chai/addProperty'); describe('addProperty function', function () { var obj; beforeEach(function () { obj = {}; }); it('should exist', function () { expect(addProperty).to.be.a('function'); }); it('should add a property to the object', functio...
true
9f8e2f58123eb8211c9424a6a3fdf523df170cb4
JavaScript
JamesTheTerry/databases
/server/controllers/index.js
UTF-8
2,238
2.828125
3
[]
no_license
var models = require('../models'); var defaultCorsHeaders = { 'access-control-allow-origin': '*', 'access-control-allow-methods': 'GET, POST, PUT, DELETE, OPTIONS', 'access-control-allow-headers': 'content-type, accept', 'access-control-max-age': 10, // Seconds. 'content-type': 'application/JSON' }; var fak...
true
1e74f3dfff288a3a5c0462a78c4949063633b810
JavaScript
shengbangshenghua/VueXinWen
/js/script.js
UTF-8
4,011
3.046875
3
[]
no_license
var vm = new Vue({ el: "#app", data: { //็ผ–่พ‘็š„ๅ“ชไธชไธ‹ๆ ‡ index: 0, //้ป˜่ฎคๅ˜้‡ title: '', content: '', sort: '', name: '', time: 0, update: 0, state: true, //ๆ–ฐ้—ปๅˆ—่กจ news: [ { "title": "ๆ–ฐ้—ปๆ ‡้ข˜", ...
true
e739de7bab1336fea34a2d70bde78b8955442da4
JavaScript
jehy/bin-from-pan
/src/index.js
UTF-8
426
2.59375
3
[]
no_license
function binFromPan(pan) { const panStr = pan.toString(); if (panStr.length < 8) { throw new Error('pan too short!'); } let first = panStr.substr(0, 4); first = parseInt(first, 10); if (isNaN(first)) { throw new Error('Pan is not numeric!'); } if (first >= 2200 && first <= 2204) { return pan...
true
c69c745c16ee9f0d9eefe8477bbbaa4fefe58cbf
JavaScript
kasperstyre/pusher-example
/server/index.js
UTF-8
4,637
2.59375
3
[]
no_license
/////////////////////////////////////////////////////////////////////////////// // Utility initialization // /////////////////////////////////////////////////////////////////////////////// const express = require('express'); const bodyParser = require('body-parser'); c...
true
54927c77bd25384465b26af8a0bd2a506dc57fd9
JavaScript
samthomson/react-todo
/playground/firebase/index.js
UTF-8
1,018
2.5625
3
[]
no_license
import firebase from 'firebase' // Initialize Firebase var config = { apiKey: "AIzaSyBAIgUtbMqB85nG9uYy1rfvWzvOUNIiDAU", authDomain: "todo-app-e4698.firebaseapp.com", databaseURL: "https://todo-app-e4698.firebaseio.com", projectId: "todo-app-e4698", storageBucket: "todo-app-e4698.appspot.com", ...
true
50cf35bd54dcb445f84d65fe656dab9c0e9bdbca
JavaScript
stefanopaulo/fsm-semana-02
/arrowFunctions.js
UTF-8
230
3.5625
4
[]
no_license
const falar = palavra => console.log(palavra) falar('opa') const somar = (num1, num2) => num1 + num2 console.log(somar(1, 2)) const animal = (nome, grunido) => nome+' '+grunido() console.log(animal('cachorro', () => 'latir'))
true
45f604b43f1226bd17cf887e7a22c0b1b2768233
JavaScript
alineak/treinamentogama
/dashcard/front/js/consulta.js
UTF-8
1,828
3.125
3
[]
no_license
function validaLogin() { let usuario = localStorage.getItem("userLogged") if (!usuario) { window.location = "index.html" } let objUser = JSON.parse(usuario) document.getElementById("dadosUser").innerHTML = 'Usuรกrio: <b>' + objUser.nome; consultaAgente() } function consul...
true
b9b5f193ff96bb33582de79a7e4e620b357f2343
JavaScript
olmits/step-project-3
/js/cards-page-init.js
UTF-8
1,893
2.640625
3
[]
no_license
import {ActionWithCards, Auth} from "./action-with-cards.js"; import {LocalStorageHelper} from "./local-storage-helper.js"; import {Visit} from './visit.js'; import {Draggable} from "./drag-drop-object.js"; import {sheduleItems, mainContainer, emptyState} from "./shedule-component.js"; export class VisitCards { re...
true
1e69dc4fe7bf66bb1bfb38f9cb48c1c1dbe2149b
JavaScript
maconidolma/calculator
/components/HistoryList.js
UTF-8
3,298
2.609375
3
[]
no_license
import React, {Component} from 'react' import HistoryEntry from './HistoryEntry' export default class HistoryList extends Component { constructor(props) { super(props); this.state = { historyList: this.props.historyList, hasError: false } } render() { ...
true
f4fbbb42d34b490050586f69faa58a57bd1e5f6b
JavaScript
sirinebenmohamed/statecheckpoint
/src/Profile.js
UTF-8
979
2.625
3
[]
no_license
import React, { Component } from 'react' export default class Profile extends Component { constructor(props){ super(props) this.state={ fullName:'Syrine Ben Mohamed' , imgSrc:'https://img.icons8.com/pastel-glyph/2x/person-male.png', profession:'Full stuck JS Student', ...
true