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
4482be12e856863b73b4ae37d37ab031bffda9cd
JavaScript
kherkeladze/tms
/models/user.js
UTF-8
1,982
2.546875
3
[]
no_license
/** * Created by Aka on 4/23/16. */ 'use strict'; let mongoose = require('mongoose'); let bcrypt = require('bcrypt-nodejs'); let Schema = mongoose.Schema; let messages = require('../lang/messages'); let userSchema = new Schema({ firstName : { type : String, trim : true, required : true, minlength : 2, maxleng...
true
272ad4dfe56e39efa54d92ec08d97b3049df6459
JavaScript
edgeston/JavaScript-Practice
/strings.js
UTF-8
380
4.15625
4
[]
no_license
const firstName = 'Monikka'; const job = 'Programmer'; const birthYear = 1993; const year = 2037; const monikka = "I'm " + firstName + ", a " + (year - birthYear) + " year old " + job + "."; console.log(monikka);// String concatenation const monikkaNew = `I'm ${firstName}, I am a ${(year - birthYear)} year ...
true
56669cef05404e84be0f270139fe91333dddd5cd
JavaScript
llunye/niufangziWeb
/WebRoot/js/sold.js
UTF-8
2,785
2.8125
3
[ "MIT" ]
permissive
//自动运行 $(document).ready(function(){ LoadSoldCount(0); LoadSoldPrice(0); $("#select_period").change(function(){ var period = $("#select_period").val(); LoadSoldCount(period); LoadSoldPrice(period); }); }); //通过ajax从服务端读取(成交套数)数据 function LoadSoldCount(period) { chart_soldCount.showLoading(); //显示加载动画 va...
true
e837f3e59aaad452003100a5d79c1b7357d44cac
JavaScript
deshan-moon/Lagou-Study
/study-content/practise/Moudle-1/M1/01.一等公民及高阶函数.js
UTF-8
1,233
4.3125
4
[]
no_license
// 函数是一等公民 // 函数可以存储在变量中: // 把函数赋值给变量 let fn = function(){ console.log('hello0') } // 函数的方法赋值给另一个方法 const BlogController = { index(posts){ return Views.index(posts) } }; // 等同于 const BlogController = { index:Views.index }; // 高阶函数:函数可以作为参数 function forEach(array,fn){ for(let value of array){ fn(valu...
true
5776bca4c83682c19f0d0463b4e686d81d264126
JavaScript
zuckstar/leetcode-js
/二分查找/中等-寻找峰值.js
UTF-8
2,453
4.53125
5
[]
no_license
/* 162. 寻找峰值 峰值元素是指其值大于左右相邻值的元素。 给你一个输入数组 nums,找到峰值元素并返回其索引。数组可能包含多个峰值,在这种情况下,返回 任何一个峰值 所在位置即可。 你可以假设 nums[-1] = nums[n] = -∞ 。 示例 1: 输入:nums = [1,2,3,1] 输出:2 解释:3 是峰值元素,你的函数应该返回其索引 2。 示例 2: 输入:nums = [1,2,1,3,5,6,4] 输出:1 或 5 解释:你的函数可以返回索引 1,其峰值元素为 2; 或者返回索引 5, 其峰值元素为 6。 提示: 1 <= nums.length <= 1000 -...
true
598441daa327f6410c6b6b5ea4f2ebcbc574ceae
JavaScript
carloscorti/dareNodeAPI
/lib/controllers/clientsListController.js
UTF-8
1,828
2.515625
3
[]
no_license
/* eslint-disable indent */ import filterByQuery from '../services/filterByQuery'; import clientsFormatData from '../services/clientsFormatData'; import checkPaginationParams from '../services/checkPaginationParams'; import pagination from '../services/pagination'; /** * Controller clientsListController: sends clien...
true
7d5fd13d441a0b68edc8c657822505b5ef451bdd
JavaScript
roidesrois/Yandex_shri
/task3/scripts/main.js
UTF-8
13,824
2.515625
3
[]
no_license
/* * BeatsAlive.jS * Copyright (c) 2014 Gaurav Behere */ window.AudioContext = window.AudioContext || window.webkitAudioContext || mozAudioContext; var context = new AudioContext(); var audioAnimation, audioBuffer, source, sourceNode, analyser, audio, progressTimer = null, playList = [], indexPlaying = -1, gainNod...
true
78a552db6c47132fc10344a01e56e3bcb3e5711e
JavaScript
Jeff-Adler/AlgoPrepJavaScript
/Leetcode Problems/MaxLengthBetweenEqualCharacters.js
UTF-8
373
3.59375
4
[]
no_license
/** * @param {string} s * @return {number} */ var maxLengthBetweenEqualCharacters = function(s) { let maxLength = -1 for (let i = 0 ; i < s.length - 1 ; i++) { for (let j = i + 1 ; j < s.length ; j++) { if (s[i] === s[j]) { if (j - (i+1) > maxLength) maxLength = j - (i+1) ...
true
0778231e11a4dcd6fa185a95f5a3678583c26c2b
JavaScript
whitly1/App-project
/src/Components/todosComp.js
UTF-8
1,615
2.515625
3
[]
no_license
import React, { Component } from 'react' import TodoComp from './todoComp'; class TodosComp extends Component { constructor(props) { super(props) this.state = { user: this.props.user, todos: this.props.todos, newTodos: [], check: false, todoTitle: "" } } add = () => { let new...
true
dcc386fbd6852c64b98d06f393de431bb9702fe9
JavaScript
curtiswilcox/ShowDictionaryWeb
/src/util/helper.js
UTF-8
644
2.953125
3
[]
no_license
export function capitalizeFirstLetter(s) { if (s === undefined) return ''; return s.charAt(0).toUpperCase() + s.slice(1); } export function strip(showname) { showname = showname.toString().toLowerCase().split(" ").join(""); showname = showname.split(":").join(""); showname = showname.split("'").join(""); r...
true
a4666a94463120fbf5c751dd5a4ad8f988be8dbd
JavaScript
QTYResources/EnterpriseWebDevelopment
/appendix_a/Callback.js
UTF-8
659
3.46875
3
[]
no_license
var myTaxObject = { taxDeduction: 400, // this function takes an array and callback as params applyDeduction: function(someArray, someCallBackFunction){ for (var i = 0; i < someArray.length; i++){ // Invoke the callback someCallBackFunction.call(this, someAr...
true
2945474ff020a9466d260c6ccfab9c4c77560c6c
JavaScript
bilasyurii/anagenetic
/src/core/genome/genome-iterator.js
UTF-8
495
3.109375
3
[ "MIT" ]
permissive
export default class GenomeIterator { constructor(genes) { this._genes = genes; this._index = 0; } get current() { return this._genes[this._index]; } get hasNext() { return this._index < this._genes.length - 1; } get hasCurrent() { return this._index < this._genes.length; } nex...
true
de5251aca3b3afdd3943c86b2a74d7f43c513d8a
JavaScript
kevinqiyefa/rithm-assignments
/redux-microblog/microblog-frontend/src/components/EditablePost.js
UTF-8
1,224
2.53125
3
[]
no_license
import React, { Component } from 'react'; export default class EditablePost extends Component { state = { title: this.props.title, body: this.props.body }; handleTitleChange = evt => { this.setState({ title: evt.target.value }); }; handleBodyChange = evt => { this.setState({ body: evt.target.value });...
true
17942d854f2c47545f7030a223b765aa0ca9eb26
JavaScript
M-Nasab/Djembe
/dist/bundle.esm.js
UTF-8
7,297
2.921875
3
[ "MIT" ]
permissive
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function ownKeys$1(object, enumerableOnly) { var keys = Obje...
true
5673f616b987977cc6eab6282d0d96abddf9d469
JavaScript
miracle90/research-report-wxApp
/pages/calculator/calculator.js
UTF-8
2,585
2.6875
3
[]
no_license
// pages/calculator.js Page({ /** * 页面的初始数据 */ data: { showDialog: false, marketValue: '', marketPrice: '', // 最新一期年报净利润 a: '', // 未来三年净利润复合增速 b: '', // 净利润永续增速 c: '', // 总股本 d: '', // 常量,无风险收益率 E: '123', // 常量,信用利差 F: '66', }, /** * 生命周期函数-...
true
9f199f8159e407f6642e496e2f59053bb23ee27e
JavaScript
lucas-rds/chat-bot-agenda
/chatbot/dao.js
UTF-8
1,067
2.515625
3
[]
no_license
const { tableService } = require('./table') const entityGenerator = require('azure-storage').TableUtilities.entityGenerator; const TABLE_NAME = 'contacts'; const insertContact = (userId, contactEntity, callback) => { tableService.insertOrReplaceEntity(TABLE_NAME, contactEntity, callback); } const queryContact = ...
true
1ccca7a4ec135f99a1e985ae52fad001f5671de3
JavaScript
VirtualRez/rapiAPI
/app.js
UTF-8
416
2.8125
3
[]
no_license
//Importar la librería const express = require('express'); const process = require('process'); //preinstalada //Puerto const puerto = process.argv[2]; //Crear la variable de la api const app = express(); //ésto es expressJS //rutas app.get('/',function(req,res){ res.send('Maldito AWS'); }); //escu...
true
b839ad1c0659f0312fe367a9980ddf571021e5ae
JavaScript
yangcheng-design/yangcheng-design.github.io
/homework_6b/js/main.js
UTF-8
283
3.015625
3
[]
no_license
// Check local storage and update cart icon var currentQ = localStorage.getItem('cartQuantity'); if (currentQ === null) { cartQuantityElem.innerText = 0; } else { var cartQuantityElem = document.querySelector('.cart-num-items'); cartQuantityElem.innerText = currentQ; }
true
0f95fd26ecc059d2a7c22eec8c45100fb738dc59
JavaScript
spkelly/bakerydb
/src/Backend/db/v2/models/Sequence.js
UTF-8
1,007
2.65625
3
[]
no_license
// Mongoose Sequence Counter used to calculate Invoice Numbers const mongoose = require("mongoose"); const Schema = mongoose.Schema; const CounterSchema = Schema({ counterName: String, seq: Number, }); const Counter = mongoose.model("counter", CounterSchema); async function createCounter(name) { let c = new C...
true
9fba6a609e4ae2c9d900f7b5176237f280b55427
JavaScript
dc-maggic/LeetCode
/35.搜索插入位置.js
UTF-8
528
3.40625
3
[]
no_license
/* * @lc app=leetcode.cn id=35 lang=javascript * * [35] 搜索插入位置 */ // @lc code=start /** * @param {number[]} nums * @param {number} target * @return {number} */ var searchInsert = function(nums, target) { const l = nums.length let left = 0, right = l - 1; while(left<=right){ ...
true
d3ad9513f5216c5cbb4d4db38321241bd811e497
JavaScript
gscottqueen/maker-radio
/src/App.js
UTF-8
13,980
2.65625
3
[]
no_license
import React, { Component } from 'react'; // Components import SpotifyButton from './components/SpotifyButton'; import NowPlaying from './components/NowPlaying'; import Landing from './components/Landing' // assets import doubleArrow from './images/double-arrow.svg' import pause from './images/pause.svg' import play...
true
58dc0302a51d6916b69cce94fcc4831819f56c90
JavaScript
ngotienpts/largeer
/js/form.js
UTF-8
7,322
2.953125
3
[]
no_license
// register-form function formRegister() { let blockForm = document.querySelector("#form-register"); let phoneNumberElement = document.querySelector( "input[type='tel'][name='phone']" ); let passwordElement = document.querySelector( 'input[type="password"][name="password"]' ); ...
true
3f8e838830e058f209df569a9ab023ee8ae98a89
JavaScript
jens-ox/kapi
/routes/databases.js
UTF-8
712
2.609375
3
[]
no_license
// load required modules var express = require('express') // set up router var router = express.Router() // load database model var databases = require('./../models/databases') /** * GET / * show available endpoints */ router.get('/', function (req, res) { res.json({ subroutes: ['stats', 'available'] }) }) /**...
true
4f695158fa6f5df3a2a58471512e6b04d8ce5c22
JavaScript
a1ext0/lib
/a1component.js
UTF-8
1,816
2.921875
3
[]
no_license
export function a1component(opt) { //Родительский - main, Template = temp, Дополнительные евенты - after (on - какой элемент, type = тип события, fun = вызов функции), анимация - style return ()=> { if (event) { event.preventDefault(); } opt.element = document.querySelector(opt.main); compone...
true
d22e841cf60bcd446631cb0643825426713e1290
JavaScript
Jocs/LeetCode-js
/20.有效的括号.js
UTF-8
577
3.296875
3
[ "MIT" ]
permissive
/* * @lc app=leetcode.cn id=20 lang=javascript * * [20] 有效的括号 */ /** * @param {string} s * @return {boolean} */ var isValid = function(s) { const brackets = s.split('') const HASK = { '{': '}', '[': ']', '(': ')', ')': '(', ']': '[', '}': '{' } const stack = [] while (brackets.l...
true
f5349cd058cf836244815cc1347121dd93f1e3df
JavaScript
Sianfinlay/students-redesign-banking-assignment
/forms/js/mortgagecalc.js
UTF-8
463
2.6875
3
[]
no_license
// Mortgage Calc.js // Authors: Sian Finlay, James McCartan, Rebecca ferris, Stephanie Hughes // HTML file: js/mortgagecalculator.html $(document).ready(function() { $("#calculate").click( function(){ var $mortReq = parseInt($("#mortReq").val()); var $repayPeriod = parseInt($("#repayPeriod").val()); var $...
true
6576bb08a73588cea1753e68555e54318296671e
JavaScript
rflramos/projeto-healthtrack
/Servlets/WebContent/resources/js/confirmNovSenha.js
UTF-8
891
2.765625
3
[ "MIT" ]
permissive
window.onload = function() { var oNewPwd1 = document.getElementById("newpass1"); var oMsgTextid = document.getElementById("msgtext"); oNewPwd1.onblur = function(){ var oRegExpNewPwd1 = new RegExp("^[A-Za-z0-9]{6}$"); if (oRegExpNewPwd1.test(oNewPwd1.value)==false) { oNewPwd1.style.borderColor = "red"; oMsgT...
true
ede676d33f959f17aacadf473e749c4aa5c36e23
JavaScript
kingeunji/Todolist_server
/controller/todo.controller.js
UTF-8
2,316
2.546875
3
[]
no_license
const Todo = require('../models/Todo'); exports.getAll = (req, res) => { const { user_id } = req.body; if (!user_id) { res.status(400).send({ message: "Content can not be empty!" }); return; } Todo.getAll(user_id, (err, data) => { if (err) { ...
true
a11049a15776fd63d95c59c7bf41d4c8d7afa438
JavaScript
nickamorg/Multimedia-Player
/project/client_last/app/js/src/voice/voice.controller.js
UTF-8
359
2.609375
3
[]
no_license
//******************************************* // VOICE CONTROLLER FILE //******************************************* var Voice = (function () { /** * Central Manager for voice commands * * @param {string} cmd */ function Manager(cmd) { console.error("Unhandled voice command: " + cmd); } r...
true
c6e989fa98e4815f69d64579c2009635fbe5aa00
JavaScript
JuliaNeumann/randomTime
/app/services/randomTime.js
UTF-8
2,064
3.03125
3
[ "MIT" ]
permissive
const db = require("./db"); const configService = require("./config"); exports.createWeekPlan = async function createWeekPlan(entireTime, user) { if (!entireTime || !user) { return 'Provide a valid number of hours and user name to create a weekplan!'; } const config = await configService.getConfig(user); ...
true
22765eec57490e200cea2319e1d263e35ba8959d
JavaScript
venkatanareshyerramsetty/JavaScript_Complete_Templete
/JS_Completed_Template/05_JS_Conditional_Statements/05_script.js
UTF-8
2,212
4.375
4
[]
no_license
// If Else condition Example var courseCompleted = true; var practiceCompleted = false; if(courseCompleted && practiceCompleted){ console.log('You Will get the Job Soon'); } else if(courseCompleted && !practiceCompleted){ console.log('Please practice the course'); } else{ console.log('Please join some cours...
true
06a26b7fd3720ba98dfe8b3f07a585878b6c0c3d
JavaScript
madsondecarvalho/crawlerAPI
/controllers/mercadoLivreController.js
UTF-8
2,694
2.921875
3
[]
no_license
const cheerio = require('cheerio'); const utils = require('../utils/utils') const urlMercadoLivre = "https://lista.mercadolivre.com.br/" const search = async (req, res) => { const {search, limit} = req.body const urlPesquisa = `${urlMercadoLivre}${search}#D[A:${search}]` let html = await utils.getHTML(ur...
true
a49881a462c6df48b487f53c40cebb83632aa186
JavaScript
krishna-saurav/react-tutorials
/03-jsx/src/App.js
UTF-8
673
2.859375
3
[]
no_license
import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { _sayHey(){ alert("hey"); } render(){ let text = "Dev-Server"; let pStyle = { color: 'aqua', backgroundColor: 'black' }; return ( <d...
true
569a60adc1e5b682e684ec94b113f03243560059
JavaScript
jackisjack/code-is-alive
/map.drawing/Element.js
UTF-8
12,137
2.734375
3
[]
no_license
var EnumChildType = { Bitmap: 0, Text: 1, Element: 2, // container principal de l'élément SurfaceCliquable:3, Lien:4 } var EnumTypeCoord = { Local: 0, Global:1 // MainContainer } var ElementClass = Class.extend({ initialize: function (ParametresElement) { // Contrôle des para...
true
e06b80817cf52db8effa59422e40143d04a2e1e4
JavaScript
GiovannyRoman101/LeetCode
/Strings_Arrays/string_to_integer.js
UTF-8
1,023
3.78125
4
[]
no_license
/** * @param {string} str * @return {number} */ // solution one var myAtoi = function(str) { const max = Math.pow(2,31)-1 const min = Math.pow(-2,31) let num = 0 const codeZero = 48 const codeNine = 57 for(let i = 0; i < str.length;i++){ if(str[i] === ' '){ continue }else if(str[i] === '-' ||str[i] =...
true
385f42aeb58ed889e2b33cc6667ca8a6c17e256e
JavaScript
thaimoc/javascriptArrayIndeep
/indexof.js
UTF-8
920
3.25
3
[]
no_license
/** * Created by Kim Nguyen on 4/21/2017. */ // Array.prototype.indexOf(); var family = ['Shane', 'Sally', 'Isaac', 'Kittie']; var kittieExists = family.indexOf('Kittie') > -1; if(!kittieExists){ family.push('kittie'); } console.log(family); // Output[0]:: [ 'Shane', 'Sally', 'Isaac', 'Kittie' ] console.log...
true
654b28cb32530da8bc40ea5046193b226dc26a4c
JavaScript
AdrixSC/eco-shop
/js/app.js
UTF-8
14,225
3.03125
3
[]
no_license
const container = document.getElementById('container'); //jalando contenedor del html const containerAll = document.getElementById("container-all") // jalando contenedor general del html window.addEventListener('load', () => { //evento para llamar a la funcion principal getJson(); }) getJson = (e) => { //funcion p...
true
d4e19e86f6e9c2372909b7b9064f4363777c4097
JavaScript
avinaashdhumal/problem-solving
/Pig Latin/solution.js
UTF-8
556
3.640625
4
[]
no_license
const VOWELS = ["a", "i", "o", "e", "u"] function translatePigLatin(str) { let newStr = ""; // console.log(str[0]) if (VOWELS.includes(str[0])) { return str + "way" } else { for (let l of str) { if (VOWELS.includes(l) !== true) { newStr += l } ...
true
147696930dbf7d0cc623d02cdfc58d5f1e7cf7d2
JavaScript
brandonhdez7/data_structures-_and_algoriths
/Data_structures_and_algoriths/Problem_solving_approach/sliding_window.js
UTF-8
1,106
4.03125
4
[]
no_license
function maxSubarraySum(arr, num){ if(num > arr.length){ return null; } let max = -Infinity; for (let i = 0; i < arr.length - num + 1; i ++){ temp = 0; for (let j = 0; j < num; j++){ temp += arr[i + j]; } if(temp > max){ max = temp; ...
true
c239b224d497c691571d84e3fc3cae046c54590f
JavaScript
RyosukeCla/go-todo-app
/client/src/pages/index.js
UTF-8
2,586
2.640625
3
[]
no_license
import h from 'react-hyperscript' import React from 'react' export default class extends React.Component { constructor(props) { super(props) this.state = { todos: [], currentText: '' } } async componentWillMount() { const data = await fetch('/api/todo/get', { method: 'GET' }) con...
true
ba40fe10801f5ff1993f822e7cbca65fb93f188b
JavaScript
xilixjd/xjd-react-study
/copy-anu/redux/counter-vanilla/myRedux.js
UTF-8
6,406
2.78125
3
[]
no_license
let Redux = (function() { let ActionTypes = { INIT: "@@myRedux/INIT" } function createStore(reducer, preloadedState, enhancer) { if (typeof preloadedState === "function" && typeof enhancer === "undefined") { enhancer = preloadedState preloadedState = undefined ...
true
fff9718d4d9e5927bc840cc8b0dee704958b569c
JavaScript
TheRealMpchambers/ThunderCatRpg
/assets/javascript/game.js
UTF-8
6,734
3.3125
3
[]
no_license
// Global Variables var baseAttack = 0; var player; var defender; var charArray = []; var playerSelected = false; var defenderSelected = false; //Constructor function Character (name, hp, ap, counter, pic) { this.name = name; this.healthPoints = hp; this.attackPower = ap; this.counterAttackPower = cou...
true
8cabf6ce82d0dbb80047410690ffeff269c49a5c
JavaScript
supermina999/TUI2016-9-2
/demo1/ex.js
UTF-8
513
2.96875
3
[]
no_license
function rururu(f){ var a = []; var na = []; a = f.split("\r\n"); for(var i=0; i<a.length; i++){ na.push(a[i].split(' ')) } var obj1 = {} obj1.m = na[0][0] obj1.n = na[0][1] obj1.Turns = na[0][2] obj1.Mode = na[0][3] obj1.g1 = {x: na[1][0], y: na[1][1] } obj1.g2 = {x :...
true
d8abebdd2748b17c809b798b84d4d2ff8bbfe32c
JavaScript
dhis2/dev-academy-2017
/day2-hello-d2/src/index.js
UTF-8
1,414
2.59375
3
[]
no_license
import React from 'react'; import ReactDOM from 'react-dom'; // Import the init function from D2 import { init } from 'd2/lib/d2'; const rootEl = document.getElementById('root'); // Prepare the D2 init config: const initConfig = { baseUrl: 'http://localhost:8080/dhis/api', schemas: ['user', 'dataSet'], headers...
true
03ff20b241975b4df2790114c740588c81660583
JavaScript
yufeiliu/expression-parser
/src/calc.js
UTF-8
9,322
3.03125
3
[ "MIT" ]
permissive
var tokenRegexes = { operator: /^[\+\-\*\/\^]/, number: /^[\d]?[\.]?[\d]+/, signedNumber: /^([\+]|[\-])?[\d]?[\.]?[\d]+/, variable: /^[a-zA-Z][a-zA-Z0-9_]*/, signedVariable: /^([\+]|[\-])[a-zA-Z][a-zA-Z0-9_]*/, equalSign: /^[\=]/, leftParent: /^[\(]/, rightParent: /^[\)]/, whitespace: /^[ ]+/ }; func...
true
a662fef7b4d08b90332137ae790c2925f365c810
JavaScript
LegendaryPayne/IAM-BHAM-ALL
/routing-react/src/Components/People.jsx
UTF-8
1,413
2.59375
3
[]
no_license
import React from "react"; import "isomorphic-fetch"; import "es6-promise"; import { Link } from 'react-router-dom'; class People extends React.Component { constructor(props) { super(props); this.state = { person: [] }; } componentDidMount() { fetch("https://ghibliapi.herokuapp.com/people"...
true
6e8678f2e9e2f9dc12048c8a25805544637b4784
JavaScript
seichiyami/LearningWebAppDev
/Chapter8/app.js
UTF-8
4,733
2.75
3
[]
no_license
// Server-side code /* jshint node: true, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, nonew: true, quotmark: double, strict: true, undef: true, unused: true */ var express = require("express"); var path = require("path"); var logger = require("morgan"); var cookieParse...
true
d11c113319c2b08f35ce8dcd7dce8e997b8212ad
JavaScript
SanOld/edocs-yii
/web/js/lib/redefine_dhtmlxGantt.js
UTF-8
1,846
2.53125
3
[ "BSD-3-Clause" ]
permissive
gantt._calc_grid_width = function () { var columns = this.getGridColumns(); var cols_width = 0; var unknown = []; var width = []; for (var i = 0; i < columns.length; i++) { var v = parseInt(columns[i].width, 10); //дополнил 26.11.2016 if(columns[i].hide){ v = 0; columns[i].old_width = colum...
true
c4d6a7ec809d51ff14d7ef08888eadf96426f42e
JavaScript
chadwithuhc/tattle-tale
/test/extract.test.js
UTF-8
743
2.6875
3
[ "ISC" ]
permissive
const extract = require('../lib/extract') const dummyUrl = `https://travis-ci.org/chadwithuhc/json-parser-code-challenge/builds/398656240?utm_source=github_status&utm_medium=notification` describe('extract', () => { describe('.buildIdFromUrl()', () => { test('is a function', () => { expect(typeof extract.b...
true
7cef68fb11f2a30ecf473b24fded94c666db3327
JavaScript
ezequielccjl/Ecos-instrumentos
/JS/modal.js
UTF-8
2,889
2.84375
3
[]
no_license
let arrayImagenesProductos = []; let id; let fullProduct; let ventanaModal; let overlay; let btnCerrarModal; document.addEventListener("DOMContentLoaded", function(){ setTimeout(()=>{ arrayImagenesProductos = document.querySelectorAll(".img-top") ventanaModal = document.querySelector("#ventana-mod...
true
60830b64ff21401cc7b5a4682ddeccfb84e89a13
JavaScript
cesarsan8a/sei-34
/14-advanced/promises/promises.js
UTF-8
1,099
3.984375
4
[]
no_license
// Promises are an evolution of callbacks. // a way to handle or process data from async sources, whenever they're ready. const fs = require('fs'); // readfile is async // fs.readFile('simpsons.txt', 'utf-8', (err, content) => { // // error first pattern // if (err) { // throw err; // dramatic exit // } /...
true
26acc2ac1741ff6c73da263eb3e1f5f7ccf8f5e1
JavaScript
tbriany/movieapp
/backend/queries/movieQueries.js
UTF-8
1,718
2.75
3
[]
no_license
const db = require('../db/db') // get all movies const getAllMovies = async () => { const getAllMovies = ` SELECT movie_title FROM movieLikes `; return await db.any(getAllMovies); } // check if movie exists in database const checkIfExists = async (title) => { const checkIfExists = ` SELE...
true
ca2ad8cb77906b4082f7a9c74dad51d4253c0b5d
JavaScript
romanowski/studia
/hipermedia/fix/sensor/js/script.js
UTF-8
7,200
2.546875
3
[]
no_license
var sensorId; //var monitorUrl = "localhost/sensor/test/" var monitorUrl = "http://hipermedia.iisg.agh.edu.pl:8080/monitor/rest/sensor/" var mockData = "{\"id\":\"12\",\"sensor\":\"http://hipermedia.iisg.agh.edu.pl:8080/monitor/rest/sensor/12\",\"measure\":\"%\",\"dataType\":\"float\",\"result\":[\"0,01\",\"0...
true
d9e95f68dbec720d36c0ab69323f0865b26a5a8d
JavaScript
Charlesvdb/Project4InARow
/Javascript/board.js
UTF-8
3,530
3.609375
4
[]
no_license
class Board { constructor(game) { this.grid = [ [null,null,null,null,null,null,null], [null,null,null,null,null,null,null], [null,null,null,null,null,null,null], [null,null,null,null,null,null,null], [null,null,null,null,null,null,null], ...
true
b2f5a447308d181a4df56a3b1066ba2029e304b9
JavaScript
Cuong23122001/day2_22-7-2021
/server.js
UTF-8
723
2.6875
3
[]
no_license
const { link } = require('fs'); const http = require('http') const hostname = 'localhost' const port = 3000; const server = http.createServer((req,res)=>{ res.setHeader('Content-type','text/html') switch(req.url){ case '/home': case '/': res.end('<h1>Home page 2</h1> <p><a href="/ab...
true
a3fe75acfb6d131b44c4f57fecade89e9aaf04f6
JavaScript
LauraGwendolynBurch/Auto_ReadME
/generateMarkdown.js
UTF-8
1,109
2.5625
3
[ "Apache-2.0" ]
permissive
// function to generate markdown for README function generateMarkdown(data) { return ` # ${data.title} ## Description ${data.description} ## Table of Contents * [Title](#Title) * [Description](##Description) * [Link-to-project](##Link-to-project) * [Installation](##Installation) * [User-Story](##User-S...
true
b6cb7690761a15047a357813787283b17ff2da7a
JavaScript
ecancino/transducers
/index.test.js
UTF-8
1,049
2.78125
3
[]
no_license
import { into, map, filter, compose, merge, identity } from 'ramda' import { getTime } from 'date-fns' import { setAge, celebrate, isFemale, isMale, formatBirthday } from '.' const adriana = { firstName: 'Adriana', lastName: 'Zubieta Zavala', birthday: getTime('04/02/1977'), gender: 'F' } const eduardo = { firstName...
true
f48a9bf1b88b8885ea22985dfde219d1775a92da
JavaScript
DamianoD88/js-simon
/ja/script.js
UTF-8
1,230
3.828125
4
[]
no_license
// Un alert espone 5 numeri casuali. Da li parte un timer di 30 secondi. var randomNumeri = []; var numeri = 5; var numeroRandom = numeriRandom(1,100); console.log(numeroRandom); while(randomNumeri.length < numeri){ var numeroRandom = numeriRandom(1,100); if(!randomNumeri.includes(numeroRandom)){ ra...
true
e58b5f669eb0232d4bd352c6e9dcc3436b334740
JavaScript
peterckim/js-dom-and-events-advanced-selectors-readme-v-000
/js/selectors.js
UTF-8
510
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
// declare your functions here... function paragraphSelector() { let paragraphElements = $("p"); return paragraphElements; } function lastImageSelector() { let lastImage = $("img:last"); return lastImage; } function ninjaBabySelector() { let ninjaBabyImage = $("img#baby-ninja"); return ninjaBabyImage; ...
true
e731abb30cf3afc13bfd4069dcbb9690f518357f
JavaScript
annaship/site2
/gallerysite/scripts.js
UTF-8
4,630
3.046875
3
[]
no_license
var imgNumber; var thumbObj; var isEven = function(someNumber){ return (someNumber%2 == 0) ? true : false; }; function addBorder(thumb) { thumb.style.border='1px solid'; } function removeBorder(thumb) { thumb.style.border='0px'; } function change_big_one(thumb){ document.getElementById('BigOne').src=t...
true
ee177b642dba0989cd98bb98bfe3e1758f941b9e
JavaScript
AtakanYigit/NeoPro
/index.js
UTF-8
1,866
3.171875
3
[]
no_license
//Video let counter = 0; document.getElementById("mainVideo").volume = 0; const videoPlayPause = () =>{ document.getElementsByClassName("playButton")[0].classList.toggle("fadeIn"); document.getElementsByClassName("playButton")[0].classList.toggle("fadeOut"); if(counter % 2 == 1){ document...
true
cd5936013453e67f8111b0ae2e625f42537d9875
JavaScript
kengz/underscore
/experiment-lodash.js
UTF-8
25,161
2.984375
3
[ "MIT" ]
permissive
// high perf, R-like math lib implemented using lodash var _ = require('lodash'); // var _ = require('underscore'); var m = require('mathjs'); // cbind // random then distribution // Regex // ~general structure transformation // ~log exp // ~subsetting, combination // ~init array to dim all 0 // logical // index summ...
true
ff418ddb38f945e1e1bccae1efc5cfa67fcacf8f
JavaScript
jeankuotw/RWD_design-Jean-
/js/product.js
UTF-8
1,007
2.6875
3
[]
no_license
$(function() { // 監測.topicon click動作 $(".topicon").click(function(e){ e.preventDefault(); $("body,html").animate({scrollTop:0},2500); }) // 監測漢堡選單hidemenu click動作,會出現直排的menu $(".hamburgermenu").on('click', function(e){ // 取消<a>預設超連結功能 e.preventDefault(); // 將.nav套上class後,menu即可開合 $(".nav").toggleCl...
true
098d2327f07221be60879c0b1b0caec1ea7c4fa0
JavaScript
sarahheacock/interview
/StacksQueues/stackPlates.js
UTF-8
1,011
3.875
4
[]
no_license
// implement data structure SetOfStacks const Stack = require('./Stack.js'); function SetOfStacks(){ this.length = 0; this.limit = 3; this.store = {}; } SetOfStacks.prototype.push = function(val){ if(!this.length || this.store[this.length - 1].length % this.limit === 0){ this.store[this.length] = new Stac...
true
19e723efc52e19783063c38e553dd06529301778
JavaScript
danieltorrer/lab
/dailies/170213.js
UTF-8
3,001
2.859375
3
[ "MIT" ]
permissive
/* Copyright 2017 Keith Peters Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
true
66fe0ac6a6b572b8dcc06b0ab33270be24fe1c8e
JavaScript
lynnsamuelson/E15-Kennels
/src/components/location/LocationList.js
UTF-8
2,088
2.96875
3
[]
no_license
import React, { useContext, useEffect } from "react" import { LocationContext } from "./LocationProvider" //import context, not provider import "./Location.css" import { render } from "@testing-library/react" export const LocationList = () => { // This state changes when `getAnimals()` is invoked below const { loc...
true
3e6a96e264b10f400013a5da07cc592e4bbd6f9d
JavaScript
hao-wang/Montage
/js-test-suite/testsuite/32935ebeb2ad57ee642b768e96104e9d.js
UTF-8
367
3.390625
3
[ "MIT" ]
permissive
var array; function bar(x) { array.push(x); } function foo(n) { var x = n + 1000; bar(x); x += 1000; bar(x); x += 1000; bar(x); } noInline(bar); noInline(foo); for (var i = 0; i < 10000; ++i) { array = []; foo(2147483647); if ("" + array != "2147484647,2147485647,2147486647")...
true
3c3e0de1f1fd17e6601675abd7359e80228d6525
JavaScript
codyn-net/rawc
/libcdnrawc/Programmer/Formatters/JavaScript/Resources/Cdn.Math.js
UTF-8
7,804
2.796875
3
[]
no_license
if (!Cdn.Math) { (function(Cdn) { Cdn.Math = { abs: Math.abs, acos: Math.acos, asin: Math.asin, atan: Math.atan, atan2: Math.atan2, ceil: Math.ceil, cos: Math.cos, exp: Math.exp, floor: Math.floor, ln: Math.log, log10: function(v) { return Math.log(v) / Math.LN10; }, pow: Math.pow, ro...
true
cd61b3a53138ed6f86a2263932dc6b0c8c8d62ad
JavaScript
YasmitDaysi/LIM011-fe-md-links
/src/validateLink.js
UTF-8
888
2.609375
3
[]
no_license
const fetch = require('node-fetch'); const validateLinks = require('./main'); const functionValidate = (ruta) => { const arrPromise = validateLinks.getAllLinks(ruta).map((Element) => { const obj = {}; return fetch(Element.href) .then((resolve) => { obj.status = resolve.status; obj.href...
true
ca6330dd54e0456e7ba64aa5e2971006a1ef8f6d
JavaScript
amgarrett09/node-autocomplete-trie
/__tests__/autocomplete.test.js
UTF-8
3,591
3.0625
3
[]
no_license
/* eslint-disable no-undef */ const AutoComplete = require('../index'); test('empty tree contains no children', () => { const trie = new AutoComplete(); expect(trie.root.children).toEqual([]); }); test('add method works', () => { const trie = new AutoComplete(); trie.add('hello'); // Root should have one ...
true
37637327f68e59ca77cfddc4997929a0a93d16ed
JavaScript
RicardoFideles/mobile-flashcards
/containers/QuizContainer.js
UTF-8
3,037
2.671875
3
[]
no_license
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { Button, Card } from 'react-native-elements'; class QuizContainer extends Component { state = { showQuestion: true, questions: [], currentQuestion: 0, correctAnswers: 0, }; static navigationO...
true
e21914246ef29f61f7d8bc0ddd39a0adc9460b7b
JavaScript
PatrykPZieba/Patryk-Zieba-grupa-3-2
/Projekt nr 3 note/script.js
UTF-8
3,543
2.984375
3
[]
no_license
function cleanTitle(){ document.getElementById("titleinp").value=""; } function changeNoteColor(color){ var Note = document.getElementById("topNote"); Note.style.backgroundColor=color.id; } function add(){ var NoteNumber=document.getElementById("Notecount").innerHTML; var NoteTittle = document.getEl...
true
a2542accd54d65cfcc65c3ad650738db6561abed
JavaScript
milahose/EI
/node/node-intro-to-unit-testing/test/test-fizz-buzzer.js
UTF-8
1,070
3.515625
4
[]
no_license
// import chai, declare expect variable const expect = require('chai').expect; // import fizzBuzzer const fizzBuzzer = require('../fizzBuzzer'); describe('fizzBuzzer', function() { // test the normal case it('should return "fizz-buzz" for multiples of 15', function() { [15, 30, 45].forEach(num => { exp...
true
0f2d215ddaeff1f1ac8a61841dd969162e2af771
JavaScript
sabbagh99/lab_work
/class_03/js/app.js
UTF-8
3,201
3.65625
4
[]
no_license
'use strict' alert('Hello in about me page, I will give you a quick quiz about me answer with (yes/no)') var correctAnswer = 0; var Q1 = prompt('Do you think my age is 32? '); // console.log(Q1); alert("Your answer is: " + Q1); switch (Q1.toLocaleLowerCase()) { case 'yes': case 'y': alert('No its actual...
true
52936de2b4a14fe659d03ad2aa0cc3f6f7fc5f25
JavaScript
K-Sato1995/blog-react
/src/actions/categories.js
UTF-8
1,082
2.59375
3
[]
no_license
import { baseUrl } from "../middlewares/Api/V2"; export const FETCH_CATEGORIES_BEGIN = "FETCH_CATEGORIES_BEGIN"; export const FETCH_CATEGORIES_SUCCESS = "FETCH_CATEGORIES_SUCCESS"; export const FETCH_CATEGORIES_FAILURE = "FETCH_CATEGORIES_FAILURE"; export function fetchCategories() { return dispatch => { return f...
true
178bddf9c7239094841d1cc035b85657864d58fe
JavaScript
aaronprim/Bootcamp
/MERN/faker_api/server.js
UTF-8
2,232
2.625
3
[]
no_license
const express = require("express"); const app = express(); const faker = require('faker'); // const { unstable_renderSubtreeIntoContainer } = require("react-dom"); // const { scryRenderedComponentsWithType } = require("react-dom/test-utils"); const port = 6000 ; app.use( express.json() ); app.use( express.urlencoded({...
true
795a532906d69eaca8130805a6243c0c095eed8d
JavaScript
hemanthprodduturi/fyp
/routes.js
UTF-8
1,716
2.78125
3
[]
no_license
function calculateAndDisplayRoute(directionsService, directionsDisplay) { directionsService.route({ origin: { lat: 17.401221, lng: 78.560211 }, destination: { lat: 17.368227, lng: 78.527245 }, travelMode: google.maps.TravelMode.DRIVING, ...
true
a167e9e816e1bccb5d95f9f72e48f138475ec734
JavaScript
JRS-Developer/typescript-learning
/5. Types And Unions/main.js
UTF-8
2,376
3.671875
4
[]
no_license
// ╔══════════════╗ // 5 TYPES Y UNIONS // ╚══════════════╝ // 5.1 Union Operator // --------------------------------------- // Se usa el signo | entre los tipos, esto indica que puede ser un tipo u otro, EJ: userName: string | number = dato // Tambien se puede hacer uso de interfaces // interface UserInterface { // n...
true
42b42d8da9d6c5c598fa86afc8d630c6a3d34e5d
JavaScript
egyapolley/mme2_report
/public/js/reset_pass.js
UTF-8
1,611
2.515625
3
[]
no_license
const newpass1 = document.getElementById("newpass1"); const newpass2 = document.getElementById("newpass2"); const reset_submit_btn = document.getElementById("reset-submit-pass-btn"); const reset_cancel_btn = document.getElementById("reset-cancel-pass-btn"); const success_box = document.getElementById("reset-pass-grou...
true
fade8c2c93f2864a646aa1b69472585cbdee8380
JavaScript
hilvitzs/sorting-suite
/tests/mergeSort-test.js
UTF-8
1,114
3.171875
3
[]
no_license
import { mergeSort, split } from '../index/mergeSort'; import { assert } from 'chai'; import { generateRandomNumber } from '../index/randomNumber'; describe('mergeSort', () => { it('should be a function', () => { assert.isFunction(mergeSort); }); it('should have an array', () => { assert.isFunction(merg...
true
b84bc78169f52ad367f829f24cb356ed39238022
JavaScript
Bobris/Njsast
/Test/Input/Bundler/BundleBug9/out/cbm-bundle.js
UTF-8
108
2.875
3
[ "MIT" ]
permissive
(() => { function n(n, f) { return n + f; } let f = n(1, 2); console.log(f); })();
true
905aa8cdf29cebb374f267400ccf6b3f9baa7f49
JavaScript
barnebys/bimp
/lib/providers/proxy.js
UTF-8
550
2.671875
3
[ "MIT" ]
permissive
const request = require("request"); const fileType = require("file-type"); module.exports = path => new Promise((resolve, reject) => { request({ url: path, encoding: null }, (err, response, file) => { if (err || response.statusCode !== 200) { return reject(new Error("Could not fetch image")); ...
true
53388b426fc0c8e03b06c594ad92dcdf6d0e9051
JavaScript
Adela2012/blog
/my-react-app/src/views/marquee/index.jsx
UTF-8
2,628
2.53125
3
[]
no_license
import React, { Component } from 'react'; // import { Link } from 'react-router-dom'; import './style.scss'; class Marquee extends Component { constructor(props) { super(props) this.state = { curTranslateY: 0, height: 0, length: 0, curIndex: 0, ...
true
7ce80bfcbfe588d52fb5b6fa4c11b943c39f187b
JavaScript
meilke/word-count-stream
/test/stream-reader.spec.js
UTF-8
1,666
2.765625
3
[]
no_license
var expect = require('expect.js'), streamReader = require('../src/stream-reader')(), stringStream = require('../src/streams/string-stream')(), httpStream = require('../src/streams/http-stream')(), random = require('randomstring'), _ = require('lodash'); describe('The stream reader', function () { it('can ...
true
6c239274b28299f26a4df971054cf02d4fb4a42e
JavaScript
sydney-araujo-11/Web-Dev-Fundamentals---IPL-Cricket-Teams-
/player_data.js
UTF-8
2,048
2.875
3
[]
no_license
console.log("Script Running") var playerId = window.location.search.split('=')[1]; var PlayersFromStorage = localStorage.getItem('New-Player') === null ? [] : JSON.parse(localStorage.getItem('New-Player')); var container = document.getElementById("container") for(var i = 0; i < PlayersFromStorage.length; i++ ) ...
true
47871a6235801676d9c3f133ce5f025c48fe2f74
JavaScript
Brenomorais/JavaScript
/valores-null-e-undefined/valores-null-e-undefined.js
UTF-8
212
4.03125
4
[]
no_license
// quando uma variavel e iniciada sem nenhum valor ele fica com undefined var x = null; console.log(x); if(x != null){ console.log('Existe um valor em x:', x); }else{ console.log('X não tem um valor util'); }
true
4b4c50b672ace1412aa75d9c2f2460fa4d7c34db
JavaScript
silaLi/SilaLi.github.io
/component/Container/lib/Container_DomAttr.js
UTF-8
471
2.578125
3
[]
no_license
Container.set('Attr', function () { return function(elem){ return{ get: get, set: set, remove: remove } function get(name){ return elem.getAttribute(name); } function set(name, value){ elem.setAttribute(name, value);...
true
008b077a1611429e1b11a04977f5686cb75e5b58
JavaScript
Monyancha/lunch
/src/actions/tags.js
UTF-8
1,895
2.5625
3
[ "MIT" ]
permissive
import ActionTypes from '../constants/ActionTypes'; import { credentials, jsonHeaders, processResponse } from '../core/ApiClient'; export function invalidateTags() { return { type: ActionTypes.INVALIDATE_TAGS }; } export function requestTags() { return { type: ActionTypes.REQUEST_TAGS }; } export function ...
true
055ef9b9fa920d427b9d08f7ebc0ff2497ada144
JavaScript
inakiap/JEE
/EjemploMVC/WebContent/res/js/main.js
UTF-8
4,178
2.984375
3
[]
no_license
var xmlHttp = null; function iniciaObjetoRequest () { return new XMLHttpRequest(); } function rellenaCaja() { xmlHttp = iniciaObjetoRequest(); xmlHttp.onreadystatechange = procesarEventos; xmlHttp.open('GET', 'CargaMenuSelect?num=30', true); //indicamos como vamos a enviar los datos, en este caso con e...
true
27fc5c62e90026f13d3f9d685313a23f00abb6d5
JavaScript
jafjuliana/jogomisterio
/source/js/main.js
UTF-8
5,110
2.875
3
[]
no_license
$(function() { var objArmas, armas, objCriminosos, criminosos, objLocais, locais; var arrayArmas = []; var arrayCriminosos = []; var arrayLocais = []; var arraySorteio = []; var userCriminoso, userLocal, userArma, resultado; var objMisterioId, objParse, idUser; $(".options").hide(); ...
true
be774bf5551ad21e702e738d7b3732d0ddf4429c
JavaScript
djiaak/piano-web
/client/util/storage.js
UTF-8
885
2.625
3
[ "MIT" ]
permissive
import localStorageDataAccess from './localStorageDataAccess'; import { PIANO_KEY } from '../constants/storageKeys'; class Storage { fileKey(filename) { return `file_${filename}`; } loadFileData(filename) { return localStorageDataAccess.load(this.fileKey(filename)); } saveFileData(filename, key, da...
true
ca7214ee39a059abbb59dff6d01c9ddc393ec6b5
JavaScript
tywalker/woodshedding_with_js
/prototypal_inheritance/index.js
UTF-8
486
3.421875
3
[]
no_license
// Object inheritance with concatenation // const furry = { furry: true } const meows = { meows: "meow meow" } const barks = { barks: "bork bork" } const slinks = { slinks: true } const isAClutz = { isAClutz: true } const Dog = (opts) => { return Object.assign({}, furry, barks, isAClutz) } const Cat = (opts) => { ...
true
9b83e12fa1b20cde5478ee1ffcb225940bb95f01
JavaScript
fawazpro/app.skillhub
/assets/js/cart.js
UTF-8
9,970
3.421875
3
[ "MIT" ]
permissive
// ************************************************ // Shopping Cart API // ************************************************ var shoppingCart = (function () { // ============================= // Private methods and propeties // ============================= cart = []; // Constructor function I...
true
54108bf627ea059263e42d99c8d8c5268c96efbb
JavaScript
daviddinh/adventofcode2020
/04b-solution.js
UTF-8
1,361
2.984375
3
[]
no_license
const requiredFields = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"] const validEyeColors = ["amb", "blu", "brn", "gry", "grn", "hzl", "oth"] let validPassports = require("fs") .readFileSync("./04-input.txt", "utf-8") .split("\n\n") .map(e => e.split("\n").join(" ").split(" ")) .map(e => e.reduce((pass...
true
28a43afee35b0b8657b0b3781ca918575584bdce
JavaScript
instagram-inc/instagram
/instagram/src/common/UI/FollowButton/FollowButton.js
UTF-8
792
2.671875
3
[]
no_license
import React, { Component } from "react"; import classes from './FollowButton.module.css'; class FollowButton extends Component { state = { isFollowing: false } toggle = () => { this.setState({ isFollowing : !this.state.isFollowing }); } render() { let {followButton, ...
true
cc56616303ee3ad2b0502409ea07a712262e49ee
JavaScript
Emily-Graham/cookingAppEmily
/javaScript/recipeManager.js
UTF-8
4,920
3.1875
3
[]
no_license
// create html const createRecipeHtml = (id, name, category, time, ingredients, instructions, image) => { const html = `<div class="recipe-set" data-id-number="${id}" name="${name}"> <h4 class="time">${time}</h4> <div class="recipe-image-div"> <img class="recipe-ima...
true
17d424f4f4ba4848ac2f5d4435b8c50ae8adf1e8
JavaScript
dweikel/431WebDev
/inClass/4:6/request_demo_complete/js/index.js
UTF-8
453
2.6875
3
[]
no_license
// --------------------- // Request Data // --------------------- var json = (function () { var json = null; $.ajax({ 'async': false, 'global': false, 'url': 'http://mysafeinfo.com/api/data?list=beatlesalbums&format=json', 'dataType': 'json', 'success': function (data) {...
true
e9f508fb04f11129b6e9d50ef1895791bf394458
JavaScript
german-stoyanov/softuni
/JS Core/JSFundamentals/10.Lab-JavaScript Objects and Assoc Arrays/08. City Market.js
UTF-8
1,094
3.015625
3
[]
no_license
function solution (input = []) { let townData = new Map(); input.forEach(element=>{ let tokens = element.split(' -> ') let town = tokens[0]; let product = tokens[1]; let value = tokens[2].split(' : ').reduce((a,b)=>a*b); let productMap = new Map(); productMap.set(...
true
7d8b3b618b1a2d6db6a88d0c00f43d1e289d471b
JavaScript
Intesar-Haque/LibrarySystem-PHP
/js/signup-script.js
UTF-8
1,672
2.53125
3
[]
no_license
$(function() { $("#signupForm").validate({ rules: { signup_uname: { required: true, minlength: 4 }, signup_email: { required: true, email : true }, signup_pass: { required: true, pwcheck: true, ...
true
547faeacefca7dba964a715a7c9df1f04e2634b3
JavaScript
d88naimi/Flashcard-Generator
/app.js
UTF-8
1,226
3.953125
4
[]
no_license
// Includes the FS package for reading and writing packages var fs = require("fs"); // dependency for inquirer npm package // var inquirer = require("inquirer"); // constructor function used to create BasicCard objects function BasicCard(front, back) { this.front = front; this.back = back; } module.exports = B...
true