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
616722fd9072cc05cb52c3f6a535f1420dc060c6
JavaScript
KorlaMarch/hw-blog
/imports/views/BlogCreate.jsx
UTF-8
1,184
2.515625
3
[]
no_license
import { Meteor } from "meteor/meteor"; import React from 'react'; export default class BlogCreate extends React.Component { constructor(props){ super(props); this.state = { head : "", content : "" } this.handleHeadChange = this.handleHeadChange.bind(this); this.handleContentChange =...
true
17d1d6e60cdf5c2dce75b3172c7a240123224f51
JavaScript
capitalbr/aA-homework
/W8D4/vanilla_dom_manipulation/script.js
UTF-8
1,743
2.84375
3
[]
no_license
document.addEventListener("DOMContentLoaded", () => { // toggling restaurants const toggleLi = (e) => { const li = e.target; if (li.className === "visited") { li.className = ""; } else { li.className = "visited"; } }; const fav = (e) => { e.preventDefault(); const favInpu...
true
12615eb8df723f2eb1d3b72473d135a10b015e63
JavaScript
wejrowski/bizzark-jekyll
/source/javascripts/application.js
UTF-8
3,683
2.640625
3
[]
no_license
// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults var textTimer; var loaderText = "========"; var loaderTextPosition = 0; var loaderTextTotal = 28; var loadingClass = "attachment-loading"; var direction = 1; var infoID ...
true
92486fd491ea5f75c1ad2cbd1f564942f221b541
JavaScript
sebmaz93/editable-mui-chips
/src/App.jsx
UTF-8
1,267
2.625
3
[]
no_license
import React, { Component } from 'react'; import ChipsContainer from './Chips'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import FormControl from '@material-ui/core/FormControl'; class App extends Component { state = { value: '#Jax #Tom #Zeus', }; h...
true
d396aaefce2e42f7274a7d886d360d6349c2795b
JavaScript
DidyMas/docDigital
/platform/js/main.js
UTF-8
2,335
2.671875
3
[ "MIT" ]
permissive
window.addEventListener("load", function () { // icono para mostrar contraseña let showPassword = document.querySelector('.show-password'); showPassword.addEventListener('click', () => { // elementos input de tipo clave let iconPass = document.querySelector('.password'); let iconPass1 = document.que...
true
c91b681f24116420890e0828a511cc4e98b59680
JavaScript
freebz/Functional-JavaScript-Programming
/ch04/code4-23.js
UTF-8
494
3.625
4
[]
no_license
// 코드 4-23 var add = _.pipeline(function(a, b) { return a + b; }); var sub = _.pipeline(function(a, b) { return a - b; }); function f1(a, b) { return _.mr(a - 5, b / 2); } add(10, 20); // 일반 함수와 동일하게 사용됨 // 30 sub(10, 20); // 일반 함수와 동일하게 사용됨 // -10 add(f1(20, 10)); // add에게 넘겨지는 인자는 하나지만 2개처럼 동작 // 20 sub(...
true
5148782f9af550f26ee78a731ebf4c626e6f23d7
JavaScript
abhijeetranawat/html
/Final project/finaljs.js
UTF-8
2,304
3.140625
3
[]
no_license
function validatephone() { var phone=document.getElementById("phone").value; var plast=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/; if(plast.test(phone)){ document.getElementById("phonevali").style.color="lightgreen"; document.getElementById("phonevali").innerHTML="<strong>Valid</st...
true
666ebc5b70d5c055badbfccd1ce1ec00283e8c2f
JavaScript
Eydrel/MendezEydrel
/ProgramacionWEB/JavaScript/HolaMundo/02-variables.js
UTF-8
416
3.28125
3
[]
no_license
'use strict' //SE TRABAJARA CON VARIABLES //Var se define una variable local o global, sin importar el bloque. var pais = "Mexico"; var continente = "america"; var antiguedad = 2018; var pais_y_continente = pais +''+continente; //solo se limita donde se declara let prueba =" Hola"; pais ="España"; contin...
true
87a1733861ddcb3e8fddf60ab7e2d2b8691311a4
JavaScript
superknife0512/vue-forkify
/src/mixinFilter.js
UTF-8
578
2.578125
3
[]
no_license
export const mixinFilter = { filters:{ formatTitle(value){ if(value.length > 17){ const strArr = value.split(' '); let count = 0; let newTitle = []; strArr.forEach(word => { if(word.length + count < 17){ ...
true
479b110e6522bb422a9e8aa386e6599488bbecaf
JavaScript
MHargett23/Note-Taker
/server.js
UTF-8
1,920
2.515625
3
[]
no_license
const express = require('express'); const path = require('path'); const fs = require('fs'); const bodyParser = require('body-parser'); const app = express(); const PORT = process.env.PORT || 3000; app.use(express.static('public')); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.us...
true
0e48731fa9b258308c01813aa68624d8949d52c2
JavaScript
raziel214/FundamentosJSCurso
/clase6.js
UTF-8
330
2.75
3
[ "MIT" ]
permissive
var john={ nombre:'John Fredy', apellido:'Quimbaya Orozco', edad:27 } var ibeth={ nombre:'ibeth leonor', apellido:'Pacheco de la Hostia', edad:27 } function imprimirNombreEnMayusculas({nombre}) { console.log(nombre.toUpperCase()) } imprimirNombreEnMayusculas(john) imprimirNombreEnMayusculas(ibeth) impr...
true
f549006d0e61f88ffe96704662506e86a8f4527a
JavaScript
SunPrime/Learn_JS
/2/scripts/loops.js
UTF-8
3,553
3.171875
3
[]
no_license
for (let i = 1; i <= 5; i++) { console.log(i); } let result = ""; for (let i = 1; i <= 5; i++) { result += i + " "; } console.log(result); result = ""; for (let j = 5; j > 0; j--) { console.log(j); result += j + " "; } console.log(result); let nums = [2, -3, 9, 0, -1, 7, 5, 0, -6]; result = ""; for (...
true
9a7f7b3a74e92460eafc1f437db622b74f93743f
JavaScript
ddalairac/utn-lab-3
/parciales/parcial1_mat/public/js/services/validations.js
UTF-8
2,799
3.015625
3
[]
no_license
import { fieldsModel } from "../config/field-model.js"; /** * Administra las validaciones de la aplicacion */ export class Validate { static mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ /** * Limpia los errores renderizados en el form */ static cleanErrors() { let field...
true
660d17e61a8b230e7638b901bee6b4c16da11156
JavaScript
Ahmedhaggg/clothes
/server/model/products.js
UTF-8
4,432
2.578125
3
[]
no_license
const mongoose = require('mongoose'); const Product = require('./schemas/product'); const Category = require('./schemas/category'); const ProductReview = require('./schemas/review'); const helperFs = require('../helper/helperFunctions'); const slugify = require('slugify'); exports.getProduct = productSlug => { re...
true
0c991ffcfd2772e99c4111015517250d2b126f98
JavaScript
sarath704/Vanilla-JavaScript-Projects
/Custom VideoPlayer/script.js
UTF-8
2,054
2.90625
3
[]
no_license
const videoEl = document.getElementById("video"); const playBtn = document.getElementById("play"); const stopBtn = document.getElementById("stop"); const progressEl = document.getElementById("progress"); const timeEl = document.getElementById("time"); const fullScreenEl = document.getElementById("fullScreen"); ...
true
e96eb6da60915b21080934bd960ef053de3cea6e
JavaScript
youyi2020/admin-template
/admin/src/util/validate.js
UTF-8
2,054
3.078125
3
[]
no_license
// 正则匹配 let reg = { isEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(([[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, isPhone:/^((19[0-9])|(17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\D])|(18[0-9]))\d{8}$/, hasIllegal:/[^-+=|,0-9a-zA-Z!@#$%^&*?_.~+/\\()...
true
63553c36209a79c4ebc23fdf5e59260c0240ddd7
JavaScript
LincolnAjanga/hopper
/game.js
UTF-8
1,994
3.109375
3
[]
no_license
var obst = []; var person1 = { xpos: 100, ypos: 450, Jspeed: 100, wid: 70, hight: 90, } var time = 60; var bgImage2, bgImage; var SpImage; var ballImage; var score = 0; //var bgImg; function setup(){ createCanvas(1200,800); bgImage2 = loadImage("over.png"); bgImage = loadImage("background.png"); ...
true
92b1cb059e50233b8c15ca83cb124974ad3455c6
JavaScript
mschema/mschema-forms
/index.js
UTF-8
1,404
2.6875
3
[]
no_license
var resource = require('resource'), forms = resource.define('forms'); var view = require('view'); forms.schema.description = "for generating HTML forms"; forms.method("generate", generate); function generate (options, callback) { view.create({ path: __dirname + '/view', input: "html"}, function (err, view) { ...
true
71fb9091bb09ccf91bda4c6627c88eac871e5f2c
JavaScript
sahilkul95/preact-paginate
/examples/basic/index.js
UTF-8
674
2.609375
3
[ "MIT" ]
permissive
import { Component } from 'preact'; import Pagination from "preact-calendar"; export default class MyClass extends Component { componentWillMount() { this.state = { currentPageNo: 1, totalPages: 255 //Suppose you want to display total 255 records }; } onChangePageClick(pageNo) { this.s...
true
72952697a44cfdad563deaae37bb5f13cd6cdaa4
JavaScript
HKChkc/data-structure-and-algorithm-js
/算法/排序/merge-sort.js
UTF-8
879
3.875
4
[ "MIT" ]
permissive
// 规避排序 // 复杂度 O(nlog(n)) function merge(left, right) { let i = 0; let j = 0; const result = []; // console.log('left.length :>> ', left.length); console.log('left :>> ', left); console.log('right :>> ', right); while (i < left.length && j < right.length) { result.push(left[i] < right[j] ? left[i++] :...
true
2d71e9e3631802b7bfb4550b1eb6368cb4b8eb3b
JavaScript
konno-tech/studio-reservation
/app/javascript/activity.js
UTF-8
2,277
2.921875
3
[]
no_license
window.addEventListener('load', function(){ let activity = document.getElementById("reserve-payment") activity.onchange = function(){ // 支払い方法が「クレジット決済(事前)」だった場合はクレジット情報入力欄を活性化する if (document.getElementById("reserve-payment").value == "3") { document.getElementById("card-number").removeAttribute("d...
true
f62bc35d706c56f19cd8cd0bebfd321ec23f72a2
JavaScript
kairemor/learn-nodejs
/fsModule.js
UTF-8
826
3
3
[]
no_license
const fs = require('fs') ; const path = require('path') ; // fs.mkdir(path.join(__dirname,'module') , {}, err => { // if (err) throw err ; // console.log("The directory is created "); // }) /// Creating file and adding content // fs.writeFile(path.join(__dirname,'module','hello.txt'), 'Hello world from nod...
true
9372022f1902037bd447f284cb57f1990f01e887
JavaScript
trujs/TruJS.core
/object/ApplyIf.test.js
UTF-8
583
2.625
3
[ "MIT" ]
permissive
/**[@test({ "title": "applyIf: no defaults, no removing nulls" })]*/ function testTruJS5(arrange, act, assert, trujs) { //shared variables var obj1, obj2, obj3; arrange(function () { obj1 = { var1: "test1", var4: null }; obj2 = { var1: "test2", var2: "test3" }; }); act(function () ...
true
e6e80137063137fa230769d2944e723eb08ae239
JavaScript
gitfilix/flexy2_root
/spa/app/js/appInit.js
UTF-8
1,292
2.546875
3
[ "MIT" ]
permissive
/** * Created by FLX on 05.06.2015. */ // pre-init app tests on document ready $(document).ready(function(){ // check if features of client is eq essential fpix gallery features for (i=0;i<featurerequired.length;i++){ // compare if featuretest pushed in html by modernizer are same as we need ...
true
7e0d6ae0caf2d4da084f561dd1f2775168e0ca41
JavaScript
cgcgbcbc2/fe2016summer
/2014013446/src/search.js
UTF-8
3,099
3.3125
3
[]
no_license
function search() { var result = new Array(); var data = arguments[0]; var query = arguments[1]; switch (typeof query) { case "number": for (var i = 0; i < data.length; i++) { if (data[i]["age"] == query) result.push(data[i]); ...
true
98536e977b63071e2463af90abae69aef89e05fd
JavaScript
Indiacodes/PRO_25
/bin.js
UTF-8
867
2.78125
3
[]
no_license
class Bin extends Baseclass{ constructor(x, y){ super(x, y, 50,50); this.image = loadImage("sprites/dustbingreen.png"); this.bodyBottom = Bodies.rectangle(580, 680,100,10); this.bodyLeft = Bodies.rectangle(530,645,10,80); this.bodyRight = Bodies.rectangle(635, 645, 10, 80);...
true
58071af7369bf7c7bc2bb4f180d24985edeb4d38
JavaScript
lin520YX/jsdeep
/6.Promise.js
UTF-8
826
2.890625
3
[]
no_license
let p = Promise.resolve(); p.then(DataCue => { console.log('cg') }, err => { console.log('sb') }) function promisify(fn) { return function (...args) { return new Promise((resolve, reject) => { fn(...args, function (err, data) { if (err) reject(err); resolv...
true
a2be8f89329e3bfd6af5c730d563c2e9509aa114
JavaScript
mariano-zeppa/mariano-zeppa.github.io
/blog/texty.js
UTF-8
368
3.078125
3
[ "MIT" ]
permissive
var pokemons = ["pikachu", "totodile", "charmander", "umbreon"]; alert(pokemons[0]); // will alert 'pikachu' alert(pokemons[3]); // will alert 'umbreon' alert(pokemons[1]); // will alert 'totodile' var pikachu = { tails: 1, ears: 2, "santa hat": true } var pikachu = { "tails": 1, "color": 'yellow', "ears": 2 }...
true
4b6eabcb53b722399ffcc3e722124d4dc9a9ddab
JavaScript
Valerie-Gtrz/starter-restaurant-reservation
/front-end/src/reservations/ReservationList.js
UTF-8
3,230
2.59375
3
[]
no_license
import { updateReservationStatus } from "../utils/api"; import { useHistory } from "react-router-dom"; /*this component renders reservations with statuses of "booked" or "seated" for speciific dates onto the dashboard and in the SearchReservation.*/ function ReservationList({ reservations }) { const history = useHi...
true
db2ab82e0d7ed55e0bf3fa0e29914a5c5a024891
JavaScript
maxsayner/animal_test
/client/src/Components/Animals.js
UTF-8
1,785
2.953125
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios' class Animals extends Component { constructor() { super() this.state = { animals: [], newAnimal: '', updateAnimalValue: '', BASE_URL: 'http://localhost:3000' } } getAnimals = () => { axios.get('http...
true
a2bc144aa61576d86a5926234bdf7a7ac5b71624
JavaScript
ForeverZ657/ife-2018
/zero-basis/day44-46/cook.js
UTF-8
333
3.28125
3
[]
no_license
function Cook(name, salary) { Staff.call(this, name, salary); // singleton let instance = this; Cook = function() { return instance; }; } Cook.prototype = Object.create(Staff.prototype); Cook.prototype.constructor = Cook; Cook.prototype.work = function(dish) { console.log('Cook: ' + dish.name + ' is c...
true
1f9ce5b966a85fd0adf0ecaaecf3e5c5c34bc709
JavaScript
AnuVehkamaeki/AnuVehkamaeki.github.io
/guessthenumber.js
UTF-8
1,086
3.734375
4
[ "MIT" ]
permissive
window.onload = function(){ function getRandomInteger(min, max) { return (Math.random() * (max - min) + min)|2; } var number = getRandomInteger(1,11); function compareNumbers (x, y){ console.log(number) ...
true
09882f073eb64ae79a894c07f872658232f2f686
JavaScript
kratochj/Zdrojak
/public/js/lib/Basket.js
UTF-8
5,442
2.875
3
[ "MIT" ]
permissive
/** * Implementace informaci o nakupu zakaznika pres HTML5 local storage. * */ function Basket(window, listener, price) { this._storage = window.localStorage; this._listener = listener; this._price = price; this._setEventStorage(window); } //data o produktech Basket.NS_PRODUCTS = 'products'; //data o ...
true
ffaf083b115f4769efe540d0abba74395c225330
JavaScript
frdmn/adventofcode-solutions
/day6_1.js
UTF-8
2,434
3.84375
4
[ "MIT" ]
permissive
/* Puzzle input - check /input/day6.js */ var input = require('./input/day6.js'); /* Variables and constants */ var totalOn = [], totalOff = []; const XLENGTH = 999, YLENGTH = 999; var totalInstructions = input.split('\n'); /* Functions */ // Function that takes the coordination array, start and end poi...
true
23b92dd2b2645b2738134b718374b8a555c09eb5
JavaScript
demon-Yang/Mnnu_community
/src/main/webapp/js/forgetpwd.js
UTF-8
2,792
2.53125
3
[]
no_license
$(function(){ var email=/^[\w]+(\.[\w]+)*@[\w]+(\.[\w]+)+$/; //注册发送验证码 $(".forgetpwd .fsend").click(function(){ var uemail = $(".forgetpwd .uemail").val(); if(uemail == ''){ $(".forgetpwd .uemail_info").html("*不能为空"); return; }else if(!email.test(uemail)){ $(".forgetpwd .uemail_info").html("*...
true
b1c520cf576bafa640249d59e5e81855f1264524
JavaScript
rao-karthik/masai-local
/Unit-4/Week-18/05-07 typescript/Assignments/TypeScript Intro-III/dist/index.js
UTF-8
275
2.84375
3
[]
no_license
"use strict"; function getName({ firstName, lastName }) { if (lastName) { return (firstName + " " + lastName); } else { return firstName; } } function PhoneBook(personDetails) { let arr = []; arr.push(personDetails); return arr; }
true
e0b84db4b65e8fc570ab6b198c5ce091959edacb
JavaScript
gcba-iris/iris
/lib/utils/cli.js
UTF-8
8,082
2.609375
3
[ "MIT" ]
permissive
/* * Iris * (c) 2016+ Buenos Aires City Government * License: https://opensource.org/licenses/MIT * */ 'use strict'; const fs = require('graceful-fs'); const path = require('path'); const ora = require('ora'); const paramCase = require('param-case'); const npm = require('npm-cmd'); const logger = require('winsto...
true
40acbc6c324fe439666b896f1c217e93f04afe88
JavaScript
binarygrrl/frontend-test
/public/js/stateControllers.js
UTF-8
607
2.515625
3
[]
no_license
angular.module('stateApp').controller('StateListController', ['$scope', '$http', function($scope, $http){ //pass things from JS to template and v/s with $scope $http.get('/states/abbreviations').success(function(data){ $scope.states = data; console.log(data); }); }]); angular.module('stateApp').controller...
true
5f7104d247e4f361a531c012df80e0f6b548d836
JavaScript
randyhperez/DojoAssignments
/WebFundamentals/Javascript/algos1/values_greater_than_2nd_2.js
UTF-8
274
3.8125
4
[]
no_license
var arr2 = []; function values(arr) { for (var i = 0; i < arr.length; i++) { if (arr.length < 2) { console.log("Nooooooo bruuuuuh!"); break; } if (arr[i] > arr[1]) { arr2.push(i); } } return arr2.length; } console.log(values([1]));
true
aa21a413973fc9803a7f57d136b8253cfcd69532
JavaScript
PrabhuPratik27/TicketReservationSystem
/server/src/controllers/ShowController.js
UTF-8
1,593
2.625
3
[]
no_license
const Theater = require('../models/Theater') const Movie = require('../models/Movie') const Show = require('../models/Shows') module.exports = { async addShow (req,res) { try { const movie = await Movie.find({ title: req.movie }) if(!movie) { ...
true
aabbe71b4fc92e36b1ca42334ae36b7e11c06a6b
JavaScript
Wayne-Bai/AST-normalize
/data/skaterdav85/validatorjs/spec/digits-rule.spec.js
UTF-8
605
2.65625
3
[]
no_license
describe('digits rule', function() { it('should be numeric and must have an exact length of 5', function() { var validation = new Validator({ zip: '90989' }, { zip: 'digits:5' }); expect(validation.passes()).toBeTruthy(); expect(validation.fails()).toBeFalsy(); }); it('should not pass if non-digits...
true
8c2149557c155b37b35f130d8839a0493bc5482a
JavaScript
AhmedMikkawe/testing-practice
/code/capitalize.js
UTF-8
287
3.609375
4
[]
no_license
function capitalize(string) { let arr = string.split(" "); let newArr = []; for(let i =0; i < arr.length; i++){ let word = arr[i]; newArr.push(word.charAt(0).toUpperCase() + word.substring(1)); } return newArr.join(" "); } module.exports = capitalize;
true
ea8816c71caa6f29436bc2108e13bfa7e06542e1
JavaScript
originalphoenix/bash.org.clone
/routes/quotes.js
UTF-8
1,991
2.59375
3
[]
no_license
var express = require("express"), router = express.Router(), quoteModel = require("../libs/mongoose").QuoteModel; // Loging time and method of quote request router.use(function timeLog(req, res, next) { //console.log('Request method: ', req.method, '; Time: ', Date.now()); next(); }); // Getting a list of ...
true
11f7fd25cf0159cb4e280d6a6ad2868f5ce717f0
JavaScript
Aleksandyr/Software-University
/Homeworks/Advanced-JavaScript/05.Design patterns/demos/3. revealing-module-pattern.js
UTF-8
1,267
3.40625
3
[]
no_license
var calculator = (function () { var logger = [], logAction, getLogs, addNumbers, subtractNumbers, multiplyNumbers, divideNumbers; logAction = function logAction(action) { logger.push(action); } getLogs = function getLogs() { return logger; } addNumbers = function addNumbe...
true
dc95b3e1ce2bdaf70c42746ef530789cc4678cae
JavaScript
Abhicoding/pick-flick
/src/components/Browse/browse.jsx
UTF-8
1,692
2.53125
3
[]
no_license
// @flow import * as React from 'react' import {withRouter} from 'react-router-dom' import {connect} from 'react-redux' import CardLayout from '../CardLayout/cardlayout.jsx' import {setNextPage, getNextPage} from '../../redux/actionCreators.js' class Browse extends React.Component <Props>{ constructor(props) { ...
true
44c8d79ad3b4a68389c93b5faa3311d8454c396a
JavaScript
bobo4aces/03.SoftUni-JSCore
/02. JS Advanced - 00. My Exam/01. Task 1.js
UTF-8
777
2.71875
3
[ "MIT" ]
permissive
function addSticker() { let title = $(".title"); let text = $(".content"); let addStickerButton = $("#add-sticker"); let stickerList = $("#sticker-list"); if (title.val()!=="" && text.val()!=="") { let li = $("<li>").addClass("note-content"); let buttonLink = $("<a>").addClass("butto...
true
2daeea4e00b06ff177e0814c33720c0abbe5e296
JavaScript
agungdp150/my-hacktiv8-course-projects
/phase-0/week-5/rabu/js-dom-events-script.js
UTF-8
2,332
3.59375
4
[ "MIT" ]
permissive
// Select <button> dengan id alert-on-click-button var alertOnClickButton = document.getElementById('alert-on-click-button'); // Tambahkan Event Listener ke <button> alertOnClickButton, dengan trigger atau pemicu nya adalah click dan memanggil function sebagai parameter kedua. alertOnClickButton.addEventListener('clic...
true
17552e6c422449c531ee9a65ff8d61c848ece0dc
JavaScript
stylelint/stylelint
/lib/utils/arrayEqual.js
UTF-8
330
3.234375
3
[ "MIT" ]
permissive
'use strict'; /** * Tests if two arrays are equal. * * @param {unknown} a * @param {unknown} b * @returns {boolean} */ module.exports = function arrayEqual(a, b) { if (!Array.isArray(a) || !Array.isArray(b)) return false; if (a.length !== b.length) return false; return a.every((elem, index) => elem === b[in...
true
410e1e25a490520652f096a5a8205102b613cd05
JavaScript
robhaj/js-functions-pt3
/js/main.js
UTF-8
862
3.828125
4
[]
no_license
// add scripts console.log("sanity check!"); //sample function test(str) { return "test" + str; } console.log(test("ing")); //problem 1 function getStudentName(student) { return student.name; } var studentName = {name: "Robby", age: 24 }; console.log(getStudentName(studentName)); //problem 2 function getTotal...
true
e1639716412d69d24e729f5bc16b68213f362532
JavaScript
Isaiasmeza/fsw130
/week3/my-app/src/TimeReduce.js
UTF-8
2,130
2.8125
3
[]
no_license
const initialState = { time: new Date(), secs: 0, mins: 0, milisecs: 0, started: false, pause: false, lap: [] } export function timer() { return { type: "Timer" } } export function start() { return { type: "Start" } } export function stop() { return { ...
true
c21ed252e942ee31ea054ae61d0d1f62ca5a9dcb
JavaScript
hungmi/swstock
/app/assets/javascripts/stock_table.js
UTF-8
1,700
2.765625
3
[]
no_license
targetShow = function(parent,target){ $(target + '#' + $(parent).attr("id") ).removeClass('hidden'); } targetHide = function(parent,target){ $(target + '#' + $(parent).attr("id") ).addClass('hidden'); } var notSavingColor = 'yellow'; $(document).ready(function(){ $('input#search').select(); $('input#search')....
true
be011a48888bd24c43db06e13ed202bb1231f629
JavaScript
quadrotriticale/pocket-to-kindle
/src/pocket.js
UTF-8
694
2.5625
3
[]
no_license
const axios = require('axios'); const { pocketConfig } = require('../config.js'); const url = 'https://getpocket.com/v3/get'; async function getPocketArticles(customTag) { if (customTag) pocketConfig.tag = customTag; const response = await axios.post(url, pocketConfig); const articlesObject = respo...
true
c79908c0a24d8abb5750c9d036159bcbfa9bcff5
JavaScript
rusanoff/interview
/tasks/is-anagrams/index.js
UTF-8
178
2.8125
3
[]
no_license
export const isAnagrams = (str1 = '', str2 = '') => (!str1 || !str2) ? false : str1.toLowerCase().split('').sort().join('') === str2.toLowerCase().split('').sort().join('');
true
b099d220f1d301f9ea02ad987a142f5c0a834eb8
JavaScript
Pawandeeprai/goodgame
/frontend/components/shelves/new_shelf_form.jsx
UTF-8
1,368
2.515625
3
[]
no_license
var React = require('react'); var LinkedStateMixin = require('react-addons-linked-state-mixin'); var ShelvesUtil = require('../../util/shelves'); var NewShelfForm = React.createClass({ mixins: [LinkedStateMixin], getInitialState: function(){ return { clicked: false }; }, createShelf: function...
true
3e14cbf916f0113df09405d53d7ed966226ddf8f
JavaScript
dinhplus/JsLab
/ContactManager.Nodejs/index.js
UTF-8
5,885
3.34375
3
[]
no_license
var readlineSync = require("readline-sync"); var fs = require("fs"); /** * Sử dụng kiến thức đã học, tạo ra một ứng dụng danh bạ điện thoại, có các chức năng: * - Nhập dữ liệu contact (name, phone number) * - Sửa dữ liệu contact * - Xoá contact * - Tìm kiếm contact: có thể nhập vào tên (không dấu hoặc có dấu, chữ ...
true
82db34a69f8484595c777a2d1b00182da49ae5f4
JavaScript
Wahba1414/react-burger
/src/Redux/Reducers/Auth_Reducer.js
UTF-8
647
2.625
3
[]
no_license
import * as Actions from '../Actions/Action_Constants'; var initalStore = { loggedIn : false }; //Helper functions. function logIn (store,action){ var updatedStore = { ...store, loggedIn : true }; return updatedStore; } function logOut (store,action){ var updatedStore ...
true
74e1c2d7e4255129384b99e55c5170bba7c4b76e
JavaScript
kevinchewning/casualclass.git.io
/server/models/User.js
UTF-8
1,816
2.53125
3
[ "MIT" ]
permissive
const { Schema, SchemaTypes, model } = require('mongoose'); const bcrypt = require('bcrypt'); const UserSchema = new Schema({ username: { type: String, required: true, unique: true }, email: { type: String, required: true, unique: true, validate: /\w+...
true
aeab2862228ed487626fc08dda09b75ec43e398e
JavaScript
alishazia/js-GET-http-request--and-parsing-it-with-another-way
/index.js
UTF-8
4,290
3.390625
3
[]
no_license
// // const addMovie = document.getElementById('add-movie-btn'); // // const searchBtn = document.getElementById('search-btn'); // // const movies = []; // // const captureMovie = () => { // // const getMovie = document.getElementById('title').value; // // const getExtraInfo = document.getElementById('...
true
707f3f63729ff09648691b5c7767346ea75487fe
JavaScript
rchowdev/spotify-challenge
/index.js
UTF-8
593
3.21875
3
[]
no_license
function largestUniqSetOfChar(p) { const charMap = {}, res = []; //Character occurences for (let i = 0; i < p.length; i++) { let c = p[i]; charMap[c] = (charMap[c] || 0) + 1; } //Sort characters by count const characters = Object.keys(charMap); const sortedChars = characters.sort((a, b) => { return cha...
true
538e50058bd8e5b7703db93bf220f405a7489143
JavaScript
manish-khakhal/Sorting-Visualizer
/src/components/Deshboard.js
UTF-8
1,730
2.53125
3
[]
no_license
import React, {useEffect, useState } from 'react' import Board from './Board'; function Deshboard(props) { const { sort_type, sort,showArray,setshowArray} = props; const [inputArray, setinputArray] = useState(""); useEffect(() => { }, [showArray]); return ( <> <div i...
true
204ab30d8bbc6262c8baeaff6079dc2be99cf32e
JavaScript
SharanSMenon/Programming
/Helper_Programs/hex_and_binary_js/binaryLetters.js
UTF-8
1,115
3.5
4
[]
no_license
// Imports const inp = require("readline-sync") // Functions var text_to_binary = (function () { var pad = '00000000'; return function (str) { return str.replace(/./g, function (c) { var bin = c.charCodeAt(0).toString(2); return pad.substring(bin.length) + bin; }); }...
true
f1e2769a6357ce08313ee3382062724d37bb1434
JavaScript
Realcoder16/chocco
/hamburger-menu.js
UTF-8
542
2.953125
3
[]
no_license
const openButton =document.querySelector(".hamburger"); const closeButton=document.querySelector(".close__link"); const body = document.body openButton.addEventListener('click', event=> { const overlay = document.querySelector('.hamburger-block'); overlay.style.display = "block"; body.style.overflow = 'hidden';...
true
bf804a92df47fbc2891a45487fc17aa3f5b10dd8
JavaScript
lcnvdl/falso-amqp
/src/helpers/json.helper.js
UTF-8
731
2.71875
3
[ "MIT" ]
permissive
const JsonHelper = { toB64: function (obj) { if (typeof obj !== "string") { obj = JSON.stringify(obj); } return JsonHelper.btoa(obj); }, fromB64: function (data) { const json = JsonHelper.atob(data); return JSON.parse(json); }, stringFromB64: fu...
true
f05d5953a3ccd01d72ac6e71f1e9be2c00f1c25a
JavaScript
miao0007/front-end-practical-project
/creation_festival/js/index.js
UTF-8
1,811
3.1875
3
[]
no_license
/* *Purpose: *1. utilize JS convert div into 3d *2. add rotation function */ var container = document.getElementById("container"), box = document.getElementById('box'), arr = box.getElementsByTagName('div'), audio = document.getElementById('audio'), radius = calculateRadius(129, 20); for (var i =...
true
93463977e6b7cacb4e4f0d01c22670f9e3be2408
JavaScript
sagbeyeg/react-state-self-assessment-091420
/src/Components/Responce.js
UTF-8
700
2.734375
3
[]
no_license
import React from 'react'; import { yes, no } from "../objects"; class Response extends React.Component { state = { clicked: false, yes, no } clickHandler = () => { this.setState((prevState) => ({clicked: !prevState.clicked})) } render() { return ( <div className="app"> <sp...
true
d28240756dbc7a4bde2470c6dac8d6bfad97a353
JavaScript
Volcaner/1_resume
/js/control/mousecoords/mousecoords.js
UTF-8
671
2.75
3
[]
no_license
/* ** 获取鼠标指针位置 ** MouseCoords.getMouseCoords(ev).x ** MouseCoords.getMouseCoords(ev).y ** ** 获取目标div位置 ** $("#" + targetDivId).position().left ** $("#" + targetDivId).position().top */ (function($) { $.MouseCoords = function(){ var self = this; this.getMouseCoords = function(ev){ if(ev.pageX || ev.pageY){ ...
true
ad9aca51b7d05ce8ab11cb39a56e7b6436c011c7
JavaScript
kelly-cho/Landing-Page
/js/app.js
UTF-8
3,657
3.609375
4
[]
no_license
/** * * Manipulating the DOM exercise. * Exercise programmatically builds navigation, * scrolls to anchors from navigation, * and highlights section in viewport upon scrolling. * * Dependencies: None * * JS Version: ES2015/ES6 * * JS Standard: ESlint * */ /** * Define Global Variables * */ const n...
true
5a35bac4ae1035f8b08cd16431ce6accd96fa166
JavaScript
Anastasi-aii/Logos_Anastasi
/javascript/12_Forms(done)/home/task_2/script.js
UTF-8
2,073
2.96875
3
[]
no_license
let firstBlock = document.getElementById('first-block'); let inputsCollection = firstBlock.getElementsByTagName('input'); let agree = document.getElementById('agree'); let signUp = document.getElementById("sign-up"); let secondContent = document.getElementById('second-content'); let signOut = document.getElementById("s...
true
4e78ebeb0d81a0c47de77d27d7b280219d76e5aa
JavaScript
Daxter304/personalWebsite
/Previous Version/indexSetup.js
UTF-8
9,923
2.5625
3
[]
no_license
function setupPage() { var dropdownMenu = ""; var content = ""; var menuHeader = ""; var footer = ""; var toggle = false; //Create menu //menuHeader += "<li><a id='Btn'><label></label></a></li>"; menuHeader = "<ul>"; menuHeader += "<li><a id='createTableBtn'><label>Create Table</label></a></li>"; ...
true
0d05e1bae492b82f13a41417b1abebdd55f5fe12
JavaScript
slathrop/DevConDotNet
/DevCon/webcli.js
UTF-8
8,516
2.71875
3
[]
no_license
class WebCLI { constructor() { var self = this; self.history = []; // Command history self.cmdOffset = 0; // Reverse offset into history self.createElements(); self.wireEvents(); self.showGreeting(); self.busy(false); ...
true
5848fdba8a18fe14b74857ec1620f37d6370ce0f
JavaScript
shannontreadway/Assignment-3---Mars-Rover
/spec/rover.spec.js
UTF-8
4,426
3.171875
3
[]
no_license
const assert = require('assert'); const Rover = require ('../rover.js'); const Message = require('../message.js'); const Command = require('../command.js'); describe("Rover class", function() { // Test 7 it('constructor sets position and default values for mode and generatorWatts', function() { assert.stric...
true
6695689982b92b229bf96d900303c7baef0f6a31
JavaScript
AppraiseQA/appraise
/src/util/array-to-object.js
UTF-8
376
2.9375
3
[ "MIT" ]
permissive
'use strict'; module.exports = function arrayToObject(values, names) { if (!Array.isArray(values)) { throw new Error('values must be an array'); } if (!Array.isArray(names)) { throw new Error('names must be an array'); } const result = {}; names.forEach((name, index) => { if (values.length > index) { res...
true
46ce73e419b295678cf1d06790dc9f78670e3f77
JavaScript
danhobaklab/photo-gallery
/js/photogallery-core.js
UTF-8
3,742
2.796875
3
[ "MIT" ]
permissive
var myHeader; var myFooter; var myPhotoGallery; var myDetailBackground; var myGesture; var myCurrentPhoto; var myViewMode; // Initialize the photo gallery init(); /* Initialize the photo gallery - Load the grid view - Add the header - Add event to each photo */ function init() { myHeader = document.getEleme...
true
1aa1636d47e6ca8b74f3bbc8d38ebe8241f9c424
JavaScript
EmanAALK/Notebook
/src/stores/noteStore/index.js
UTF-8
1,659
2.828125
3
[]
no_license
import { decorate, observable } from "mobx"; import axios from "axios"; class NoteStore { notes = []; loading = false; fetchNote = async () => { try { const res = await axios.get("http://localhost:8000/notes"); this.notes = res.data; this.loading = true; } catch (error) { console...
true
82a6dd9ee50ab1af6a96078121c36e584a8b423e
JavaScript
Norbig412/Among-Us-Discord-Bot
/cmds/invite.js
UTF-8
1,549
2.84375
3
[ "MIT" ]
permissive
const database = require("../lib/database.js"); const Discord = require("discord.js"); module.exports.name = "invite"; module.exports.run = async (client, message, args) => { if (message.channel.type === "text") { var embedMessageId = database.getMessage(message.guild.id); var channelId = database.getChannel...
true
324dce50e0f29e9f419c6380c92a3a992150cced
JavaScript
haiautruong/AdminPage
/models/admin.js
UTF-8
1,468
2.609375
3
[]
no_license
const mongoose = require("mongoose"); const bcrypt = require('bcrypt'); const AdminSchema = new mongoose.Schema( { username: {type: String, required: true, lowercase: true, unique: true}, password: {type: String, required: true}, fullname: {type: String}, phone: {type: String, requi...
true
6ebc0b9266ba71f0707afed3c8938700681ec8ff
JavaScript
actini/WeChatAPP
/QQZJ/utils/funcs.js
UTF-8
3,547
3.09375
3
[]
no_license
// funs.js 自定义公共函数库文件 /* * 生成随机字符串 * @param int 随机字符串长度长度,默认值为 6 * @return string 返回由大小写字母组成的随机字符串 */ function randomString(length=6){ var str = '' for(var i=0; i<length; i++){ var ascii = Math.ceil(Math.random()*25)+Math.round(Math.random())*32 str += String.fromCharCode(ascii+65) } return str } /*...
true
fbd1243d6a06ee05febb9cd549ff3a120e9b2c0c
JavaScript
LancerComet/node-ftp
/app/client/index.js
UTF-8
4,254
2.640625
3
[ "MIT" ]
permissive
"use strict"; const DEFINITION = require('../def'); const cmder_1 = require('../cmder'); const utils_1 = require('../utils'); const appConfig = require('../../config.json'); class Client { constructor(socket) { this.inited = false; this.isLogin = false; this._retrying = 0; this.clien...
true
e06ab217afa6f4891796e97afad071da0a9c5c18
JavaScript
fruitbox12/coresplore
/frontend/js/lib/import-export.js
UTF-8
925
2.515625
3
[ "MIT" ]
permissive
import { downloadBlob } from './dom.js' export function importFromJson (fileStr) { const obj = JSON.parse(fileStr) if (obj['@context'] !== 'https://atek.cloud/hyperbee-export') { throw new Error('Unable to import file: must be a JSON-LD file with a @context of "https://atek.cloud/hyperbee-export') } const ...
true
06cd2f8e91679c462d236ebd7753e58effc6e806
JavaScript
chrisvfritz/maintainable-webpack-config
/e2e/babel/fixtures/main.js
UTF-8
127
3.375
3
[]
no_license
// const, spread operator, arrow function const myArray = Array(...Array(10)).map((_, i) => i) console.log(myArray.join(','))
true
12a724583ebd67d5a15d1301f793c6338819382c
JavaScript
piku98/ReplyDe-backend
/controllers/chatManager.js
UTF-8
2,148
2.6875
3
[]
no_license
const { chatRooms, userInfo } = require("../data"); function createChatRoomId() { let result = ''; while (true) { let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; let charactersLength = characters.length; for (let i = 0; i < charactersLength; i++) { ...
true
fa8bd9733fa94958334d29d899ba3314b68cbd9b
JavaScript
Bs01-1/php_homework_site
/script.js
UTF-8
5,044
2.6875
3
[]
no_license
let scrollBottom = document.getElementById('scroll_bottom'); window.addEventListener('scroll', function() { scrollBottom.style.display = (document.documentElement.getBoundingClientRect().top <= -300) ? 'block' : 'none'; }); let bg_check = 0; let bg_bool_check = true; let bg_color = 255; (function backgrou...
true
48749a82cc18fc712eaf9def4e509e38aef2ad24
JavaScript
lraulin/simon
/main.js
UTF-8
2,741
2.9375
3
[]
no_license
$(document).ready(function() { $(".sbut").addClass("dim"); var sequence = []; var ss0 = $("#ss0")[0]; var ss1 = $("#ss1")[0]; var ss2 = $("#ss2")[0]; var ss3 = $("#ss3")[0]; var wrong = $("#wrong")[0]; var int = 1000; var inputCounter = 0; var strictMode = false; function beepBoop(num) { num ...
true
df83bd55817f49508bb1b569306d69bc43ae8041
JavaScript
EgorGo23/octo-test
/src/helpers/highlightWords.js
UTF-8
314
2.890625
3
[]
no_license
const highlightWords = (content, arrayWords) => { if (!content) { return ''; } let newContent = content; arrayWords.map((word) => { newContent = newContent.replace(new RegExp(word, 'g'), `<strong>${word}</strong>`); }) return newContent; } export default highlightWords;
true
23d15567cd8700b34bfa72ffa6d89ba37f9cd26e
JavaScript
icyflame/math-sort
/index.js
UTF-8
212
2.609375
3
[ "MIT" ]
permissive
'use strict'; module.exports = function (inputArr) { if (Array.isArray(inputArr)) { inputArr.sort(function (a, b) { return a - b; }); return inputArr; } else { return undefined; } };
true
6913ccbf5eb6868af109f1541123f2ddca0a110b
JavaScript
RuslanPedora/chat
/src/user-db.js
UTF-8
1,745
2.96875
3
[]
no_license
'use strict'; const USER_DB_FILE = 'user-db.json'; const fs = require( 'fs' ); //-------------------------------------------------------------------------------- class UserDB { constructor() { this.userList = this.readFromFile(); } //-------------------------------------------------------------------------------...
true
ad649e8753c976a928c35981e115b5e671d8b583
JavaScript
AJakif/ToDO-App-Reactstrap
/client/src/components/TodoList.js
UTF-8
2,338
2.578125
3
[]
no_license
import React, {useEffect, useState} from 'react'; import {Jumbotron,CardDeck, Container, Button} from 'reactstrap' import axios from 'axios' import CreateTask from '../modals/CreateTask' import Card from './Cards'; const TodoList = () => { const [modal, setModal] = useState(false); const [taskList, setTaskList...
true
4bbba2755ac2d7a6e4fca5fd0cc96536aca2006b
JavaScript
Sonfix/HeglaHelper
/events/message.js
UTF-8
586
2.625
3
[ "Apache-2.0" ]
permissive
const fs = require("fs") module.exports = (client, message) => { fs.readdir('./commands/', (err, files) => { if (message.content.startsWith('!')){ console.log(message.author.username + ' sendet command "' + message.content + '"'); } files.forEach(file => { if (file.indexOf('~') < 0) { const commandH...
true
80d9e3eefe2c0a0fe53c454d7cb413d1888a93d6
JavaScript
stupppid/ratta-console
/src/init/initFiles/bin/touch.js
UTF-8
2,334
2.640625
3
[]
no_license
import path from 'path' import {validateFileName} from "./validate"; const helpMsg = ` touch [options] [path] create a file -h, --help check the command -c, --content assign the content when you use this config, you can only make one file -f, --force overwrite the old file ` co...
true
09fc5a8d48a0f3cafb90cd299d06ce2d9afb4667
JavaScript
hassandarwish2010/masegypt
/public/admin/js/custom.js
UTF-8
1,807
2.609375
3
[ "MIT" ]
permissive
$('.delete_confirmation').on('click', function (e) { e.preventDefault(); $(document).find('#confirm_modal').attr('action', $(this).attr('data-action')); }); $('.approve_confirmation').on('click', function (e) { e.preventDefault(); $(document).find('#approve_modal').attr('action', $(this).attr('data-action')); ...
true
e8d1936ad4eed34275a4e187979437d36148e9fe
JavaScript
agirlcalledhan/my-first-repo
/js/script.js
UTF-8
254
2.671875
3
[]
no_license
console.log("Page has loaded! I can't believe it!"); function helloWorld() { console.log('Hello World!'); } function buttonThree() { document.getElementById('heading-two').innerHTML ='Hello World!'; console.log('button three pressed'); }
true
ccaf508a77c00350823381b526bd64d05bb18367
JavaScript
robmarano/alexa-lost-then-found
/lambda/custom/resources/utils.js
UTF-8
1,001
2.609375
3
[]
no_license
// // lambda/custom/resources/utils.js // // taken in part from // https://github.com/alexa/skill-sample-nodejs-pet-tales/blob/master/lambda/custom/resources/utils.js // 'use strict'; // Helper functions for generating Lost Then Found sound effects and SSML const helpers = { LOST: { sound: "soundbank://so...
true
301cc584acb56fec801f882e777b91df908becaf
JavaScript
kristjanmik/generator-assets
/lib/jsx/buildMenu.jsx
UTF-8
1,996
2.953125
3
[ "MIT" ]
permissive
/*global params, stringIDToTypeID, ActionDescriptor, ActionList, executeAction, DialogModes, localize */ // Required params: // - items - array of objects that describe menu items. Each object should // have the following properties: // name - string used to identify menu internally // displayNa...
true
6dc8733862d52b3116f8c82a6efe7d07c3880d70
JavaScript
Harsukhdeepsandhu/flappy-bird
/scripts/app.js
UTF-8
1,636
3.203125
3
[]
no_license
var width = 414; var height = 846; var pipeX, pipeY, pipeHeight; var pipes = []; var score = 0; var canvasID = document.getElementById('canvas'); var canvas = new Canvas(width, height, canvasID); var context = canvas.context; var bird = new Bird(10, canvas.height / 2, 50, 50, "red", context); function pushPipes() {...
true
4802ac890188b103fde9d4bbc804fff0c1b74aec
JavaScript
jiafeimaomi/OOexercise
/js/ball.js
UTF-8
510
3.578125
4
[]
no_license
function Ball(id){ this.ball = document.getElementById(id); this.width = ''; this.height = '' var _this = this; setTimeout(()=>{ _this.show(); _this.ball.onclick = function(){ _this.turnBig(); } }, 1000); } Ball.prototype.show = function(){ this.ball.style.display = 'block'; } Ball.p...
true
0a4d7c0f6aaab6ae8250e545704a344150f21f2f
JavaScript
pyxarez/resize-observer-polyfill
/tests/node/ResizeObserver.spec.node.js
UTF-8
2,054
2.59375
3
[ "MIT" ]
permissive
/* eslint-disable max-nested-callbacks */ const ResizeObserver = require('../../dist/ResizeObserver'); let observer; // eslint-disable-next-line const emptyFn = () => {}; describe('ResizeObserver', () => { afterEach(() => { if (observer) { observer.disconnect(); } observer = ...
true
39ae87e8418dcea44ae1699f8f37574e24709fe7
JavaScript
leandrookimoto/ProgWeb
/TrabalhoJavaScript/javascript1.js
UTF-8
629
2.71875
3
[]
no_license
botao = document.getElementById("desenhar") botao.onclick = function(){ b1 = document.myForm.b1.value; b2 = document.myForm.b2.value; b3 = document.myForm.b3.value; b4 = document.myForm.b4.value; b5 = document.myForm.b5.value; largura = document.myForm.largura.value; document.myForm.i1.height = b1; document....
true
f58ccd9fe3cda6be748bc1156c12987e9494949e
JavaScript
infordigirn/estudos-web
/curso-web-moderno/exercicios-web/esnext/forOf.js
UTF-8
967
4.21875
4
[]
no_license
for (let letra of "Cod3r") { console.log(letra) } const assuntosEcma = ['Map', 'Set', 'Promise'] // com for in for (let index in assuntosEcma) { console.log(index) // retorn o index do array } // com for of for (let assunto of assuntosEcma) { console.log(assunto) // retorn o valor armazenado } // for o...
true
8a03310f75adbbb4b5850a55adfeaa671a58b2db
JavaScript
cubeguerrero/freecodecamp-data-visualization
/heat-map/index.js
UTF-8
4,943
2.6875
3
[]
no_license
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; const dataURL = 'https://raw.githubusercontent.com/freeCodeCamp/ProjectReferenceData/master/global-temperature.json'; const colors = ['#313695', '#4575B4', '#74add1', '#abd9e9', '#e...
true
575556049dd7829f2589974d45ea2d525bcf5c7f
JavaScript
JakeScudder/simple-blog-react
/simple-blog-react/src/components/UpdateBlog.js
UTF-8
6,358
2.859375
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; import axios from 'axios'; class UpdateBlog extends Component { constructor(props) { super(props); this.state = { blogId: this.props.match.params.id, title: "", author: "", post: "", genre: "", image: "", errorMessage: null, ...
true