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
c40d133f9b954ba876d3011dda467d7577f3da75
JavaScript
yantsishko/leetcode
/counting-bits/counting-bits.js
UTF-8
472
3.390625
3
[]
no_license
/** * @param {number} num * @return {number[]} */ var countBits = function(num) { const result = []; const map = new Map(); map.set(0, 0); for (let i = 0; i <= num; i += 1) { const prev = i >>> 1; if (i % 2 !== 0) { result.push(1 + map.get(prev)); map.set(i, 1...
true
b4245a58bc55e798abb0c1eeecb6eebfc4d9b2e8
JavaScript
sanjanayrao/MealPlanner506
/MealPlanner/components/Deck.js
UTF-8
4,196
2.546875
3
[]
no_license
import React from 'react'; import { View, TouchableWithoutFeedback, Dimensions, TextInput, StyleSheet, ScrollView, FlatList, AsyncStorage} from 'react-native'; import {Picker} from '@react-native-picker/picker'; import NumericInput from 'react-native-numeric-input' import { Card, ListItem, Icon, Text } from 'react-nat...
true
122fb7422a7af0f4fe11997779e1855544055ed0
JavaScript
grguang/lugia-web
/src/widgets/auto-complete/emailDemo.js
UTF-8
720
2.609375
3
[ "Apache-2.0" ]
permissive
import * as React from 'react'; import AutoComplete from './'; const data = ['@gmail.com', '@sina.com', '@163.com', '@qq.com']; export default class Demo extends React.Component<any, any> { constructor(props) { super(props); this.state = { menuData: [], }; } render() { const { menuData } =...
true
45b7d66cc6b29a0a12430b057697bd500b8453f6
JavaScript
RemiMoustey/Semaine-Chantante-Auvergne
/public/js/management-songs.js
UTF-8
266
2.9375
3
[]
no_license
let songs = document.getElementsByTagName('audio'); for (let song of songs) { song.addEventListener("play", function() { for (otherSong of songs) { if (otherSong !== song) { otherSong.pause(); } } }); }
true
f615c52e6ac86eb6474ccbf13a88b209bdd9ceca
JavaScript
danylomaster/Company-Manager
/public/controllers/controller.js
UTF-8
2,700
2.5625
3
[]
no_license
//var app = angular.module('cmApp',[]); angular.module("CompanyManagerApp", [ "kendo.directives" ]) .controller("MyCtrl", function($scope, $http){ $http.get("/companies").success(function(responce){ $scope.treeData = new kendo.data.HierarchicalDataSource({data : responce}); }); ...
true
34a942af3085e5ab53f6f5c53c3df9accef14ed3
JavaScript
mthang1801/gatsby-redux-demo
/src/redux/count/count.reducer.js
UTF-8
418
2.671875
3
[ "0BSD" ]
permissive
import countActionTypes from "./count.types"; const INITIAL_STATE = { count : 0 } export default (state=INITIAL_STATE, action) => { switch(action.type){ case countActionTypes.INCREASE : return { ...state, count : state.count + 1 } case countActionTypes.DECREASE : retu...
true
9c5aa677e50ba21450b985d87d7ea1fefd88be80
JavaScript
nandapuspitarana/reactTodolist
/src/Components/Greating.jsx
UTF-8
430
2.6875
3
[]
no_license
import React from 'react'; function salam(waktu) { if (waktu < 10) { return 'Good Morning'; } else if (waktu > 9 && waktu < 16) { return 'Good Afternoon'; } else if (waktu > 15 && waktu < 21) { return 'Good evening'; } else { return 'Have a nice dream'; } } const Greating = props => { let ...
true
a4a730142f6fe49ed07c7fb09dff53c33f554ce3
JavaScript
huntdream/react-express-blog
/client/src/redux/actions/fetchPosts.js
UTF-8
1,027
2.515625
3
[ "MIT" ]
permissive
import { ITEMS_ARE_LOADING, ITEMS_FETCH_SUCCESS, ITEMS_HAVE_ERROR } from './constants'; import { host } from '../../config/host'; export const itemsAreLoading = bool => ({ type: ITEMS_ARE_LOADING, isFetching: bool }); export const itemsHaveError = bool => ({ type: ITEMS_HAVE_ERROR, hasError: bool }); ...
true
c942cef188a13020ee8c644b3ab3be5c98043e4a
JavaScript
Lexy0309/Password-Depot
/common/js/background/httputil.js
UTF-8
3,398
2.546875
3
[]
no_license
var Server= { getDomForParser:function(url){ return new Promise(function(resolve, reject) { $.get(url,function(result){ var parser = new DOMParser(); var doc = parser.parseFromString(result,"text/html"); resolve(doc); },"html").fail(function(jqXHR, textStatus, errorThrown){ ...
true
7096e847b54ea22789b2061ec83f92fa8978c936
JavaScript
Cadr106/Js_hw
/Lesson_16_js_hw/js/scripts6.js
UTF-8
159
2.75
3
[]
no_license
console.log(' '); console.log('Задание 6'); var a = 5, b = 7, h = 10, STrap = a * b * h / 2; console.log('STrap = ', STrap + ' cм2');
true
d20773ced0d1f384fe152a892fd7da0482463c29
JavaScript
footios/31-burger-redux-alias
/src/store/actions/fetchOrderActions.js
UTF-8
995
2.609375
3
[]
no_license
import * as actionTypes from './actionTypes'; import axios from '../../axios-orders' export const fetchOrdersSuccess = (orders) => { return { type: actionTypes.FETCH_ORDERS_SUCCESS, orders: orders } } export const fetchOrdersFail = (error) => { return { type: actionTypes.FETCH_ORDERS_FAIL, error: error }...
true
c24c2c0f3c891d16c642d6ab15a6458ecec3685a
JavaScript
exjade/JavascriptLab
/08-Arrays/js/06-app.js
UTF-8
2,488
4.09375
4
[]
no_license
/* En JavaScript es importante que mencionar que en las nuevas versiones se dieron "diferentes funciones" que hacen lo mismo Unas se conocen como Funciones DECLARATIVAS Otras como IMPERATIVAS Ambas son muy utilizadas en la programación de JavaScript ...
true
a8b92aa055ca07529812a216e2968e393e19a7e5
JavaScript
xiaolemon27/react-admin_client
/src05_counter_redux-final/components/Counter.jsx
UTF-8
3,674
2.9375
3
[]
no_license
import React, {Component} from 'react'; import PropTypes from "prop-types"; import {connect} from "react-redux"; import {increment, decrement, incrementAsync} from "../redux/actions"; /** * 这里叫做UI组件,显示数据。 * 代码中没有任何redux相关代码 * * 容器组件是包含在UI组件外面的,就像Form.create()()。 */ class Counter extends Component { construc...
true
a00925392d5d55b3b580bc96ff568139851febac
JavaScript
AscenKeeprov/Software-Technologies
/Exercise3-JavaScriptBasics/MultiplyOrDivideNumber/app.js
UTF-8
238
3.4375
3
[ "MIT" ]
permissive
'use strict'; function multiplyOrDivideNumber(input) { let number = Number(input[0]); let parameter = Number(input[1]); if (parameter >= number) { return number * parameter; } else return number / parameter; }
true
8c8fb714d6fb5b6711245ff39e21769a043d1a0e
JavaScript
Razubhuiyan/VanillaJavaScriptConcepts
/anotherClosures.js
UTF-8
315
3.375
3
[]
no_license
// Counter Dilemma // initiete counter const counterFunc = (function add() { let counter = 0; return function() { return counter += 1; } })(); counter = 3 //let myFunc = counterFunc(); console.dir(counterFunc) console.log(counterFunc(), counterFunc(), counterFunc()); //invoking counter 3 times
true
d7f6c549c249641b0de58e5496817fd8c775b11a
JavaScript
hypergate-com/managed-google-play-chrome-extension
/js/script.js
UTF-8
624
2.8125
3
[]
no_license
var findIframe = function(){ var iframes = document.getElementsByTagName('iframe'); for(i = 0; i < iframes.length; i++){ if(iframes[i].src.startsWith('https://play.google.com')){ var userInput = prompt("Please insert the package name from the license file (i.e com.hypergate.professional)", ""); if...
true
36a969f5ac369a706f6ae0e21cce107943d930fc
JavaScript
aleciberg/AirQualityViewer
/views/searchResults.js
UTF-8
780
2.578125
3
[]
no_license
const layout = require('./layout'); module.exports = (weatherData) => { if (weatherData !== undefined) { return layout( ` <div> <h2>Search results for ${weatherData.name}</h2> <h2>Weather: ${weatherData.weather[0].main}</h2> <h2>Weather Desc: ${we...
true
9f1b4ce209b0cccbec45baf41f0dc0aa35c78eff
JavaScript
maxwilets/bubbleSort
/sort.js
UTF-8
519
3.40625
3
[]
no_license
Array.count = function () { return this.length; }; function bubble_sort (unsortedArr) { var length = Array.count (unsortedArr); for (var x = 0; x < unsortedArr.length; x++){ for ( var y = unsortedArr.length - 1; y > x; y--){ if (unsortedArr[y] < unsortedArr[y-1]){ var z = unsort...
true
2f4e2ee5afe822cd4ef2f2302d4c97aaf406a23d
JavaScript
ryutorion/ryutorion.github.io
/FloatView.js
UTF-8
1,167
3.078125
3
[]
no_license
function FloatView(options) { var element = document.createElement('div'); var label = document.createElement('label'); label.appendChild(document.createTextNode(options.label)); element.appendChild(label); var range = document.createElement('input'); range.type = 'range'; range.min = parseFloat(option...
true
bc576441267ed32c48603db5440c97734f315582
JavaScript
kimfiedler/update-exported-object
/src/index.js
UTF-8
4,983
3.09375
3
[ "MIT" ]
permissive
// @flow const recast = require("recast"); import type { ObjectExpression, Node, Value, ObjectValue, ArrayExpression, Builders, Property } from "./types.js.flow"; const b: Builders = recast.types.builders; const unknown = Symbol("unknown"); function isObject(value: Value): %checks { return typeof va...
true
4d012f71656a6b08e200a325d109eb51ca8867b5
JavaScript
creativecommons/search
/src/assets/js/script.js
UTF-8
7,698
2.515625
3
[ "LicenseRef-scancode-free-unknown", "MIT", "CC-BY-4.0" ]
permissive
document.addEventListener("DOMContentLoaded", function(e){ const searchForm = document.getElementById("searchForm"); searchForm.addEventListener("submit", (e) => { e.preventDefault(); // capture and process the submission console.log('captured cleanly!'); let form = {}; form.qu...
true
863f261e21e9d22ae26c7194946a95d254a8419e
JavaScript
shivani-save/nlabel
/tests/tools_test.js
UTF-8
2,353
2.671875
3
[]
no_license
const tools = require('../tools.js'); const fs = require('fs'); const path = require('path'); const newline = require('os').EOL; const tempDir = path.join('..', 'temp'); // test data var tags = ['filename','dir','category','age', 'gender', 'skin_tone','hair_color']; var labels = [ { "filename": "tech-wallpaper...
true
f89c81765ba6dd4325d0f8ab009859f1bf0602d0
JavaScript
aes89/jstestinglesson
/Nands notes/javascript-lesson-master/day2/truthy_falsy.js
UTF-8
252
3.90625
4
[]
no_license
// falsy values: // 0 // "" // NaN // null // undefined // everything else is a truthy value // console.log(false || 10); // console.log(false && 10); console.log(NaN && 10); console.log("" && 10); console.log(10 && 20); console.log(10 || 20);
true
9f60bce98dd41e64952ece2873b6470b328bd6c4
JavaScript
dominicbarnes/node-dir-backup
/lib/Backup.js
UTF-8
2,233
2.5625
3
[ "MIT" ]
permissive
var fs = require("fs"), path = require("path"), fa = require("fa"), targz = require("tar.gz"), wrench = require("wrench"); function getDate(input) { if (input instanceof Date) { return input; } else if (typeof input === "string") { return new Date(Date.parse(input)); ...
true
bf7162d53eb5e187fdf5b36c4c493ad05eb2de02
JavaScript
NupurPrakash/javascripting
/function-arguments.js
UTF-8
91
2.75
3
[]
no_license
function math(val1,val2,val3) { return val2 * val3 + val1; } console.log(math(53,61,67))
true
9b69ad7ee7420bcd43f8cac5d75a12cdc8790f60
JavaScript
AlexErdei73/rock_papier_scissors
/rock_papier_scissors_console.js
UTF-8
2,828
4.03125
4
[]
no_license
//Return randomly 'Rock','Papier' or 'Scissors' //as you can expect from a computer player function computerPlay() { let randomNumber = Math.floor(Math.random() * 3); switch (randomNumber) { case 0: return 'Rock'; break; case 1: return 'Papier'; break; case 2: return '...
true
e17ee144443517cc12c04bfdded203674348b63a
JavaScript
sergeysova/center-code
/src/utils-spec.js
UTF-8
940
2.546875
3
[ "MIT" ]
permissive
'use strict' const la = require('lazy-ass') const is = require('check-more-types') const { join } = require('path') /* global describe, it */ // eslint-disable-next-line no-unused-vars const index = join(__dirname, '..', 'index.js') const utils = require('./utils') describe('highlight(filename, text)', () => { c...
true
7e66c5e7e359958cedbd2d05ea89f02be4a9a9d7
JavaScript
JordanDJensen/chuck-norris-jokes
/src/action/index.js
UTF-8
424
2.625
3
[]
no_license
import axios from "axios"; export function jokeData(joke){ return(dispatch) => { return axios.get(`http://api.icndb.com/jokes/random/`).then((response) =>{ console.log(response.data) dispatch(setText(response.data.value.joke)) }).catch((err)=>{ throw err; ...
true
1676d75e1b0fe2ba61e0ed7e35f2f80834eb3230
JavaScript
gasnew/lancenger
/lancenger/src/graphics/meshes.js
UTF-8
1,834
3.140625
3
[]
no_license
// @flow import _ from 'lodash'; export type Mesh = number[][][]; export type RectProps = { width: number, height: number, }; type CircleProps = { scale: number, steps: number, }; type HeartProps = { scale: number, steps: number, }; function getPolarMeshBuilder({ getX, getY }) { return steps => { ...
true
c6dda959ce7a73aaf619ac0a2c4d3a71021165d8
JavaScript
drinoff/JS-Advanced
/Exam Prep/Exam Prep 1 - 12.02.2021/parking.js
UTF-8
2,718
3.5
4
[ "MIT" ]
permissive
class Parking{ constructor(capacity) { this.capacity = capacity; this.vehicles = []; } addCar(carModel,carNumber){ if(this.capacity===0){ throw new Error("Not enough parking space."); } this.vehicles.push({carModel,carNumber,payed: false}); thi...
true
80264f205cd435899d1ba901d36a2e5066575e00
JavaScript
djbods/citilinked-react
/src/components/views/TestimonialsPage.js
UTF-8
2,329
2.515625
3
[]
no_license
import React from 'react' import { Container, Row } from 'react-bootstrap' const TestimonialsPage = () => { const testimonials = [ { comment: "I wanted to thank Stuart down at your Richmond site for his assistance. I walked in just as he was closing expecting to be turned away instead he was more than happy to ...
true
1da5615fd7b241d29f7b3ae003ba05dd68203aae
JavaScript
agustinrodriguez/jfortune
/jquery.fortune.js
UTF-8
5,286
2.578125
3
[]
no_license
(function($) { var deferred, angle, direction, gap, is_bouncing, opts, prev_angle = 0, price, roulette, start_time, stop, total, spin_frame; function randomBetween(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } ...
true
19a87df448534b841b794d705a44eade1949397d
JavaScript
winstonchan94/Pacifist
/lib/andrew.js
UTF-8
770
2.84375
3
[]
no_license
const Mover = require("./mover"); const Comrade = require("./comrade"); const Util = require("./util"); function randomColor() { const hexDigits = "0123456789ABCDEF"; let color = "#"; for (let i = 0; i < 3; i++) { color += hexDigits[Math.floor((Math.random() * 16))]; } return color; } class Andrew ext...
true
e11cac42afa75d91c8acfa72021cbf9a31d5d736
JavaScript
pandalv9999/postRating
/front/src/components/Comments.js
UTF-8
3,713
2.53125
3
[ "MIT" ]
permissive
import React, {useState} from "react" import {useForm} from "react-hook-form"; import axios from "axios"; import "../style/Comments.css" const Comments = ({apartment, user}) => { const {register, handleSubmit, errors} = useForm(); const [msg, setMsg] = useState(""); const [comments, setComments] = useStat...
true
71e023cd2decfc691859419b8df519c3f55d4ba5
JavaScript
GlauberGoncalves/nodejs-molde-api
/app/controllers/usuarioCtrl.js
UTF-8
504
2.515625
3
[ "MIT" ]
permissive
module.exports.getUsuarios = function(application, req, res){ const usuarios = [ {nome: "usuario1", email: "usuario1@mail.com"}, {nome: "usuario2", email: "usuario2@mail.com"}, {nome: "usuario3", email: "usuario3@mail.com"}, {nome: "usuario4", email: "usuario4@mail.com"}, ...
true
7b0727aae91a53873d839a6ee915472917e07539
JavaScript
AlexandrZagumennov/React_news-app
/src/Utils/Utils.js
UTF-8
379
2.71875
3
[]
no_license
const getDateOfPublished = publishedAt => { let date = new Date(publishedAt); const plusZero = n => { if (n < 10) return "0" + n; return n; }; let dateOfPublished = { mounth : plusZero(date.getMonth() + 1), day : plusZero(date.getDate()) }; return d...
true
11b564f84654806fd1196b2f40493ac382ecfcda
JavaScript
spramkumar89/lotusmoneyfrontend
/pages/api/settings/updateAppConfig.js
UTF-8
1,892
2.78125
3
[]
no_license
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction export default async function handler(req, res) { console.log( `udpateuserconfig API - req.query : ${JSON.stringify( req.query )}, req.body : ${JSON.stringify(req.body)}` ); switch (req.method) { case "POST": le...
true
95110d6e90515ee49f14d55cd04115685b110b48
JavaScript
sunny-prakash/React-Placement-Prep-Hackathon---Todo-List
/src/components/Items.js
UTF-8
1,072
2.53125
3
[]
no_license
import React,{useState} from 'react' export default function Items(props) { const {item,handleChangeInList,handleDelete} = props; const [isEdit,setIsedit] = useState(false); const [newText,setNewtext] = useState(""); const newInputChange=(e)=>{ setNewtext(e.target.value); } retur...
true
e8ff97c9f63c427d3c403b5bc2b9c51b543e6d1f
JavaScript
scotteshbaugh/learning-to-code
/image-comparison-slider/javascript/app.js
UTF-8
3,104
3.703125
4
[]
no_license
function onReady(completed) { if (document.readyState === "complete") { setTimeout(completed); } else { document.addEventListener("DOMContentLoaded", completed, false); } } onReady(function() { var divisor, slider; divisor = document.getElementById("divisor"); slider = documen...
true
f3184107ad6cf47954f3eae0fd9c33f31bc69092
JavaScript
rgallego87/lab-javascript-basic-algorithms
/starter-code/basic-algorithms.js
UTF-8
1,251
4.34375
4
[]
no_license
// Names and Input var hacker1 = 'John Doe'; console.log('The driver\'s name is ' + hacker1); var hacker2 = prompt('What is the navigator\'s name?'); console.log('The navigator\'s name is ' + hacker2); // Conditionals if (hacker1.length > hacker2.length) { console.log('The Driver has the longest name, it has ' + ...
true
6df60eaca496bb624da1473224d2d8996eeddab1
JavaScript
williamslau/code
/react/react2/src/components/counter.js
UTF-8
1,863
3.078125
3
[]
no_license
import React, { Component } from 'react'; import ReactDOM, { render } from 'react-dom'; import { createStore } from '../redux'; // 创建方法 const INCREMENT = 'INCREMENT'; const DECREMENT = 'DECREMENT'; // 创建规则 let initState = { number: 0 } function reducer(state = initState, action) { switch (action.type) { cas...
true
3b64779f3314fc846597b6dda324264ffe87fe7f
JavaScript
uec-programming/basic_training
/docs/web-projects/quiz/demo4/script.js
UTF-8
720
3.40625
3
[]
no_license
const quizList = [ { text: '西暦1900年は閏年である。', answer: 0 }, { text: '光の三原色は赤緑青である', answer: 1 }, { text: '紙鍋の紙は、燃えないように耐火加工されている。', answer: 0 } ]; // 今何問目か let quizNumber = 0; // 問題を表示する function showQuiz() { const quiz = quizList[quizNumber]; document.getElementById('quiz-text')...
true
4ebecb3d038266f76d8f8c525abb9f1d7efb9914
JavaScript
godlikeAlex/my-gulp
/source/js/app.js
UTF-8
1,549
2.546875
3
[]
no_license
const portfolio = document.querySelector('.portfolio-cards'); const modal = document.querySelector('.modal'); const close = document.querySelector('.close'); const body = document.querySelector('body'); const img = document.querySelector('#modal-url'); const loader = document.querySelector('.loading'); document.addEve...
true
276c511282628586548446487b92fabd15347149
JavaScript
JuliaDzyuba/shop_pureJS
/scripts/generateCartPage.js
UTF-8
5,012
2.609375
3
[]
no_license
import { getData } from './getData.js'; import userData from './userData.js'; const sendData = async (url, data) => { const response = await fetch(url, { method: 'POST', body: data, // mode: 'no-cors', }); if(!response.ok) { throw new Error(`Ошибка по адресу ${url}, статус ошибки ${response.st...
true
e1eb5a632c5f7476e262eeed38b71a17ba9685d5
JavaScript
victorbruce/data-structures-js
/data-structures/linked-list/doubleLinkedList.js
UTF-8
2,433
3.5
4
[]
no_license
class Node { constructor(value, next = null, prev=null) { this.value = data; this.next = next; this.prev = next; } } class LinkedList { constructor () { this.head = null; this.tail = null; } setHead(node) { if (this.head === null) { this.head = node; this.tail = node; ...
true
b7754a245a9aeda56ff662dd7eb6c2abb3e03e57
JavaScript
jtertil/typescipt-kurs
/class_interface/classInterface.js
UTF-8
538
3.359375
3
[]
no_license
var ClassInterface = /** @class */ (function () { function ClassInterface(msg) { this.msg = "Hello"; } ClassInterface.prototype.printMsg = function () { console.log(this.msg); }; return ClassInterface; }()); var example = new ClassInterface(); example.printMsg(); var dog = ({ nam...
true
ba23ffb9f8a2ef4e9a91291362efdf7a1459592e
JavaScript
wesz/ecmascript1
/test/lexer/lexer-punctuators.js
UTF-8
2,840
2.71875
3
[]
no_license
'use strict'; const should = require('should'); const Lexer = require('../../src/lexer.js'); const tokenTypes = require('../../src/token.js').tokenTypes; describe('lexer', function() { describe('parse semicolon', function() { it('should emit proper punctuator tokens', function() { const input...
true
cfdcebbb16fd160d99f4578849b3d06cb596fe00
JavaScript
doublegsoft/kui
/src/js/container/GridView.js
UTF-8
1,353
2.828125
3
[]
no_license
function GridView(opt) { this.columnCount = opt.columnCount || 2; this.local = opt.local || []; this.url = opt.url; this.params = opt.params || {}; // functions this.create = opt.create; this.error = opt.error || function (err) {}; } GridView.prototype.fetch = async function (error) { if (!this.url) r...
true
2793e244a40034ae444b7bd168bcc7626599116c
JavaScript
clauries/lean-fitness
/routes/api-routes.js
UTF-8
1,816
2.828125
3
[ "MIT" ]
permissive
// ********************************************************************************* // api-routes.js - this file offers a set of routes for displaying and saving data to the db // ********************************************************************************* // Dependencies // =====================================...
true
9374013671050198987256fb654d92734fbaa2f1
JavaScript
gregdaynes/aggrex
/src/api/controllers/articles.js
UTF-8
1,931
2.546875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
const debug = require('lib/debug')('http:api:controller:articles') const { all, findById, findBySource } = require('components/articles') module.exports = { index } function index (req, res) { debug('index', req.data) const ids = fetchParam('ids', req) const status = fetchParam('status', req) === 'true...
true
ed6d3a763345eb2669036decb160cb8f9da5cec2
JavaScript
tariqhamid/crown-marketplace
/app/assets/javascripts/facilities_management/beta/procurement/ContractDateUtils.js
UTF-8
2,058
2.859375
3
[ "MIT" ]
permissive
const contractDateUtils = { dateAdd: function (date, type, amount) { let y = date.getFullYear(), m = date.getMonth(), d = date.getDate(); if (type === 'y') { y = y + amount; } if (type === 'm') { m += amount; } if (t...
true
71bdcea8001e6524980c6fd7433d27549faabf94
JavaScript
be5invis/node-sfnt
/lib/graphics/computeBoundingBox.js
UTF-8
5,601
2.984375
3
[ "MIT" ]
permissive
/** * @file 计算曲线包围盒 * @author mengke01(kekee000@gmail.com) * * modify from: * zrender * https://github.com/ecomfe/zrender/blob/master/src/tool/computeBoundingBox.js */ var pathIterator = require('./pathIterator'); /** * 计算包围盒 * * @param {Array} points 点集 * ...
true
173960c34f9d88d1541d2589476fcd71be81bd99
JavaScript
GPNF/dlp-ps
/WebContent/pages/js/main.js
UTF-8
1,136
2.625
3
[]
no_license
/* * Makes GET request to /api/topic/list. The returned response is set * back to JSP. * * Also, handles refresh icon show/hide on button. * * */ $(document).ready(function(){ // Load topics into select list (function getTopics(){ $.get('/api/topic/list', function(data){ if(data.topics.le...
true
ee553e48cabe801b5ee2430f7d0c2b4a9927e3a4
JavaScript
Scheffel-V/bfcp-lib
/lib/parser/complements.js
UTF-8
1,260
3.421875
3
[]
no_license
/** * @classdesc * Complements class is a static class to handle string (binary) operations of * complement (used to make a formated binary string from a not formated one). * @memberof bfcp-lib * @static */ class Complements { /** * Complements the binary string with '0' at it begin until have reached the ...
true
422b13884635034812cbdf12bbe1682f11cdc4e2
JavaScript
Dkra/Growth
/CodingChallenge/LeetCode/String/242/isAnagram.js
UTF-8
720
3.3125
3
[]
no_license
/** * https://leetcode.com/problems/valid-anagram/ */ /** * Runtime: 120 ms, faster than 9.88% of JavaScript online submissions for Valid Anagram. * Memory Usage: 35.7 MB, less than 97.96% of JavaScript online submissions for Valid Anagram. */ /** * Approach: * Time complexity: O() * Space complexity: O() */...
true
f01c3df3fe7c5c3c520872eeb9b38266134630e5
JavaScript
rayalois22/algorithms.js
/src/algorithms/math/fisher_yates.js
UTF-8
283
3.65625
4
[ "MIT" ]
permissive
/** * Fisher-Yates shuffles the elements in an array * in O(n) */ const fisherYates = a => { for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); const tmp = a[i]; a[i] = a[j]; a[j] = tmp; } }; module.exports = fisherYates;
true
9c16fea6285c7c032c659be111d9bff5d6dcaba0
JavaScript
UNIZAR-30226-2020-04/front-end-movil
/.history/src/modules/DashBoard/containers/dashboard_20200506132234.js
UTF-8
7,712
2.765625
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, Button, ImageBackground, ScrollView, AsyncStorage } from 'react-native'; import { NavigationContainer } from "@react-navigation/native"; import { createStackNavigator } from "@react-navigation/stack"; import { createBottomTabNavigator...
true
dd34dec9cd1227257405d3dbf23ef3c9a550e9c9
JavaScript
bgoonz/UsefulResourceRepo2.0
/MY_REPOS/bash-commands-walkthrough/steps/4-create-indexhtml/DS-ALGO-OFFICIAL-master/CONTENT/DS-n-Algos/Graphs/Graph/KruskalMST.js
UTF-8
3,136
3.890625
4
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
class DisjointSetTreeNode { // Disjoint Set Node to store the parent and rank constructor(key) { this.key = key; this.parent = this; this.rank = 0; } } class DisjointSetTree { // Disjoint Set DataStructure constructor() { // map to from node name to the node object this.map = {}; } m...
true
b114faf2148d0be20f551cbaebd277d627cfe448
JavaScript
mevorahde/DevEd_JavaScript_Course
/Basics/operators.js
UTF-8
480
4.375
4
[]
no_license
//JavaScript Operators //Baisc Operators let indox = 10; //Addition console.log(indox + 5); //Subtraction console.log(indox - 5); //Multiplication console.log(indox * 5); //Division console.log(indox / 5); //Power console.log(indox ** 5); //Remainder console.log(indox % 5); //Add 1 indox++; console...
true
68dcc5681f074b9f93d26291811066f1ae346f94
JavaScript
awekisa/JS-Core
/JS Fundamentals/10 Strings and RegExp Exercises/pr03_StartsWith.js
UTF-8
196
3.21875
3
[]
no_license
function start(input){ let str = input.slice(0, 1).join(''); let word = input.slice(-1).join(''); console.log((str.indexOf(word) === 0)? 'true': 'false'); } start(['how asdas','how'])
true
8bd5d35df295f0fcd993564a10567d14ec31ed3d
JavaScript
cprg210/proj207-pocket_pill
/seeds/fees.js
UTF-8
817
2.5625
3
[]
no_license
// All records from the client's old database are in the seed file and will be imported into MongoDB. const myList = [ { FeeIdSQL: 'BK', FeeName: 'Booking Charge', FeeAmt: 25.0000, FeeDesc: null }, { FeeIdSQL: 'CH', FeeName: 'Change', FeeAmt: 15.0000, FeeDesc: null }, { Fe...
true
fc1bb8de1a6b9f6f8df737f290d360452aa0fe51
JavaScript
Martorell93/BBDD-4
/FRONT/controladorAPI.js
UTF-8
19,885
3.609375
4
[]
no_license
//Controlador de la API //Clase Alumno class Alumno { constructor (name_student, surname_student, entryYear) { this.name_student = name_student; this.surname_student = surname_student; this.entryYear = entryYear; } }; //Clase nota class Nota { constructor(subject_id, teacher_id...
true
8ad4fbb0110600935bc0114651bd1d5c6233eabc
JavaScript
jjub0217/study_of_jjub
/camp_b/array/15-1 reduce(내장함수).js
UTF-8
3,728
4.4375
4
[]
no_license
// reduce 내장함수 // 배열이 주어졌을때 모든 요소들을 사용하여 어떠한 값을 연산할때 사용한다. // reduce(누적된 값을 계산함수: (acc, cur)<- 해당 함수의 매개변수는 2개를 받아온다. => 함수의 결과값(이 값을 어케 연산할지의 계산식) // / 함수 다음에 넣어야 할 것: acc 의 기본값) const numbers = [1, 2, 3, 4, 5]; // __┌> acc 의 초기값 const sum = numbers.redu...
true
ced8ba4cb7524b00ceecc8b5313532803685d0b0
JavaScript
zachkamran/D3StarterCode
/src/good-vis.js
UTF-8
2,831
2.890625
3
[ "MIT" ]
permissive
import {scaleLinear, scaleOrdinal} from 'd3-scale'; import {schemeCategory10} from 'd3-scale-chromatic'; import {select} from 'd3-selection'; import {min, max} from 'd3-array'; import {axisBottom, axisLeft} from 'd3-axis'; // In this file, starting from this function you will produce your "good" visualization // code ...
true
9dce7e073ab270c3bae63cb1e6baba81df070ca9
JavaScript
ThePpeecc/movie_search
/js/app.js
UTF-8
5,573
2.890625
3
[]
no_license
/*jshint esnext: true */ /** * This file holds the search and ui logic for the movie search application * * @summary The module runs the movie search functionality aswell as the Ui functionallity * * @link URL * @since 07.10.2016 * @requires jquery-3.1.0.js **/ /** * @desc This is the module that h...
true
ac143dfb4befaf20f09362c9504e63c6dc9aa800
JavaScript
freddysoare/IID3
/script.js
UTF-8
2,009
2.640625
3
[]
no_license
function replaceButton(buttondescr, text) { var btn = $(buttondescr); btn.replaceWith(text); } function disable(buttondescr) { $(buttondescr).prop('disabled', true); } function setCategories() { var catchooser1 = $("#category"); var catchooser2 = $("#subcategory"); var catchooser2container = $("#catchooser2"); ...
true
1259d882b9bc7379154c0001be80067681a00c87
JavaScript
zendy199x/react-native-training
/56-Redux-form#7.Field Normalizing Example/code/tutorialProject/normalizePhoneNumber.js
UTF-8
551
2.765625
3
[]
no_license
/* Mr Nguyen Duc Hoang https://www.youtube.com/c/nguyenduchoang Email: sunlight4d@gmail.com Redux-form => Normalize phone number. Ex: 096.489.6239 */ export default normalizePhoneNumber = (value) => { if (!value) { return ''; } const numberValue = value.replace(/[^\d]/g, ''); if (numberValue.len...
true
7daf3b796325883424d5beed11f3f936c765ede9
JavaScript
uzairqq/NodeAuthentication
/config/passport.js
UTF-8
2,163
2.5625
3
[]
no_license
var localStrategy = require('passport-local').Strategy; var User = require('../app/models/user'); module.exports = function(passport){ passport.serializeUser(function(user,done){ done(null,user.id); }); passport.deserializeUser(function(id,done){ User.findById(id, function(error,user){ ...
true
3bfbcfe23a2d88f660d11a5f4e8e0b7fdb70e542
JavaScript
maxnatchanon/sw-arch-term-project
/ui-service/src/Pages/MainPage/MainPage.jsx
UTF-8
5,033
2.5625
3
[]
no_license
import React, { Component } from 'react'; import ServiceManager from '../../Services/ServiceManager'; import history from '../../history'; import './MainPage.css'; class MainPage extends Component { constructor(props) { super(props); this.state = { user: { username: '', ...
true
284c655171d647ea12b7c4a983e3ae4b1a00c829
JavaScript
alle-zhinzher/hacaton
/client/src/components/Profile/Info/Info.js
UTF-8
3,102
2.6875
3
[]
no_license
import React, { useState, useEffect } from 'react'; import { TextField, Grid, Button, ButtonGroup } from '@material-ui/core'; const Info = () => { useEffect(() => { {/*Фетчить данные тут, это componentDidMount*/ } const mockUser = { firstName: "John", lastName: "Doe", ...
true
0bd5b0ce3454c9d6b5a787ec239d0cef3efb26d6
JavaScript
Amzani/supermodel-cli
/src/lib/oas2.js
UTF-8
8,290
2.9375
3
[ "MIT" ]
permissive
const { URL } = require('url') const supportedKeys = ['title', 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', 'minLength', 'pattern', 'maxItems', 'minItems', 'uniqueItems', 'maxProperties', 'minProperties', 'required', 'enum', 'description', 'format', 'default'] const schemaOb...
true
458bf9ca7cc005cf8795514caf250e31919672a0
JavaScript
18712868566/JavaScriptLearning
/node.js/ECMAScript/1.js
UTF-8
739
3.59375
4
[]
no_license
/** * Created by jason on 2017/7/24. * * 在ECMAScript部分node.js和js其实是一样的比如数据类型的定义,语法结构,内置对象 * *在js中的顶层对象 * window * *在node中的顶层对象 * global 在node中也没有什么window * * * */ /* var a = 100; console.log(a);*/ /* var d = new Date(); console.log(d.getFullYear()); console.log(d.getMonth() + 1); var arr = [1...
true
edb8b57a8e0d6e61d28c0b4952374b48dff6d7cc
JavaScript
mbdeme/SenColisGP
/src/helpers/nameValidator.js
UTF-8
105
2.53125
3
[]
no_license
export function nameValidator(name) { if (!name) return "Le nom ne doit pas être vide." return '' }
true
62e99c4cae0da6627c0704e2a83c9d06e96163e1
JavaScript
Evandro20/logica
/atividade-7-15.js
UTF-8
636
4.15625
4
[]
no_license
// Faça um algoritmo que receba uma palavra, após isso ele remove todas as vogais dessa palavra e imprime a palavra novamente porém sem as vogais. // EX: Entrada banana // O algoritmo imprime : // Bnn // Utilize o método split() para quebrar a string e depois montar ela sem vogais. var user = require('readline-sync')...
true
3f99bc0138eb60f3f7c35e90d3e95033df464bbb
JavaScript
sencha/ext-web-components
/misc/deprecated-api-docs/core/src/util/translatable/Abstract.js
UTF-8
1,270
2.828125
3
[ "Apache-2.0", "MIT" ]
permissive
/** * @class Ext.util.translatable.Abstract * @extend Ext.Evented * @mixin Ext.mixin.Factoryable * @private * * The abstract class. Sub-classes are expected, at the very least, to implement translation logics inside * the 'translate' method */ /** * @event animationstart * Fires whenever the animation is sta...
true
11284fd3a3f21d5c1d43e2df0885dac6b9be0f23
JavaScript
ToFut/FakeNews
/CheckWithTruthWeb/server/serverSide.js
UTF-8
1,218
2.640625
3
[]
no_license
// This is a server side const express = require('express') const app = express() const request = require('request'); app.use(function(req, res, next) { // here im allowing CORS res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATC...
true
b38e1b4483f66a2fa25ef12adb6998f471a15dd2
JavaScript
majh0001/greenenergy
/green-energy-amit-majhi/js/index.js
UTF-8
3,519
2.609375
3
[]
no_license
var resources = [ { heading: "group", path: "img/group.png", body: "libero, finibus non faucibus sit amet, efficitur vitae mauris. Nullam sed scelerisque elit. Duis malesuada felis vel augue imperdiet mattis." }, { heading: "phone", path: "img/phone.png"...
true
d54afb488d87f32c0f53c277658299a85db6bc40
JavaScript
heyeshuang/YAATO
/html4debug/syxk.vsyxkKcapb.do_files/xk.js
GB18030
2,555
3.015625
3
[ "MIT" ]
permissive
//IDHTML function getElementById(objId) { var obj = null; if (document.layers) { //we want 1 object (not nested) if (getElementById.arguments.length == 1) { //simple layer reference obj = eval("document.layers['" + objId + "']"); } else if (mElement.arguments[1] == 'DoC') { //refer...
true
8b468a3b6d8a20a7d8dd869e8a87460d1e0f30b2
JavaScript
erlaroche/Girl-Develop-It-Intro-to-JavaScript
/exercises/Lifetime_Supply_Calculator2.js
UTF-8
660
4.15625
4
[]
no_license
// http://www.teaching-materials.org/javascript/exercises/functions.html // The Lifetime Supply Calculator // Write a funciton named calculateSupply // It takes 2 arguments // calculates the amount consumed for the rest of your life // outputs results to the screen // Call that funciton three times, passing in three...
true
f46703acb02c2202ad63e6db5a9a22d537dac5df
JavaScript
imooreva/simple-weather-app
/server/route-callbacks.js
UTF-8
3,015
2.5625
3
[]
no_license
//API key is .gitignore'd :) const {API_KEY} = require('./api_key.js'); //require modules and external functions var hbs = require('hbs'); var request = require('request'); var {wxDetails, getWxIcon} = require('./wx-functions.js'); //declare variables for later use var currentData, currentLocation, wxIcon, errorObjec...
true
6c30dfdd076cfaf5fc04740cfc97f9e6dffb609c
JavaScript
joelabair/local-storage-fallback
/src/index.js
UTF-8
1,431
2.53125
3
[ "MIT" ]
permissive
import hasStorage from './hasStorage'; import CookieStorage, { hasCookies } from './CookieStorage'; import MemoryStorage from './MemoryStorage'; // the final default let fallbackStorage = new MemoryStorage(); let sessionTest = function () { if (hasStorage('sessionStorage')) { return fallbackStorage = window.sessi...
true
0c9ae57b370bc366b57bdffa53d67ea3ca4bed0d
JavaScript
ddolben/tab-duplicator
/link-injector.js
UTF-8
1,468
2.8125
3
[]
no_license
(function(w, d) { // Set up key tracking. // We need to track keys currently pressed because Javascript doesn't // actually provide a way of doing this natively. w.keysDown = {}; d.onkeydown = function(e) { e = e || w.event; // Don't waste cycles or modify memory if we don't care about they keys. ...
true
9608df53746cd3560d94a79b76925134ca6f1126
JavaScript
reese-lee/rpg
/src/game.js
UTF-8
868
2.921875
3
[]
no_license
export class Game{ constructor(character) { this.character = character; } save() { let save = { player1 = player } // localStorage.setItem("save", JSON.stringify(save)); } // Crafty.init(200, 200); // // var dim1 = {x: 5, y: 5, w: 50, h: 50} // var dim2 = {x: 20, y: 10, w: 60, h: 40} //...
true
bc4200956eac4f8d2dfb28b8a8b65817ee69bf97
JavaScript
r-kapoor/TripsOnAir
/TripPlannerApp/controllers/putItineraryInputs.js
UTF-8
891
2.515625
3
[ "MIT" ]
permissive
/** * Created by rkapoor on 24/08/15. */ var getClient = require('../lib/UtilityFunctions/redisConnection'); module.exports=function (app) { app.put('/putItineraryInputs/:itineraryID', function (req, res) { var itinerary = req.body; var itineraryID = req.params.itineraryID; console.lo...
true
4cec0c0f8796d0efe04050126272caa7baa95dba
JavaScript
imadx/ledCube_Innovators
/public/js/threeJsScript.js
UTF-8
6,397
2.59375
3
[ "MIT" ]
permissive
var simulatorWidth = $("#threeJS_Simulator").width(); var simulatorHeight = $("#threeJS_Simulator").height(); var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 75, (simulatorWidth/simulatorHeight), 0.1, 1000 ); var renderer; if(simulatorMode == 1){ renderer = new THREE.WebGLRenderer(); } else {...
true
114ed53cff049ad9ee560f138aeeae54dd52c41d
JavaScript
dpribul/wasm-vips
/playground/samples/other/thumbnail-smartcrop-sepia/sample.js
UTF-8
1,762
2.96875
3
[ "MIT" ]
permissive
// Smart crop to 500x500 using the attention strategy // (searches the image for features which might catch a human eye) // Image source: https://www.flickr.com/photos/jasonidzerda/3987784466 let thumbnail = vips.Image.thumbnail('owl.jpg', 500, { height: 500, no_rotate: true, crop: vips.Interesting.attentio...
true
b681a58ef0179b48c4f0582807e78147c3d7afe3
JavaScript
jwright93/AA-pokedex
/frontend/components/pokemon/pokemon_detail.jsx
UTF-8
1,175
2.859375
3
[]
no_license
import React from 'react'; class PokemonDetail extends React.Component { constructor(props) { super(props); } componentDidMount(){ this.props.requestSinglePokemon(this.props.params.pokemonId); } componentWillReceiveProps(newProps) { if (this.props.params.pokemonId !== newProps.params.pokemonId)...
true
69bb78a649e64af3554279a1c467e01953188beb
JavaScript
MurshidMac/Node
/Essential Notes/lesson three/session 1/list.js
UTF-8
409
3.03125
3
[]
no_license
// we need the file system module to interact with whatever we have in the process function var fs =require("fs"); // fs module for need works // we are creating an asynchronous read function //var files = fs.readdirSync('./lib'); fs.readdirSync('./lib', function (err, vale){ if (err){ throw err } ...
true
253be7af962f7b9cabe9977421ddd7910ea759f5
JavaScript
SkyEngineerr/Exercises
/NodeJS/FS/client/src/reducers/regFormReducer.js
UTF-8
760
2.65625
3
[]
no_license
import { HANDLE_NAME, HANDLE_PASSWORD, HANDLE_EMAIL, HANDLE_CITY, HANDLE_COMPANY } from '../actions/types.js' const initialState = { name: '', password: '', email: '', company: '', city: '', } export default function (state = initialState, action) { switch (action.type) { case HANDL...
true
30da40ee2ff5c59ac5ad73384375f29b1c71c66a
JavaScript
Kieran-Lynn/state-server
/test/appTest.js
UTF-8
2,239
2.5625
3
[]
no_license
const app = require('../src/app.js'); const chai = require('chai'); const chaiHttp = require('chai-http'); const expect = chai.expect; chai.use(chaiHttp); describe('POST / ', () => { describe('Valid Params provided', () => { it('should return an object with the correct state (Colorado)', (done) => { ...
true
43afb687db0c0f863d5662bfd2fcc894415b56d8
JavaScript
bibi994/WEB-APPS
/1. ECMA 6/post-list/js/data.js
UTF-8
1,166
3.046875
3
[]
no_license
import Post from './models/post.js' const storage = { listOfPosts: [] } const API_ENDPOINT = "https://jsonplaceholder.typicode.com/posts"; const fetchData = (onSuccess, onError) => { var request = new XMLHttpRequest(); request.open('GET', API_ENDPOINT, true); request.onload = function () { ...
true
6c4231e6f90d984c20fe672bff817570f39bd5fe
JavaScript
SharifahS/D3-Challenge
/D3_data_journalism/assets/js/app.js
UTF-8
2,372
3.46875
3
[]
no_license
//SVG width and height values var svgWidth = 800; var svgHeight = 600; //Margin data var margin = { top: 20, right: 20, bottom: 100, left: 30 }; //Declare graphing area (relative to SVG) var width = svgWidth - margin.left - margin.right; var height = svgHeight - margin.top - margin.bottom; //...
true
11e1bab0e223327bc9620399c51bc13369c4d0be
JavaScript
nherreradev/proyectoWebTaller1
/src/main/webapp/js/citas/createCitaDomicilio.js
UTF-8
592
2.984375
3
[]
no_license
document.addEventListener('DOMContentLoaded', () => { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { //coordenas de usuario console.log("OK geolocalizacion"); var latitude = position.coords.latitude; var longitude...
true
05ae530b75fff1a2f91dea3ea93f3b4ec72be6ed
JavaScript
517700724/ideagoing
/public/js/FileUpload.js
UTF-8
7,625
2.5625
3
[]
no_license
/** * File upload component. */ function FileUpload(){ //Current object. var _self = this; //Upload parameters. var _param = null; //Upload file formatter. var _regex = null; var _fileId = 1; /** * Initial upload component. * * uploadFrameId * uploadFormId * selectId * uploadFormat *...
true
2ffe090e8ce7633018f53d8f43e811662989870f
JavaScript
WeigaoS/CPSC-349-Project1
/book-tinder/src/App.js
UTF-8
5,187
3.34375
3
[]
no_license
/* CPSC 349 Project 1: Full-stack webpage Team Name: Barry and the Otters Team Leader: Lloyd Blazina Team Members: Weigao Sun, Quauhtli Garcia-Brindis Project Name: Bookinder Project Type: Users can swipe left or right on other people’s reading material (think “Tinder for Books”, or perhaps In...
true
ce2b3d89a5b1aa56dbd80cb0fd7bbe4949531e16
JavaScript
vishalchotara/entertainment-tracker-app
/webdev/front-end/src/driver/index.js
UTF-8
2,323
2.703125
3
[]
no_license
import {create} from 'axios' const endpoints = require('./api.json') class ServerAPI { constructor() { const port = process.env.PORT || 3000 const domain = process.env.URL || `http://localhost:${port}` this.url = `${domain}/api` this.request = create({ baseURL: this.ur...
true
40445ad8f6fd58e8dd4250588bf37d09a068931c
JavaScript
MayaRupa/Learning-Web-Dev
/website -3/index.js
UTF-8
462
2.8125
3
[]
no_license
var nama = prompt ("siapa nama anda"); var alamat = prompt (" dimana anda tinggal"); var umur= prompt ("berapa usia anda"); var umurDalamHari= umur*365 alert ("Anda bernama " + nama + " tinggal di " + alamat + " berumur " + umur +" tahun "); alert ( "Umur anda apabila di jadikan hari adalah = "+ umurDalamHari + "hari...
true
740fdcc3851a9e45462426a17a23c476b73aa358
JavaScript
yishmaelh/codeup-web-exercises
/js/map-filter-reduce.js
UTF-8
2,112
4.125
4
[]
no_license
const users = [ { id: 1, name: 'ryan', email: 'ryan@codeup.com', languages: ['clojure', 'javascript'], yearsOfExperience: 5 }, { id: 2, name: 'luis', email: 'luis@codeup.com', languages: ['java', 'scala', 'php'], yearsOfExperien...
true
f832151da42c9e532acbc1b93bac1cf6c052b1fb
JavaScript
ArmandoHernandez14/AlondrasWebSite
/app.js
UTF-8
3,319
2.703125
3
[]
no_license
//If this doesn't work, then type in var in front of //bodyParser, path,expressValidator,and mongoose var express = require('express'), //const mongoose = require('mongoose'); bodyParser = require('body-parser'), path = require('path'), expressValidator = require('express-validator'), // mongoose.connection.once('op...
true
4f258d89e114463ff98509a0d6e783b3bb113813
JavaScript
benbucksch/jscollection
/lib/collection/array.js
UTF-8
7,587
3.234375
3
[]
no_license
import { Collection, KeyValueCollection } from "../api.js" import { assert, arrayRemove } from "../util.js" /** * A `KeyValueCollection` based on a JS Array. * Properties: * - ordered * - indexed: every item has an integer key * - can hold the same item several times * - fast */ export class ArrayColl extends K...
true