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
49778c68aa4846410f63212cf4bf3ba9dbd44a2b
JavaScript
firstwardo/hackillinois2016
/server/public/indexController.js
UTF-8
1,485
2.953125
3
[]
no_license
var socket = io(); var currentlyLongPressing = false; var clicked = false; var longPressStart = function(remote, code){ console.log(remote); console.log(code); console.log('long') currentlyLongPressing = true; socket.emit('startButtonPress',{remote: remote, code...
true
142dc7bbede572a7fde2e7db9d5536893b5d1b65
JavaScript
DasithEdirisinghe/journey-1
/packages/app_web/src/screens/Search.jsx
UTF-8
2,283
2.53125
3
[ "MIT" ]
permissive
import PlaceCard from "../containers/Search/PlaceCard"; import MainPlaceCard from "../containers/Search/MainPlaceCard"; import Navbar from "../containers/Navbar/Navbar"; import {useLocation} from "react-router-dom"; import {Flex, Heading, SimpleGrid, Stack} from "@chakra-ui/react"; import {getNearbyPlaces, getPlaceDeta...
true
1f0e4b5cc60b549a3111b15a67f5a6fefa0c442a
JavaScript
walternascimentobarroso/wquiz
/js/quiz.js
UTF-8
3,958
3.484375
3
[ "MIT" ]
permissive
var quiz = [{ "question": "What is the full form of IP?", "choices": ["Internet Provider", "Internet Port", "Internet Protocol"], "correct": "Internet Protocol" }, { "question": "Who is the founder of Microsoft?", "choices": ["Bill Gates", "Steve Jobs", "Steve Wozniak"], "correct": "Bill Gates" ...
true
02901840bb6d03c37c9195d7ee92645dfb6b9b36
JavaScript
torrepaul315/SkyCast-Weather-App
/routes/weatherInfo.js
UTF-8
6,119
2.515625
3
[]
no_license
var express = require('express'); var router = express.Router(); var https = require('https'); var moment = require('moment'); var dotenv = require('dotenv/config'); //come back to this! var console = require('console'); //think! refactor vars to consts and lets /* GET home page. */ const DARK_SKY_API_POLLING_TIME ...
true
47005af63269090be4803de61609d5fed5f29a78
JavaScript
mikkqu/leetcode-js
/design/container-with-most-water.js
UTF-8
348
3.5625
4
[]
no_license
let containerWithMost = (height) => { let maxarea = 0, l = 0, r = height.length - 1 while (l < r) { maxarea = Math.max(maxarea, Math.min(height[l], height[r]) * (r - l)); if (height[l] < height[r]) l++; else r--; } return maxarea; } console.log(contain...
true
22523ebb6763ae1b4ad1951a6390e8d56bd437d1
JavaScript
coderAM1/Project_2
/client/party/partyFinder.js
UTF-8
6,577
3.03125
3
[ "Apache-2.0" ]
permissive
//handles ajax call for getting the parties for the first two tabs const handleParty = (e) => { e.preventDefault(); handleError(""); sendAjax('GET', $("#partyForm2").attr("action"), $("#partyForm2").serialize(), (data) => { ReactDOM.render( <PartyList parties={data.parties} />,document....
true
14ca1791b49c6923f1c72c70e9db3a2710a5b33a
JavaScript
ju4nmoreno/h__t
/js___/Vue/___notes__/index.js
UTF-8
632
2.765625
3
[]
no_license
const data = { message: 'Hello!', } const handler = { set(target, key, value) { console.log({ target }) console.log({ key }) console.log({ value }) }, } const proxy = new Proxy(data, handler) proxy.message = 'hello!!!!' console.log(data.message) const template = ` <header> ...
true
65a6b75c5e8fe323172c787676ab4dd380f0450f
JavaScript
paulc100/paulc100.github.io
/js/home.js
UTF-8
316
2.734375
3
[]
no_license
firebase.auth().onAuthStateChanged(function(user) { if (user) { // User is signed in. //alert(user.email); var home = document.getElementById("newuser"); home.parentNode.removeChild(home); console.log(user.toJSON()); } else { // No user is signed in. } });
true
fde1a533d4911673d9a45de61ee61764fd644d5d
JavaScript
Corneyeski/CordobaClaseCristian
/www/js/index.js
UTF-8
5,135
2.625
3
[]
no_license
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
true
ae1e7e67dac1d0d8fe75fa903e6fe599ca443c7c
JavaScript
rubcv/Decentralized-Vote
/api/src/routes.js
UTF-8
2,045
2.765625
3
[]
no_license
var Fabric = require("../../asset-transfer-basic/application-javascript/app"); var fabric = new Fabric(); module.exports = function (app) { //########################################### // VOTES //########################################### app.get("/votes", async function (req, res) { ...
true
d54e072cacf1c268525c4c94044c3f5e9ead445f
JavaScript
ATLSAPI/registerfrontend
/app/scripts/services/dateservice.js
UTF-8
589
2.5625
3
[]
no_license
'use strict'; /** * @ngdoc service * @name backendApp.dateService * @description * # dateService * Service in the backendApp. */ angular.module('backendApp') .service('dateService', function() { var service = {}; var now = moment().utc(); // jshint ignore: line service.getUtcNow = getUtcNow; ...
true
162d772a69770ad89deee4a2199ea20b857c2d6d
JavaScript
ryanwaite28/authority-app
/static/js/story-page.js
UTF-8
696
2.640625
3
[]
no_license
document.addEventListener('DOMContentLoaded', () => { let you, user, story; let storyBoxComponent; const storyBoxElm = document.getElementById('story-box'); const story_id = parseInt(window.location.pathname.split('/').pop(), 10); const get_you_promise = Client.check_session(); const get_story_promise = Cl...
true
f5038dde1e5c3aafc7c51962868b971d8a86d5f9
JavaScript
normancroan/Learn-React-Indecision-App
/src/playground/user.js
UTF-8
414
2.890625
3
[]
no_license
const user = { name: 'Norman', age: 'Old', location: 'Goffstown' } const app = <div> <div> {user.name ? <h1>{user.name}</h1> : <h3>Not sure who that user is.</h3>} </div> <div> {user.location && <p>Lives in: {user.location}</p>} ...
true
effa0871596eb5105f6ce56c4085d8976b5c2351
JavaScript
doowb/marketing-website
/website-guts/assets/js/pages/events.js
UTF-8
3,596
2.578125
3
[ "MIT" ]
permissive
window.optly.mrkt.events = {}; window.optly.mrkt.events.showEvents = function(url, div){ var templateContext, htmlDecode; templateContext = {}; templateContext.events = []; htmlDecode = function(text) { var urlRegex = /(https?:\/\/[^\s]+)/g; return text.replace(urlRegex, function(url) { ret...
true
3c7345faa42bc0f004b7913d7048019aa226056a
JavaScript
StephenMakrogianni/silverstripe-elemental
/client/src/lib/prefixClassNames.js
UTF-8
764
3
3
[ "BSD-3-Clause" ]
permissive
import classNames from 'classnames'; /** * Utility method wrap around classeNames to prefix the return class names * @param {string} cssPrefix * @returns {Function} */ const prefixClassNames = (cssPrefix) => (...args) => { const prefix = (str) => `${cssPrefix}${str}`; const prefixArgs = args.map(arg => { ...
true
73a68b4d3bdd3b1ff597f828a75b5da7e7d53652
JavaScript
keminu/front-end-MVVM-demo
/index.js
UTF-8
1,670
2.953125
3
[]
no_license
class Register { constructor() { this.routes = []; } regist(obj, k ,fn) { const route = this.routes.find((el) => { let result; if ((el.key === k || el.key.toString() === k.toString()) && Object.is(el.obj, obj)) { result = el; } }) ...
true
177a8fcff4b5e37f93eaddf8c332c7318f20a77b
JavaScript
vankovilija/fluxtuate
/src/event-dispatcher/event-dispatcher-wrapper.js
UTF-8
4,044
2.703125
3
[]
no_license
import {sendEvent, propagateToParent, propagateToChildren} from "./_internals" const innerDispatcher = Symbol("fluxtuateEventDispatcher_innerDispatcher"); const context = Symbol("fluxtuateEventDispatcher_context"); const listeners = Symbol("fluxtuateEventDispatcher_listeners"); const eventDispatcherFunction = ["addCh...
true
84887330682103aa3e4f14736d4671ce279cd7fb
JavaScript
Kaustav97/Javascript_Projects
/WD Animation/sketch.js
UTF-8
378
2.96875
3
[]
no_license
var frame=0; var num=15; function setup() { createCanvas(600,600); cars=[]; for(i=0;i<num;i++){ cars.push(new Vehicle(random(width),random(height))); } } function draw() { frame++; background(51); for(i=0;i<num;i++){ cars[i].show(); for(j=i;j<num;j++)cars[i].connect(cars[j]); cars[i].arrive(); cars[i]....
true
58c57e9da7c61cb8a4182e5801695e812ce95e8b
JavaScript
josuearrieta/Josefina
/app/scripts/GeneticManager.js
ISO-8859-10
9,526
2.96875
3
[]
no_license
var GeneticManager= Class.extend({ init: function(pTextManager){ this._Population = []; this._KeepReproducing = true; this._IndividualRepresentation = new IndividualRepresentation(); this._GeneticOperator = new GeneticOperator(); this._TextManager = pTextManager; thi...
true
fbc8112d60d8b670953c53c8af036869e43995f3
JavaScript
todokku/social-distancing-game
/client/src/Client.js
UTF-8
1,185
2.609375
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import Canvas from './Components/Canvas' import socketIo from "socket.io-client"; class Client extends Component { constructor(props){ super(props) this.id = 0 this.width = window.innerWidth this.height = window.innerHeight this._o...
true
be8991ab5ac5bc39fad7ac9db652b1674e4081a8
JavaScript
sophiaamin/event-handling-forms
/src/components/App.jsx
UTF-8
1,034
3.1875
3
[]
no_license
import React, { useState } from "react"; function App() { const [text, setText] = useState(""); const [name, setName] = useState(""); const [hoverState, setHoverState] = useState(false); function handleMouseOver() { setHoverState(true); } function handleMouseOut() { setHoverState(false); } f...
true
f8a6382f14eacdba4caa10932428f77c19d2c290
JavaScript
sampler36/webauth-i-challenge
/index.js
UTF-8
2,529
2.53125
3
[]
no_license
// Manage users (id, name, password) const express = require('express'); const helmet = require('helmet'); const cors = require('cors'); const bcrypt = require('bcrypt') const session = require('express-session') const knexSessionStore = require('connect-session-knex')(session) // const knexConfig = require('./knexfi...
true
a85a15174017c1bd0333d1aec83283770324360a
JavaScript
joelsrubin/to-do-list
/client/components/App.jsx
UTF-8
757
2.703125
3
[]
no_license
import React, { useEffect, useState } from "react"; import List from "./List.jsx"; import axios from "axios"; const App = () => { const [isClicked, setIsClicked] = useState(false); const [data, setData] = useState([]); const [loaded, setLoaded] = useState(false); const clickHandler = (e) => { setIsClicked...
true
4533979846429b90a4b06afa0e11066905b70a60
JavaScript
avm99963/infinitegforums
/src/workflows/workflowsStorage.js
UTF-8
2,774
2.640625
3
[ "MIT" ]
permissive
import {arrayBufferToBase64} from './common.js'; import * as pb from './proto/main_pb.js'; export const kWorkflowsDataKey = 'workflowsData'; export default class WorkflowsStorage { static watch(callback, asProtobuf = false) { // Function which will be called when the watcher is initialized and every // time...
true
fbe3492c65f823d8c8fb324358a962942522ab6a
JavaScript
stoyans/Telerik
/WebDesign/JavaScript UI and DOM/09.JQueryOverview/09.JQueryOverview/03.GenerateTable/dynamic-table.js
UTF-8
859
2.84375
3
[]
no_license
/// <reference path="_references.js" /> var students = [ { firstName: "Petar", lastName: "Ivanov", grade: 3 }, { firstName: "Milena", lastName: "Grigorova", grade: 6 }, { firstName: "Gergana", lastName: "Borisova", grade: 12 }, { firstName: "Boyko", lastName: "Petrov", grade: 9 } ]; var table = $("<ta...
true
734b3c94a966cdf1459ed4085a22a02adb7d16fd
JavaScript
alex-secure/keeweb.io
/lib/util/Logger.js
UTF-8
2,132
3.03125
3
[]
no_license
/** * Module dependencies */ var colors = require('colors'), dateformat = require('dateformat'); /** * Logger module constructor * @param {Object} options * @constructor */ function Logger(options) { this.moduleName = 'kickup.util.Logger'; this._options = { prefix: 'kickup', ...
true
8c4b96d97cbb84bc0967bf2d4895e6f41a8d9852
JavaScript
jinsung/sva-cc-fall-2017
/work/jennywu/Assignment1/sketch.js
UTF-8
2,320
3.125
3
[]
no_license
var square0 = { x: 300, y: 300, w: 150, h: 150, op: 0 } var square1 = { x: 300, y: 300, w: 100, h: 100, op: 0 } var square2 = { x: 300, y: 300, w: 50, h: 50, op: 0 } var square3 = { x: 300, y: 300, w: 25, h: 25, op: 0 } var square4 = { x: 300, y: 300, w: 5, h: 5, op...
true
22d5be8e62baaea591c3e90428161ede715020a9
JavaScript
mwagner19446/wdi_work
/w09/d03/Steven/lotr-starter/lotr.js
UTF-8
5,734
3.125
3
[]
no_license
var lands = ["The Shire", "Rivendell", "Mordor"]; var hobbits = [ "Frodo Baggins", "Samwise 'Sam' Gamgee", "Meriadoc \"Merry\" Brandybuck", "Peregrin 'Pippin' Took" ]; var baddies = [ "Sauron", "Saruman", "The Uruk-hai", "Orcs" ]; var buddies = [ "Gandalf the Grey", "Legolas", "Gimli", "St...
true
57f7eb39713408b33ae254f7fa6a3bd5289bef14
JavaScript
marcomong/poll
/polls/src/models/PollSchema.js
UTF-8
2,754
2.90625
3
[]
no_license
const mongoose = require('mongoose') const log = require('../configuration/logger') const randomSet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' const maxLimitIteration = 1679616 let voteSchema = new mongoose.Schema({ votingUserId: String, answerId: Number }) let answerSchema = new mongoose.Schema({ id: Number, ...
true
36d2c258282727a8a00380c9e29783e153bd2db9
JavaScript
catamphetamine/virtual-scroller
/test/VirtualScroller.setItems.preserveScrollPositionOnPrepend.test.js
UTF-8
2,970
2.828125
3
[ "MIT" ]
permissive
import VirtualScroller from './VirtualScroller.js' describe('VirtualScroller', function() { it('should prepend items and preserve scroll position', () => { const SCREEN_WIDTH = 800 const SCREEN_HEIGHT = 400 const MARGIN = SCREEN_HEIGHT const COLUMNS_COUNT = 2 let ROWS_COUNT = 8 const ITEM_WIDTH = SCREE...
true
8c0b489cd4c982f22548ab6399d27b4e258236ed
JavaScript
simpleviewinc/code-guide
/_includes/js/syntax.js
UTF-8
872
4.1875
4
[ "MIT" ]
permissive
// Use 4 space hard tabs for indents // Bad example if (bar === foo) { /* ... */ } // Good example if (bar === foo) { /* ... */ } // End your statements with a semicolon // Bad example console.log('I done goofed') // Good example console.log('Hello, world!'); // Opening braces go on the same lines // Bad e...
true
d77f898c23d0375cd19b0c9fc7755420013d9a9d
JavaScript
gayaldassanayake/backend-api
/src/services/supervisors.js
UTF-8
1,549
2.59375
3
[]
no_license
const { getDatabase } = require('../helpers/get_database'); const Errors = require('../helpers/errors'); const logger = require('../loaders/logger'); /** * Service that manages CUD of supervisors * @abstract * @category Services */ class ManageSupervisorsService { /** * Creates supervisor with given data....
true
14e18e996067c3d0088e7ad443ffb0a68d480a22
JavaScript
0zzz/werewolf_helper
/src/reducers/game.js
UTF-8
1,469
2.59375
3
[]
no_license
import { GAME } from '../constants/actionsTypes' import { CONFIG_MODULE } from '../constants/base'; import { ROLE } from '../constants/game'; import Player from '../module/Player'; const INITIAL_STATE = { playersCfg: null, players: null, } const changePlayerRole = (state, payload) => { const { players } = state...
true
3a2641a9ab0e82a5023eca4bf6710ee8e7d3276b
JavaScript
SavioAndres/PHPSkunk
/view/assets/js/ajax.js
UTF-8
2,116
3.03125
3
[ "MIT" ]
permissive
/** * Função para criar um objeto XMLHTTPRequest */ function xhrequest() { try { request = new XMLHttpRequest(); } catch (IECurrent) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (IEOld) { try { request = new ActiveXObject("Mic...
true
18777239c3e86970f8f3cebc9d4c64409eb0168f
JavaScript
mahmoudkida/herouko-socket-app
/server.js
UTF-8
1,200
2.5625
3
[]
no_license
'use strict'; const express = require('express'); const socketIO = require('socket.io'); const path = require('path'); const apiai = require('apiai')('bccb47faa1144397aad612f4acf8f88e'); const PORT = process.env.PORT || 3000; const INDEX = path.join(__dirname, 'index.html'); const server = express() .use(express.st...
true
04441a34271ce72ac26a50d13505f94787b9568e
JavaScript
Lenin666/Curso-JS-Fernando-Herrera
/JavaScript/Sección 3/assets/js/protip-retorno.js
UTF-8
311
3.609375
4
[]
no_license
// function crearPersona (nombre, apellido ) { // return { // nombre, // apellido, // } // } const crearPersona = (nombre,apellido) => ({nombre,apellido}) const persona = crearPersona('Lenin', 'Garcia'); console.log(persona) function imprimeArgumentos() { console.log(arguments) }
true
5af40fb50ce05a2972b50e95cce33a15bf07b264
JavaScript
adihason/Tag-women-fashion-4580
/frontend/js/likeFunctions.js
UTF-8
3,113
2.8125
3
[]
no_license
window.domElements = { $successMessage: document.querySelector(".alert-success"), $removeMessage: document.querySelector(".alert-danger") } async function userPressToAddLike(itemId) { const user = JSON.parse(localStorage.getItem(`user`)); user.likes["likeId"] = itemId; user.likes["imageUrl"] = $(...
true
e23d7a7889887e04ec5c9a45cd31f75b0f928ec2
JavaScript
prajaktasutarbmis/prajaktasutarBMITS
/ReactNative/GoalAssignment/App.js
UTF-8
1,282
2.765625
3
[]
no_license
import React, { useState } from 'react'; import { StyleSheet,View, Button, TextInput, Text, ScrollView } from 'react-native'; function App() { const [enteredGoal,setEnteredGoal]=useState(''); const [goals,setGoals]=useState([]); const goalInputHandler=(enteredText)=>{ setEnteredGoal(enteredText); value={...
true
56f3c584dc0f892a4a3883dce5cba06cbdc8f62f
JavaScript
MAILLARDSam/FORMATIONJAVA
/JS/index.js
UTF-8
7,419
3.078125
3
[]
no_license
var lastID=0; var descripteurDInterval; window.addEventListener('load', function (evt) { //usage d'une fonction initialisationJS('Samuel'); // Acrrochage d'un écouteur d'event sur une balise // event : submit // fonction à décelncher pour l'event -> formSubmit document.querySelector('form').add...
true
1060b7ffeea1de545705da327e148bb630eedfdb
JavaScript
Calljuly/FirstGame
/highScoreModule.js
UTF-8
3,589
3.578125
4
[]
no_license
//Here we have implemented a module pattern to encasulate all code concering the highscore list. All functionality concerning the highscorelist is put in the variable highscoreModule. //The highscoreModule itsel'f concists of a function that is immediatly executed upon decleration. The function returns an object with t...
true
864a5c710e09149d099d079dfed81a5c150abe98
JavaScript
appusrn1/node-js-app
/template/movies.js
UTF-8
324
2.59375
3
[]
no_license
var express =require("express"); var router=express.Router(); var movies = [ {id:101, name: "Flight club" }, {id:102, name: "Angry Men"} ] router.get('/:id', function(req,res){ console.log(req.params.id); //if req.params }) router.get('/', function(req,res){ res.json(movies); }) module.exports=ro...
true
62e0b9cf930db2e62a275955a621c36656d7d64c
JavaScript
suplch/1909_react
/day7/redux-immutable-shop/src/store/cart/index.js
UTF-8
1,336
2.609375
3
[]
no_license
import {fromJS, Map} from 'immutable'; const initState = fromJS({ items: [ {id: '111', name: '电脑', price: 10000, count: 2}, ] }); export function cartReducer(state = initState, action) { switch (action.type) { case 'ADD_PRODUCT_CART': return state.update('items', function (item...
true
26e5d3d8f9a90a05f7db0191f8b536d04d098fcb
JavaScript
rochanjoshi/restaurant
/js/app.js
UTF-8
3,503
2.953125
3
[]
no_license
function changeform(){ location.replace('signup.html'); console.log("cshcwu"); } let a1 = document.getElementById("c2"); let a2 = document.getElementById("c3"); let a3 = document.getElementById("c4"); let a4 = document.getElementById("c5"); let l1 = document.getElementById("link11"); let l2 = document.getEleme...
true
1da5548a469f41dd53c65de654823a5e1bfaf101
JavaScript
Future-JOEs/leetcode
/0.手写实现-排序算法.js
UTF-8
1,778
3.8125
4
[]
no_license
// 快排 function quickSort(arr, low, high) { if (low < high) { let pivot = partition(arr, low, high); quickSort(arr, low, pivot - 1); quickSort(arr, pivot + 1, high); } return arr; } function partition(arr, low, high) { let pivot = arr[low]; while (low < high) { // 右标记向左移动 while (low < high...
true
144081fcd64fbdaf58681050dd2ecbe4ed65a558
JavaScript
munterkalmsteiner/inception
/inception-pdf-editor/src/main/js/pdfanno/src/core/src/utils/color.js
UTF-8
534
3.140625
3
[ "MIT", "Apache-2.0" ]
permissive
/** * Change color definition style from hex to rgba. */ export function hex2rgba (hex, alpha = 1) { // long version let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) let c = null if (r) { c = r.slice(1, 4).map(function (x) { return parseInt(x, 16) }) } // short version r = hex.match...
true
8cc92d244ad0a8b84894debac75752d0e7369c9b
JavaScript
gabonator/LA104
/tools/crc32/force.js
UTF-8
2,489
2.703125
3
[ "MIT" ]
permissive
if (process.argv.length != 6) throw "No file specified" var input_bin = process.argv[2]; var input_elf = process.argv[3]; var input_magic = parseInt(process.argv[4]) var output_hash = process.argv[5]; //console.log([input_bin, input_elf, input_magic.toString(16)]); var fs = require("fs"); ...
true
8a878b507e372a36d871083cae18707c0dc641f2
JavaScript
nobanusa/Airport-Slackbot
/app/airport-notification.js
UTF-8
1,668
2.609375
3
[ "MIT" ]
permissive
/* * This requires: restler * To install, type 'npm install restler' * Tested with node.js v0.6.14 */ var util = require('util'); var restclient = require('restler'); var fxml_url = 'http://flightxml.flightaware.com/json/FlightXML2/'; var username = 'YOUR_USERNAME'; var apiKey = 'YOUR_APIKEY' var Botkit = requi...
true
1be0a702089bb77cbff02eb0beb7c420561a05c0
JavaScript
Brunaolimene/Projeto-API---GET-
/src/controllers/seriesControllers.js
UTF-8
1,460
3.015625
3
[]
no_license
const { response } = require("express"); const seriados = require("../models/series.json") //definir uma rota padrão const home = (request, response) =>{ response.status(200).send("olá, seja bem vindo ao reprogramaflix! <3") } const getAll = (request, response) =>{ response.status(200).send(seriados); }; co...
true
ea6077d413386bc3ec7303c23bbd1852d6f5c4a5
JavaScript
web-developer813/Laravel5-Vote
/public/js/stuff.js
UTF-8
3,488
3.390625
3
[ "MIT" ]
permissive
var drawPieChart = function(id, data, colors) { var canvas = id; var ctx = canvas.getContext('2d'); var x = canvas.width / 2; y = canvas.height / 2; var color, startAngle, endAngle, total = 100; for(var i=0; i<data.length; i++) { color = colors[i]; startAngle = calculate...
true
4078ce3f0e9b5940fdf2655463c45fdef03d4d5c
JavaScript
ivanmosquerat/basic-algorithms-js
/diagonalDifference.js
UTF-8
437
3.5625
4
[]
no_license
function diagonalDifference(arr) { var leftDiagonal = 0 var rightDiagonal = 0 for(var i = 0; i < arr.length; i++){ for(var j = 0; j < arr.length; j++){ if(i === j){ leftDiagonal += arr[i][j] } if(i + j === arr.length - 1){ rightDi...
true
bb94e58eaad152552901a143c902b7e8e1b3a676
JavaScript
wrestrtdr/scramble
/static/js/test.js
UTF-8
4,019
2.921875
3
[]
no_license
// // UNIT TESTS // var tests = {} tests.scrypt = function() { var hash = computeScrypt("foo", "bar", 20) assertEquals(hash, "468b5b132508a02f1868576247763abed96ac41d") } tests.auth = function() { var hash = computeAuth("test", "iforgot") assertEquals(hash, "4d59c0d101cee7f3acfeece2f37faaf642e90a52"...
true
342ea99899d5b54f5f5826878aab5f72237a9031
JavaScript
google-code/aartifactparser
/aartifactparser/oldCode/testCalling.js
UTF-8
2,997
3.453125
3
[]
no_license
// include StringFunctions.js //document.write("<script type="text/javascript" src = "StringFunctions.js"></script>" ); /* Shortcut to get a document element by id. */ function $(id) { return document.getElementById(id); } /* Call update method if user presses Shift+Enter. */ function keypress(key...
true
569a620d26213b5ca9b479b389e4a0b4c2f68646
JavaScript
TatarchukAlexey/Node.js_dev
/Start/src/server.js
UTF-8
4,218
2.875
3
[]
no_license
const express = require ('express'); const app = express(); const fs = require ('fs'); // могу прочитать файл const path = require ('path'); //могу указать папки нужные const bodyParser =require ('body-parser') const usersDbPath = path.join(__dirname,'db/users.json') //берем файл для чтения const usersData = JSON.par...
true
06c3ff2631fc1e987be4c76804ea977b09aaff6e
JavaScript
hitao123/vue-ssr
/src/utils/http-server.js
UTF-8
1,030
2.53125
3
[ "MIT" ]
permissive
import axios from 'axios' /** * 解析cookie * @param {Object} cookies */ export const parseCookie = cookies => { let cookie = '' Object.keys(cookies).forEach((item) => { cookie += item + '=' + cookies[item] + ';' }) return cookie } export const fetchAPI = cookies => { return { cookies, getAPI: a...
true
c486bc013e0511467b8267b3a2f55f29af777786
JavaScript
amal344/react-exercise-2
/react-2/src/component/Header.js
UTF-8
1,227
2.546875
3
[]
no_license
import './style.css'; import ListItems from './ListItems'; import { useState, useEffect } from "react"; import axios from "axios"; function Header({setList}) { console.log("i am in Header") const [seaechval, setSearch] = useState(""); let newsearch; function search(e){ newsearch=e.target.value } ...
true
fbc457f9a74b908c782d996c3fe4012ac48a591f
JavaScript
chenjigeng/leetcode-answer
/interview-2018/dp/longestConsecutive.js
UTF-8
528
3.5
4
[]
no_license
/** * @param {number[]} nums * @return {number} */ var longestConsecutive = function(nums) { const map = {}; let max = 0; for (let i = 0; i < nums.length; i++) { map[nums[i]] = 1; } for (let key in map) { let num = +key; if (map[num - 1]) { continue; } let len = 0; while ...
true
bba3704be32d1e5f6755e2038bf761f9364c0cc6
JavaScript
pg1992/complete-javascript-course
/5-advanced-JS/starter/script.js
UTF-8
6,224
4.46875
4
[]
no_license
// Function.prototype /* var Person = function(name, yearOfBirth, job) { this.name = name; this.yearOfBirth = yearOfBirth; this.job = job; }; Person.prototype.calculateAge = function() { console.log(2020 - this.yearOfBirth); }; Person.prototype.lastName = "Smith"; var john = new Person("John", 1990, "teacher...
true
dc9c5ac220933ed509f985e4809fae67bf096f48
JavaScript
ajLapid718/LeetCode-Problems
/Other_Questions/reverseWordsInAStringIII.js
UTF-8
957
4.28125
4
[]
no_license
/* Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not...
true
d9a03ddae1906e05880f796603d15c449b673750
JavaScript
Creativeguru97/The_Nature_of_Code
/C09_GeneticAlgorithm/SecondTurn/SmartRockets_CodingChallenge/sketch.js
UTF-8
4,552
3.25
3
[]
no_license
var population; var lifeSpan = 450; var count = 0; var lifeCountDisplay; var target; var mutationRate; var oX = 200; var oY = 160; var oW = 150; var oH = 10; function setup(){ createCanvas(640, 360); mutationRate = 0.01; rocket = new Rocket(); population = new Population(); lifeCountDisplay = createP(); ...
true
17736beacd1e5893deaebc7464ac2c39a54dd90e
JavaScript
lmk123/warriorjs-archive
/src/Level 4/Player.js
UTF-8
767
3.40625
3
[]
no_license
// 第 24 轮之后就没有敌人了 const noEnemyTurn = 24 // 杀死一个 Thick Sludge 至少需要 12 点血 const minHealth = 12 class Player { constructor() { // 记录当前是第几轮 this.turn = 0 this.lastTurnHealth = 20 } playTurn(warrior) { this.turn += 1 let health = warrior.health() if (warrior.feel().isEmpty()) { if ( ...
true
e610315e2e74fd3b39832b155ca639f2637c70bc
JavaScript
dipendra-karki/owl-templates
/app-firebase/src/Session.js
UTF-8
931
2.53125
3
[ "MIT" ]
permissive
export class Session { next = null; constructor(env) { this.authUser = JSON.parse(localStorage.getItem("authUser")); this.env = env; // Session setup env.firebase.onAuthUserListener(authUser => this.onUserChange(authUser)); } setNextRoute(routeName) { this.next = routeName; } async o...
true
52c7e2fce139d12cc0f36b0e994a5cab6cfa54d2
JavaScript
gaberger/oflib-node
/test/tests.js
UTF-8
8,152
2.578125
3
[]
no_license
/* * Author: Zoltán Lajos Kis <zoltan.lajos.kis@ericsson.com> */ "use strict"; var fs = require('fs'); var util = require('util'); var testutil = require('./testutil.js'); String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; }; function testUnpack(pat...
true
63548a32b1f69d4b5b35212397ab7a81b4cab4b3
JavaScript
leroioliveira/MorrisGame
/MorrisScripts/MorrisEngine.js
UTF-8
95,486
2.671875
3
[]
no_license
//----------------------------------------------------------------------------------------------------- // this section is the event handler for the web worker. // we initialized we create and initialize an actual engine object and save it for later //--------------------------------------------------------------------...
true
87038d4e6b8c1b58754f61023ebb33d92a13b0ce
JavaScript
tatianarincon96/Programacion_Imperativa_Javascript
/repaso_variables.js
UTF-8
545
3.9375
4
[]
no_license
let vaso1 = "rojo"; let vaso2 = "azul"; console.log("Vaso 1: " + vaso1 + "\nVaso 2: " + vaso2); // \n salto de línea console.log("---------------"); let aux = vaso1; vaso1 = vaso2; vaso2 = aux; console.log("Vaso 1: " + vaso1 + "\nVaso 2: " + vaso2); let n1 = 18; let n2 = 18; console.log(17 == n1--); // primero comp...
true
adcfbdd6ee82a76a823e2f846651f8f8d8f50d7b
JavaScript
isogai17/profile
/isoprofile.js
UTF-8
407
3.03125
3
[]
no_license
const button = document.getElementById("button"); button.addEventListener("click", function() { const comment = document.getElementById("comment"); if (comment.value != "") { const list = document.getElementById("list"); const elem = document.createElement("li"); elem.innerText = c...
true
d6c0602fb0f62279e2caa93a43bedbad2524f1d8
JavaScript
Gio2392/project-tracking-intro-component-master
/js/main.js
UTF-8
437
2.828125
3
[]
no_license
const menuToggle = document.querySelector('.hamburger'); menuToggle.addEventListener('click', menu); function menu() { let showMenu = document.querySelector('.navigation'); showMenu.classList.toggle('active'); menuToggle.classList.toggle('active'); if(menuToggle.classList.contains('active')){ m...
true
f492a2f1d7f1e0ebb5bf3d2a76b9e8d7b03b3bd7
JavaScript
sanraith/aoc2018
/src/puzzles/day03.js
UTF-8
2,239
2.8125
3
[ "MIT" ]
permissive
// eslint-disable-next-line no-unused-vars const debug = require('debug')('aoc.puzzles.day03'); const Solution = require('../fw/solution'); class Day03 extends Solution { constructor() { super(3, 'No Matter How You Slice It'); } part1() { this.rects = this.getRectangles(); this.field = new Map...
true
da2080e6455aa2b946bbcbfa715d86775932b1ba
JavaScript
emilyelizabethdaniel/generateREADME
/Develop/index.js
UTF-8
2,431
2.75
3
[]
no_license
//////////////////////////////////////////////////////////////////// //required packages// /////////////////////////////////////////////////////////////////// const inquirer = require('inquirer'); const fs = require('fs'); const generateMarkDown = require('./utils/generateMarkdown'); function init() { function...
true
67939dc1b107553bbf66b4d6dbc61101e73deb1e
JavaScript
hikmatiar28/ParsingJsonVolley
/belajar Js/typedata.js
UTF-8
542
3.65625
4
[]
no_license
//tipe data var string="hallo dunia"; var integer=10; var flot=5.5 console.log(string+ " "+integer+ " "+flot); //variable dimuat dalam 1 baris console.log("hallo dunia"); //tipe data string console.log(10); //ini contoh interger atau number console.log(5.5); //ini contoh float atau desimal console.log(true); //ini bol...
true
4301cd0f6cc31c2fc959b3025ebbd68fbba4875a
JavaScript
amejiarosario/cryptobot
/test/scripts/websocket-server.js
UTF-8
563
2.6875
3
[]
no_license
const WebSocket = require('ws'); const wss = new WebSocket.Server({ port: 7171 }); let count = 0; wss.on('connection', function connection(ws) { console.log('connected'); ws.on('message', function incoming(message) { console.log('> ', message); ws.send(message); }); const t = setInterval(() => { ...
true
ce3518e38695d4f5ca940553f37caeca41de5f10
JavaScript
aas-lab/git_lab1
/script.js
UTF-8
1,877
3.0625
3
[]
no_license
let newValue = result = operator = null; let textarea = document.getElementById("textarea"); let buttonSum = document.getElementById("sum"); let buttonSubtract = document.getElementById("subtract"); let buttonMultiply = document.getElementById("multiply"); let buttonDivide = document.getElementById("divide"); let butto...
true
48b394a551db73413ce0d22f4c475902c5371c3d
JavaScript
seanmcquaid/Table-Management-System
/client/src/store/modules/auth/mutations/index.js
UTF-8
728
2.53125
3
[]
no_license
const authMutations = { loginSuccess: (state, payload) => { const { token } = payload; localStorage.setItem('token', token); state.token = token; state.isAuthenticated = true; }, registerSuccess: (state, payload) => { const { token } = payload; localStorage.setItem('token', token); s...
true
a7e3b8f77268717feede405934e35be59d96c38f
JavaScript
vnop/Savi-travel
/components/userPage/userProfile.js
UTF-8
2,583
2.515625
3
[]
no_license
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableHighlight, Dimensions } from 'react-native'; import UserAvatar from 'react-native-user-avatar'; let port = 8080; let {width, height} = Dimensions.get('window'); let styles = StyleSheet.create({ container: { fle...
true
deef31ab0af8c4907523aa3616d991aac587c985
JavaScript
ukalto/RandomMath
/RandomMath_Backend/persistence-unit.js
UTF-8
2,787
2.78125
3
[]
no_license
const mysql = require('mysql'); const pool = mysql.createPool({ connectionLimit : 10, host : 'localhost', user : 'root', password : 'mypassword', database : 'RandomMathDB' }); function saveUser(email, username, password) { const user = { email, username, ...
true
2bd7900c0bdf26b458e5499b3e183b9bf20332a4
JavaScript
jdclarke5/sylver
/app/sylver-app.js
UTF-8
4,597
2.78125
3
[ "MIT" ]
permissive
import {LitElement, html, css} from "lit-element"; export class SylverApp extends LitElement { static get properties() { return { inputString: {type: String}, input: {type: Array}, length: {type: Number}, position: {type: Object}, history: {type: Array}, }; } static get st...
true
e83fa303b21cbd0278d78985542e70e132731131
JavaScript
blackdogTT/flyppyBird
/js/background.js
UTF-8
1,066
2.796875
3
[]
no_license
(function () { window.Background = Class.extend({ init:function (option) { var self = this; self.type = option.type; self.sx = option.sx; self.sy = option.sy; self.sw = option.sw; self.sh = option.sh; self.dx = option.dx; ...
true
5f55fa8abf049c2488c0197287bbe3264ac97132
JavaScript
khangpropk123/webcybers
/server/models/Series.js
UTF-8
1,146
2.578125
3
[]
no_license
const mongoose = require('mongoose') let ArticleSeriesSchema = new mongoose.Schema( { name: String, title: String, hashtag:String, description:String, author:{ type: mongoose.Schema.Types.ObjectId, ref:'User' }, series: [ { ...
true
3e8ac5c6cff44f081c1a745b338e28cd31085b46
JavaScript
oms801/PublicAttorneyMatching_Server
/middleware/authChecker.js
UTF-8
1,092
2.53125
3
[]
no_license
const jwt = require('../lib/jwt_token') const rd = require('../db/redis'); //rest api 요청시 jwt 검증하는 미들웨어 //jwt는 클라이언트에서 Authorization 헤더에 "Bearer 토큰값" 형태로 전달 module.exports = (req, res, next) => { if (req.headers.authorization) { const token = req.headers.authorization.split('Bearer ')[1]; rd.RED...
true
facdd028976ee44c50baf1b62cf28e3c39dc762b
JavaScript
CorJex/ProjectEulerCode
/soru 55.js
UTF-8
615
3.078125
3
[]
no_license
Short Java solution: public class p55 { public static void main(String[] args) { int count = 0; for (int i=195; i<10000; i++) { StringBuffer sb; String s; java.math.BigInteger next = new java.math.BigInteger(new Integer(i).toString()); for (int j=0; j<50; j++) { java.math.BigInteg...
true
045e8ec6de5521486e06d7f52b76e00c57ecee8d
JavaScript
Gustavo053/aerogerador-frontend
/src/components/Algoritmo/Algoritmo.js
UTF-8
4,034
3.0625
3
[]
no_license
import React, { useState, useEffect } from 'react'; import Header from '../Header/Header'; import axios from '../../service/api'; import './Style.css'; function Busca() { const [numero, setNumero] = useState(); const [numeroSoma, setNumeroSoma] = useState(); const [lista, setLista] = useState([]); con...
true
89c85b7a7a4683814990f7e569ee2d0496bf2364
JavaScript
ajbyrd/recipe-finder
/src/scripts/searchFormManager.js
UTF-8
632
3.78125
4
[]
no_license
/* Building a function that appends the search box to the HTML through string interpolation */ const buildAndAppendSearchForm = () => { const searchForm = ` <section class="search-form"> <h3>Search for recipes containing: </h3> <input type="text"> <button id = "search-button">Search</button> </secti...
true
d67ab1cff298c0a86bb2c68f010466ae560e6067
JavaScript
yrapank/test
/script.js
UTF-8
527
2.875
3
[]
no_license
let money = prompt("Ваш бюджет на месяц ?"), time = prompt("Введите дату в формате YYYY-MM-DD"); let appData = { budget: money, timeData: time, expenses: { }, optionalExpenses: { }, income: [], savings: false }; console.log(appData); let expEx = prompt("введите об статью расходо...
true
2194eb5be3eed031e375e7c20a07f1fed412ddaf
JavaScript
danieltalhaug/Project-exam-1
/js/script.js
UTF-8
1,001
3.0625
3
[]
no_license
// JavaScript Document // Navigation code function toggleNav() { var nav = document.getElementById("mobileNav"); if (nav.className === "nav-container") { nav.className += " open"; } else { nav.className = "nav-container"; } } // Slideshow code var slideIndex = 1; showSlides(slideIndex); // Next/previous contro...
true
6cebfa9d28f85c70f9c1cf4e3bac1a36004898c0
JavaScript
nedak96/Node-Base
/src/api/v1/categories/categories.controller.js
UTF-8
1,929
2.65625
3
[ "MIT" ]
permissive
/** * @module /api/v1/categories * @fileoverview * @access @public * @since */ const categoryUtils = require('../../../utils/categories'); const { INTERNAL_SERVER_ERROR, BAD_REQUEST, OK, CREATED, } = require('../../../constants/responseCodes'); const TWO_MIN_TIMEOUT = 120000; /** * Create a new categor...
true
fd551fac2fb32673002ccb58f6668421666d3f99
JavaScript
WyeOak/month9-onlineshop
/src/main/resources/static/js/login.js
UTF-8
495
3.109375
3
[]
no_license
// window.addEventListener('load', function () { // // function saveUser(user) { // const userAsJSON = JSON.stringify(user) // localStorage.setItem('user', userAsJSON); // } // // const loginForm = document.getElementById('login-form'); // loginForm.addEventListener('submit', function ()...
true
e9059091ae36c082677514b5f2c174814b34e050
JavaScript
predrag56/basic-mmo-phaser
/js/game.js
UTF-8
2,243
2.84375
3
[ "MIT" ]
permissive
/* * Author: Jerome Renaux * E-mail: jerome.renaux@gmail.com */ var Game = {}; Game.init = function(){ game.stage.disableVisibilityChange = true; }; Game.preload = function() { game.load.tilemap('map', 'assets/map/example_map.json', null, Phaser.Tilemap.TILED_JSON); /* game.load.spriteshee...
true
2b1cffaca4c17500b0949a1efda708adbe7a8762
JavaScript
devashreeganesha108gmailcom/CapstoneProjectBrainStation
/client/src/components/Pictures.js
UTF-8
1,327
2.515625
3
[]
no_license
import React, { Component } from 'react' import '../css/output.css' class Pictures extends Component { render() { console.log(typeof this.props.pictures) let picOneLink = this.props.pictures[0] === undefined ? '' : this.props.pictures[0].PortraitLink let picTwoLink = this.props.pictures[1] ...
true
a948e5cf99f61fa25bed3d5941948b1ce5052082
JavaScript
allProjectToAll/react_utils
/src/components/hooks/otherHooks.js
UTF-8
1,205
3.375
3
[]
no_license
// import React, { useMemo, useCallback, useRef } from 'react'; // // //1. useMemo 和 useCallback的区别是,前面返回的是一个对象,后者返回的是一个函数 // // //2.useRef 绑定到input上面,可以直接获取到input的所有属性和方法值等等 // export default function OtherHooks(){//将参数结构出来,当作行参,子组建直接获取 // const obj1 = {hights:"180",age:"17",name:"tim"} // const obj2 = {hight...
true
e6fe53b2a265a73f0493e8fb17b70fd478f07a1c
JavaScript
dow99999/M06UF2-ZombiesParty
/js/Recompensa.js
UTF-8
446
2.828125
3
[]
no_license
var Recompensa = function (x, y, img, muestra, id) { Elemento.apply(this, arguments); var collected = muestra[0]; this.collect = function(){ collected = true; } this.isCollected = function(){ return collected; } } Recompensa.prototype = Object.create(Elemento.prototype); //se copia el prototipo de...
true
08bfabebf5ad429ea1b50ab8dde60e924c3a9934
JavaScript
alexb997/Javascript_exercises
/Script4.js
UTF-8
321
3.90625
4
[]
no_license
// Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are 5, 6, 7. function arie_heron(a,b,c) { let semi_perim = (a+b+c)/2; let aria= Math.sqrt(semi_perim*(semi_perim-a)*(semi_perim-b)*(semi_perim-c)); return aria; } console.log(arie_heron(5,6,7))...
true
64ad80532b47040b22b714bbb6a463cb14568980
JavaScript
Rogach36/798729-nerds-25
/js/popup.js
UTF-8
2,004
2.734375
3
[]
no_license
var link = document.querySelector(".button-connect"); var popup = document.querySelector(".popup"); var close = document.querySelector(".modal-close"); var form = popup.querySelector(".popup-form"); var username = popup.querySelector(".field-name"); var usermail = popup.querySelector(".field-mail"); var message = popup...
true
45a96538cdfdb3a1b8f28b17798550c28917c55c
JavaScript
harshitbadollacodes/emoji-interpretor
/src/App.js
UTF-8
1,837
3.203125
3
[]
no_license
import React, { useState } from "react"; import "./styles.css"; export default function App() { const emojiDictionary = { "🍕": "Pizza", "🍔": "Burger", "🌭": "Hot Dog", "🍿": "Pop Corn", "🥞": "Pancakes", "🧇": "Waffles", "🌮": "Tacos", "🍦": "Ice Cream", "🍰": "Cake", "☕": "...
true
aa124689489e09e8205f1da7601224d88f5dbf3a
JavaScript
Otlowski/ERPOT
/public/js/Modules/Calendar/calendarVC.js
UTF-8
16,883
2.578125
3
[ "MIT" ]
permissive
calendarVC = {}; /*Groups variables*/ calendarVC.$tableContent = $("[data-function=groups-list__groups]"); calendarVC.tableView = $("[data-function=groups]"); calendarVC.groupsList = []; /*Calendar variables*/ calendarVC.$calendarContent = $("[data-function=calendar-content]"); calendarVC.periodDates = []; calendarVC.y...
true
0cdcfe6f3958ac1ad17ee5afbbe569c8fd4adbd7
JavaScript
Phillip-Revak/WIN
/Week7/7.1FetchProj/book.js
UTF-8
1,883
2.921875
3
[ "MIT" ]
permissive
// // Grabbing elements let searchBar = document.querySelector('.search'), submitBtn = document.querySelector('.submit'), writerText = document.querySelector('.writer'), titleText = document.querySelector('.title'), imageBox = document.querySelector('.image'), writerText2 = document.querySelector('.writer2'),...
true
f0ce8ac9be316a4042bcb5e76bfdc341fefcf301
JavaScript
akatie/Ebola-Timeline-Map
/js/site.js
UTF-8
12,868
2.625
3
[ "MIT" ]
permissive
function generateBarChart(id,data){ var margin = {top: 0, right: 80, bottom: 30, left: 30}, width = $(id).width() - margin.left - margin.right, height = $(id).height() - margin.top - margin.bottom; var chart = d3.select(".chart") .attr("width", width + margin.left + margin.right) ...
true
530f120c4600a7fa56f819d3b0cf897e21e9e940
JavaScript
misterussell/practice-hub-refactor
/src/tests/__tests__/Gameplay.store.test.js
UTF-8
1,394
2.84375
3
[]
no_license
import Gameplay from '../../models/Gameplay'; describe('The Gameplay class', () => { let gameplay; beforeEach(() => { gameplay = new Gameplay(); }); afterEach(() => { gameplay.suspend(); }); it('Should should have a method to return the gameState', () => { expect(gameplay.getState).not.toBeT...
true
e93b682c1c5dc155322cc43504e9d1794f94a8cc
JavaScript
yagossc/poker_hand
/cards/analyzer.js
UTF-8
6,401
3.578125
4
[ "MIT" ]
permissive
/** This module does not count jokers as part of a valid poker deck. Also, there's some redundancy in this code, breaking the DRY principle, but given the time frame, this is a solution and not an optimal solution. **/ // Types of hands values enumeration var HTypes = { STRAIGHT_FLUSH: 9, FO...
true
26c5cd1ee5ab466113489fae9a79fff771294615
JavaScript
Soares/physics
/js/env/spinors.js
UTF-8
1,228
2.6875
3
[]
no_license
const FIDELITY = 1000; const SPEED = 1; const RESOLUTION = 0.1; const HALFLEN = 7; const HBAR = 1; // Playing with a bunch of spinors: const up = CVector.fromCs(C.one(), C.zero()); const down = CVector.fromCs(C.zero(), C.one()); const left = CVector.fromCs(C.one(), C.one()); const right = CVector.fromCs(C.one(), C.one...
true
94f0a62a2a626b078da4ef4aafd72d176ede36c5
JavaScript
10jplz/Team-Profile-Generator
/src/store.js
UTF-8
1,206
2.6875
3
[ "MIT" ]
permissive
const Jose = ` <div class='card text-white bg-primary mb-3' style='width: 18rem;'> <div class='card-header'> <h2>Jose 1</h2> <h3>Manager</h3> </div> <div class='card-body'> <p class='card-text'>Employee ID: 1</p> <p class='card-text'>Email: <a href='mailto:Jose@email.com'>Jose@email.com</a></p> <p class='card-t...
true
7c68ffa9398ffdc10131caea49d56a58fefb4902
JavaScript
vborshchov/vue_summernote_sortable_todos
/src/js/thought.js
UTF-8
482
2.703125
3
[]
no_license
'usee strict'; function Thought(id, name, author, hashtags, picture, repetition) { this._id = id || GUID(); this.name = name || "<p><br></p>"; this.author = author || ""; this.hashtags = hashtags || []; this.picture = picture; this.repetition = repetition || 0; this.created_at = Thought.getDate(); } Tho...
true