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
adab5d4713453eb6c048ce84b4d95c7de3713876
JavaScript
pmayur/fcc-dv-treemap-diagram
/script.js
UTF-8
5,071
2.859375
3
[]
no_license
const MOVIE_SALES = "https://cdn.freecodecamp.org/testable-projects-fcc/data/tree_map/movie-data.json"; const VIDEO_GAME_DATA = "https://cdn.freecodecamp.org/testable-projects-fcc/data/tree_map/video-game-sales-data.json"; const KICKSTARTED_PLEDGES = "https://cdn.freecodecamp.org/testable-projects-fcc/dat...
true
b1d2b2300b94f4ec502cd2985c34fa7e4f1933ad
JavaScript
gtrabbit/town-builder
/src/home/buildings/great-hall/great-hall.js
UTF-8
2,473
2.703125
3
[]
no_license
import GreatHallUI from './great-hall-ui'; import Building from '../building-base'; import PurchaseUnavailable from '../../common/purchase-unavailable'; const typeName = 'greatHall'; export default class GreatHall extends Building { constructor(tile, level){ super(tile, level, typeName...
true
dbebf8dfce28abcd9f00c6a82b8e4efcdcb5c562
JavaScript
jevangelista/CatchPhrase
/seed.js
UTF-8
1,581
3.078125
3
[]
no_license
// This file allows us to seed our application with data // simply run: `node seed.js` from the root of this project folder. var db = require("./models"); var phrases_list =[ {word: "Abstraction", definition: "Abstraction in computer programming is a way to reduce complexity and allow efficient design and implement...
true
3cad660c3beb7688288ba37fb8fb7a4ae7626385
JavaScript
luotaoyeah/learning-javascript
/projects/2020/src/book/es6-for-humans/11/01/11-01-05/11-01-05-01.mjs
UTF-8
365
3.40625
3
[]
no_license
/* * Beyond ES6 * String.prototype.padStart() * String.prototype.padEnd() */ console.log('\n-------------------------------------------------- 01'); const str = 'foo'; console.log(str.padStart(5)); // " foo" console.log(str.padEnd(5)); // "foo " console.log(str.padStart(5, '__')); // "__foo" console.log(...
true
deea55c1b7c5de1c5593b302dedaa9b612cb1c9e
JavaScript
ryanburgess/engineer-manager
/lib/update.js
UTF-8
2,674
2.890625
3
[]
no_license
module.exports = function update() { const fs = require('fs'); const obj = require('../list.json'); const videos = []; const podcasts = []; const books = []; const articles = []; const newsletters = []; const mentoring = []; const communities = []; const courses = []; let content = '# Engineering...
true
3b033d2800217e88d10d194e77edcba330bf25f6
JavaScript
brijumx/curso-practico-javascript
/figuras.js
UTF-8
3,210
3.546875
4
[ "MIT" ]
permissive
// cuadrado function calcularAreaCuadrado() { const input = document.getElementById("lcuadrado"); const value = input.value; const areaCuadrado = calculoAreaCuadrado(value); alert("El área del cuadrado es: " + areaCuadrado); } function calculoAreaCuadrado(lado) { return lado * lado; } functi...
true
2526b54839fcfe616efe0218963100ea2c35d07f
JavaScript
Carrotsssw/test-ip-cam
/index.js
UTF-8
1,273
2.515625
3
[]
no_license
const onvif = require('node-onvif') const fs = require('fs') const listDevice = async () => { const deviceList = await onvif.startProbe() deviceList.forEach((info) => { console.log('- ' + info.urn) console.log(' - ' + info.name) console.log(' - ' + info.xaddrs[0]) }) return deviceList } const in...
true
e4b782a0b832418d11d6953617753730541c0e4c
JavaScript
CindyPotvin/temperature-logger
/client/chart/WeatherVisualization.js
UTF-8
3,108
2.828125
3
[]
no_license
import Chart from "chart.js"; import axios from "axios"; /** Shows the weather information using Chart.js, querying the information from the backend. @param {object} currentWeatherModule - Information about the module used to display the data. @param {string} axisType - The X axis to display the data. Supported types:...
true
0e2b20566e27a68612cf8919fa512e756ccc6395
JavaScript
AbiVickery/JavaScript-terms
/js/app.js
UTF-8
3,184
3.46875
3
[]
no_license
console.log('Hello world!'); var foo; console.log(foo); var bar = 'hello'; // data type? <-a string var boo = "world!"; // string var foo2 = 1; // int var foo3 = []; // array literal var foo4 = {}; // object literal var foo5 = true; // bolean true/false // page 69 // Don't use a reserved keywrod ie break, return, bool...
true
29c042ac6eb4a86f0c4346851bc5cdd183e4742a
JavaScript
gabrielbarreto030/Jogo-da-Velha
/js/controller.js
UTF-8
1,178
3.078125
3
[]
no_license
document.addEventListener("DOMContentLoaded",game) var chields=document.querySelectorAll(".field") var button=document.querySelector("#reset") function game(){ button.addEventListener("click",reset) chields.forEach((value)=>{ value.addEventListener("click",move) }) function move(event){ ...
true
8326162ecd4af3d10b8bdf382fb874be12bc95aa
JavaScript
rybczusia/music-tiger
/src/Results.js
UTF-8
3,144
2.765625
3
[]
no_license
import React from "react"; import logo from "./img/logo1.png"; const handleCheck = (result) => { let feedback = ''; switch (true) { case result < 1: feedback = `Zdobyłeś ${result} punktów. Lepiej zajmij się hodowlą jedwabników.`; break; case result === 1: fee...
true
67c8ae45fc91e58f8dcf2c5e3e16e0bbd44bad3d
JavaScript
terry-sydaus/ReactMovieApp
/src/main/Main.js
UTF-8
7,331
2.796875
3
[]
no_license
// Main.js import React from 'react'; import './Main.css'; import Navigation from './navigation/Navigation'; import Movies from './movies/Movies'; import LoadingMovie from '../movie/LoadingMovie'; class Main extends React.Component { state = { genre: 'Comedy', genres: [], moviesUrl: `https://api.themo...
true
81524fe5bc7387345e75c245e010c51b47f685f4
JavaScript
eudora-jia/CIDLib
/Depends/SDKs/iTunes/SampleScripts/CreateAlbumPlaylists.js
MacCentralEurope
4,401
2.515625
3
[ "MIT" ]
permissive
/* File: CreateAlbumPlaylists.js Version: 1.0 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of t...
true
8a7505bdb2b4b6668f95d61218269f3047389fc8
JavaScript
danemauland/AAClasswork
/W9D3/jQuery_hanoi/skeleton/src/hanoi-view.js
UTF-8
1,497
3.109375
3
[]
no_license
function View(game, dom) { this.game = game; this.$el = $(dom) this.setupTowers(); this.render(); this.$el.on("click", "ul", this.clickTower.bind(this)) } View.prototype.setupTowers = function() { for (let i = 0; i < 3; i++) { const $tower = $("<ul>"); $tower.attr("id", `$...
true
43c07592965510391d5d8ea5c21febb8334480f0
JavaScript
AmitJain628/Data-structures
/Arrays/14. implement_two_stack_array.js
UTF-8
1,156
4.53125
5
[]
no_license
/* GeeksForGeeks: https://www.geeksforgeeks.org/implement-two-stacks-in-an-array/#:~:text=A%20simple%20way%20to%20implement,size%20of%20array%20be%20n. push1(x) -> push in first stack push2(x) -> push in second stack pop(x) -> pop in first stack pop(x) -> pop in second stack Approach -> [ , , , , , ] len -> 6, m...
true
55f59301694d7a5badf9a0745dba5d963a69230a
JavaScript
stlachman/sorting-visualizer
/src/components/Sorting.js
UTF-8
2,623
3.234375
3
[]
no_license
import React, { useState } from "react"; import Item from "./Item"; import useInterval from "../hooks/useInterval"; import { bubbleSort } from "../sorts/bubbleSort"; function randomArray(length) { let result = []; for (let i = 0; i < length; i++) { result.push({ value: Math.floor(Math.random() * length ...
true
0837dcf1ef90838cd3fd8507918316c5a6caa1b6
JavaScript
micrub/ecs
/ordered-insert.js
UTF-8
291
3.5625
4
[ "MIT" ]
permissive
// insert the new item such that the array stays ordered from highest to lowest export default function orderedInsert (arr, val) { for (let i=0; i < arr.length; i++) { if (arr[i] <= val) { arr.splice(i, 0, val) return } } arr.push(val) }
true
df072601e4c8bdeff7b55afcc37996475311c30e
JavaScript
OlyaPoz/practice_superhero
/seeders/20210407130514-insert-superhero.js
UTF-8
824
2.546875
3
[]
no_license
'use strict'; const generateSuperhero = key => ({ nickname: `Superman${key}`, real_name: `Clark Kent${key}`, origin_description: `he was born Kal-El on the planet Krypton, before being rocketed to Earth as an infant by his scientist father Jor-El, moments before Krypton's destruction${key}`, catch_phra...
true
5175f6c228d53f5bd906675ae799f99623a6d007
JavaScript
mfarr23/riseandgo
/transportation_function.js
UTF-8
7,040
3.21875
3
[]
no_license
$(document).ready(function(){ var currentTimeHours = null, date = null; var currentTimeMinutes = null; var currentTime = null; var timeToGetReady = 0; // Gives you the ETA by adding the total commute time and the time to get ready with the current time // ie. 50 mins to get ready plus current Time: 8:00 = 8:50 var t...
true
32b8f3264d0e9a7d0795e0d50630852d1451c7f4
JavaScript
HoracioCalleja/Exchange-service
/src/date.js
UTF-8
249
2.90625
3
[]
no_license
const $date = document.getElementById("date"); export default function setUpDate() { let today = new Date().toISOString(); today = today.substring(0,today.indexOf("T")); $date.setAttribute("max",today); $date.value = today; }
true
1fe993a61e927b73ffac9922593f12d6a402a5ef
JavaScript
saavaage/saavaage.github.io
/PIONEER/scripts/newsPanel.js
UTF-8
496
2.59375
3
[]
no_license
/** * Created by boss on 22 июля. */ var allNews = document.querySelector('.main-aside'); var btnNews = document.querySelector('.btn-news'); var panelNews = document.querySelector('.main-aside-news'); // открытие/закрытие панели по клику на .main-aside btnNews.addEventListener('click', function (event) { ...
true
3dba04c2a7ffedc7c5c687a7821f992ba624aa9e
JavaScript
Falcon58/falcon_host
/scripts/reg/toggle_form.js
UTF-8
6,916
2.765625
3
[]
no_license
$(document).ready(Start); var tLogin = false; var tPassword = false; var tcPassword = false; var tEmail = false; var tCode = false; var request; var elementId; var message_box; function Start() { UpdateCaptcha(); if(window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if(window.ActiveXOb...
true
bab1fc00f15347e1cf8ac26823ce30f76bd8139e
JavaScript
IvanVeselkov/EPAM_Ext_Lab_Q2_2018_Ivan_Veselkov
/LABA 10/Number2/scripts.js
UTF-8
1,181
2.765625
3
[]
no_license
var pause = false; var i,t; var numbPage = 0; var timeRest = 0; var moveInterval = 5000; var timerInterval = 100; function previouspage() { history.back(); } function nextpage() { history.forward(); } function move() { numbPage = parseInt(document.getElementById("page_id").innerText); var pagemass = ["Firs...
true
18915c92893c8005b890e76bbd59ce45daf55ed6
JavaScript
PolarisTLX/Coding-Cheat-Sheets
/Javascript/Useful Algorithms/Objects practice.js
UTF-8
764
3.296875
3
[]
no_license
IMPORTANT NOTE LEARNED: ALL KEYS in an OBJECT in javacript must be strings, or are turned into strings from the Exercise "Life Expectancy" from Eloquent JavaScript chapter (Higher-Order Functions): // for (j in history) { // console.log(j, typeof(j)); // } this prints out: 16 string 17 ...
true
49691611ef6977d4de3463f053e8f943e47805e1
JavaScript
Perfecy/laba4
/scripts/my.js
UTF-8
2,116
3.375
3
[ "MIT" ]
permissive
function AddToPriceList() { var itemName = $('#price-list-updater').find('input[name="item-name"]').val(); var itemValueTemp = $('#price-list-updater').find('input[name="item-value"]').val(); if(itemName != "" && itemValueTemp != "" && $.isNumeric(itemValueTemp)) { $('#price-list-table').find('tbody') .append(...
true
a1c4b9788df673805bf11d8929c208b097fe4932
JavaScript
rhernandog/pixi-gsap-filters-test
/shader.js
UTF-8
908
2.78125
3
[]
no_license
console.clear(); const app = new PIXI.Application(800, 600, { backgroundColor: 0x9cbac9, autoResize: true, forceCanvas: false }); // var renderer = PIXI.autoDetectRenderer(800, 600); document.getElementById("app").appendChild(app.view); // create the root of the scene graph var stage = new PIXI.Container(); var bg =...
true
87279afdff9325ff6304d13837e42b4c45985ca8
JavaScript
dsawali/rsvp-engine
/src/Model/Attendee.js
UTF-8
929
2.625
3
[]
no_license
const db = require('../config/db'); const schema = `CREATE TABLE IF NOT EXISTS Attendees ( id UUID PRIMARY KEY, event_id UUID NOT NULL, email TEXT UNIQUE, first_name TEXT NOT NULL, last_name TEXT NOT ...
true
5402d50fe757fb86a82a6ee2116544996e9311d9
JavaScript
rfoong8983/Kawaii-5-0
/app/src/shapes/ministar.js
UTF-8
2,672
2.96875
3
[]
no_license
import * as utils from '../utils/utils'; class MiniStar { constructor(options) { this.x = options.x; this.y = options.y; this.radius = options.radius; this.color = options.color; this.ctx = options.ctx; this.purp = options.purp; this.yell = options.yell; ...
true
93439221a934650cd2d89857dece18756db47755
JavaScript
andre-carvalho/cash-machine
/src/config/atm-config.test.js
UTF-8
2,050
3
3
[ "ISC" ]
permissive
import { expect } from 'chai'; import { ATMConfig } from './atm-config.js'; describe('The main test cases of the ATM configuration.', ()=> { describe('Get the customer balance from configuration file.', ()=> { it('should return 10000 as the default value of the customer\'s opening balance.', async ()=> {...
true
69932304da2195d0f9949f8202f3d6bfb38ab852
JavaScript
marverlous811/my-chess
/server/util/index.js
UTF-8
1,342
3.4375
3
[]
no_license
function printBoard(board) { let string = '' for (let i = 0; i < 8; i++) for (let j = 0; j < 8; j++) { const idx = i * 8 + j if (j === 7) { string += ('0' + board[idx]).slice(-2) + '\n' } else { string += ('0' + board[idx]).slice(-2) + ' ' } } console.log(string) }...
true
c2d2874959db1df67414bc1422b9df8d97f8145d
JavaScript
ManojKumarPatnaik/Java-Script
/Iterables.js
UTF-8
2,032
4.53125
5
[]
no_license
// Iterables // An object that is returned by the iterable interface is also an iterator object. // Iterator object have a next() method which returns the next item in the sequence. // This method returns an object with two properties: done and value and when next() calls reach to the end of sequence then the done pr...
true
1cc5112b7c3476fa2657c6a8a47e41f64957fbc5
JavaScript
ItsmeHJB/DSP-Project
/Activate/static/js/classifier_view_v4.js
UTF-8
26,152
2.546875
3
[]
no_license
var nodes = [] var user_label_counter = 0; var total_user_labels = 0; var user_label_array = []; var labels = ["Airplane", "Automobile", "Bird", "Cat", "Deer", "Dog", "Frog", "Horse", "Ship", "Truck"]; var our_ten_colours = ['#a6cee3','#1f78b4','#b2df8a','#33a02c','#fb9a99','#e31a1c','#fdbf6f','#ff7f00','#cab2d6','#6a...
true
f0efe5ce84002c2d3378d46cb995a0d1488f0c87
JavaScript
emtee40/check-authors-certificate.js
/index.js
UTF-8
2,877
2.53125
3
[ "MIT" ]
permissive
module.exports = checkAUTHORSCertificate var child = require('child_process') var fs = require('fs') var parse = require('peoplestring-parse') var path = require('path') function checkAUTHORSCertificate(directory, callback) { listGitAuthors(directory, function(error, gitAuthors) { if (error) { callback(er...
true
4d6174eda3badf4644fb782892a626bf80b46d31
JavaScript
fengchunsgit/design-pattern-javascript
/src/park/index.js
UTF-8
2,040
3.59375
4
[]
no_license
//camera class Camera{ shot(car){ return { num:car.num, inTime:Date.now() } } } //screen class Screen{ show(car,inTime){ console.log('num:',car.num) console.log('time:',Date.now()-inTime) } } //park class Park{ constructor(floors){ this.floors=floors || [] this.carList={}...
true
a4885e9179bcfd0bac95ae6fb70441b96b8ff5e9
JavaScript
SELord/scheduleit
/assets/js/view_history.js
UTF-8
5,818
2.9375
3
[ "MIT" ]
permissive
/** * view_history.js is used on the homepage and in view_history.php. * It displays all events the user has either created, RSVPed for, or been invited to. */ // Get today's date // Today's date is used to default the list view to the current date so the // user sees which events are coming up next by defa...
true
9d9ce5aa74afe39f323046767024428fcbc25e2d
JavaScript
nansunnyya/Momontom
/clock.js
UTF-8
626
3.4375
3
[]
no_license
const clockContainer = document.querySelector(".js-clock"); const clockTitle = clockContainer.querySelector("h1"); function getTime(){ const currDate = new Date(); const currHour = currDate.getHours(); const currMin = currDate.getMinutes(); const currSec = currDate.getSeconds(); // console.log(cur...
true
e026d8f51b60237a1516829ac9641187f5c893e4
JavaScript
YangWeiBin/other-course
/JS进阶/tasks/3.JS 初级挑战杯/3-1.趣味算法/趣味算法任务5.js
UTF-8
1,373
3.78125
4
[]
no_license
//任务五// // 用js完成"兔子产子问题",计算每个月兔子的总个数 // 有一对兔子,从出生后的第3个月起每个月都生一对兔子。 // 小兔子长到第3个月后每个月又生一对兔子,假设所有的兔子都不死, // 问30个月内每个月的兔子总数分别为多少? // 声明数组变量arr_rabbit_count,根据上面的描述, // 计算出这30个月内,每个月兔子的总个数,并把它保存到数组变量arr_rabbit_count中 // 数组arr_rabbit_count中第一个元素对应的是第一个月兔子的数量 第n个元素对应着第n个月兔子的数量 // 根据以上描述完成函数number_of_rabbit_child(),返回值为数组arr_r...
true
8451123d18ba33f029aa9ff7dfb8830f936f0926
JavaScript
FGRibreau/preg_replace---preg_replace_callback-in-javascript
/preg_replace.js
UTF-8
1,676
2.890625
3
[]
no_license
function preg_replace(pattern, pattern_replace, subject, limit){ // Perform a regular expression search and replace // // discuss at: http://geekfg.net/ // + original by: Francois-Guillaume Ribreau (http://fgribreau) // * example 1: preg_replace("/(\\@([^\\s,\\.]*))/ig",'<a href="http://twitter....
true
71eeedebb38245338cf8cd1e5a1405a5c59bfb5c
JavaScript
austingorman/domcomponents
/javascript.js
UTF-8
605
3.65625
4
[]
no_license
// Use JavaScript to obtain a reference to the first article header and change its text with textContent property to // "Welcome the {insert your name here} blog" // Use JavaScript to obtain a reference to all article__header elements and change their classList property value to // "article__header important". let ...
true
0e16ccadbc843495422fea9b56caf5658366bfc9
JavaScript
rsgilbert/learning-node
/stat.js
UTF-8
238
2.53125
3
[]
no_license
const fs = require('fs') fs.stat('../', (err, stat) => { if(err) { console.error(err) return } console.log(stat.isFile()) console.log(stat.isDirectory()) console.log(stat.size) console.log(stat) })
true
10635883e95e5001fd5f35014e97a09b59e91d73
JavaScript
Evexa/j1
/java3.js
UTF-8
2,308
3.21875
3
[]
no_license
// // localStorage.setItem("number", 1);// - создает ключ и значение // // console.log(localStorage.getItem("number"));// - получает значение из ключа // // localStorage.removeItem("number"); // удаляет ключ // // localStorage.clear(); // очищает полностью // window.addEventListener("DOMContentLoaded", function() {...
true
0625836d0adca4d6fc62f37382ef31d519b5e1bb
JavaScript
airteliq/Airtel-IQ-One-to-One-Video-Chat-Sample-Web-Application-Reactjs-Client
/src/service/api.js
UTF-8
828
2.640625
3
[]
no_license
const BASE_API_URL = 'https://localhost:5000/'; // your application server URL const fetchOptions = { headers: { "Content-Type": "application/json" , "Access-Control-Allow-Origin" : "*" } }; /** * Create Room xhr request */ export const createRoom = async () => { Object.assign(fetchOptions,...
true
e6777a5f531fc8d5db540321b1b5ec9a60ce9b38
JavaScript
skidder/phils-players
/js/shaka.js
UTF-8
1,829
2.75
3
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
function initApp() { // Install built-in polyfills to patch browser incompatibilities. shaka.polyfill.installAll(); // Check to see if the browser supports the basic APIs Shaka needs. if (shaka.Player.isBrowserSupported()) { // Everything looks good! initPlayer(); } else { // This browser does no...
true
baacec6d518cb073c3645c609ac8c74ad1b25104
JavaScript
prerana1821/weather-api-app
/weekly.js
UTF-8
695
3.078125
3
[]
no_license
let btnDays = document.querySelector('btn-days'); // let urlDays = "http://api.openweathermap.org/data/2.5/forecast?q=Mumbai&cnt=40&units=metric&appid=4736c416d23b5f1318fdf16618c9b5ff"; let urlDays = "http://api.openweathermap.org/data/2.5/forecast?q="; function constructUrlDays(city) { return url + city + "&cnt...
true
ee8f047db8d04e4c3fb30cc3e7bd46ad997d4b53
JavaScript
007vinaygandhi/LLC
/src/Yoga.js
UTF-8
1,588
2.9375
3
[]
no_license
import './Yoga.css' function Yoga() { return ( <> <h1>Valuable Yoga Asanas for Senior Citizens</h1> <p>Aging is inevitable. However, regular yoga practice not only boosts immunity but also unites the body, mind and soul to attain calm and peace in advanced age. These 6 yoga asanas perfect for senior c...
true
3dffb7b63fe27f0fcb0be79b90b9ce9a9bc5cb41
JavaScript
shrutick05/Hackerrank
/Algorithms/Strings/Palindrome Index.js
UTF-8
1,606
3.78125
4
[]
no_license
// function reverse(str) { // var a=str.split(''); // a.reverse(); // return a.join(''); // } // String.prototype.replaceAt = function(index, charcount) { // return this.substr(0, index) + this.substr(index + charcount); // } // function processData(input) { // //Enter your code here // var line...
true
3e758b657a5d63b0f2334f854d7e3ea9662ea107
JavaScript
D4ni3lr/SophosNodeJs
/api/MoviesController.js
UTF-8
437
2.5625
3
[]
no_license
'use strict'; var movies = []; var controllers = { index: function (req, res) { res.json(movies); }, show: function (req, res) { var result = movies.filter((movie) => movie.type === req.params.type) return res.status(result.length > 0 ? 200 : 404).json(result) }, store: fun...
true
2d06024dcab26e7343472470802a553520d767f9
JavaScript
kikejosan/fruitlappers
/spec/test.js
UTF-8
3,797
2.609375
3
[]
no_license
var request=require("request"); var _=require("underscore"); var url='http://localhost:5000/'; //var url="http://161.67.8.34:5000/ var socket=require('socket.io-client')(url); var socket2=require('socket.io-client')(url); //socket=io.connect(url); var ancho = 100; var alto = 100; console.log("========================...
true
3983aa20675f7e21a39405a756790e6092aee003
JavaScript
TrrLrr/code_wars_assignments
/nice array/nice_array.js
UTF-8
372
3.765625
4
[]
no_license
function isNice(arr){ var nice = false; for(var i = 0; i < arr.length; i++) { for(var j = 0; j < arr.length; j++) { if(arr[i] +1 === arr[j]|| arr[i] -1 === arr[j]) { nice = true; break; } else if(j === arr.length -1) { return false; ...
true
19ff21bff3c6611581d01f69bf323d41f4c9c51b
JavaScript
samsamuroi74/malt-task3
/1.js
UTF-8
547
2.609375
3
[]
no_license
$(function () { $("#login").hide(); $(".btn1").click(function () { $("#login").show(3000); }) }) function openPage2() { alert("you are successfully registered"); document.getElementById("nav-div").style.display = "block"; alert("click on page2 ") } function checkLogin() { let inp1 ...
true
90ad31bd13ea0df983ebf883970baf38785f2b31
JavaScript
VVGhost5/goit-js-hw-01
/js/task-2.js
UTF-8
730
3.03125
3
[ "MIT" ]
permissive
'use strict' let total = 100; let ordered = 50; if (ordered > total) { console.log('На складе недостаточно товаров!'); } else { console.log('Заказ оформлен, с вами свяжется менеджер') } total = 100; ordered = 120; if (ordered > total) { console.log('На складе недостаточно товаров!'); } else { consol...
true
dda9927972d60b45c7e4a093667672436130c9b7
JavaScript
MaheshShenoy01/imageuo
/js/script.js
UTF-8
3,887
2.640625
3
[ "MIT" ]
permissive
$(document).ready(function() { var thatImage= null; document.getElementById('pro-image').addEventListener('change', readImage, false); $( ".preview-images-zone" ).sortable(); $(document).on('click', '.image-cancel', function() { let no = $(this).data('no'); $(".preview-imag...
true
08d58a7984b6d3bf7285f3832d5a78cd091de6dd
JavaScript
AliKayahan/nhsmeeting
/store/actions/room.js
UTF-8
3,129
2.90625
3
[]
no_license
export const FETCH_ROOMS = "FETCH_ROOMS"; import Room from '../../models/room'; /** * This function is used to fetch rooms in the city given * from the back-end * @param {String} city */ export const fetchRooms = (city) => { return async dispatch => { // The async method is used to be sure that we gather the r...
true
769a83a4d3e9fbbbbdcb52e098fdfd08f7e0d364
JavaScript
tugce23/ToDoList-App
/accessing-elements.js
UTF-8
702
3.046875
3
[]
no_license
/*const heading=document.querySelector('h1'); const todoList=document.querySelector('#todo_list').innerHTML; const todoListItem=document.querySelector('.todo-list-item'); const todoListItems=document.querySelectorAll('.todo-list-item');*/ const todoList=document.getElementById('todo_list').innerHTML; const todoListIte...
true
c06038279e586a74c63066d3c081758fdf73332e
JavaScript
mibet/ejerciciosTDD
/ejercicios_3/ejer1.js
UTF-8
245
3.5
4
[]
no_license
function rectangulo(base, altura){ this.base=base; this.altura=altura; } var miRectangulo = new rectangulo(5,4); console.log(miRectangulo); var area=miRectangulo.base * miRectangulo.altura; console.log("El area del rectangulo es: "+area);
true
c53741ae2edb3880493d5412123fa138eab23e83
JavaScript
occitech/fcl-onlinetooffline
/src/web/theme/pages/TryIt/Validation/Validation.js
UTF-8
2,088
2.703125
3
[ "MIT" ]
permissive
import React from "react"; import "./Validation.scss"; import validation from "./Validation.png"; import PropTypes from "prop-types"; const getMonthName = MonthNumber => { switch (MonthNumber) { case 0: return "January"; case 1: return "February"; case 2: return "March"; case 3: ...
true
d23296920cd91fcac84fa9d5bc55502524cefbfa
JavaScript
davidbaltr/node-SQL-on-ibm-i
/static/submitForm.js
UTF-8
1,464
2.890625
3
[]
no_license
// jQuery function $(document).ready(function () { // addEventListener von jQuery $(submitform).click(getData); function getData() { var sqlQuery = $(query).val(); init(); // ajax request $.ajax({ type: 'POST', url: 'http://192.168.1.201:8000/sql', data: { query: sqlQuery }, suc...
true
1a3f53736eab245029f11919d05f4d99653fdb77
JavaScript
MRBlach/dog-api
/app.js
UTF-8
516
3.484375
3
[]
no_license
// Event listener const dogBtn = document.getElementById('dog-btn').addEventListener('click', getDogs); let output = document.getElementById('imageInsert'); // Functions async function getDogs() { const response = await fetch('https://dog.ceo/api/breeds/image/random') const data = await response.json() console.l...
true
d35b79949a6a00dd328c2cb9a3d4bded42140d19
JavaScript
klee91/Bamazon
/bamazonManager.js
UTF-8
4,637
2.96875
3
[]
no_license
var inquirer = require('inquirer'); var mysql = require('mysql'); var selection; var id; var units; //SQL connection var connection = mysql.createConnection({ host: "localhost", port: 3306, // Your username user: "root", // Your password password: "Jaklee91!", database: "bamazon" }); //list of all it...
true
fd0f1569c3db6885e82a85d4fea82101e2ec8bee
JavaScript
rsvaldes/eclipse-warmup
/test/index.test.js
UTF-8
1,046
3.0625
3
[]
no_license
const chai = require('chai'); const assert = chai.assert; const expect = chai.expect; const growingKeys = require('../index').growingKeys; describe('growingKeys', function() { it('should return an object where the keys are the string, concatenating onto itself as many times as the number', () => { const growing...
true
e7c103b527e52b7d4ec796e6299ed6117a386067
JavaScript
ngunner15/lotide
/eqArrays.js
UTF-8
183
2.640625
3
[]
no_license
const eqArrays = function(firstArray, secondArray) { if (JSON.stringify(firstArray) === JSON.stringify(secondArray)) return true; else return false; }; module.exports = eqArrays;
true
9c2f3cf48da6d898cca9c132d55083ac320d81a8
JavaScript
Sergey-Tarasevich/basic-js
/src/dream-team.js
UTF-8
566
2.875
3
[ "MIT" ]
permissive
const CustomError = require("../extensions/custom-error"); module.exports = function createDreamTeam(members) { if (!members) { return false; } let arr = []; for (let i = 0; i < members.length; i++) { if (typeof members[i] === 'string') { arr.push(members[i].trim()); ...
true
5eec3e5fc30ae8e5ed4272b6b8a935786baecc20
JavaScript
Popeluso/test
/test.js
UTF-8
242
3.109375
3
[]
no_license
function myFunction() { var x = document.getElementById("fname").value; var y = document.getElementById("lname").value; var text = "Hola, mi muy señor " + x + ", de la casa " + y; document.getElementById("demo2").innerHTML = text; }
true
8307feb426150ce965103816abcec791f3d1ebac
JavaScript
bquoctruong/CPSC473Homework2
/scripts/main.js
UTF-8
2,139
3.421875
3
[]
no_license
var DETAIL_IMAGE_SELECTOR = "[data-image-role=\"target\"]"; var DETAIL_TITLE_SELECTOR = "[data-image-role=\"title\"]"; var THUMBNAIL_LINK_SELECTOR = "[data-image-role=\"trigger\"]"; var LEFTCLICK_LINK_SELECTOR = "[data-image-role=\"trigger1\"]"; var RIGHTCLICK_LINK_SELECTOR = "[data-image-role=\"trigger2\"]"; var curr...
true
da2a9c53439a54b7f7765dc4ef8346ae587bdd27
JavaScript
Soulsneezer/vanilla-contact-list
/www/js/AddContactsPage.js
UTF-8
7,444
2.671875
3
[ "MIT" ]
permissive
class AddContactsPage extends Component{ constructor() { super(); this.inputData = { name: '', phoneNumbers: [{ id: 0, phoneNumber: '' }], mails: [{ id: 1, mail: '' }] } this.nbr = 2; this.getContactList(); this.eventListener(); ...
true
4a83f3fe9e2968f3c1ee316648d1e74e74936e9d
JavaScript
alaynapuck28/To-Do
/src/App.js
UTF-8
1,309
2.921875
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import Todo from './todo'; class App extends Component { state = { todos: [ { text: "laundry" }, { text: "take a nap" } ], inputValue: "" } handleSubmit = (event) => { event.preventDefault(); ...
true
ca504b9e36ee625c893f3e92b81f5aebe9b64ba6
JavaScript
postor/leetcode-practice
/301-400/391-400/random-pick-index.js
UTF-8
556
3.578125
4
[]
no_license
/** * @param {number[]} nums */ var Solution = function (nums) { this.dic = {} this.nums = nums this.nums.forEach((x, i) => { if (!this.dic[x]) this.dic[x] = [] this.dic[x].push(i) }) }; /** * @param {number} target * @return {number} */ Solution.prototype.pick = function (target)...
true
ba57a1e5d5647ee28677805fff4f6a6791b4dc12
JavaScript
lucasalme1da/to-do-list-react
/web/src/Pages/Register/index.js
UTF-8
3,135
2.515625
3
[ "MIT" ]
permissive
import React, { useState } from 'react' import { Link } from 'react-router-dom' import './style.css' import register from '../../Assets/register.png' import InputToast from '../../Components/InputToast' import api from '../../Services/api' const Register = () => { const [showToast, setShowToast] = useState({ st...
true
b7e5bea181d52f6b2ab1d61e5dd7c29fdd43d6cd
JavaScript
stevenmedina-de/WarframePrimeManager
/routes/api/transactions.js
UTF-8
3,924
2.609375
3
[]
no_license
const express = require('express'); const passport = require('passport'); const Router = express.Router(); const validateTransactionInput = require('../../validation/salelog'); const parseTransactionItems = require('../../validation/parse'); const Transaction = require('../../models/Transaction'); const WarframeCoun...
true
081a2de1530833e3d09893bd0b8909509d3ffdd1
JavaScript
paclaraujo/travel-lovers
/public/pages/feed/posts/postsView.js
UTF-8
1,925
2.578125
3
[]
no_license
import { getUser } from '../feedFunctions.js'; import { addEvents } from './postsEvents.js'; import { commentTemplate } from '../comment/commentView.js' const ownerPostsBtns = (post) => { return ` <button class='action-btn far fa-edit' data-edit='${post.id}'></button> <button class='hidden action-btn far fa-...
true
4d228766ce19cfe80a493c69fb7bc32bb5bcae2a
JavaScript
jdgardner251/react-playground
/src/state/Counter.js
UTF-8
1,667
3.296875
3
[]
no_license
import React from 'react'; // class Counter extends React.Component { // static defaultProps = { // step: 1 // }; // constructor(props){ // super(props) // this.state = { count: 0 } // } // handleButtonClick = () => { // const newCount = this.sta...
true
d4a05210364f8183080bb6a4c70c32da540a2f87
JavaScript
wangpengfeido/MyLearn2
/LearnCreateJs/easelJs/010tutorial/20120动画和心跳/170性能/index010.js
UTF-8
677
3.109375
3
[]
no_license
let stage = new createjs.Stage('canvas'); let timeCircle = new createjs.Shape(); timeCircle.graphics.beginFill('DeepSkyBlue').drawCircle(0, 0, 30); timeCircle.x = 0; timeCircle.y = 120; stage.addChild(timeCircle); timeCircle.on('tick', event => { timeCircle.x += event.delta * 0.1; if (timeCircle.x > stage.canvas....
true
3ab18f6e692f721527ba7dc97f5da658b11df423
JavaScript
Ezequiel-Barrera/proyecto_Javascript
/js/35.js
UTF-8
1,246
3.421875
3
[]
no_license
/* Fetch API el reemplazo a Ajax (XMLHttpRequest) Fetch API es el nuevo estándar igual que ajax te permite enviar inforación al servidor u obtener información de un servidor. Tambien te va a permitira actualizar el sitio web sin recargar la pagina. Va a enviar los datos, los va a procesar atra de escena y va a actual...
true
88e08623c632cd3888f9a5ce652d66d1c4af8822
JavaScript
changxianglin/secretsOfTheJavaScriptNinja
/chapter09/coding.js
UTF-8
3,298
3.359375
3
[]
no_license
const log = console.log.bind(console) // const ninjas = ['Kuma', 'Hattori', 'Yagyu'] // const samurai = new Array('Oda', 'Tomoe') // // log(ninjas.length === 3, 'There are three ninjas') // log(samurai.length === 2, 'And only two samurai') // // log(ninjas[0] === 'Kuma', 'Kuma is the first ninja') // log(samurai[samur...
true
8ef02e2cabf7bf33b343fff8b787efabc9bd0c64
JavaScript
wh0pper/array-practice
/js/scripts.js
UTF-8
1,221
3.40625
3
[]
no_license
$(document).ready(function() { var favArray = [] $("button#submit").click(function(event) { event.preventDefault(); var food = $("#Food").val(); var city = $("#City").val(); var book = $("#Book").val(); var color = $("#Color").val(); var hobby = $("#Hobby").val(); favArray = [food, city, ...
true
6fc59dff5dd8b13359d3aff9127f3d3edaa89327
JavaScript
wesleyradcliffe/imacomputer
/Lesson 1/1.HelloWorld.js
UTF-8
930
3.328125
3
[]
no_license
/* * ASH AND WYATT. ITS TIME TO FUCKING PROGRAM! LETS DO THIS! * This is a 'block comment'. 'Comments' are for PEOPLE ONLY! The Interpreter will ignore it! */ //This is a line comment. Same deal. //An individual line is called a 'statement'. A statement usually ends with a semicolon. ; //You can put the double dash...
true
880bea16e2e723f762c6d92ab4b32919d16c1034
JavaScript
geertvos/GVM
/GVM/logictest.gs
UTF-8
1,129
2.90625
3
[]
no_license
//Wrapping an special class to report failures assertFail = function(msg) { native("nl.gvm.test.Assertions","fail", msg); } print("This is a funky unit test that uses the GVM to test the GVM."); var test = function(expression, message) { if (expression) { print(message+" works."); } else { print(message+" fail...
true
3e481a3ff887c903dd13da33780647f5d03a31bb
JavaScript
nagendiranr/giphy-store
/src/main/webapp/resources/static/js/category.js
UTF-8
1,578
2.59375
3
[]
no_license
function showCategories() { $("#categories").html(""); // Beginning API call var queryURL = "http://localhost:8080/giphy/category/get"; $.ajax({ url: queryURL, method: "GET", contentType: "application/json", success: function(category) { for (i = 0; i < category.length ; i++) { ...
true
28e41587a5729aa1e1f5ce95d7b55b26e93f7e7a
JavaScript
mjohnsullivan/axiscam
/lib/motion.js
UTF-8
1,056
2.625
3
[ "MIT" ]
permissive
/** * Parses out motion data from the Axis camera motion stream * Implemented using Node's new stream API with prototypes */ var Transform = require('stream').Transform var MotionLevelStream = function() { Transform.call(this, {objectMode: true}) } MotionLevelStream.prototype = Object.create( Transform.proto...
true
7ce02c30d0b09890f3e4595b18dc8292acb1b57a
JavaScript
wlhost/xiaoshuo
/public/static/js/form.js
UTF-8
15,122
2.546875
3
[ "MIT", "Apache-2.0" ]
permissive
//登录 $(function(){ jQuery.validator.addMethod("isUserName", function(value, element) { var mobile = /^[1][0-9]{10}$/; var email = /^([a-zA-Z0-9]+[_|\_|\.\-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.\-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{1,3}$/; return this.optional(element) || (mobile.test(value) || email....
true
569dc6797f4f6e6c126f0c889e76cfc4a310724b
JavaScript
aitirga/modern_js_udemy_projects
/course/chapter_2-DOM/app-modifyin_classes_and_attributes.js
UTF-8
1,073
3.515625
4
[]
no_license
// REPLACE ELEMENT // Create Element const newHeading = document.createElement('h2') // Add id newHeading.id = 'task-title' // New text node newHeading.appendChild(document.createTextNode('Task List')) // Get the old heading const oldHeading = document.getElementById('task-title') // Parent const cardAction = doc...
true
7aca90774e64557a5ceb541e22d26ca12eedafe1
JavaScript
CindyChenx/js-advanced-functions-introduction-to-context-lab-online-web-pt-041519
/index.js
UTF-8
1,748
3.78125
4
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// Your code here function createEmployeeRecord(arr){ return{ firstName: arr[0], familyName: arr[1], title: arr[2], payPerHour: arr[3], timeInEvents: [], timeOutEvents: [] } } function createEmployeeRecords(arrs){ return arrs.map(arr => createEmployeeRecord(...
true
91d2150680e52cdd45b7ceae9262020b9e446545
JavaScript
JamesFTW/code2040
/date.js
UTF-8
1,147
2.6875
3
[]
no_license
require('es6-promise').polyfill(); require('isomorphic-fetch'); var moment = require('moment'); function stamp(response){ return JSON.parse(response).datestamp } function seconds(response){ return JSON.parse(response).interval } fetch('http://challenge.code2040.org/api/dating', { method: 'POST', headers: ...
true
172120159993763db55624c3cd39f19c480fc841
JavaScript
krypt007/kotanipay
/api/ussd.js
UTF-8
6,487
2.875
3
[ "MIT", "Apache-2.0" ]
permissive
//This is The USSD Post Request for End-to-end Celo Transfer function ussdPostRequest(){ //Secured API Call from the Telco const { sessionId, serviceCode, phoneNumber, text } = req.body; //Data Received from the Telco MNO var data = text.split('*'); // TRANSFER && PHONENUMBER && AMOUNT senderM...
true
f84d78cd73e6c25f00b5ad779e01c860e7e88521
JavaScript
question0914/social-website
/velozdesign.app/public/js/ajaxtest.js
UTF-8
1,215
2.578125
3
[]
no_license
//alert('sth'); // import React, { Component } from 'react'; // import ReactDOM from 'react-dom'; // class FetchDem extends React.Component { // // constructor(props) { // // super(props); // // this.state = { // // posts: [], // }; // // } // // componentDidMount() { // // axios.get(`http:/...
true
a4028ecd00f42d76afb9a28ff82d7f87a6cf5237
JavaScript
Gazpa/PublicTransportStatusCheck
/src/actions/PublicTransportActions.js
UTF-8
1,341
2.609375
3
[]
no_license
import axios from "axios"; import { FETCH_PUBLIC_TRANSPORT_STATUSES, SET_PUBLIC_TRANSPORT_STATUS, CLEAR_PUBLIC_TRANSPORT_STATUS } from "./types"; const ROOT_URL = `https://api.tfl.gov.uk/Line/Mode/tube,overground,dlr/Status?detail=true`; function compare(a, b) { if (a.modeName === b.modeName) { ...
true
e1c90846c3cb9a9d523180dfc92bff0125ad971e
JavaScript
fantasy-hub/react-demo
/src/components/Test/index.js
UTF-8
1,553
2.90625
3
[]
no_license
import React, { useState, useMemo, useCallback } from 'react' import { Button, Input } from 'antd'; // export default function Test() { // const [count, setCount] = useState(0) // const [value, setValue] = useState('') // // const [times, setTimes] = useState(0) // const getNum = useMemo(() => { // ...
true
2be2df175906ff20c32c9407edef08c512d22dea
JavaScript
blitzmann/adventofcode
/2019/day23/solve.js
UTF-8
2,198
3.15625
3
[]
no_license
const fs = require('fs'); const path = require("path"); const input = fs.readFileSync(path.resolve(__dirname, 'input.txt')).toString(); const IntCode = require('../intCode') Array.prototype.chunk = function (chunkSize) { var R = []; for (var i = 0; i < this.length; i += chunkSize) R.push(this.slice(i,...
true
5b3cd210caf815b7f8c6b4ede225f2a561c47cd8
JavaScript
qwop/userscript
/monolith/101/22643.user.js
UTF-8
738
2.578125
3
[]
no_license
// ==UserScript== // @name lastModified2title // @namespace http://eldar.cz/myf/pub/firefox/ // @description Adds document.lastModified to the page title. Prefers ISO format. // @include http://* // @include https://* // ==/UserScript== (function(){ if ( !document || !document....
true
c9a18ecac1e772a89d3163c4b8830d7060ee4f77
JavaScript
rutpatel1908/QACompletedProjects
/Javascript/coding_challenges/JS/challenge2.js
UTF-8
1,951
4.03125
4
[]
no_license
var sumresults, results; var person; function returnSquareRoot(){ var input = document.getElementById("txtSquareNumber").value; var calculateSquare = input * input; window.alert(calculateSquare); } function returnSum(){ sumresults = document.getElementById("sumresults"); var numberOne = document.getElemen...
true
6f03b8e1b3f4e90a3f87d85c258d1cdf2ce14a2f
JavaScript
dinhbinh1610/react-flux-seed
/app/js/utils/logger.js
UTF-8
492
2.953125
3
[ "MIT" ]
permissive
/* * If there's no console (like in older IE versions when devtools isn't open) * create a stubbed console. */ if (!window.console) { window.console = {}; } var noop = function () { /* * This function does nothing. */ }; /* * Stub out each function we will use if they don't exist */ if (!window...
true
3d122510f1012ad1465e61600a696c2f00961400
JavaScript
dl8sd11/iot_webduino
/src/js/outdoor.js
UTF-8
1,820
2.671875
3
[]
no_license
var outdoorID = '10VxwaJy'; var ButtonPort = 4; function makeOutdoor(){ getOutdoorInfo(function(data){ $('#pmStat').html(data.pm+"μg/m³"); if (parseInt(data.pm)<15) { $('#pmLevel').html("空氣品質正常"); $('#maskimg').attr("src","./pic/nmask.jpg"); } else { $('#pmLevel').html("PM2.5濃度過高出門記得攜帶口罩...
true
5183899d5e055c37e4fabce36e81d8770a6c7b52
JavaScript
JHaarla/bamazon
/bamazonManager.js
UTF-8
7,091
2.875
3
[]
no_license
const mysql = require("mysql"); const inquirer = require("inquirer"); const Table = require("cli-table"); var table = new Table({ head: ["Product ID", "Product Name", "Department Name", "Price", "Stock"], colWidths: [12, 23, 18, 17, 10] }); const dbConnection = mysql.createConnection({ port: 3306, use...
true
c3c2a3496b974681a8782b287b5dbdc4ce2ed4e9
JavaScript
mehrabrafi143/GigHub
/obj/Release/Package/PackageTmp/Scripts/app/Controller/FollowController.js
UTF-8
755
2.609375
3
[ "MIT" ]
permissive
var FollowController = function (followServices) { let btn; function init() { $(".js-toggle-follow").on("click",toggleFollow); } function toggleFollow(e) { btn = $(e.target); followeeId = btn.data('id'); if (btn.hasClass('btn-link')) followServices.createF...
true
9174d65e79040b29dacea0001db2150019b6e319
JavaScript
Khairultaher/CodingInterviewPreparation
/Arrays/TwoNumberSum.js
UTF-8
948
4.375
4
[]
no_license
// Two Number Sum (Easy Problem) // O(n) time | O(n) space function twoNumberSum(array, target) { let nums = {}; for (const element of array){ //console.log(element) match = target - element if(match in nums){ //console.log(match, element) return [match,...
true
ed2ee53a1feb282855cacf5b917d3de8a421f351
JavaScript
Priyanka-pardeshi/Javascript-programming-construct
/Array/Random_number_array.js
UTF-8
207
3.4375
3
[]
no_license
var MonthArray=new Array(); for (let i=1;i<=10;i++) { var randomNum=Math.floor((Math.random()*1000)+1); MonthArray.push(randomNum); } for(let x=0;x<=MonthArray.length;x++) { console.log(MonthArray[x]); }
true
7e2e0bf863691dc502f224463e44afff9c3e609f
JavaScript
thechiefalone/oneYearDCI
/FBW2Hamburg/2019_MARCH/2019March_26/pagination/pagination.js
UTF-8
2,563
2.984375
3
[]
no_license
var apiKey = "12000491-41fc68d8c365df909e022ceb6"; var perPageValue; var img; var counter = 1; function buttonClick() { var keyword = document.getElementById("search").value; var category = document.getElementById("category").value; perPageValue = document.getElementById("per-page").value; fetch("http...
true
9c24f8222ba04cfcf1d184d5263a55a0b09fe2e0
JavaScript
och-karr/react_film_list_first_task
/script.js
UTF-8
2,015
3.484375
3
[]
no_license
//tablica danych o serialach: // id jest potrzebne by nie odswiezac informacji o kazdym elemencie przy zmianie jednego var series = [ { id: 1, title: 'Breaking Bad', desc: 'Serial o historii dilera narkotyków', img: './images/bb-v.jpg' }, { id: 2, title: 'Gra ...
true
b2d38d740ad4cd976543f7098b87fe19d24c753c
JavaScript
mmcnulty20/lax-2.0
/frontend/utils/auth_form_helper.jsx
UTF-8
3,236
2.8125
3
[]
no_license
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import * as sessionAPIUtil from "./session_api_util"; export const validEmail = str => { const valid = str.search(/^[a-zA-Z0-9][\w-.]*[@][a-zA-Z0-9][\w-]*[.][\w-]*[a-zA-Z0-9]$/) return valid !== -1 } export const vali...
true
b098e3bb2a10ddf0160be1217607a3f72c28a39d
JavaScript
realcoindevteam/Dapp-mapservice
/database/user_schema.js
UTF-8
2,912
2.59375
3
[]
no_license
var crypto = require('crypto'); var Schema = {}; Schema.createSchema = function (mongoose) { console.log('createSchema 호출됨.'); var UserSchema = mongoose.Schema({ id: { type: String, required: true, unique: true, default: '' }, hashed_pass...
true