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
5d59f5f4a5dab3b6975b801a843b8b37e16dfd78
JavaScript
vilmarschmelzer/babel6_angularjs
/task_list/static/js/app/controllers/TaskController.js
UTF-8
1,510
2.578125
3
[ "MIT" ]
permissive
export default class TaskController { /*@ngInject*/ constructor(TaskService) { this.task = null; this.tasks = []; this.taskService = TaskService; this.loading = true; this.dialog = $('#modal_task'); this.getTasks(); } getTasks(){ this.loading...
true
e21bdec6563e01e3a08869e1f1044075b8bc5354
JavaScript
lessonli/note
/javascript/OOC/6.js
UTF-8
313
2.609375
3
[]
no_license
/* * 编写queryURLParams方法实现如下的效果(至少两种方案) */ function queryURLParams (url) { } const url = 'http://www.baidu.cn/?lx=1&from=wx#video' // console.log(url.queryURLParams('from')) //= >"wx" // console.log(url.queryURLParams('_HASH')) //= >"video" console.log(queryURLParams(url))
true
29f4069a7d8425e2d2ddc5f6637275a39c63f499
JavaScript
schlieter/testIngreso
/2-InstruccionIf/jsInstruccionIF (9).js
UTF-8
246
3.015625
3
[]
no_license
function Mostrar() { /*var numero; numero = Math.floor((Math.random()* 1) + 10); document.getElementById('numero').value = numero; */ var numero = Math.floor((Math.random()* 50) + 100); document.getElementById('numero').value = numero; }
true
72caf45c84cf9d7cbb55d0c0c05c0df831f5b7ae
JavaScript
j-abreu/webdev-course
/js/4-OOP/7-inheritance.js
UTF-8
569
3.671875
4
[]
no_license
const ferrari = { model: 'f40', year: 2000 } const volvo = { model: 'v30', year: 2019 } console.log(ferrari.__proto__) console.log(ferrari.__proto__ == Object.prototype) // by default, the prototype of an object points to Object.prototype console.log(volvo.__proto__ == Object.prototype) console.log(O...
true
ad32f2b5ef480f702b95ff8c5123c4218919fe05
JavaScript
ivan-woo/Practice-Problems
/lengthOfLinkedList.js
UTF-8
497
3.671875
4
[]
no_license
/* Given a singly linked list node, return its length. The linked list has fields next and val. Constraints n ≤ 100,000 where n is the number of nodes in node Example 1 Input node = [5, 4, 3] Output 3 */ class Solution { solve(node) { let length = 0; const findLength = (currentNode) => { if (!c...
true
d4cd397573024962ba714a11728b9417dd4607cf
JavaScript
Daembius/FunWebDev
/Chapter 8/lab08_start/js/lab08-walkthrough07.js
UTF-8
1,040
3.375
3
[]
no_license
/* add code here */ var daysOfWeek = new Array("Mon", "Tues", "Wed", "Thurs", "Fri"); //document.write(daysOfWeek+"<br/>"); daysOfWeek.push("Sat"); //document.write(daysOfWeek+"<br/>"); daysOfWeek.unshift("Sun"); //document.write(daysOfWeek+"<br/>"); document.write("<table border=1>"); document.write("<tr>"); ...
true
55bfaf87ff0135fba3b31803252d5be0cf13e859
JavaScript
UDESC-IBIRAMA/prova2-dsw-2018-2-GustavoCreutzberg
/GustavoCreutzberg/script.js
UTF-8
367
3.421875
3
[]
no_license
let arrayTitulos = []; function Salvar(){ let titulo = document.getElementById('titulo'); console.log(titulo.value); arrayTitulos.push(titulo.value); } function Resultado(){ console.log(arrayTitulos); for(let a in arrayTitulos){ console.log(arrayTitulos[a]) //document.createElement('tr'); //document....
true
339f90bc0a9edd90ad23870efe38ec807915d0d5
JavaScript
leomza/LyricsMusic
/letras/src/App.js
UTF-8
2,219
2.921875
3
[]
no_license
import React, { Fragment, useState, useEffect } from 'react'; import Formulario from './components/Formulario'; import axios from 'axios'; import Cancion from './components/Cancion'; import Info from './components/Info'; function App() { //Defino el State para que desde el formulario me envie los datos de la busque...
true
a3f320f78f64a632f12c0575945031c823fa283e
JavaScript
gadilabi/lets-talk
/public/components/Create.js
UTF-8
3,985
2.703125
3
[]
no_license
var templateCreateMenu = document.createElement("template"); templateCreateMenu.innerHTML = ` <style> #wrapper{ display: grid; place-items: center; } #menu { display: flex; flex-direction: column; justify-content: center; align-items: center; } #menu>*{ margin-bottom: 20px; } #ba...
true
20b2d29a0d4a0746d37e25c0ecd330c55ceddd68
JavaScript
ashour/vuejs-i18n-demo
/src/services/util/index.js
UTF-8
1,381
3.109375
3
[ "MIT" ]
permissive
export function loadAsset(fileName, fileType) { let fileref = null if (fileType === 'js') { fileref = document.createElement('script') fileref.setAttribute('type', 'text/javascript') fileref.setAttribute('src', fileName) } else if (fileType === 'css') { fileref = document.cr...
true
92feafdee7963c3f5bf111722d7f357aeef21d77
JavaScript
scottfabini/apptbook
/server.js
UTF-8
4,527
2.65625
3
[ "MIT" ]
permissive
/** * Copyright (c) 2016 Scott Fabini (scott.fabini@gmail.com) * All rights reserved. * * This source code is licensed under the MIT license found in the * README.md file in the root directory of this source tree. */ 'use strict'; var express = require('express'); var pg = require('pg'); var app = express(); var ...
true
881bf6c54d31f26a8ca782714c832709a670e2ae
JavaScript
cybersettler/uiButton
/component/ui/Button/ButtonWidget.js
UTF-8
1,444
2.53125
3
[]
no_license
const d3 = require('d3'); const Handlebars = require('Handlebars'); function ButtonWidget(view, scope) { this.view = view; this.scope = scope; this.template = Handlebars.compile(view.innerHTML); } ButtonWidget.prototype.render = function() { return this.fetchData() .then(renderButtion); }; ButtonWidget...
true
3e1ee1e849cefdcc8a69f52e016888972d780279
JavaScript
llalov/Software-University
/#1_JavaScript-Basics/4_JavaScript-Functions/4_Exam_2_TetrisFigures.js
UTF-8
3,175
3.046875
3
[]
no_license
function solve(arr) { var matches = { I: 0, L: 0, J: 0, O: 0, Z: 0, S: 0, T: 0 }; //check for L. if (arr.length >= 3 && arr[0].length >= 2) { for (var row = 2; row < arr.length; row++) { for (var col = 1; col < ...
true
5c3a3c76d5c793369a62fb330707636a61c51316
JavaScript
ravikr126/Data-Structures-And-Algorithms-Hacktoberfest18
/javascript/algorithms/selectionSort.js
UTF-8
528
3.28125
3
[]
no_license
function selectionSort(values) { for (i = 0; i < values.length; i++) { let indexOfMin = i; for (let j = i + 1; j < values.length; j++) { if (values[j] < values[indexOfMin]){ indexOfMin = j; } } if (i != indexOfMin ) { let temporary...
true
1ac5d503d15716d37de18aa6d9f12b18c0084a13
JavaScript
RachelParris/messageboard
/client/src/components/login/Login.js
UTF-8
1,850
2.53125
3
[]
no_license
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import axios from 'axios'; import './Login.css'; import Header from '../header/Header'; class Login extends Component { constructor(props) { super(props); this.state = { email: '', password: '' } } h...
true
5e254f352f3d99c77aa92583de316d0c8bf52986
JavaScript
ahmed2929/HNG-Script
/scripts/lucas-okafor.js
UTF-8
476
3.890625
4
[]
no_license
// create a function that receives first name, last name, id and language parameter function display(fName, lName, id, email, lang) { // The line below returns a string when the function is called return `Hello World, this is ${fName} ${lName} with HNGi7 ID ${id} and email ${email} using ${lang} for stage 2 tas...
true
e2b314ac514d750501b646dcd7de1e6f441d48bd
JavaScript
anthonySensei/jQuery-project
/jQueryProject/js/script.js
UTF-8
866
2.546875
3
[]
no_license
$('.carousel').carousel({ interval: 3000 }) var $btnTop=$('.btn-top') $(window).on('scroll', function(){ if($(window).scrollTop() >= 20){ $btnTop.fadeIn(); }else{ $btnTop.fadeOut(); } }); $btnTop.on('click', function(){ $('html,body').animate({scrollTop:0}, 900) }); var $time = document.querySele...
true
bc8d47d2c0dddef078aad84229f01a30efd3dad3
JavaScript
Lauri-Nieminen/fullstackopen2020
/osa2/maidentiedot/src/App.js
UTF-8
991
2.84375
3
[]
no_license
import React, {useState, useEffect} from 'react'; import './App.css'; import Filter from './components/Filter' import Results from './components/Results' import axios from 'axios' function App() { const [filter, setFilter] = useState('') const [results, setResults] = useState([]) const handleFilterChange = (eve...
true
2afea76c7a42e4a55b39871767bc8889fcc32c39
JavaScript
rodrigologar/rlgwebsites
/app.js
UTF-8
812
2.703125
3
[]
no_license
const nav = document.querySelector("nav"); const navOffset = document.getElementById("social-icons").offsetTop; window.addEventListener("scroll", function () { const offset = window.pageYOffset; if (offset > navOffset) { nav.classList.add("scroll"); } else { nav.classList.remove("scrol...
true
07ea27913ea1ef61c96b0a06acefce333c348607
JavaScript
amasiero/keycash-frontend-challenge-andrey-masiero
/src/components/helpers/Formatter.jsx
UTF-8
292
2.703125
3
[]
no_license
class Formatter { static street(address) { return address.split(',')[0] } static city(address) { return address.split(',')[1].replace(/[0-9]/g, '') } static formatCurrency(value) { return value.toString().replace(/(?=\d)(\d{3})(\d{2})$/g, '.$1,$2') } } export default Formatter
true
849020ccd55b6397ef037cd5ed0e8179a27ff924
JavaScript
jacksantaniello/HW2
/manage-cards.js
UTF-8
1,702
3.3125
3
[]
no_license
var tweets = {"interest1": [], "interest2": [], "interest3": [] } var idCounter = 0 function addCard(id) { var cBody = document.getElementById(id); var tweet = document.createElement("div"); tweet.classList.add("card"); var tImage = document.createElement("img"); tImage.classList.add("card-img-to...
true
0ec18f0f80f2be886ee22672a8420b70a831634a
JavaScript
GalliumWang/emojion
/src/static/Assets/js/emotionDetectUtils.js
UTF-8
1,398
2.875
3
[]
no_license
function faceDetect(){ const options = { method: "POST", headers: {'content-type': 'application/json'}, mode: 'cors' }; let body={ base64Data:null } let currentImgBase64Data = videoImageGetter(); currentImgBase64Data = currentImgBase64Data.substr(c...
true
5c0de6cab3ec6fc68d98a9acc96110acad451baa
JavaScript
rarmand/blog
/src/views/components/AboutContainer/index.js
UTF-8
2,946
2.625
3
[]
no_license
import React from "react"; import "./styles.sass"; // tekst do wymiany w razie użycia innego języka // zamieszczony w innym pliku // eng -> pl const AboutContainer = () => { const aboutText = [ "Profesjonalnie podchodząc do sprawy jestem programistką.", "Ukończyłam kierunek Informatyka Stosowana na wydziale...
true
7803ade74f07578b88dc863f6cb8e6e7089dbd48
JavaScript
xunzhaotech/koa-boilerplate
/app/shard/utils.js
UTF-8
984
2.53125
3
[ "MIT" ]
permissive
'use strict' const axios = require('axios') // 助手函数,用于对 axios 添加请求日志记录 exports.createAxiosInstance = function (namespce, options) { const instance = axios.create(options) instance.interceptors.response.use( function (response) { const config = response.config console.group( `[${namespce}]...
true
653f7f39b6180fceb7cf8ff452aff1e4efd5394b
JavaScript
maomao1996/mmNodeApi
/model/toplist.js
UTF-8
1,489
2.765625
3
[ "MIT" ]
permissive
/** * 排行榜类模型 */ const { BaseSong } = require('./base') class TopList { constructor({ id, picUrl, name, songs, platform }) { this.id = id // id this.picUrl = picUrl // 图片 this.name = name // 标题 this.platform = platform // 来源平台 this.songs = songs // 热门歌曲列表 } } // 格式化热门歌曲 function formatSongs(...
true
ad8de076f0c4e9d32980b7b029c5abd91434e5bd
JavaScript
PRkudupu/NodeProjects
/app.js
UTF-8
4,731
2.78125
3
[]
no_license
//web framework for node.js var express =require('express') //Gives an instance of express var app =express(); //Used for post request and forms var bodyParser=require('body-parser'); //MongoDB Object modeling tool designed to work in asynchronous environment var mongoose =require('mongoose'); //logger middlew...
true
60a7d3e103783be32861d28766af7a2d028a4e4a
JavaScript
lquresh52/BE-Project-2021
/static/js/student_test_page.js
UTF-8
2,423
3.015625
3
[]
no_license
function selectCorrectAns(id, divId, counter) { var op1 = document.getElementById('optionid-1'+counter); var op2 = document.getElementById('optionid-2'+counter); var op3 = document.getElementById('optionid-3'+counter); var op4 = document.getElementById('optionid-4'+counter); // question_type will...
true
781b9f74763c55badf7b47d865e1d7cea0c9369d
JavaScript
Rajdeepc/learn-ds-with-javaScript
/sets/sets.js
UTF-8
2,629
4.28125
4
[]
no_license
let mySet = function() { // lets create an empty set which will hold an array of distinct items let collection = []; // this method will check whether an element already exist in the set or not this.has = function(elem){ return (collection.indexOf(elem) !== -1) // this checks whether the elem...
true
586b717765d0610f4f430b2582edede8cef7dbf0
JavaScript
revolunet/jsocket
/client/code/utils.js
UTF-8
2,384
3.0625
3
[]
no_license
/** * @class jsocket.utils * <p><b><u>jsocket utils</u></b></p> * <p>Valide et forge le JSON des commandes a partir d'un objet.</p> * @author Revolunet * @version 0.3.0 * @singleton */ jsocket.utils = { /** * Forge une commande JSON a partir d'un objet javascript * @param {Object} obj Objet javascript * @...
true
140330b38a8e1001b15f7194109755197efc0bdb
JavaScript
Echoes93/fullstack-challenge
/server/lib/router.js
UTF-8
1,504
2.609375
3
[]
no_license
const { Router } = require("express"); const Busboy = require("busboy"); const csv = require("csv-streamify"); const rootRouter = Router(); rootRouter.post("/search", (req, res) => { const query = String(req.body.query); const limit = Number.isInteger(req.body.limit) ? req.body.limit : 20; req.stat...
true
43ef6fb0788a5abf7ba2c78c60b95c8330d37336
JavaScript
Gongodes/React
/fundamentos/src/components/Listas.jsx
UTF-8
670
2.859375
3
[]
no_license
import React ,{useState}from 'react' const Listas = () => { const estadoInicial=[ { id: 1, texto: 'tarea 1'}, { id: 2, texto: 'tarea 2'}, { id: 3, texto: 'tarea 3'}, { id: 4, texto: 'tarea 4'}, ] const [lista,setLista]=useState(estadoInicial) const id = 5 const tarea = 5 const agregarElemento...
true
738cf0f235a09bc46c386b984584f0a570ed176c
JavaScript
dricazenck/samples
/samples-js/challenge/qnd-02/challenge-1.js
UTF-8
427
3.609375
4
[]
no_license
var potencia; var quadrado = potencia(2); console.log(quadrado(2)); // 4 console.log(quadrado(3)); // 9 console.log(quadrado(4)); // 16 var cubo = potencia(3); console.log(cubo(2)); // 8 console.log(cubo(3)); // 27 console.log(cubo(4)); // 64 // implementar a função potência usando closure. var Pow = funct...
true
ec07191050cb40bf8a3d5c60798c0de0134be431
JavaScript
natpoveda/store-natalia-poveda
/src/contexts/contextProviderProducts.js
UTF-8
920
2.515625
3
[]
no_license
import React, { useEffect, useState } from "react"; export const ProductsContext = React.createContext(); let s_obj = " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZjQ4MjE0Yjc0MjM1MjAwMWVkOTA5OTIiLCJpYXQiOjE1OTg1NjI2MzV9.2HuMRmZHgJRgUETrIXAli97SnBBy_IU_8fKFT4TmE3Q"; const headers = { "Content-Type": "applica...
true
3b3ed0624461d49af230c077cfa514a2dab75855
JavaScript
krlsedu/GestorLotericoWeb
/src/main/webapp/templates/js/consultas.js
UTF-8
21,887
2.546875
3
[]
no_license
function CriaRequest() { try{ request = new XMLHttpRequest(); }catch (IEAtual){ try{ request = new ActiveXObject("Msxml2.XMLHTTP"); }catch(IEAntigo){ try{ request = new ActiveXObject("Microsoft.XMLHTTP"); }catch(falha)...
true
31e57fdb9529c02e9502eab3ac87683a91a8b09a
JavaScript
chris-atkins/recipe-web
/e2e-tests/endpoint-tests/recipe-endpoint-spec.js
UTF-8
13,289
2.59375
3
[ "MIT" ]
permissive
'use strict'; var rs = require('request-promise'); var Promise = require('bluebird'); var config = browser.params; var dataUtils = require('./../utils/data-utils'); describe('the endpoint', function() { var listOfRecipeIdsToCleanUp = []; var userId; beforeAll(function(done) { var email = dataUtils.randomEmail...
true
9c336bd79817191d752b9bdd8c95890fbccc3a8d
JavaScript
f-nely/curso-javascript
/curso-js/modulo-02/aula05/aula-05.js
UTF-8
369
2.890625
3
[]
no_license
function trocar() { if (document.querySelector("button").classList.contains("bg-blue")) { document.querySelector("button").classList.remove("bg-blue"); document.querySelector("button").classList.add("bg-green"); } else { document.querySelector("button").classList.remove("bg-green"); document.querySe...
true
b4165fe85d253ee259164b5629df798b8d98c0d5
JavaScript
angeliaz/foodie
/images/localhost_files/glue-core_cf8326f7.js
UTF-8
102,552
2.5625
3
[]
no_license
/* filePath fetchtemp/scripts/core_16cb3d53.js*/ (function (glue) { 'use strict'; var win = window; // 将原有的glue备份。无冲突处理 glue.__old = win.glue; win.glue = glue; win.__glue = glue; var orgDefine = win.define; glue.hasDefine = {}; win.define = function (id) { glue.hasDefine[id] = id; orgDefin...
true
387f5e6c06b7968045db35d8f568d51cde1f8ce2
JavaScript
T14g/logic_challenges
/study/maxSubArray.js
UTF-8
1,904
4
4
[]
no_license
const {performance} = require('perf_hooks'); // Calcular o subarray máximo // Fórmula = [(index pares somados) - (index ímpares somados)]^2 // Caso de teste [3,-1,-1,-1,5,1] // // Kadane’s Algorithm — (Dynamic Programming) // Programação dinâmica tem a ver com quebrar um problema em problemas menores // Resolvendo...
true
0ed579d4b1350692429592cbc6c51bcac603d323
JavaScript
newton-webbutveckling-sysg4/lektion-08-30
/exercises.js
UTF-8
2,905
4.34375
4
[]
no_license
// 6.1 Skriv en arrow function som gör samma sak som följande funktion: // function vanlig(parameter) { return parameter; } const vanlig = (parameter) => parameter // 6.2 Skriv en arrow function som tar ett tal som parameter och returnerar dubbla talet. Om man till exempel anropar funktionen med 5 som parameter ska de...
true
d2fd6b1cc50f3f47c319f9b0d05e00ab2be87bec
JavaScript
Zlat1k/practice_js
/js/variables.js
UTF-8
487
3.453125
3
[]
no_license
console.log(student); // undefined var student = 'Zlata'; console.log(student); var count; console.log(count); // undefined count = 15; console.log(count); count = 19; console.log(count); // console.log(number); Error let number = 29; console.log(number); let age; console.log(age); //undefined age = 32; console.log(...
true
9f33c6fd66af1c45816b4bf6f82c85f7feefc445
JavaScript
ttngocthao/fullstackopen-2021-selftraining_part3
/mongo.js
UTF-8
1,637
3.1875
3
[]
no_license
const mongoose = require('mongoose') /* example of process.argv $ node process-args.js <password> firstArg secondArg 0: /usr/local/bin/node 1: /Users/mjr/work/node/process-args.js 2: password 3: firstArg 4: secondArg */ if(process.argv.length <3){ console.log('Please provide the password as an argument with this...
true
80b913d7fd12b0eafc57ad0e8986a82e8c61abd9
JavaScript
ooow/gridquiz-frontend
/src/DashboardResult.js
UTF-8
2,305
2.546875
3
[]
no_license
import React, {Component} from 'react'; import Pattern from './img/background_pattern.svg'; class DashboardResult extends Component { constructor(props) { super(props); this.colors = [ { a: '#F9D56D', b: '#C7A75D' }, { ...
true
ef3a0368c55cff1c681b9b6ae9a44561f734968e
JavaScript
ruzimboyFreeman/scargoregistration
/src/components/FilterEmploye.js
UTF-8
2,074
2.640625
3
[]
no_license
import React, {useState} from 'react'; import {useEffect} from "react"; import axios from "axios"; function FilterEmploye(props) { const [staff,setStaff]=useState([]); const [data,setData]=useState([]); useEffect(()=>{ axios.get("https://nimadir.herokuapp.com/api/employee") .then((res)=...
true
0de37b5225fff96b0230a7809b8c014486352e9e
JavaScript
bovine/cowguard
/js/browse.js
UTF-8
250
2.5625
3
[]
no_license
function deleteEventButton(eventkey) { $.post('/events/delete', { event: eventkey }, function(data) { alert(data); location.reload(); }); } function markEventRead(eventkey) { $('#' + eventkey).removeClass('unread'); }
true
7444db6e2bf46dbe6289cc7e2b68133aff21dd46
JavaScript
ben-wolfman/SE2202-Labs
/SE2202Labs/Assignment8.js
UTF-8
5,820
4.21875
4
[]
no_license
//****Task 1**** //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //Define Shape class class Shape { constructor(newX, newY) { //__x, __y are the private...
true
a7d0cc35393a4fb6351779dea92a1e436b78adab
JavaScript
eliftabak/Boards-Project
/src/reducers/index.js
UTF-8
1,684
2.53125
3
[]
no_license
import { combineReducers } from "redux"; const currentBoardIDReducer = (state = [], action) => { switch (action.type) { case "CURRENT_BOARD_ID": return action.payload; default: return state; } }; const collectionNameReducer = (state = [], action) => { switch (action.type) { case "COLLECTI...
true
ae604252d30f97bf659275244efe2369556efa24
JavaScript
WingOfFlame/CourseScheduleExporter
/js/lib/util.js
UTF-8
1,131
2.8125
3
[ "MIT" ]
permissive
define(function(require) { var termReg = /(Spring|Summer|Fall|Winter)\s+(\d{4})\s+\|\s+([a-zA-Z]+)\s+\|\s+(.+)/; var courseReg = /^([A-Z]{2,}\ \w{1,5})\ -\ (.+)$/; var compReg = "Class Nbr Section Component Days & Times Room Instructor Start/End Date"; var daysOfWeekReg = /^(Su)?(Mo|M)?(Tu|T)?(We|W)?(Th)?(Fr|F...
true
951c670aec2bbe54e0e1c27089d8d083e8364101
JavaScript
lp20010415/Software-cup
/修改/晓星晨曦2021.7.19/statics/js/div/BarCharts.js
UTF-8
12,789
2.703125
3
[]
no_license
for (let i = 0; i < ord.length; i++) { let arrs = 'arr' + i arrs = [] arrs = ord[i].split(",") arrayObj.push(arrs) } if (ord.length !== 0) { layer.open({ content: '您是否需要将原有数据,进行绘图?', btn: ['确定', '取消'], yes: function (index) { ...
true
91ee24e5a19b0ef5573d26915b46a2a0278529f1
JavaScript
Vontei/data-model-practice
/diagram2.js
UTF-8
661
3.4375
3
[]
no_license
var Business = function(name,slogan){ this.name = name, this.slogan = slogan, this.address = null } Business.prototype.nameAndSlogan = function(){ console.log('Welcome to ' + this.name + ',' + this.slogan) } var Address = function(street, city_state_zip){ this.street = street, this.city_state_zip = city_s...
true
12cda5ae079c33d2645a87de065c0e6e07821a45
JavaScript
jzhao62/WeatherApplication_FrontEnd
/src/models/Marker/MyDirectionRender.js
UTF-8
5,004
2.59375
3
[]
no_license
//https://tomchentw.github.io/react-google-maps/#installation import React from "react"; import {SmallMarker, MarkerWithLabel,ClusterMarker} from '/home/jingyi/WebstormProjects/my-app/src/models/Marker/MapMarker.js' import NameForm from '../../models/userInput.js' import { Button, Alert } from 'reactstrap'; const...
true
6256028bc14e16c7608a9fe93329e974465913ce
JavaScript
thekohomlily/testofcourage-monadova
/js/map3.js
UTF-8
1,060
2.796875
3
[]
no_license
var window_obj = null; function gotoMap() { window_obj = window.open('map3.html', '_blank', 'width=400, height=400, menubar=no, toolbar=no, scrollbars=yes'); } function closeMap() { if(window.opener){ // ウィンドウを閉じる // window.close(); window.open('after_map3.html', '_self', 'width=4...
true
b55d093809db68f645f465cbe6f09bae9eb5287d
JavaScript
RobertoMalatesta/amqp-client.js
/dist/amqp-websocket-client.mjs
UTF-8
57,837
2.625
3
[ "Apache-2.0" ]
permissive
class AMQPError extends Error { constructor(message, connection) { super(message); this.name = "AMQPError"; this.connection = connection; } } class AMQPQueue { constructor(channel, name) { this.channel = channel; this.name = name; } bind(exchange, routingkey, args = {}) { return new P...
true
87c03aa7fac168829125bea5a5452ecee20a8b9c
JavaScript
Shawtykk/NWUzhangyukun
/static/js/generate_ball.js
UTF-8
10,897
3.15625
3
[]
no_license
//生成随机数 function randomNum(m, n) { return Math.floor(Math.random() * (n - m + 1) + m); } //获得wrapDiv var wrapDiv = document.getElementById("wrap"); //定义数组存储所有的小球 var balls = []; //生成小球函数 function createBalls(num, isInfect = false, isLatent = false, peopleSpeed) { //i是创造小球的数目 for (var i = 0; i < num; i++) { var b...
true
b32341912bc1a75f9e8dbfb86bd26a24428e0746
JavaScript
zbo14/mainline
/lib/server.js
UTF-8
4,824
2.609375
3
[ "MIT" ]
permissive
'use strict'; const { createSocket } = require('dgram'); const Bucket = require('./bucket'); const Contact = require('./contact'); const Id = require('./id'); const RoutingTable = require('./routingtable'); const insertContact = ( arr, contact ) => { if ( arr.length > 0 ) { ...
true
e351e068667660de27613c24e8b403b6d0a02d4e
JavaScript
TaylorOD/Retask
/Retask/tasks_edit.js
UTF-8
1,727
3.0625
3
[]
no_license
/* global getSavedTasks */ const titleEl = document.querySelector("#task_title") const bodyEl = document.querySelector("#task_body") const updatedAtEl = document.querySelector("#task_updatedAt") const removeEl = document.querySelector("#remove_task") const taskID = location.hash.substring(1) let tasks = getSavedTasks...
true
8cd5588629b8ccec1cdbf68b72457bf49f0e637c
JavaScript
sandygonewindy/SGW-Blog
/controllers/blogController.js
UTF-8
2,103
2.59375
3
[]
no_license
const Blog = require('../models/blog'); // blog_index, blog_details, blog_create_get, blog_create_post, blog_delete const blog_index = (req, res) => { Blog.find().sort({ createdAt : -1 }) .then((result) => { res.render('blogs/index', { title : 'All Blogs', blogs : result}); }) ...
true
122de91f93199221dfb9a7fb0c401e421cc814b5
JavaScript
mattbajorek/amazon-search
/server.js
UTF-8
2,738
2.59375
3
[]
no_license
// Require libraries var express = require('express'); var bodyParser = require('body-parser'); var path = require('path'); var amazon = require('amazon-product-api'); var mysql = require('mysql'); var config = require('./config'); // Sets up the Express App var app = express(); var PORT = process.env.PORT || 3000; /...
true
ee33e5760304fd703774a3560eb77f0e3d088a03
JavaScript
canada-ca/design-system
/js/guidance-toggle.js
UTF-8
542
2.765625
3
[]
no_license
$(document).ready(function(){ //show guidance button $("#show-guidance-toggle").click(function(){ $('#show-guidance-toggle').addClass("active"); $('#hide-guidance-toggle').removeClass("active"); $('.guidance-details').removeClass("hidden"); }); //hide guidance button $(...
true
6750daa4bb55be6aaf6136b52191e6b679e02c49
JavaScript
sykeben/BlueDashPro
/js/setuploader.js
UTF-8
3,201
2.546875
3
[]
no_license
function loadSetup() { initSettings(); if (getSetting("teamkey") != null) document.getElementsByName("input-teamkey")[0].value = getSetting("teamkey").toString(); if (getSetting("eventkey") != null) document.getElementsByName("input-eventkey")[0].value = getSetting("eventkey").toString(); if (getSetti...
true
789d777271a8667f2dd2cc290952d0bff4888e05
JavaScript
FlavianoMucedda/JavaScript
/06-Hangman/main.js
UTF-8
598
3.46875
3
[]
no_license
let letterToFind = ["b","o","n","j","o","u","r"]; let letterInput = ["","","","","","",""]; let guessLetter = function(){ while (letterInput.toString() !== letterToFind.toString()) { let letters = windows.prompt("Enter a letter").toUpperCase(); if (wrong.includes(letters)) === false) { wrong.push(letter...
true
3bd57e775c33663d070e1445b12e3e5311a48827
JavaScript
PaiZuZe/space-ship-battles
/client/util.js
UTF-8
2,846
3.171875
3
[ "MIT" ]
permissive
//////////////////////////////////////////////////////////////////////////////// // Pirate Ship Battles // // // // Client - Util ...
true
88d48f1d12b571615d586438abcb62a7a009a7c9
JavaScript
sofi-23/gamerland_
/src/components/ItemListContainer/ItemCount.jsx
UTF-8
1,361
2.859375
3
[]
no_license
import { useState, useEffect } from 'react'; export default function ItemCount ({stock, initial, onAdd, id, name}) { const [count, setCount] = useState(initial); const [disabledMax, setDisabledMax] = useState(false); const [disabledMin, setDisabledMin] = useState(true); const addUp = () => { ...
true
b442e9a9ab6e774adb1b70d3b2d7a2e789de73b7
JavaScript
thrashraf/javascript-practive
/DOM/app.js
UTF-8
1,234
4.03125
4
[]
no_license
//1 grab element from the dom //2 attach evebt listener const body = document.body; // body.style.backgroundColor = '#1CE'; //es5 arrrow fucntion // function goCuckoo() { // document.body.style.backgroundColor = '#1CE'; // } //es6 arrow function const goCuckoo = () => {document.body.style.backgroundColor = '#1CE...
true
7452280ea8e7ee52799c9a2be4b0d1b9d86b4c5b
JavaScript
owenhindley/Unity-RemotePlayModeController
/NodeServer/index.js
UTF-8
973
2.640625
3
[ "0BSD" ]
permissive
const express = require('express'); const port = 88; var playMode = false; const playModeServer = express(); playModeServer.get("/stateJSON", (req, res)=>{ res.statusCode = 200; responseObj = { 'playMode' : playMode }; res.end(JSON.stringify(responseObj)); }); playMo...
true
7f182aa1c5e59007927373417c2f20af4aa65543
JavaScript
imjayanthka/DataStrcturesInJS
/linkedList/index.js
UTF-8
413
2.953125
3
[]
no_license
var LinkedList = require('./MyLinkedList.js'); const list = new LinkedList(); list.addToHead(1); console.log(list.print()); list.addToHead(2); console.log(list.print()); list.addToHead(3); console.log(list.print()); list.addToTail(4); console.log(list.print()); list.addToTail(4); console.log(list.removeHead()); consol...
true
ec3784ae5ba7725e8c7b2d7e72f5d896b6fac4d2
JavaScript
CarlosZiegler/lab-javascript-basic-algorithms
/js/index.js
UTF-8
4,296
4.5
4
[]
no_license
// Iteration 1: Names and Input const hacker1 = `Carlos`; const hacker2 = `Ana`; const sayDriver = `The driver's name is ${hacker1}`; const sayNavigator = `The navigator's name is ${hacker2}`; console.log(sayDriver); console.log(sayNavigator); // Iteration 2: Conditionals if (hacker1.length > hacker2.length) conso...
true
29981e5585fc283eb571a9cdaae1b35c18250959
JavaScript
MartaKode/Sprint-Challenge--JavaScript
/challenges/closure.js
UTF-8
1,014
4.78125
5
[]
no_license
// ==== Closures ==== /* Task 1: Study the code below and explain in your own words why nested function can access the variable internal. */ const external = "I'm outside the function"; function myFunction() { console.log(external); const internal = "Hello! I'm inside myFunction!"; function nestedFunction()...
true
103ba11ebd6824e93e64fb8cd076f11cd6bc1b53
JavaScript
gonzaleznicolas/SixNimmt
/public/js/setup/homePageController.js
UTF-8
4,595
2.578125
3
[]
no_license
"use strict"; const FormType = Object.freeze({ NewGame: 1, vsAI: 2, JoinGame: 3, SpectateGame: 4 }); const TypeOfLoadingScreen = Object.freeze({PersonWhoStartedTheGame:1, PersonJoiningOrSpectator:2}); let formType = undefined; let socket = undefined; let loadingScreenType = undefined; let gameCode = undefined; let wa...
true
afd64d0f755775981121df18f1273c4d4552520b
JavaScript
NoMoreViolence/Coins-fin
/src/components/Exchange/Exchange.js
UTF-8
3,553
2.59375
3
[]
no_license
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; // 로딩바 import * as Call from './../Call/Call'; import './Exchange.css'; // Form import ExchangeForm from './../ExchangeForm/ExchangeForm'; // 스타일 컴포넌트 import styled from 'styled-components'; class Select extends Component { constru...
true
742d8834f75a06ded3c00d4746cbbce6c9f5bbe1
JavaScript
philippesalvail/m3-6-node--promises
/__workshop/exercise-4.js
UTF-8
233
3.3125
3
[]
no_license
// Exercise 4 - `getCurrentTemperature` // ----------------------------------- // Given an address as a string, returns the temperature // Use the getCurrentTemperatureAtPosition function function getCurrentTemperature(address) { }
true
ed0ca13748416327b2779a9bacea2b98d75b08d6
JavaScript
mediamonks/spotify-audio-features
/src/js/helpers/button-texts.js
UTF-8
508
2.5625
3
[]
no_license
export const buttonTextsSurprised = ['Oh sick', 'Cool', 'Nice', 'Awesome', 'Great thanks', 'Amazing', 'Wow', 'Insane', 'Splendid', 'Far out', 'Good to know', 'No way', 'Yey algorithms!']; export const buttonTextsUnderstanding = ['Ah I see', 'Ok thanks!', 'Gotcha.', 'Now I get it', 'Muchas gracias']; export const button...
true
6ed0238e53450288cd99e4071e23d2c9227512d4
JavaScript
Gatronglaptrinh/QuayVideo
/laptrinh/xúc xắc/i.js
UTF-8
4,173
3.203125
3
[]
no_license
c = document.getElementById('c'); c.width = 600; c.height = 400; ctx = c.getContext('2d'); function xucxac1() { ctx.clearRect(0,0,c.width, c.height); ctx.fillStyle = 'gray'; ctx.fillRect(50, 50, 200, 200); var so = Math.ceil(Math.random() * 6); console.log(so); if (so === 1) { ctx.fillStyle = 'white'; ctx.beg...
true
b9e1a3a551ce88cc559f5b0add45efcccf6ddb8a
JavaScript
Web4academiejaar20192020semester3/TeugelsDylan-ChatApp
/web/js/chat.js
UTF-8
5,554
2.65625
3
[]
no_license
var firstTime = 1; function addEvent(){ var input = document.getElementById("chatText"); input.addEventListener("keyup", function(event) { if (event.keyCode === 13) { event.preventDefault(); document.getElementById("sendButton").click(); } }); } function startNewCh...
true
9163262875885fdedabb469a6ecca09c8cb0671e
JavaScript
s-yeremeev/homework--14
/src/modules/Homework/foot/index.js
UTF-8
927
2.5625
3
[]
no_license
import "document-register-element" export default class FootContainer extends HTMLDivElement { static displayName = "foot-container" static parentElement = "div" constructor() { super() this.classList.add("hero-foot") this.container = document.createElement("div") this.container.classList.add(...
true
709650a04c060c86b87412aabaf4c39f1abdaed8
JavaScript
SerranoPe/Marvel-comics-API
/js/index.js
UTF-8
6,537
3.03125
3
[]
no_license
let superhero_character = ""; const NO_DATA = '<p><i class="fas fa-exclamation-triangle"></i> No data to display</p>'; // obtain data from clicked button function superHeroSearch() { $('form').on('submit', function(e){ e.preventDefault(); superhero_character = $('.superhero-search').val(); $...
true
c8facb890b97a50686152e98a76c54fa89419a30
JavaScript
Gustu/elasticsearch-nodejs-watcher
/source/index.js
UTF-8
1,997
2.890625
3
[ "MIT" ]
permissive
import elasticsearch from 'elasticsearch'; import cron from 'node-cron'; class Watcher { constructor(params) { this.client = new elasticsearch.Client(params); } start = ({schedule, query, predicate, action, errorHandler}) => { if (!this.scheduler) { const task = () => { ...
true
94aa393c4d047a96346bfa11e953d194d5e914b9
JavaScript
mishapodl/minesweeper
/main.js
UTF-8
7,985
3.65625
4
[]
no_license
//создаем мины, //возращаем ф-ию как массив, в нем рандомные числа, //число означает номер клетки где будет мина let generationBombs =(b, n) => { //количество бомб, диапазон 0 до "n" рандом число(количество клеток) let bombs = []; let randTrBomb, randFlag; while(bombs.length !== b) { //пока массив не будет запо...
true
de6791f023735622981f9ba4c1d41ff7845fb4bf
JavaScript
philwilliamson/crystal-constructor-legacy
/util.js
UTF-8
37,623
2.78125
3
[]
no_license
export function createShader(gl, type, source) { //create shader for webgl context var shader = gl.createShader(type); gl.shaderSource(shader, source); gl.compileShader(shader); var success = gl.getShaderParameter(shader, gl.COMPILE_STATUS); if (success) { return shader; }; console.log(gl.getShaderInfoLog(sh...
true
4b070a8d71190c0533339d794913f96d9e5cdbd0
JavaScript
abenzzine10/ImageGallery
/index.js
UTF-8
4,230
2.734375
3
[]
no_license
$("#img1").on( "click", function() { $("#gallery").hide(); $("#image1").show(); }); $("#next1").on( "click", function() { $("#image1").hide(); $("#image2").show(); }); $("#img2").on( "click", function() { $("#gallery").hide(); $("#image2").show(); }); $("#previous2").on( "click", function(...
true
c627a372d00e2cccaf1e46e5f70eacd407b555a8
JavaScript
vortexntnu/rov-gui
/src/components/obs-tab/ObsTab.js
UTF-8
3,575
2.640625
3
[]
no_license
import React, {Component} from 'react'; import './ObsTab.css'; import {Grid} from 'semantic-ui-react'; import BubbleLevel from './BubbleLevel'; import DataGrid from './DataGrid'; import ROSLIB from 'roslib'; import {Tab} from 'semantic-ui-react'; class ObsTab extends Component { constructor() { super(); ...
true
2a0cd2bb488b8f8f2f1945d5b3794884087631ae
JavaScript
sebruque/fundamentos1
/03/sketch.js
UTF-8
5,008
2.921875
3
[]
no_license
var x = 364; var y = 0; var x1 = 0 var x2 = 728 var x3 = 0 var x4 = 365 var y1 = 0 var y2 = 300 var y3 = 400 var y4 = 700 var x5 = 1094 var y5 = 1000 var x6 = 729 var y6 = 700 var x7 = 1458 var y7 = 0 var x8 = 1095 var y8 = 1650 var y9 = 1350 var y10 = 600 var y11 = 900 var y12 = 1000 var y13 = 1300 var y14 = 500 var y...
true
21c565bdc27cd1a864dd696a37c73e154b649d70
JavaScript
OscarUrielCZ/flipcards
/cards.js
UTF-8
2,727
3.078125
3
[]
no_license
window.onload = function() { // cargar datos y elementos const localstoragename = 'flipcards123'; const container = document.querySelector('.container'); // cargar datos del localstorage let data = localStorage.getItem(localstoragename); // funciones const shuffle = function(a) { for (let i = a.length - 1; ...
true
8880d73efda669044a03d307ee3fe998c1423212
JavaScript
jacobabrennan/tumeric
/client/view/gameplay/audio_worklet.js
UTF-8
2,344
2.671875
3
[]
no_license
let total = 0; //------------------------------------------------ class RelayProcessor extends AudioWorkletProcessor { constructor() { super(...arguments); this.port.onmessage = (eventMessage) => { if(this.audioSnippet) { this.audioSnippet.append(eventMessage.data); ...
true
d4974ba22354e65f32b11500172d7d021696e24d
JavaScript
czwaiwai/myBackend
/viewModels/goods.js
UTF-8
2,083
2.515625
3
[]
no_license
var models = require('../models') var getPageNum = require('../utils/tools').getPageNum var Goods = models.Goods var {parallel} = require('async') exports.create = function (obj, callback) { let goods = new Goods(obj) goods.save(callback) } exports.findAndUpdate = function (id, obj, callback) { Goods.findByIdAndUpd...
true
34325e1153d47f3c5aa7574da0654e55f1f9ceb9
JavaScript
quangmvu/Maze-3D
/WebGLHelper.js
UTF-8
2,493
3.0625
3
[ "MIT" ]
permissive
//Helper functions for WebGL //set up the canvas for WebGL use function initWebGL(canvas) { if(!canvas){ alert("Canvas is null."); } var gl = null; // Try to grab the standard context. If it fails, fallback to experimental. gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl"); ...
true
ad15aa62ce8333d9b4746e35baba63bd7021560f
JavaScript
debosch/e-shop.bx
/public/js/admin/admin-images.js
UTF-8
3,961
2.640625
3
[ "MIT" ]
permissive
$(function() { $(document).ready(function() { window.images = []; // UNPUT FILE NAME GLOBAL //INPUT FILE UPLOADER CUSTOM SCRIPT BEGIN $('body').on('change', '.upload__input', function(event) { // console.log('change'); let messages = $(this).closest('.upload').find('.count_img, .size_img, .file_types')...
true
5a98841a39d1afc98ce91e39b29a3f2404c9c309
JavaScript
UseAder/vue-nodejs
/front/src/store.js
UTF-8
1,188
2.640625
3
[]
no_license
import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); //进行接口暴露 暴露一个stroe仓库的对象 这个对象是Vuex的Store仓库的实例对象 export const store =new Vuex.Store({ //state的取值是用this.$store.state.xxx,我们使用 只进行数据设置 state:{//state是Vuex仓库的一个状态内容 login:false //我们需要一个login的状态 。以辨别用户是否登入 }, //getters是数据执行的地方 getters:{...
true
d289985d07d60cd253bf4692e3228127024a0f7a
JavaScript
hmthanh/probability_of_pull_card
/script.js
UTF-8
2,248
3.265625
3
[]
no_license
function getRandomInt(min, max) { return Math.floor(Math.random() * max) + min; } $(document).ready(function () { var CardDuck = { 0: ["Red", "Red"], 1: ["Red", "Green"], 2: ["Green", "Green"] }; $("#Roll").click(function () { var _roll = parseInt($('#numberRoll')....
true
30ff898d1041e27ff7e0455bd09e097971e6b810
JavaScript
patrickbaudet/educ-node
/public/js/points.js
UTF-8
3,673
2.6875
3
[]
no_license
var Points = angular.module('Points',[]); Points.controller('PointsCtrl',['$scope','$http',function($scope,$http){ //console.log("Salut depuis le controller"); ////////////////////////////////////////////////////////////////////////////////// // récupération des matières : noms court et long et coefficients ////////...
true
6bd4ff1dacbd856f2d30869383fafb45b389bf4f
JavaScript
kriskos/learning_git
/2.js
UTF-8
41
2.546875
3
[]
no_license
function addNumber(a,b) { return (a+b);}
true
2799fa1c7cf9c88938397a42e0793dd8d9dee84f
JavaScript
KumanEnrique/juego
/helpers.js
UTF-8
681
3.203125
3
[]
no_license
let obtenerNumeroRandom = tamaño =>{ return Math.floor(Math.random() * tamaño) } let obtenerDistancia = (e,target) =>{ let diffx = e.offsetX - target.x let diffy = e.offsetY - target.y return Math.sqrt((diffx * diffx) + (diffy * diffy) ) } let obtenerDistanciaHint = distancia =>{ if(distancia < 30)...
true
f65abcbeb85f392681519ad62f639c0ead7cf5fb
JavaScript
AbsoluteVirtueXI/blockchain-courses
/exercices/programming/corrections-loops-iterations/sumAll2D.js
UTF-8
218
3.09375
3
[]
no_license
let tab = [ [1, 2, 3], [4, -5, 7], [-3, -6], [10, -13], ] let sum = 0 for (let i = 0; i < tab.length; ++i) { for (let j = 0; j < tab[i].length; ++j) { sum += tab[i][j] } } console.log(`sum = ${sum}`)
true
1cae1b34823aa10c71360b9aa35294b7ec8674ce
JavaScript
imran8983/imranEs6
/series.js
UTF-8
254
3.875
4
[]
no_license
const series=(n)=> n*(n+1)/2 console.log(series(5)); // sum of n natural number const evenseries=(n)=> n*(n+1) console.log(evenseries(10)); // sum of n even number const oddseries=(n)=> n**2 console.log(oddseries(100)); // sum of n odd Number
true
958216907478e80c42bdf5977e45922472ee5305
JavaScript
le0tan/cs1101s-assignments
/tyh/Quests/7. The Magic Tone Matrix/1.js
UTF-8
638
2.765625
3
[]
no_license
function pentatonic_scale(note, number_of_notes) { /* your answer here */ const gap = list(2,2,3,2,3); function helper(ans, pos, last, num){ if(num <= 0){ return ans; } else { const cur = last + list_ref(gap, pos); return helper(append(ans, list(cur)), ...
true
f208bcc05cb6d0a3c5e959feac4187fde32745ac
JavaScript
OscarLitorell/csv-to-markdown
/csv2md-table.js
UTF-8
2,025
3.0625
3
[]
no_license
function convertToMarkdown(csv, delimiter, alignColumns) { csv = csv.replace(/\r/g, ""); var lines = csv.split("\n").map(function (line) { return line.split(delimiter); }); var columnCount = lines.reduce(function (accumulator, line) { return Math.max(line.length, accumulator); }, 0); var columnWidths = ...
true
8d8818bae9af89a17ae6a980ac7cf234ac2e9296
JavaScript
PHolmes10/Train-Activity
/assets/javascript/app.js
UTF-8
2,754
2.859375
3
[]
no_license
var config = { apiKey: "AIzaSyDqMqZ5j5kWIZ3DuuR3TeywhuAovjOFUsg", authDomain: "train-activity-37ec9.firebaseapp.com", databaseURL: "https://train-activity-37ec9.firebaseio.com", projectId: "train-activity-37ec9", storageBucket: "train-activity-37ec9.appspot.com", messagingSenderId: "262727002192...
true
081a9f26ab4050e1003f4f5d0a4daf828816f711
JavaScript
chesles/packmule-cli
/cli/doc/help.js
UTF-8
2,811
2.59375
3
[]
no_license
var through = require('through2') function help () { /* packmule - native web app release management tool Usage: packmule [command] [directory] [options] with no command or directory, acts like `packmule serve .` Commands: help Show this message info Display metadata about a di...
true
82dd8d51cad181e7dcce6d9073996b0568283111
JavaScript
masterdev1025/react-test
/client/src/components/User/User.js
UTF-8
2,968
2.546875
3
[]
no_license
import React, { useEffect, useState } from "react"; import Jumbotron from "../Jumbotron"; import DeleteBtn from "../DeleteBtn"; import API from "../../utils/API"; import { Col, Row, Container } from "../Grid"; import { List, ListItem } from "../List"; import { Input, TextArea, FormBtn } from "../Form"; import 'bootstra...
true
7b852fd07a947fcfd69bd02663e819b0954d2ae6
JavaScript
gypsydave5/nodeschool-exercises
/functional-javascript-workshop/basicFilter.js
UTF-8
207
2.546875
3
[]
no_license
function lessThan50characters (array) { return array.map(function (object) { return object.message }) .filter(function (message) { return message.length < 50 }) } module.exports = lessThan50characters
true
eac131be8fcc9b0d73dae25291930ddc5bae920f
JavaScript
mattpezzente/propview
/src/pages/Property.js
UTF-8
1,915
2.6875
3
[]
no_license
import React, { Component } from 'react'; import Loading from '../components/Loading'; import PropHead from '../sections/PropHead'; import PropOverview from '../sections/PropOverview'; import PropDetail from '../sections/PropDetail'; import PropValue from '../sections/PropValue'; import PropSchool from '../sections/Pro...
true