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
0008f9dfec644675d258e5c74dfa416695907f7c
JavaScript
banga/ts-api-playground
/dist/index.js
UTF-8
2,200
2.546875
3
[ "MIT" ]
permissive
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); function visit(sourceFile) { visitNode(sourceFile); function visitNode(node) { switch (node.kind) { case ts.SyntaxKind.ClassDeclaration: for (const decorator of node...
true
9d9d25c1ea2fce32b225cf3cb85a54d8eaca25ff
JavaScript
anuj-padhiyar/cybercom-creation
/jsPractice/third.js
UTF-8
2,777
4.21875
4
[]
no_license
//Hoisting //also we can call here function calculateAge(year){ console.log(2020-year); } calculateAge(1970); //We cannot call function expression before its declaration var retirement = function(year){ console.log(65-(2020-year)); } retirement(1966); //variables console.log(age); //undefined var age=19; ...
true
e25170ba75fe4d065219fbf899901b4bfa515499
JavaScript
dinaandrei/MPS-Project1
/frontend/jury-app/src/utils/fetches.js
UTF-8
1,470
2.71875
3
[]
no_license
const postData = async (url = '', data = {}) => { const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) if (response.ok) { // if HTTP-status is 200-299 // get the response body (t...
true
16cbce08105749ff6f3db895e260e7cd611e018a
JavaScript
mattchristopher314/Crosstalk
/src/client/servable/js/change-password.js
UTF-8
2,321
2.75
3
[]
no_license
'use strict'; $(window).on('load', () => { // Handle data submission and display an appropriate message once the server gets back to us. $('#password-reset-form').submit((e) => { e.preventDefault(); $.ajax({ type: 'POST', url: '/account/change-password', data: JSON.stringify({ re...
true
9aacafd5350ed83e83850304124fb1d87d5e433e
JavaScript
kiyanad/js-looping-and-iteration-filter-and-map-lab-dumbo-web-111918
/index.js
UTF-8
1,108
3.484375
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
// Code your solution here: function driversWithRevenueOver(driver, number) { return driver.filter(function(oneDriver){ // debugger return oneDriver.revenue > number }) } function driverNamesWithRevenueOver(driver,number) { const newDriver = driver.filter(function(oneDriver){ return oneDriver.revenue ...
true
8593075abc3ab2c01051c24ee447fafda0400ebd
JavaScript
redice44/Traffic-Simulator-2.0
/Code/client/app/car.js
UTF-8
1,216
3.265625
3
[]
no_license
/* Car Class */ function Car (map, start, path) { this.map = map; this.delay = 10; // ms this.path = path; this.position = Object.assign({}, start); // Create the marker, but do not place it on the map this.marker = new google.maps.Marker({ position: start, map: null }); } Car.prototype.star...
true
9c53e63751a927dbb77b7ffc43ca42e18b92d82c
JavaScript
ste66/MyLibrary
/src/PlayerMap/note.js
UTF-8
664
3.875
4
[]
no_license
let friends = [ {name : "Jose", age=99}, {name : "Ahmad", age=98}, {name : "Ashik", age=97}, {name : "Aslan", age=96}, {name : "Brujo", age=95}, {name : "Dries", age=94}, ] // ! Long way : ======================================== let myFriends = []; for ( let i= 0; i<friends.length;i++){ ...
true
565ccec686b8b35e4a489d6347f2e9dd1542dc4e
JavaScript
Jason-oyp/algorithm-practice
/463. 岛屿的周长.js
UTF-8
504
3.34375
3
[]
no_license
/** * @param {number[][]} grid * @return {number} */ var islandPerimeter = function (grid) { const row = grid.length; const col = grid[0].length; let num = 0; let border = 0; for (let i = 0; i < row; i++) { for (let j = 0; j < col; j++) { if (grid[i][j] === 1) { num++; if (j < co...
true
9110b1452b2e643ea35169254dc39ca68a42b2ec
JavaScript
haihttran/medical_guideline
/frontend/src/components/followup.js
UTF-8
3,583
2.5625
3
[]
no_license
import React, { Component } from 'react'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; class FollowUp extends Component { constructor(){ super(); this.state= { followup: '' }; } componentDidMount() { fetch('/followup?pid=patient_1&n=10') .then((res) => res....
true
f18d86440b0aba812ff6e90e1777110581c9edf4
JavaScript
portable2/lost-shirt
/scripts/filter.js
UTF-8
749
2.625
3
[]
no_license
(function () { let elem = document.querySelector(".products__list"); let iso = new Isotope( elem, { // options itemSelector: ".products__item", filter: '.new' }); let controlls = document.querySelectorAll('.filter__link'); let activeClass = 'filter__item--active'; controlls.forEach(function...
true
124912f2e9afa1adb80040a644b0ec52f5111406
JavaScript
chalex1/dictionary
/parser/parser.js
UTF-8
763
2.78125
3
[]
no_license
if(typeof require !== 'undefined') XLSX = require('xlsx'); var workbook = XLSX.readFile('tjru.xlsx'); /* DO SOMETHING WITH workbook HERE */ var firstSheetName = workbook.SheetNames[0]; var sheet = workbook.Sheets[firstSheetName]; var obj; var index=0,emptyCells=3; var fc,sc; var result = {}; while(emptyCells){ fc = 'A...
true
ea063b9aa52b5868ec702ef5fa10986dce6c1a75
JavaScript
XPlatform-Consulting/ubiquity-cantemo-theme
/portal_media/mdl/js/mod_search_react.js
UTF-8
5,121
2.703125
3
[]
no_license
'use strict'; function addMdlToMenuItems(query) { /** * Add the 'mdl-menu__item' class to all the elements found in the query * @param {string} query - CSS query * @return {Boolean} - Returns false if there's no items found in the query **/ var allItems = document.querySelectorAll(query);...
true
cb3802880bfdd0ec172c4725a5c2cd06e4c46c82
JavaScript
bgates/adventofcode
/2016/day18.js
UTF-8
752
2.953125
3
[]
no_license
function isTrap (previousRow, index) { let left = index > 0 ? previousRow[index - 1] : false let center = previousRow[index] let right = previousRow[index + 1] return ( (left && center && !right) || (!left && center && right) || (left && !center && !right) || (!left && !center && right) ) }...
true
1f69981ef607d4973b51721900148e34bb959196
JavaScript
josepheschen/taclete
/src/ExerciseTable.js
UTF-8
1,046
2.578125
3
[]
no_license
import React, {Component} from "react"; // import {List} from "@material-ui/core"; import ExerciseModule from "./ExerciseModule" class ExerciseTable extends Component{ constructor(props) { super(props); this.state = ({ numExercises: 2, exerciseList: [new ExerciseModule()] ...
true
789a9afc6859a3e044e487071d54ca841d0762e4
JavaScript
uncultivatedrabbit/translation_practice
/src/redux/index.js
UTF-8
725
2.578125
3
[]
no_license
import { createStore } from 'redux'; import English from '../languages/en-US.json'; import Spanish from '../languages/es-MX.json'; import French from '../languages/fr_CA.json'; const initialState = { locale: 'en-US', date: Date.now(), messages: { English, Spanish, French, }, }; export const change...
true
b29556fcd0d26e05bf8d86db0f41f8b40ae362bb
JavaScript
BenyNtb/js_array_exercice1
/public/js/main.js
UTF-8
147
3.234375
3
[]
no_license
let classe = ["coding15", "coding16", "coding17"] console.log(classe.length); console.log(classe); classe.forEach(element => console.log(element));
true
bbae0c703daf5d63c9a0678f273eb4c6b3792c2c
JavaScript
joserocha3/hasura-tr
/client/src/components/Create.js
UTF-8
2,353
2.515625
3
[]
no_license
import { useState } from 'react' import { Helmet } from 'react-helmet' import { useMutation } from 'react-query' import styled from '@emotion/styled' import Input from './Input' import Button from './Button' const insertArtist = async artistName => { const response = await fetch( `${process.env.REACT_APP_BASE_E...
true
3ccd89bab1c2a41de032c5a9e372182287611070
JavaScript
diesisfox/Gen10_Telemetry
/Gen10_Old/reference/canEncoder.js
UTF-8
2,001
2.59375
3
[]
no_license
const stream = require('stream'); const startingBytes = [ [0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28], [0x29, 0x2a, 0x2c, 0x2d, 0x2e, 0x3a, 0x3b, 0x3c, 0x3e] ]; function encode(frm){ let frameBuf = []; if(frm.ide){ frameBuf.push((frm.id>>(29-8))&0xff); frameBuf.push((frm.id>>(29-16))&0xff); frame...
true
c157ef211dc0b832382950c8ec482571831eb76d
JavaScript
xingganfengxing/TealUI
/src/utility/text/getQuery.js
UTF-8
633
3.03125
3
[ "BSD-3-Clause" ]
permissive
/** * @fileOverview 获取查询字符串。 * @author xuld */ /** * 获取当前页面的查询参数。 * @param {String} paramName 要获取的查询字符串名。 * @returns {String} 返回查询参数值。如果获取不到则返回 null。 * @example getQuery("a") */ function getQuery(paramName) { var path = /\?([^#]*)(#|$)/.exec(location.href); if (path) { path = new ...
true
1e9cf87c69c95fe3c3d5a234012e8f0ec78fdbe9
JavaScript
BloodLind/BicycleStore
/JsClient/login.js
UTF-8
1,372
3
3
[]
no_license
var tokenKey = "token"; var user = { firstname: 'firstname', secondname: 'secondname', email: 'email' }; var apikey = "https://localhost:44373/api/Account/"; initLoginForm(); function initLoginForm() { document.getElementById('submitLogin').addEventListener('click', function() { ge...
true
bab38697f9a6cdcd6f9c0fd3ec1a7bf65fda2031
JavaScript
gomichael/bachelorprojekt
/Jelly Adventures/src/game/enemies/Phoenix.js
UTF-8
1,159
2.703125
3
[]
no_license
var ProjectileEnemy = require('./types/ProjectileEnemy'); var BIRD_WIDTH = 45; var BIRD_HEIGHT = 26; var BIRD_X_OFFSET = 3; function Phoenix(x, y, direction, initialDelay, patrolBounds) { Enemy.call(this, x, y, direction, 'phoenix', [2, 3], [6, 7], 150, patrolBounds); ProjectileEnemy.call(this, 1000, initialDelay, ...
true
85aea4a0ab040dd9fd6a2d5b9023fb120dc15306
JavaScript
devangelmotta/notes-microservice
/src/api/controllers/note.controller.js
UTF-8
2,212
2.765625
3
[ "MIT" ]
permissive
const httpStatus = require("http-status"); const { omit } = require("lodash"); const Note = require("../models/notes.model"); /** * Load note and append to req. * @public */ exports.load = async (req, res, next, id) => { try { const note = await Note.get(id); req.locals = { note }; return next(); } ...
true
f613128396720f327c95ab2aa26e88538951c2c6
JavaScript
Anime-Hackathon/server
/utils/validator.js
UTF-8
445
2.65625
3
[ "MIT" ]
permissive
function bodyValidator(req, res, next) { // function to validate email and password if (Object.keys(req.body).length) { if (req.body.email && req.body.password) { next(); } else { res.status(400).json({ message: 'missing required field' }); } } else { ...
true
1171fecc1ccc4a3066cb73c6651509c02db50471
JavaScript
voron121/oneHashTest
/js/client.js
UTF-8
1,524
3.15625
3
[]
no_license
/** * * @param data */ function renderData(data) { let blocksTable = document.getElementById('blocks'); let transactionsTable = document.getElementById('transactions'); let blocks = ""; let transactions = ""; for (let i = 0; i < data.blocks.length; i++) { // выведет 0, затем 1, затем 2 b...
true
fba94896db35d0c81fd01644f89ff47d846f7f63
JavaScript
takumifukasawa/webgl
/src/js/script.js
UTF-8
2,009
2.671875
3
[]
no_license
import _ from "lodash"; import queryString from "query-string"; import modules from "./modules/"; let controller; let wrapper, canvas, gl; let width, height; function createMenu(list) { wrapper.style.display = "none"; const menu = document.querySelector(".menu"); const ul = document.createElement("ul"); _.fo...
true
e45d8fdc10679c658312b2dad039e35e5228912e
JavaScript
liskascend/lisk-nodes-monitor
/client/src/components/lib.js
UTF-8
309
3.40625
3
[ "MIT" ]
permissive
// Created by Sinisa Drpa on 02/18/18. export function randomString(length = 10) { var string = '' var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' for (var i = 0; i < length; i++) { string += possible.charAt(Math.floor(Math.random() * possible.length)) } return string }
true
e5450003ff493badd037d91de50c596da3522e59
JavaScript
nafisa003/React-concepts
/src/components/forms/MultipleInputs.js
UTF-8
2,257
2.90625
3
[]
no_license
import React, { useState } from 'react'; const MultipleInputs = () => { // const [firstName,setFirstName]=useState(''); // const [email,setEmail]=useState(''); const [people,setPeople]=useState([]); // const [age,setAge]=useState(''); const [person,setPerson]=useState({firstName:'',email:'',...
true
62c6dc8cb71d3a11a46213048a69ff660fa8dbdc
JavaScript
ricky-bruner/little-debbie-lightning
/js/debbiedata.js
UTF-8
2,323
3.359375
3
[]
no_license
// Begin with an empty array const debbieCakes = []; // Build a function to create new "snack-cakes" function makeCakeObject(snackCake, name, packaging, description, amount, image){ // I gave an additional argument for snackCake names, so that the function can automatically push the new cake using its name sna...
true
e58fc83f328b300e64a14abb2719bffa9eabc495
JavaScript
shaddyx/LaneJS
/lane/js/FormElements/Container.js
UTF-8
3,272
2.90625
3
[ "MIT" ]
permissive
var Container = function(){ FormElement.call(this); this.children(new BasicList()); this.addPropertyTranslator([{name:'horizontal', target:"inner"}, {name:"padding", target:"inner"}, {name:"hAlign", target:"inner"}, {name:"vAlign", target:"inner"}, {name:"overflow", target:"inner"}]); this._v.children.on("removed",...
true
71b40696f2e7cf78c4bf583d2978d64d01bf3b81
JavaScript
proglang/TreatJS
/test/sandbox/clone.js
UTF-8
2,753
3.34375
3
[]
no_license
/* * TreatJS: Higher-Order Contracts for JavaScript * http://proglang.informatik.uni-freiburg.de/treatjs/ * * Copyright (c) 2014-2015, Proglang, University of Freiburg. * http://proglang.informatik.uni-freiburg.de/treatjs/ * All rights reserved. * * Released under the MIT license * http://proglang.informatik....
true
cb512f05892c20f8410168437aa165db4a3e437c
JavaScript
gittig11/minesweeper
/src/ai/State.js
UTF-8
8,031
3.0625
3
[]
no_license
import { UNKNOWN, MINE, SAFE } from './constants' function addAll(set, iterable) { for (const item of iterable) { set.add(item) } } function* range(start, end) { for (let i = start; i < end; i += 1) { yield i } } export default class State { constructor(array, ROWS, COLS) { this.array = array ...
true
9680c240a9ad9c9466b633e9366e0230b3fe49ab
JavaScript
gwong5/scrapped-project
/spec/stack.js
UTF-8
1,881
2.828125
3
[ "MIT" ]
permissive
import chai, { expect } from 'chai' import chaiChange from 'chai-change' import Stack from '../src/stack' chai.use(chaiChange) describe('Stack', () => { 'use strict' it('exists', () => { expect(Stack).to.be.a('function') }) context('push()', () => { it('pushes an element to the t...
true
f6a96b7abf1081a8bbbf084019f566bb208dfcb9
JavaScript
zwc/adventofcode2016
/day04/task1.js
UTF-8
2,026
3.234375
3
[]
no_license
const R = require('ramda'); const lines = require('fs').readFileSync('./input.txt').toString().split('\n'); const test = [ 'aaaaa-bbb-z-y-x-123[abxyz]', 'a-b-c-d-e-f-g-h-987[abcde]', 'not-a-real-room-404[oarel]', 'totally-real-room-200[decoy]' ]; const getName = (str) => str.split('-').slice(0, -1).join(''); cons...
true
c822bb64c1b34d077e9289d1def043f47c1dfb81
JavaScript
shalles/SimpleSPA
/src/utils/scripts/core/link-stack.js
UTF-8
1,984
3.265625
3
[]
no_license
export function LinkNode (val = {}) { this.value = val this.prev = null this.next = null } export class LinkStack { constructor (val) { this.head = new LinkNode(val) this.last = this.head this.length = 1 } find (val){ let curNode = this.last while (curNo...
true
61a89e953d16bc7c3f6bfd7ca41fb8886ecf905f
JavaScript
dcorderoch/dual-farma
/AngularJS/Login-Asp-Admin/app-services/cliente.service.js
UTF-8
1,834
2.5625
3
[ "MIT" ]
permissive
(function () { 'use strict'; angular .module('app') //servicio para el cliente .factory('ClientService', ClientService); ClientService.$inject = ['$http']; function ClientService($http) { var service = {}; service.GetAll = GetAll; //diferentes funciones que ti...
true
aa6c4f3e0dc206908924e62671906502943ba970
JavaScript
CornelMaze/blogging_system
/middleware/check-auth.js
UTF-8
588
2.765625
3
[]
no_license
const jwt = require("jsonwebtoken"); function checkAuth(req, res, next) { try { // the token is usually placed in the header and it usually has a format of Bearer- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 so we want to split it. REmove the Bearer and get the token so that we can validate if the token is correct const...
true
d97201bc6503d7e61ec8768bb943050400bf66a4
JavaScript
Hayk7777/fun2
/js/1.js
UTF-8
2,144
3.390625
3
[]
no_license
$(document).ready(function(){ $(".num").change(function(){ let value = $(this).val(); if(value){ $(".result").html(toDigit(value)); } }); }); let num = "զրո մեկ երկու երեք չորս հինգ վեց յոթ ութ ինը տաս տասնմեկ տասներկու տասներեք տասնչորս տասնհինգ տասնվեց տասնյոթ տասնութ տասնի...
true
314cdf852b359cdf20becfc5bfb7fcbe479eef05
JavaScript
Brunna10/2017-si6-firstexam
/Brunna/question-01/report.js
UTF-8
266
2.84375
3
[]
no_license
var usuario = require('./usuario.json') var x = process.argv[2] for(var i=0; i< usuario.lenght; i++){ var usuario = usuario[i]; if(x==usuario.code){ console.log("Name:"+ usuario.name) console.log("Type:"+ usuario.type) break; } }
true
6aa30bd611a2042d3fc7b2a64d19704d8e469f9d
JavaScript
sagehogue/cg-labs
/jS/classjs_one/js/facesJS.js
UTF-8
898
3.4375
3
[]
no_license
// from random import choice // eyes_list = [ ';', '=', '8', '>:', 'x', 'X'] let eyesArray = [ ';', '=', '8', '>:', 'x', 'X']; // nose_list = ['^', '-', ':'] let noseArray = ['^', '-', ':']; // mouth_list = ['D', 'd', 'P', 'p', '*', 'O', ']', '[', ')', '(', '#', '@'] let mouthArray = ['D', 'd', 'P', 'p', '*', 'O', ']',...
true
31c89c943ca61d8998fe2726461cefadc957c664
JavaScript
acousticclown/sviit-timetable-app
/src/components/ClassContainer.jsx
UTF-8
2,543
2.5625
3
[]
no_license
import React, { useState } from "react"; import { Container, makeStyles, Typography } from "@material-ui/core"; import ClassCard from "./ClassCard"; import Navbar from "./Navbar"; import Footer from "./Footer"; import { lectures } from "../data/lectures"; import getToday from "../helpers/weekDay"; const useStyles = ma...
true
2519785606b12e6ed4999ebade4fab51a154bccc
JavaScript
Irenevs83/W1D2-3
/W1D2-3/script.js
UTF-8
368
3.734375
4
[]
no_license
console.log('Hallo Winc Academy studenten') // Dit is een grote som. // Dit zie je niet in node omdat het een comment is. /* let multiplication = 1230941 * 1823794; console.log("uitkomst", multiplication); let division = 637263 / 54; console.log("uitkomst", division); */ // De uitkomst van de sommen zie ...
true
cebaf70ab18e503e3dcc6089944af91d224322c0
JavaScript
SagittariuX/Interview_Ex
/LeetCodeJS/MaxDepthNaryTree.js
UTF-8
531
3.59375
4
[]
no_license
// https://leetcode.com/problems/maximum-depth-of-n-ary-tree/ //Naive solution //Go down every single child and return the max of that child //Compare with the other children //return max var maxDepth = function (root) { if (!root) return 0; return recursiveDepth(root.children, 1); }; const recursiveDepth = (chi...
true
0f7d63718a68cd00bf17cce56c1673a3a47a6126
JavaScript
arvindlaitkor/bitrise-new
/src/shared/utils/index.js
UTF-8
542
2.96875
3
[]
no_license
/** * Helpers Methods */ // Generade UID export const uid = () => Math.random().toString(34).slice(2); // Tests an email export const isValidEmail = email => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); // Formats numbers with coma export const numberWithCommas = (x) => { if (!x) return '0'; return x.toString...
true
7a7b805f0cbc19a681a9088050c4005068895a03
JavaScript
joneslee111/final-project-backend
/passportConfig.js
UTF-8
2,990
3
3
[]
no_license
const LocalStrategy = require("passport-local").Strategy; const { pool } = require("./dbconfig"); const bcrypt = require("bcrypt"); function initialize(passport) { const authenticateUser = (email, password, done) => { // checks to see if the user is in the database via the email param pool.query(`S...
true
c8ecea12d27a6353bffc2c06c801a4d021f57bff
JavaScript
djclayton21/vschool-assignments
/Exercises/my-first-server/server.js
UTF-8
338
2.59375
3
[]
no_license
const express = require('express'); const app = express(); //route to handle a get request to an endpoint app.get('/', (request, response) => { response.send('Wooooooo!') }) app.get('/somewhere', (request, response) => { response.send('whoaaaaa!') }) app.listen(7890, () => { console.log('Server is running...
true
bb0bbd86303a515f97b18685ba22c29261f77c24
JavaScript
jimmycngo/clickclack
/src/containers/MainContainer.jsx
UTF-8
5,509
2.578125
3
[]
no_license
import React, { Component } from 'react'; // eslint-disable-next-line no-unused-vars import { connect, useSelector } from 'react-redux'; import TypeHere from '../components/TypeHere.jsx'; import * as actions from '../actions/actions'; import TextContainer from './TextContainer.jsx' import Word from '../components/Word....
true
0ecdc082977ab1bda541e5600e0c4e1214487323
JavaScript
ilya0/Coding_prac_sites
/freecodecamp/recordcollection.js
UTF-8
1,386
3.3125
3
[]
no_license
// Setup var collection = { "2548": { "album": "Slippery When Wet", "artist": "Bon Jovi", "tracks": [ "Let It Rock", "You Give Love a Bad Name" ] }, "2468": { "album": "1999", "artist": "Prince", "tracks": [ "1999", "Little Red Corvette" ] }, "1245": { "artist":...
true
cbbfc7a69c4e6fe1dd340e1cf4f0d6e58610f10f
JavaScript
trywin0/TryBot
/commands/creatememe.js
UTF-8
945
2.734375
3
[]
no_license
const fetch = require("node-fetch"); exports.help = { name: "creatememe", description: "Create a meme!", usage: "creatememe <top text> - <bottom text> <attached image>", type: "fun" }; tryGetJson = async(resp) => { return new Promise((resolve) => { if (resp) { resp.json...
true
58670f66fc897a71bdc7dc9448e6a4c606e39f63
JavaScript
credondocr/datenight
/app.js
UTF-8
1,892
2.78125
3
[]
no_license
var bodyParser = require("body-parser"), express = require("express"), mongoose = require("mongoose"), app = express(); //APP config mongoose.connect("mongodb://localhost/datenight"); app.set("view engine", "ejs"); app.use(express.static("public")); app.use(bodyParser.urlencoded({extended: ...
true
82157fe8e446898a8246d2c10e0205ca203bae07
JavaScript
tautvydascoding/2018-09
/dirbame_cia/diena_12/romanas/2-jQuery/main.js
UTF-8
2,822
3.34375
3
[]
no_license
// 0. HTML faile po H1 elementu - sukurti <aside> elementa // 1. naudojant javascript sukurti "header" elementa (document.createElment) // nepamirskite patestuot ar pavyko // console.log( manoHeader ); // test var manoHeader = document.createElement("header"); console.log(manoHeader); var manoAside = document.q...
true
7f9a48aeb880bcca0bd72001638d7cc72ccbbd95
JavaScript
mrdanadams/galytics
/galytics.js
UTF-8
2,504
2.703125
3
[ "MIT" ]
permissive
// ==ClosureCompiler== // @output_file_name default.js // @compilation_level SIMPLE_OPTIMIZATIONS // ==/ClosureCompiler== // see http://closure-compiler.appspot.com/home galytics = (function(window) { "use strict"; var undef, o = { // Record an event occurance with (optional) associated metadata. // optio...
true
703ba832009f2a217efa9cd01a517e1f0e4190e8
JavaScript
Adilmojangos8246/Project-28
/sketch.js
UTF-8
1,731
2.75
3
[]
no_license
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; const Constraint= Matter.Constraint function preload() { } function setup() { createCanvas(800, 700); engine = Engine.create(); world = engine.world; //Create the Bodies Here. tree = new Tr...
true
fee08b3e43440b627d6eb5b6d7cf704b06074c41
JavaScript
iamPavan17/Preparation
/18-code-day-objects/3.js
UTF-8
911
4.8125
5
[]
no_license
// Write a function that will use the .reduce()method to find the frequency of strings in an array. Your function, strFrequency, takes an array of strings, some strings occurring multiple times, and returns an object that specifies how many times each string occurred in the array. // Examples // var names = ["Bob", "...
true
83ad6c96b1ffb70752a44b12902adac7b7cc87bd
JavaScript
sindhuch05/ticTacToe
/ticTacToe.js
UTF-8
2,861
3.28125
3
[]
no_license
let counter = 0; const winningCombinations = [ ['0', '1', '2'], ['3', '4', '5'], ['6', '7', '8'], ['0', '3', '6'], ['1', '4', '7'], ['2', '5', '8'], ['0', '4', '8'], ['2', '4', '6'] ]; let xCombo = []; let yCombo = []; document.querySelector('#table_game').addEventListener('click', fun...
true
2d79a7a7e8c9f414f14be33c8aea427b68d4d350
JavaScript
ikzsl/javascript-hexlet
/07_collections/7_lazy-evaluation.js
UTF-8
1,417
3.578125
4
[]
no_license
class Enumerable { // BEGIN (write your solution here) constructor(collection, operations) { this.collection = collection; this.operations = operations || []; } select(fn) { const newOps = this.operations.slice(); newOps.push(coll => coll.map(fn)); return new Enumerable(this.collection, newO...
true
66c1fdfdd7c21001e8a85dcaf4b7af6d0db7f0d2
JavaScript
AymanYac/Neonec-Deep-Classsifier
/install/lamachine/lib/python3.5/site-packages/flat/style/flat.js
UTF-8
29,730
2.515625
3
[]
no_license
// jshint evil:true //A random session ID var sid = ((Math.random() * 1e9) | 0); var havecontent = false; //we start assuming we have no content var closewait = true; //close the wait mask when we are done loading var textclass = "current"; //the default text class: "current" var perspective = 'document'; //initial ...
true
473b1e49a2cf9111fc59b39ab9d58f8156fa37dc
JavaScript
Virmli/north-one-challenge
/src/V1/clients/taskClient.js
UTF-8
1,398
2.515625
3
[]
no_license
const { TaskModel } = require('../models/task'); const TaskClient = { /** * Creates a new task * @param newTask * @returns {Promise<*>} */ async createNewTask(newTask) { const task = await TaskModel.create(newTask); return task; }, async findTaskById(taskId) { const task = await TaskMo...
true
87845642955f22ae2d6dc1c5bab26bcf749d4b18
JavaScript
sangha-ju/Westagram
/index.js
UTF-8
447
2.703125
3
[]
no_license
const changeLog = document.querySelector('.logPut'); const changePwd = document.querySelector('.pwdPut'); const changeBtn = document.querySelector('.logBtn'); changePwd.addEventListener('keyup', function(e) { if(changeLog.value.length > 0) { if(changePwd.value.length > 0){ changeBtn.style.backg...
true
557675b73e76518e24773da3c39872e2a3fdb538
JavaScript
gabrielBlankenburg/simple-chat
/src/main.js
UTF-8
1,914
3.03125
3
[]
no_license
var $ = require('jquery'); // configs the socket var socket = io(); $(function () { socket.emit('username', username); // send the message to the socket $('#chat form').submit(function(){ socket.emit('message', {msg:$('#msg').val(), id:id}); $('#msg').val(''); return false; }); // When a user login socke...
true
174ea2095dcfbfaaf70152858d0f5e6fab57f66f
JavaScript
Tyresius92/budgetize-me
/server/src/seedDatabase.js
UTF-8
1,875
2.59375
3
[]
no_license
import { createUser } from './services/user'; import transactionService from './services/transaction'; const { createTransaction } = transactionService; const seedDatabase = async () => { try { const user1 = await createUser( 'tyresius92', 'tyresius92@gmail.com', 'AwesomePassword' ); c...
true
61ef90d30a108c801bbc5eca50e02d6993ff2e2d
JavaScript
jubinmathew1995/StartUp-Scrapper
/extract.js
UTF-8
1,658
2.65625
3
[ "MIT" ]
permissive
var list_h2 = document.getElementsByTagName('h2')[0].innerText; var list_div = document.getElementsByTagName('div'); var list_h1 = document.getElementsByTagName('h1'); var list_span = document.getElementsByTagName('span'); var loca, url, name, comp_logo, temp; for (var i = 0; i < list_span.length; i++) { if (list...
true
b0d240f6b9bdf45dc5def5afff2b639d370e3cf2
JavaScript
MattisTrees/Sun_Organ
/web/js/deleteUser.js
UTF-8
605
2.640625
3
[]
no_license
function deleteUser (user_id){ console.log("deleteThis called on " + user_id + "!"); if(confirm("Are you sure you want to delete this album?")){ console.log("Deleting album..."); ajax2({ url: "webAPIs/deleteUser.jsp?UserId=" + user_id, successFn: succe...
true
ccfaac001b9284a25ef8c8820a357b419fa461e3
JavaScript
huanchicayd/bontec
/dev/scripts/active-nav-links.js
UTF-8
378
2.671875
3
[]
no_license
function ativarLinkNav(){ 'use strict'; var pgurl = window.location.href.substr( window.location.href.lastIndexOf('/') + 1 ); var $navMenuLinks = $('.main-nav__navmenu a'); $navMenuLinks.each(function(){ if($(this).attr('href') === pgurl || $(this).attr('href') === '') $...
true
e7de3af2c10aa5135e9a2b40c6111799c05caecb
JavaScript
ysherqawi/ecommerce-api
/server/controllers/orders.js
UTF-8
2,042
2.546875
3
[]
no_license
const { CartItem } = require('../models/CartItem'); const Order = require('../models/Order'); // @desc orderById middleware // run whenever an id param found in the route and populate the order in the req exports.orderById = async (req, res, next, id) => { const order = await await Order.findById(id); if (!ord...
true
7f50784365e0e6f961b97e2b7cc70e38f43133ea
JavaScript
isahilsachdev/Ds-algo-complete
/Time contests/time-contest3/dt.js
UTF-8
151
3
3
[]
no_license
let n = '32'; let sum = 0; let m = n.split('').map((a) => (sum += Number(a))); console.log('m', m); console.log(Number(n) + sum); console.log('n', n);
true
9a0bf948fc1846304c76fc1b3921395d1fefe411
JavaScript
selbieh/auoparts-quiz
/src/CarsTable/CarSubType/CarSubType.js
UTF-8
1,279
2.515625
3
[]
no_license
import React,{Component} from 'react'; //"BMW","RENULT","MAZDA","PEGUT","FIAT" import { Table } from 'reactstrap'; class CarSubType extends Component{ state={ carSubTypeList:{ BMW:["520","320","720"], AUDI:["Q5","A13","Bs240"], RENULT:["LOGAN","SANDERO","KADJAR"], ...
true
9f68305239cf235b8f174c0e41ca846602d5c9a4
JavaScript
lovelyeden/project-02-ponggame
/src/partials/Paddle.js
UTF-8
1,568
3.109375
3
[]
no_license
import {SVG_NS} from '../settings'; export default class Paddle { constructor(boardHeight, width, height, x, y, up, down) { this.boardHeight = boardHeight; this.width = width; this.height = height; this.x = x; this.y = y; this.speed = 20; this.score = 0; docume...
true
cb6151cd4483b5268be252981420506c09e958d6
JavaScript
jsmith197/Battleship
/scripts/logic.js
UTF-8
950
3.28125
3
[]
no_license
function fireMissle(displayBoard, board, coordinates) { var missleloaction = board [coordinates.y] [coordinates.x]; if ( missleloaction > 1) { displayBoard[coordinates.y] [coordinates.x] = hit; } else { displayBoard[coordinates.y] [coordinates.x] = miss; } // console.log (displayBoard); return displayBo...
true
940e0bbb1beae483d3029c6793b359f3f9cd6398
JavaScript
Neeeraj0205/webinar9
/prototype.js
UTF-8
138
3
3
[]
no_license
let p = { a:10 } let q= Object.create(p); q.b=20; let r= Object.create(q); r.c=30; console.log(r.a) console.log(r.b) console.log(r.c)
true
f7aa22cf79e65a2b05002c23d4cc77e6c522417f
JavaScript
int128/gistnote
/src/repositories/OAuthStateRepository.js
UTF-8
505
2.6875
3
[ "Apache-2.0" ]
permissive
import OAuthState from '../models/OAuthState'; const OAUTH_STATE = 'OAUTH_STATE'; export default class OAuthStateRepository { /** * @returns {OAuthState} */ get() { try { const json = sessionStorage.getItem(OAUTH_STATE); return new OAuthState(JSON.parse(json)); } catch (error) { re...
true
6c7e1fe7e371ea1de61d0a219c6a2831bb1a423e
JavaScript
HaiVT07/caseStudyALTP
/altp.js
UTF-8
5,004
2.90625
3
[]
no_license
let time = 30; let point = 0; let corectSound = new Audio("./sound/correct.mp3"); let startgameSound = new Audio("./sound/startgame.mp3"); let endgameSound = new Audio("./sound/endgame.mp3"); function timeDecrease() { time--; document.getElementById(`time`).innerHTML = `time ${time}`; return time } let ti...
true
68fcc183d2ed52b0076957322314076111c34774
JavaScript
xiaofeizhang19/tic-tac-toe-week10
/spec/gameSpec.js
UTF-8
585
2.828125
3
[ "MIT" ]
permissive
'use strict'; describe("Game", function() { let game; beforeEach(function() { game = new Game; }); it("should switch current player after each play", function() { expect(game.currentPlayer().name).toEqual("X"); game.switchTurn(); expect(game.currentPlayer().name).toEqual("O"); game.switc...
true
e703d08f10e0306159510daf7b0826018028bd34
JavaScript
pconrad/AwesomePrelims
/js/exercises/fakeQuestionType.js
UTF-8
600
3
3
[]
no_license
function generateFakeQuestions(count, numChoices) { // TODO: Make sure numChoices is at least 2. // This is model code that generates fake questions. // It is a template var fakeWrongAnswers = []; for (var i=1; i<numChoices; i++) { // we want numChoices-1 items fakeWrongAnswers.push("Thi...
true
31c994cc7a663e104e5efd92d94cd92355d1cdcd
JavaScript
GuillaumeTech/typed-projects
/back/src/middleWares/tasks.js
UTF-8
2,493
2.75
3
[]
no_license
import tasks from '../models/tasks.js'; import projects from '../models/projects.js'; import { safeLoad } from 'js-yaml'; export async function createTask(projectId, task) { if (!task.name) throw new Error(); const { politic } = await projects.findOne({ _id: projectId }); const newStatus = statusCompute(politic,...
true
04cb1840b7a3ffd86005b6fceb3557b966d08027
JavaScript
razvancir96/sirluggia-shop
/src/store/user/user.test.js
UTF-8
1,315
2.921875
3
[]
no_license
import userReducer from "./userReducer"; import { updateUserData, updateUserError, startLoading } from "./userActions"; const initialState = { data: null, loading: false, error: null, }; const fakeUser = { uid: "123", displayName: "Tuturel", }; const fakeError = { message: "Not good", }; test("first red...
true
f67c0944dd6ef2271df1cd7c1d248834217ac6cf
JavaScript
prantlf/dayjs
/bench/parse.bench.js
UTF-8
1,226
2.75
3
[ "MIT" ]
permissive
const moment = require('moment') const datefnsParse = require('date-fns/parse') const { createSuite, runSuites } = require('./benchmark') const dayjs = require('..') const customParseFormat = require('../plugin/customParseFormat') dayjs.extend(customParseFormat) const scenarios = [ { input: new Date(), label: 'Da...
true
3cd733b0b4d0fef1ac2d45729c46250280bd2c7e
JavaScript
bnjmnsbl/berlinunterstrom
/builder.js
UTF-8
1,266
2.8125
3
[]
no_license
/** HELPER FUNCTIONS */ module.exports = { prepareOptions: function (scale, city, district, begin, end) { if (district === "BERLIN") { var processedDistrict = "<district>"; } else { var processedDistrict = "<district name=\"" + district + "\">"; } var xmlstring ="<smeterengine><scale>" + scale + "<...
true
8223420e6b5761f175fd51ed9d50447f8d702142
JavaScript
Ukabix/projects
/python/codewars kata/convert-to-string.js
UTF-8
537
4.96875
5
[]
no_license
// We need a function that can transform a number into a string. // What ways of achieving this do you know? // Examples: // 123 --> "123" // 999 --> "999" function toString1(string1) { string1 = String(string1); console.log(string1); console.log(typeof(string1)); } function toString2(string2) { string2 =...
true
1076dd7d80368a17e7efe2e56b1e28a6ef5f3fba
JavaScript
kshitijakarkar/Javascript-App
/scoreboard_game/scoreboard.js
UTF-8
1,223
3.671875
4
[]
no_license
var p1Score = document.querySelector("#p1Score"); var p2Score = document.querySelector("#p2Score"); var p1Button = document.querySelector("#p1Button"); var p2Button = document.querySelector("#p2Button"); var resetButton = document.querySelector("#resetButton"); var input = document.querySelector("#input"); var MaxSc...
true
dfa112dd8271939799512f9a75c97e8a9ef0c425
JavaScript
t2the2ndpower/Celstial-Siblings
/app/routing/apiRoutes.js
UTF-8
1,117
2.9375
3
[]
no_license
//API ROUTING var express = require("express"); var apirouter = express.Router(); var bodyParser = require("body-parser"); var siblings = require("../data/siblings.js"); apirouter.get("/api/siblings", function (req, res) { res.json(siblings); }); apirouter.post("/data/newSib", function (req, res) { consol...
true
eaa20ead22ebd9cf73a6c7f0b63b623262eaaf8c
JavaScript
htshllwn/ds-js
/maxchar/index.js
UTF-8
1,449
4.3125
4
[]
no_license
// --- Directions // Given a string, return the character that is most // commonly used in the string. // --- Examples // maxChar("abcccccccd") === "c" // maxChar("apple 1231111") === "1" function maxChar(str) { const charMap = {}; let max = 0; let maxChar = ''; for (let char of str) { charMa...
true
d3d918eef47f63397e316281fb4ec1ff106fa6b3
JavaScript
Vasilev07/Softuni-2016-2017
/JS Core/Js Fundamentals/08.Array and Matrices Exercises/01. Print Array with Given Delimiter.js
UTF-8
436
3.453125
3
[]
no_license
function printArraywithDelimeter(input) { input = input.filter(x=>x!=''); let result = ''; let delimeter = input[input.length-1]; for (let i = 0; i < input.length-1; i++) { if(i < input.length-2){ result += input[i] + delimeter; }else { result += input[i]; ...
true
eb4d1e19ccebd039e4cf0a741080af6aa68ee0d1
JavaScript
kongdoudou/node-learning
/10.cookie/3.express-cookie.js
UTF-8
1,334
2.78125
3
[ "MIT" ]
permissive
/* * 如何在express中读写cookie */ let express = require("express"); let cookieParser = require("cookie-parser"); let app = express(); app.use(cookieParser()); app.get('/write',function(req,res){ //cookie的方法是express为我们提供的,让我们更方便的写入cookie res.cookie('name','kong',{ //这里domain的意思就是说此cookie归哪个域名所有,规定只有在向指定域名发起请求的...
true
b12409dd5a1b210b0a7845275e43833584f4e3d9
JavaScript
AlyMBarakat/InstaMDb
/src/shared/components/MovieCard/ExpandableMovieDetails.js
UTF-8
2,439
2.625
3
[]
no_license
import React, { useState, useCallback } from 'react'; import { View, TouchableOpacity, LayoutAnimation, } from 'react-native'; import Text from '../Text'; const ExpandableDescription = ({ title, releaseDate, overview }) => { const [seeMoreButton, setSeeMoreButton] = useState(false); // see more button ...
true
2a61592c3ca76dcfcb9e5894d94896f7576d21dc
JavaScript
tconners087/udemy-webdev-bootcamp
/Front-End/JS Section/JS/customForeach.js
UTF-8
405
4.15625
4
[]
no_license
var nums = [1, 2, 3, 4, 5]; function print(el) { console.log(el); } function myForEach(arr, func) { for(var i = 0; i < arr.length; i++) { func(arr[i]); } } myForEach(nums, print); myForEach(nums, (num) => { console.log("Anonymous Callback: " + num); }); Array.prototype.myForEach = function(func) { fo...
true
e31938d9a56b181f78ac79c64937c42c8a6e79e8
JavaScript
chou1213/canvas-notes
/chapter2/example2-22/example.js
UTF-8
583
3.0625
3
[]
no_license
var canvas = document.getElementById('canvas'); var context = canvas.getContext('2d'); context.fillStyle = 'cornflowerblue'; context.strokeStyle = 'yellow'; context.shadowColor = 'rgba(50,50,50,1)'; context.shadowOffsetX = 2; context.shadowOffsetY = 2; context.shadowBlur = 4; context.lineWidth = 20; context.lineCap ...
true
f637f8f2609a7f0316ba9202d5f3881ab2b65a24
JavaScript
jonathanbrierre/object-in-memory-test
/index.js
UTF-8
256
3.25
3
[]
no_license
const objA = { 1: 'hello', 2: 'bonjour', 3: 'hola', 4: 'aloha' } const objB = { 1: 'hello', 2: 'bonjour', 3: 'hola', 4: 'aloha' } let hellos = objA console.log(hellos) console.log(objA) console.log(objA === objB)
true
a4314501f1218bfbadea458cf65fd85d4419c922
JavaScript
tonezone108/311_wk1_day1_node_practice
/src/strings/index.js
UTF-8
484
3.09375
3
[]
no_license
const split = (str, delim) => { // write code for strings.split return str.split(delim); }; const pairs = str => { // write code for strings.pairs var pairs = []; for (var i = 0, charsLength = str.length; i < charsLength; i += 2) { pairs.push(str.substring(i, i + 2)); } return pairs; }; const rev...
true
20232a41e244b5ce581f05b886253770543ce053
JavaScript
Ljuniorcode/Javascript-TypeScript
/Mini Projetos-Melhorando-a-Logica/enumerados/16-igualdadeDeObjetos.js
UTF-8
487
3.84375
4
[]
no_license
//igualdade de objetos function Endereco(rua, cidade, cep) { this.rua = rua, this.cidade = cidade, this.cep = cep } const end1 = new Endereco('a', 'b', 'c') const end2 = new Endereco('a', 'b', 'c') function saoIguais(end1, end2) { return end1.rua === end2.rua && end1.cidade === end2.cidade && end1.cep === e...
true
7e968501c427cb0a26181d3c374ff0215d78db05
JavaScript
Lykrozz/JS
/12-01-2018/MEAN/NODE/server.js
UTF-8
729
2.53125
3
[]
no_license
/* Importer composants serveurs */ // Class const express = require('express'); const ejs = require('ejs'); const path = require('path'); // Modules const frontRoute = require('./routes/front'); /* Configurer serveur */ const app = express(); // Définir le dossi...
true
425d6da8261285fb6792c052e9fdafcf76d396b3
JavaScript
uniqueSkeeter/FunRen
/FillingStationManagement/WebContent/js/common/validation.js
UTF-8
2,126
2.875
3
[]
no_license
// 表单验证 var check = function(input) { if (input.value == '') { inputError(input); input.focus(); return true; } else { return false; }; }; // 输入错误提示 var inputError = function (input) { clearTimeout(inputError.timer); var num = 0; var fn =...
true
6089ca9cbcb6a59b91ed2c1e1e497ab7e28d3234
JavaScript
dncnmcdougall/ModelReducer
/src/lib/StateReducer.js
UTF-8
4,677
2.71875
3
[]
no_license
/* eslint complexity: [ "warn" ] */ const assert = require('./Util.js').assert; function StateReducer() { this.newReduce = function(modelName, currentModel, getActions, shouldExpandState, actionParts, state, ...args) { if ( typeof(actionParts) === 'string' ) { actionParts = actionPart...
true
44c2a5400b65fde70a6413e35e19623d8d084a0a
JavaScript
amandhawb/trybe-exercises
/bloco_11/11.2/fixation-exercises/src/Image.js
UTF-8
428
2.671875
3
[]
no_license
import React from 'react'; class Image extends React.Component { render() { return <img src={this.props.source} alt={this.props.alternativeText} />; } } export default Image; // EXERCÍCIOS DE FIXAÇÃO: // 1. Qual o nome do componente declarado acima? // RESPOSTA: Image // 2. Chame o componente Image, de for...
true
b20583e9918a6d2e4327578d6899bece4e19d877
JavaScript
tanwirulqulub999/simple-project
/index.js
UTF-8
1,428
2.828125
3
[ "MIT" ]
permissive
function domSection(){ const microclone = document.getElementById("microclone"); microclone.innerHTML = "<font color='green'>root@MicroClone:~$ ./life code_</font>"; microclone.style.backgroundColor = "black"; microclone.head.title = "Hello World"; microclone.style.padding = "15px"; micr...
true
f671de4bf9efb41f17150b75f514a6b70a0a42c9
JavaScript
losthj/todolist
/src/TodoList1.js
UTF-8
2,051
3.0625
3
[]
no_license
import React, { Component } from 'react'; import TodoItem from './Todoitem'; class TodoList extends Component { // state 定义数据存储 //es6 的语法 constructor(props){ super(props); this.state ={ // list:[ // 'learn react', // 'learn english', // 'learn vue' // ], list:...
true
9b406120c02b633d3e50b4f2b747957f73bd41ca
JavaScript
AayushBhalotia/material-ui-demo
/src/components/Counter.js
UTF-8
1,250
2.578125
3
[]
no_license
import { Container, Grid, ThemeProvider, Typography, } from "@material-ui/core"; import React, { useEffect, useState } from "react"; import theme from "./MUI-Theme" function Counter() { const [countleft, setCountleft] = useState(0); const [countright, setCountright] = useState(0); const [flag, setFlag] =...
true
0bb2834a27d518abc1ea5c03c79d11e6b57f141f
JavaScript
allybi-design/dice
/js/script.js
UTF-8
2,941
3.296875
3
[]
no_license
const spacebarPress = document.body; const start = document.getElementById("startButton"); const holdButton = document.getElementById("holdButtons"); const diceDiv = document.getElementById("diceDiv"); const imageEl = document.createElement("img"); const winnerEl = document.createElement("h1"); winnerEl.innerText = "'...
true
b9c2fadcc2d8610b5a77fe63a6ab74bb0b199796
JavaScript
luizfernando1996/TCC
/etp1/code/Scripts/CriaArquivoUnico.js
UTF-8
4,054
2.78125
3
[]
no_license
function func() { const readline = require('readline') const fs = require('fs') const diretório = "../TCC/etp1/results/ArquivosGerados/aplicativos" const diretorioArquivoSaida = '../TCC/etp2/entrada/metrics.txt' //--Declaração de variáveis--------- let files = fs.readdirSync(diretório); ...
true
c1fec3ad4013f61165226f0c1b2c01c12ea068e8
JavaScript
DontJar/React-Practice-Code-Challenge-dc-web-071618
/sushi-saga-client/src/App.js
UTF-8
2,105
2.703125
3
[]
no_license
import React, { Component } from "react"; import SushiContainer from "./containers/SushiContainer"; import Table from "./containers/Table"; // Endpoint! const API = "http://localhost:3000/sushis"; class App extends Component { constructor() { super(); this.state = { allSushi: [], sushiToRender: ...
true
a3b25273a7e420188a91ea1fa9645a5f77052d5a
JavaScript
weistn/gismo
/test/module3/compiler/compiler_module3.gs
UTF-8
1,826
2.640625
3
[]
no_license
import "gismo/template" import "gismo/metaprogramming" import "gismo/grammar"; export operator select { return template ("I am a select")} export operator a # b precedence 13 { return template (@a.toString() + @b.toString()) } export operator a# precedence 13 { return template (@a.toString()) } export operator #a { re...
true