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
574244fb942562f783cb62564ae9dc0540db18fa
JavaScript
zhaoyuhang/Game-of-Life
/src/lifegame.js
UTF-8
6,815
3.453125
3
[]
no_license
//lifegame主体函数 function LifeGame(row, col) { this.row = row; this.col = col; this.grid = []; this.remainLifes = 0; this.nextRemainLifes = 0; this.generations = 1; this.isRunning = 0; } //随机初始化生命,按百分比随机生成生命数量 LifeGame.prototype.initRandom = function(pe...
true
c7b332806a074cad2d4d79773a10251537f36977
JavaScript
StanojevicNikola/doniraj-krv
/server/source/services/email-service.js
UTF-8
1,126
2.609375
3
[]
no_license
const nodemailer = require('nodemailer'); const fs = require('fs'); /** * Encapsulates Email service operations */ class EmailService { constructor({ logger, config }) { this.logger = logger; this.config = config; this.smtpTransport = nodemailer.createTransport(this.config.email); } ...
true
f9062e5e572fe75af834e5dc280c5953b3033791
JavaScript
brings123/text-app
/utils/mostOccurent.js
UTF-8
808
3.359375
3
[]
no_license
const wordOccurence = require('./wordOccurence') // @desc calculate the most occurent word in a given text const mostOccurent = (text) => { var wordsAlredyParsed = {words: []} var tempOccurence = 0 var mostOccurrentWord = { word: "", occurence: 0} var word = "" const allWords = text.split(" ") ...
true
bebb6d5d6f08b5a89eba4029192836529369ef4b
JavaScript
cmarinca/angularWorkshop
/Demo_1/getDate.js
UTF-8
84
2.609375
3
[]
no_license
var getDate = function () { return "Current date: " + new Date(Date.now()); };
true
ef6db2e4219843d1d2cb895fd37b02fdb6225af1
JavaScript
smilteval/Custom-Array-Methods-TTP-2
/myEvery.js
UTF-8
464
4.28125
4
[]
no_license
//checks if all elements in an array start with 's' const arr2 = ["sun", "smile", "sandals", "smilte"]; console.log("\nmyEvery\n") function startsWithS(value){ if(value[0] === 's'){ return true; } else{ return false; } } function myEvery(arr, callback){ let result = true; for(let i = 0; i < arr....
true
7b10a4592a922b2c53dee11fdbaa3c32e0053344
JavaScript
xphd/wiki-entity
/learn_promise.js
UTF-8
353
3.125
3
[]
no_license
var promise = new Promise(function (resolve, reject) { var a = 3 if (a === 1) { resolve(a) } else { reject(a) } }) promise.then(function (value) { console.log(value++) // return value }).catch(function (error) { console.log("catch") console.log(error) }) .then(function (v...
true
06abcf05d95d22ede27ebbd15bec146df660f470
JavaScript
beerless-nv/Beerless-API
/common/models/brewery-entry.js
UTF-8
5,601
2.703125
3
[]
no_license
'use strict'; module.exports = function(Breweryentry) { /** { "action":"create", "name": "string", "description": "string", "country": "string", "province": "string", "place": "string", "postcode": "string", "streetAndNumber": "string", "logo": "beer-no-logo.svg", "entryId": 0, "contact":{...
true
373c4c0598699a3f777dc9c778f1a2406394df0e
JavaScript
ga-wolf/WDI9_Homework
/andrew_ward/week_01/day5/main.js
UTF-8
6,316
4.3125
4
[]
no_license
// MTA Lab // Objectives: // Apply your knowledge of Javascript to solve a real world problem. // Get really good at array manipulation. // Activity // Create a program that models a simple subway system. // The program takes the line and stop that a user is getting on at and the line and stop that user is getting o...
true
f7bfb9f0a15587cd3d8f158f640759772dc6f565
JavaScript
Musa24/master-nodejs-restful-api
/lib/config.js
UTF-8
828
2.8125
3
[]
no_license
// Create and export configuration // Container for all the environment const environments = {}; //Default will be staging env environments.staging = { httpPort: 3000, httpsPort: 3001, envName: 'staging', hashingSecret: 'secret', }; //Production environment environments.production = { httpPort: 5000, h...
true
a6cab345936ee8e245eabbf9d6ea38535d27e6d4
JavaScript
jonasrodningen/informatikkprosjektarbeid1
/djangoframe/static/scripts/header.js
UTF-8
615
2.546875
3
[ "MIT" ]
permissive
var header = document.querySelector("header"); var head = document.querySelector("head"); var referred = ""; let siteTitle = "The Bvhjelm Times"; if(usernameID=="") { usernameID = "LOG IN" } console.log(usernameID) function implementHeader() { head.innerHTML += '<link rel="stylesheet" type="text/css" href="/stat...
true
9c04c386f5ca85abbf7a18454373cd6803e6e5fe
JavaScript
cmullins777/Hack-U_React-Study-References
/src/Week.js
UTF-8
491
2.625
3
[]
no_license
import React from "react"; export default class Week extends React.Component { handleChange(e) { const content = e.target.value; this.props.update(content); } render() { const week1 = this.state.week1.map((hw, i) =>( (this.state.week1[i].title) + (this.state.week1[i].link)); return ( ...
true
6c736fa6d473cf965190b4bd54b588c451cbd879
JavaScript
2019-B-GR1-JS/JS-Flores-Asimbaya-Cristian-Segundo
/03-angular/componentes/src/app/mi-primer-componente/mi-primer-componente.component.js
UTF-8
3,043
2.734375
3
[]
no_license
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
true
d82015026e5354206d266380dd79691811d3dbaa
JavaScript
swellander/CTCI
/leet_code/js/permutationSequence.js
UTF-8
537
4.25
4
[]
no_license
// The set [1,2,3,...,n] contains a total of n! unique permutations. // By listing and labeling all of the permutations in order, we get the following sequence for n = 3: // "123" // "132" // "213" // "231" // "312" // "321" // Given n and k, return the kth permutation sequence. // Note: // Given n will be between ...
true
e313fbf21aea70ece107572fcdffc4796bd2364b
JavaScript
miumiu25/snake
/RetroSnaker.js
UTF-8
5,397
3.15625
3
[]
no_license
var content = document.getElementById('content'); var startPage = document.getElementById('startPage'); var scoreBox = document.getElementById('score'); var over = document.getElementById('over'); var loserScore = document.getElementById('loserScore'); var close = document.getElementById('close'); var startBtn = docume...
true
fff7578bfb4546b5402150fd3688e9c6f351988c
JavaScript
allen-turing/Todo-List
/src/App.js
UTF-8
2,227
2.90625
3
[]
no_license
import Header from './components/Header' import Tasks from './components/Tasks' import { useState, useEffect } from 'react' import AddTask from './components/AddTask' import { db } from './firebase_config' const App= ()=> { const [showAddTask, setshowAddTask] = useState(false) // Firebase Data Import cons...
true
dc94caf7ddcc41d7ccfec7d235b853066426bc10
JavaScript
cjdelisle/wasabi
/hello.js
UTF-8
2,319
2.515625
3
[]
no_license
/*@flow*/ /*:: const WebAssembly = ({} :any); */ const Fs = require('fs'); // $FlowFixMe Native module cannot be flowed const WasmABI = require('./build/Release/WasmABI'); const PAGE_SIZE = 65536; const setMemory = (ctx, memory) => { ctx.memory = memory; const heap = ctx.heap = memory.buffer; ctx.memory_s...
true
f71af8ac5d1d75e32ead7bf068053063deb5f443
JavaScript
shimoal/interviewCake
/33.findDuplicates.js
UTF-8
236
3.140625
3
[]
no_license
function findDuplicates(array) { var n = array.length - 1; var sumN = (n * n + n) / 2; var sumArray = array.reduce(function(num, sum) { return num + sum; }, 0); return sumArray - sumN; } module.exports = findDuplicates;
true
ec0ecbd0db8a320658f66483fc841f9e8c42ad67
JavaScript
Vonfan666/lishidai
/static/js/home.js
UTF-8
5,103
2.65625
3
[]
no_license
/** * Created by Administrator on 2019/6/29. */ //判断字符串是否属于列表 function inArray(a,b) { for (var i in b){ if(a==b[i]){ return true } } } //给二级dd标签添加display=none 隐藏起来 $('.left-one dl dd').addClass("active"); $('.left-one dl dt').a...
true
8cf9ef80c772c8a56cd6f337e01cae7d1fcbfb46
JavaScript
bragibbo/creative-project-5
/back-end/routes/users.js
UTF-8
3,970
2.9375
3
[]
no_license
const mongoose = require('mongoose'); const express = require('express'); const argon2 = require('argon2'); const router = express.Router(); // User database collection model const userSchema = new mongoose.Schema({ firstName: String, lastName: String, username: String, password: String, role: { ...
true
1939a5b70bd8b1d7807ed918cb871adc9c75245f
JavaScript
jamesnogra/alibatadg
/platforms/browser/www/js/characters.js
UTF-8
4,285
2.71875
3
[ "Apache-2.0" ]
permissive
var curent_character = ''; var at_index = 0; var full_name = ''; var all_chars = [ 'a', 'e_i', 'o_u', 'ba', 'be_bi', 'bo_bu', 'b', 'ka', 'ke_ki', 'ko_ku', 'k', 'da', 'de_di', 'do_du', 'd', 'ga', 'ge_gi', 'go_gu', 'g', 'ha', 'he_hi', 'ho_hu', 'h', 'la', 'le_li', 'lo_lu', 'l', 'ma', 'me_mi', 'mo_mu', 'm', 'na', ...
true
fcff522e3d23abd8f8f002d84b8a0771c8901d2a
JavaScript
izzydoesit/seatGeekSeek
/Instructions.js
UTF-8
977
3.40625
3
[ "Apache-2.0" ]
permissive
// SeatGeek API question // 1. Build a function that takes in a search query and prints the name of the first 10 events related to that query along with their score. // 2. Find the event with the highest score. // 3. Print the name of 10 events that are recommended based on the event that we found in step 2. // For...
true
3d8e72368e0a8138d5ad4e3cfcf58c9370f3d82a
JavaScript
Human437/DSA-Big-O
/power-calculator.js
UTF-8
389
3.765625
4
[]
no_license
function powerCalculator(base,exponent){ let product = base; let i = 1; if (exponent < 0){ return 'Exponent should be >= 0' } if (exponent === 0){ return 1 } while(i<exponent){ product *= base i++ } return product } console.log(powerCalculator(10,2)) console.log(powerCalculator(5,3)) ...
true
771497c166d3719ffbfd55ac4bdbe6e9bd167a04
JavaScript
kayshabes1/akan-names
/script.js
UTF-8
3,276
3.53125
4
[ "MIT" ]
permissive
function akan(){ var year= document.getElementById("Year").value; var Y = parseInt(year); var CC = (Y - 1) / 100 + 1; var month = document.getElementById("Month").value; var M =parseInt(month); var day = document.getElementById("Day").value; var D = parseInt(day); var dayOfTheWeek = parseInt( ( (CC/4) -2*CC-1) + ((5*Y/...
true
16a5e2e4dbc2179e9b279680ecb2da621a3fd101
JavaScript
hoyangtsai/javascript-patterns
/chapter6/classical_no3.js
UTF-8
517
4.25
4
[]
no_license
// 借用並設定原型 // 父建構式 function Parent(name) { this.name = name || 'Adam'; } // 在原型中新增功能 Parent.prototype.say = function() { return this.name; }; function Child(name) { Parent.apply(this, arguments); } Child.prototype = new Parent(); var kid = new Child("Patrick"); kid.name = "Patrick"; // Patrick console.log(kid...
true
7425de614aff13398d0e678e1063bf79881abf89
JavaScript
Infrared212/Lessons
/lesson1/javascript-d213f0c07f12eda904f21942c4dbf3619bda93b9/lesson1/js/data-types.js
UTF-8
1,919
3.828125
4
[]
no_license
// 'use strict'; // // однострочный комментарий // // /* многострочный // комментарий */ // // // отладка // console.log('Данные для отладки'); // // // переменные // // объявление перменных // let age = 26; // age = 27; // console.log(age); // // let userLogin = 'qwerty', password = 'qwerty123'; // // let userLogin...
true
7452340db07d4ff7206000722f2d92c54b41c7ea
JavaScript
kenhoff/globalgamejam
/Assets/GroundControl.js
UTF-8
4,607
2.671875
3
[]
no_license
// #pragma strict public var width : int; public var depth : int; public var dirt_object : GameObject; public var indestructible_block_object : GameObject; public var dwarf_spawn_object : GameObject; public var version : int; public var blocks : Array; public var connections; function Start () { version = 0; c...
true
c6631c2dd02c0c85b474da6538800dbc140fa679
JavaScript
wangyn1998/nodeJS-Lesson
/第八课:HTTP客户端/上课代码/clientGet1.js
UTF-8
318
2.578125
3
[]
no_license
const http = require("https"); /** * https1是在http基础上进行SSL加密 * 让数据不再明文传输 */ http.get("https://www.baidu.com/",function(res){ var result = ""; res.on("data",function(chunk){ result += chunk; }) res.on("end",function(){ console.log(result); }) })
true
516f1dfb64951373d7f233e8a4d8ec6e1a0ae871
JavaScript
georgiylityagin/eslint-plugin-lodash-to-native
/lib/rules/map.js
UTF-8
2,431
2.640625
3
[]
no_license
/** * @fileoverview replace lodash map function to the native one if possible * @author Georgiy */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { ...
true
3c00ba1ce45c11daca515add7bac4cef400677c9
JavaScript
eaglespire/todo
/src/store/reducer.js
UTF-8
532
2.796875
3
[]
no_license
import {ADD_ITEM, REMOVE_ITEM} from "./actions"; const initState = { items: [] } export const reducer = (state = initState, action) => { switch(action.type){ case ADD_ITEM : return { ...state, items: state.items.concat(action.payload) } c...
true
830c8d5d421a6deb7f23bba05ed9345c2100579c
JavaScript
aloofcaterpillars/store-front
/api/writings.js
UTF-8
1,087
2.765625
3
[]
no_license
// Thanks https://github.com/jdnordy/joshuadavidnordstrom/blob/master/lib/api.ts import fs from "fs"; import { join } from "path"; import matter from "gray-matter"; // join the current working director with _writings dir to to get path const writingsDirectory = join(process.cwd(), "_writings"); export function getWri...
true
ad9f9f8b7d60d0ebeb7d054a8b974a0c3b1fdabc
JavaScript
Hngo1992/mernstack62021
/nodeapi/route/router.js
UTF-8
1,519
2.609375
3
[]
no_license
let exprs = require("express"); let router = exprs.Router(); //Router({caseSensitive:true}) let TrainingModel = require("../DataModel/TrainingModel"); router.get("/trainings", (req, res)=>{ TrainingModel.find((err, data)=>{ if(!err){ res.json(data) }else{ console....
true
045f17d7c10cd5cf5d3352f116b51b29608e794d
JavaScript
jlmrepo/cierre
/assets/js/Productos.js
UTF-8
6,585
2.75
3
[]
no_license
addEvent(window, 'load', inicializarEventos, false); function inicializarEventos() { var select1 = document.getElementById('categoria'); addEvent(select1, 'change', mostrar, false); var carga_familia = document.getElementById('proveedores'); addEvent(carga_familia, 'change', mostrar_familia, false); ...
true
fbf08b7c7ce096bc2335055c7610196d0c1ed798
JavaScript
IdanSchiller/Hackathon
/src/ShowEvent.js
UTF-8
1,896
2.640625
3
[]
no_license
import React, { Component } from 'react' import { Card, CardImg, CardText, CardBody, CardTitle, CardSubtitle, Button, CardHeader } from 'reactstrap'; import firebase from "firebase/app" export default class ShowEvent extends Component { constructor(props) { super(props); this.state = ...
true
fc2ca7103a65cfbe70ad48f897b3a393dc02f250
JavaScript
stang38/CS160
/Final_Part1/src/graphics/geometry/shapes/circle.js
UTF-8
1,447
2.890625
3
[]
no_license
class Circle extends Geometry { /** * Constructor for Circle. * * @constructor * @param {Shader} shader Shading object used to shade geometry * @returns {Circle} Circle created */ constructor(shader,x,y,size,segment) { super(shader); this.vertices = this.generateCircleVertices(x,y,size...
true
08cccd3ef949386a7615afdd016d80db258e9869
JavaScript
saiteja-gatadi1996/Whatsapp-Chat-Application
/src/SidebarChats.js
UTF-8
2,025
2.703125
3
[]
no_license
import React, { useState, useEffect } from 'react' import "./SidebarChats.css" import {Avatar} from "@material-ui/core" import db from './firebase'; import {Link} from "react-router-dom" //adding the props id, name which we defined in Sidebar.js function SidebarChats({id, name, addNewChat}) { // passing ...
true
16fdbeaa8cb0ac472d1f9bd29bb85c28e532a476
JavaScript
eadyos/panzoom
/panZoom.js
UTF-8
8,697
2.75
3
[ "MIT" ]
permissive
var hasEventHandler = function(obj, eventHandler){ var result = false; jQuery.each(jQuery._data( obj, "events" ), function(i, event){ if(event[0].type == eventHandler){ result = true; } }); return result; } var loadedImages = []; var panZoom = function(fullImg, viewerDivSelector, angle){ var img =...
true
18c6590332ce4d5714e78cc3be2b5876db9cd1d0
JavaScript
TheKerfuffle/group-auth-shelf
/src/components/ShelfPage/ShelfPage.js
UTF-8
930
2.59375
3
[]
no_license
import React, { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import './ShelfPage.css'; function ShelfPage() { const dispatch = useDispatch(); // items grabs state from items reducer const items = useSelector(store => store.itemsReducer); useEffect(() => { // on page ...
true
34db6d71336e7aaf8d06040d1be024ec16c84b78
JavaScript
marie-phu-qui/Lord-of-the-News
/client/actions/index.js
UTF-8
799
2.828125
3
[]
no_license
import request from 'superagent' // Actions to show news data export const requestDATA = () => { return { type: "REQUEST_DATA" } } export const showError = (errorMessage) => { return { type: "SHOW_ERROR", errorMessage: errorMessage } } export const receiveNews = (news) => { return { type: ...
true
5ae0dd6e397767f78ff077b7234ecf65123e9c5a
JavaScript
mjkaufer/IcoGrab
/main.js
UTF-8
1,808
3
3
[]
no_license
var request = require("request"); var fs = require("fs"); var savePath = "images/"; var header = { "User-Agent": "IcoGrab" }; //universal header function mkdir(path) { try { fs.mkdirSync(path); } catch (e) { //don't do anything - folder exists. } } function makeOptions(u) { return { url: u, headers: hea...
true
b9e5cd0adb78f78be652b8ff580d149406b6bb02
JavaScript
encsooo/FbW36-PB-livecode
/21-date.js
UTF-8
311
3.78125
4
[]
no_license
// Date // To creat js date we Should call Date class in javascript let testDate = new Date(); console.log(testDate); // 2020-11-04T10:52:34.099Z console.log(testDate.toString()); // Wed Nov 04 2020 11:53:44 GMT+0100 (Central European Standard Time) console.log(testDate.toLocaleDateString()); // 11/4/2020
true
d467a5350965e8415b33113855d24c248f74c468
JavaScript
nebdil/Drag-Rank
/public/scripts/polls_id.js
UTF-8
1,776
2.734375
3
[]
no_license
$( document ).ready(function() { //Sort options $("#options").sortable(); //Adding data attributes on submit $('.button').on('click', function(event) { event.preventDefault(); let $url = $("#options").attr("name"); $('.completed').removeAttr('hidden'); let options = $('#options').find('aside');...
true
98438663ef274b5a7886f5a124718c1f958ec189
JavaScript
GuruSoda/SraPOC
/public/js/mame.class.js
UTF-8
882
3.078125
3
[]
no_license
class mame { constructor() { this.nombres = [] } Mostrar() { console.log('Nombre:') this.nombres.forEach( item => { console.log(item) }) } Cargar() { return fetch('mame/games') .then(rta => rta.json()) .then(items => { // console.l...
true
bda1f7829a0cab5a294741a0ce60394fa23fce54
JavaScript
Joany2185/javascript
/js_second_day/01_dish.js
UTF-8
605
3.703125
4
[]
no_license
function Dish(name) { this.name = name; } function Restaurant() { this.orders = []; } Restaurant.prototype.orderDish = function(dish) { this.orders.push(dish); } Restaurant.prototype.printOrders = function() { //const allOrders = Object.key(this.orders); for(var i=0; i < this.orders.length; i++){ ...
true
e3718d79ec800b798f0acb8ba760bc5cf8dd31db
JavaScript
afrojuju1/shopping-cart
/src/containers/Cart.js
UTF-8
1,438
2.59375
3
[]
no_license
import React, { Component } from 'react' import { bindActionCreators } from "redux" import { connect } from 'react-redux' import * as CartActions from '../actions/CartActions' import Shelf from '../components/Shelf' class Cart extends Component{ constructor(props) { super(props) this.state = {} } render() { ...
true
eba50cee571e095de2ee8ee0d71470ace7e33da8
JavaScript
tylerferrin/hingeAuthPoc
/server/src/Apollo/mutations.js
UTF-8
1,754
2.734375
3
[]
no_license
const { cookie } = require('../cookies'); function login(_, { tokenString } , { res }) { console.log("tokenString", tokenString); if (isValidGoogleToken(tokenString)) { // create JWT, JWT Expiry, RefreshToken // set response cookie cookie(res, "refreshCookie", "topSecret", { maxAge: 10000, ...
true
602be5f04c394587aad14bd6a0be4b0cc8c7eebf
JavaScript
josecerda1/FindTheTeasure
/css/js/helpers.js
UTF-8
951
3.5
4
[]
no_license
let getRandomNumber = size => { return Math.floor(Math.random() * size); } //Aca creamos una funcion que tomara el clock y el objeto tesoro let getDistance = (e, target)=>{ //guardamos donde da el click el usuario con el tesoro //esto en eje X //OFFSETX DONDE CLICK --- TARGET.X TESORO let diffx = e...
true
f9b84d80253547815d4deae79fde0f7582ec765f
JavaScript
jlsigmon/KaibaBotYGO
/commands/tagvictory.js
UTF-8
40,157
2.546875
3
[]
no_license
const { MessageAttachment } = require("discord.js"); module.exports = { name: 'tagvictory', description: "Lets users claim the victory for a duel!", execute(msg, args, con, coconut1, coconut2, coconut3, walnut, challengers, challenge1, challenge2, challenge3, admin){ if (challengers.includes(ms...
true
a3da19c3bf2c8f890064429e591b004a9b59843e
JavaScript
kilsmo/fragmate
/examples/example1.js
UTF-8
647
2.640625
3
[ "MIT" ]
permissive
import { init, render } from '../lib/fragmate.js'; import { button, div } from '../lib/fmdom.js'; let state = { counter: 0 }; function increase() { console.log('increase'); state.counter++; render(state); } function decrease() { console.log('decrease'); if (state.counter > 0) { state.counter--; ren...
true
c51b0bb02fd141edf7085525af39a883b393a2a5
JavaScript
CALIL/unitrad-ui
/test/test_sort.js
UTF-8
1,641
2.5625
3
[ "MIT" ]
permissive
import {describe, it} from "mocha"; import {assert, should, expect} from 'chai'; import {normalizePubdate} from '../src/js/sort.js'; describe('出版年の処理', () => { describe('# normalizePubYear', () => { it('2000{Number}', () => expect(normalizePubdate(2000)).to.equal(20000000)); it('200001{Number}', () => expec...
true
87eab6f7d9887150fc2be0e07251dfa83aeeaa7f
JavaScript
ahmadhashem/jira_gerrit
/greasemonkey.js
UTF-8
2,838
2.6875
3
[]
no_license
"use strict"; (function() { // Load the script var script = document.createElement("SCRIPT"); script.src = 'https://code.jquery.com/jquery-3.2.1.min.js'; script.type = 'text/javascript'; script.onload = function() { var $ = window.jQuery; $.ajaxSetup({async: false}); /*chrome.tabs.qu...
true
2e36fc5b705cc1ffa2adbe58d6849fe5074d07c6
JavaScript
saekaisozumi/lab-p5-treasure-hunt
/src/game.js
UTF-8
474
2.78125
3
[]
no_license
class Game { drawGrid() { // Iteration 1 // Draw the grid // https://p5js.org/reference/#/p5/line for (let row = 0; row <= HEIGHT; row += SQUARE_SIDE) { line(0, row, WIDTH, row); for (let col = 0; col <= WIDTH; col += SQUARE_SIDE) { line(col, 0, col, HEIGHT); } } /* ...
true
b562cdfc3d789acb6e33c2d9d93658f33078d7f6
JavaScript
LKezHn/SNA_frontend
/src/components/Login/index.js
UTF-8
2,639
2.515625
3
[]
no_license
import React, { useState, useEffect } from 'react'; import { Link, withRouter } from 'react-router-dom'; import axios from 'axios'; function Login(props) { const apiURL = 'https://apricot-tart-94176.herokuapp.com/api/v1/login' const tokenAuthURL = 'https://apricot-tart-94176.herokuapp.com/api/v1/verifyToken' c...
true
b2c49c9eb4a294fe82fa88ab1238082023c68f5c
JavaScript
Danangbanyu/test-git-12
/alay-split.js
UTF-8
210
2.6875
3
[]
no_license
// misahin data string untuk jadi data array function permensplit(){ let permen = "sapi saya makan susu dari pabrik"; console.log(permen) let sapi = permen.split("a") return sapi } console.log(permensplit())
true
bcba59ad4fdf47725805b5b564a191550228cb7f
JavaScript
ybphp/wx-miniprogram
/律师法务咨询小程序/pages/modifyPasd/modifyPasd.js
UTF-8
5,471
2.53125
3
[]
no_license
// 引入函数库 var Utils = require("../../utils/util.js"); var data = { // 数据 time: "发送验证码", // 发送验证码按钮的txt iponeVal: "", // 手机号码Val pasdVal: "", // 密码号码Val Verification_Code: "", ...
true
56689bdddcc58d95bd15ce32305fef95662e3c9b
JavaScript
malekhizaoui/rebktn1-toy-problems
/longestPalindrome/longestPalindrome.js
UTF-8
776
4.28125
4
[]
no_license
/* Implement a function that finds the longest palindrome in a given string. For example, in the string "My dad is a racecar athlete", the longest palindrome is "a racecar a". Count whitespaces as valid characters. Other palindromes in the above string include "dad", "ete", " dad " (including whitespace on each side...
true
b0c1b0882493ddcbc35cd3b582fc0a2b7276a731
JavaScript
devgianlu/PretendYoureXyzzy
/WebContent/js/cah.ajax.builder.js
UTF-8
7,657
2.71875
3
[ "CC-BY-4.0", "CC-BY-3.0", "CC-BY-NC-4.0", "EPL-1.0", "CDDL-1.0", "LGPL-2.1-only", "MIT", "BSD-3-Clause", "Apache-2.0", "CC-BY-NC-SA-3.0", "LicenseRef-scancode-free-unknown", "BSD-2-Clause" ]
permissive
/* * Copyright (c) 2012-2018, Andy Janata * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditi...
true
798ecbd7c64800e2e3da24d4200c48f7e136c677
JavaScript
archimonde12/luudinhhoan-fundamental-c4e70
/session5/homework/10.js
UTF-8
409
3.78125
4
[]
no_license
//Write a function named is_inside that checks if a point is inside a rectangle, takes 2 parameters const is_inside=(coor,rec)=>{ if((coor[0]>rec[0])&&(coor[0]<rec[0]+rec[2])&&(coor[1]>rec[1])&&(coor[1]<rec[1]+rec[3])){ return(true) } else return(false) } //Check console.log(is_inside([100, 120], [...
true
378ccd784b75817526bb2c56a5072a648a8f3454
JavaScript
timesfusion/fixedheadtable
/fixedheadtable.js
UTF-8
1,367
2.734375
3
[]
no_license
/* * id : id of special table * arrWidth : array, a series of numbers for each th in each tr * bodyHeight : the height of the tbody */ function fixedHeadTable(id,arrWidth,bodyHeight){ id = '#' + id; var head = id + '>thead', body = id + '>tbody', head_tr = head + '>tr', body_tr = body + '>tr', head_...
true
68c0e3a2502c2e588508605439cb62df73015190
JavaScript
pguillory/am
/app/js/Game/Mouse.js
UTF-8
728
3.078125
3
[]
no_license
function Mouse() { var self = {} self.addEvent('Move') self.addEvent('Click') self.addEvent('Button') $(document).on('mousedown', function(event) { self.emitButton(true) }) $(document).on('mouseup', function(event) { self.emitButton(false) }) $(document).on('mousemove', function(event) { ...
true
286299af8e45069d81a8267ad49456513fe8101a
JavaScript
maldonmeehan/igPay-atinLay
/js/scripts.js
UTF-8
1,412
3.953125
4
[ "MIT" ]
permissive
// JavaScript/jQuery Business Logic var pigArray = []; var vowel = ["a", "e", "i", "o", "u"]; function pigLatin(englishArray) { if(englishArray[0] === "a" || englishArray[0] === "e" || englishArray[0] === "i" || englishArray[0] === "o" || englishArray[0] === "u") { // pigArray = pigArray.concat(englishArray); // ...
true
382a9f4a9bbd642a787c570e21a427b0eeeb2678
JavaScript
Weasyl/weasyl
/assets/js/tags-edit.js
UTF-8
10,085
2.609375
3
[ "Apache-2.0" ]
permissive
import parseTags from './parse-tags.js'; import {byClass, make} from './dom.js'; const animateFlash = (element, color) => { element.animate([{color}, {}], {duration: 500}); }; const hasSuccessStatus = ({status}) => 200 <= status && status < 300; // The time before showing an in-progress indicator for a backg...
true
84fed3aad39b9a744c7bd1f264b6c998aae750d0
JavaScript
argostellar/499817-kekstagram-17
/js/form-image-edit.js
UTF-8
1,469
2.734375
3
[]
no_license
'use strict'; // form-image-edit.js - модуль управления слайдером; (function () { var scale = window.form.scale; var scaleValue = window.form.scaleValue; var scaleSmaller = scale.querySelector('.scale__control--smaller'); var scaleBigger = scale.querySelector('.scale__control--bigger'); var Value = window.f...
true
63e47ca27a8c2b20582109337a9b76c8caeb6e1c
JavaScript
elodie-baeza/ElodieBaeza_9_16092021
/src/data/apiProvider.js
UTF-8
1,827
2.671875
3
[]
no_license
import axios from 'axios' axios.defaults.baseURL = 'http://localhost:3000'; /** * * @see https://github.com/elodie-baeza/P9-front-end-dashboard * @class */ class apiProvider { /** * @description retrieves information from a user. This first endpoint includes the user id, user information (first name, l...
true
0279ef28b8a9f67b95f0e95eb7fa8e1407d879f3
JavaScript
zzkhaled/MessagerieInstantan-e
/instant-messaging-serveur/dist/client.js
UTF-8
2,855
2.890625
3
[]
no_license
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Client { constructor(server, connection) { this.server = server; this.connection = connection; this.usernameRegex = /^[a-zA-Z0-9]*$/; this.username = null; this.room = null; connection....
true
fa76ef422759b9ee4b2098c2f932d2112e7bd4ea
JavaScript
katharinap1999/challenge3
/assets/js/main.js
UTF-8
14,070
2.859375
3
[]
no_license
/* CHALLENGE 3 */ // API Keys var weatherApiKey = 'b44c4e041f03cd862a58bab897d2c417'; var algorithmiaApiKey = 'simzvgX5nuK8VnWE+b55Ls4j6qF1'; var nasaApiKey = 'ZYD3okEzCQMCQAYC7iHddfbN0l7TojSkvMlhwNdS'; //Buttons var btnPower = document.querySelector('.btn-power'); var btnStationLeft = document.querySelector('.btn-s...
true
43fd2c396ebc1a5f93538de698af51e1118508b2
JavaScript
samstewart/d3-crowd-simulator
/graph.js
UTF-8
2,953
3.0625
3
[]
no_license
function nodes_in_range(id_range) { // pass in array of node ids return d3.selectAll('g').filter(function(d) { return id_range.includes(d.id); }); } // Article idea: the power of *seeing* your data structures while debugging. Avoids effort of // having to build a mental model. Lets you manipulate them physically. Do...
true
a87fcee7bbec02e20688876df47c20a20769a77b
JavaScript
WissalAbbassi/node-app
/services/jwtAdmin.utils.js
UTF-8
854
2.5625
3
[]
no_license
var jwt = require('jsonwebtoken'); const JWT_SIGN_SECRET = 'ddddizyz'; module.exports = { //generate token for Admin generateTokenForAdmin: function(adminData) { return jwt.sign({ email: adminData.email }, JWT_SIGN_SECRET ) }, parseAuthorization: function(...
true
a97ec43c156c094058e1274388383176e1efcdea
JavaScript
morkvd/cmd-dataviz-project
/source/js/daterangepicker.js
UTF-8
932
2.671875
3
[ "MIT" ]
permissive
$(function() { var start = moment().subtract(29, 'days'); var end = moment(); function cb(start, end) { $('.daterange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); } $('.daterange').daterangepicker({ startDate: start, endDate: end, ranges: { 'Today': ...
true
17295d7ec359348260064a4ab244e02a0f30f317
JavaScript
foolof41/lrucache
/test/index.js
UTF-8
1,396
2.640625
3
[ "MIT" ]
permissive
'use strict' /* global describe, it */ var should = require('should') var LRUCache = require('../index.js') var x = {a: 1, b: 2} describe('LRUCache', function () { it('LRUCache()', function () { var cache = LRUCache(100) should(cache.info().length).be.equal(0) should(cache.info().capacity).be.equal(100)...
true
63365e77e63f8fddadca61d5e99d741cc7adaef7
JavaScript
garethfriend/cost-modeller
/src/redux/config/index.js
UTF-8
3,722
2.890625
3
[]
no_license
import { UNIT_TYPES_SELECTED, BASE_UNITS_SELECTED, BASE_CURRENCY_SELECTED, UNIT_DECIMAL_PLACES_SELECTED, CURRENCY_DECIMAL_PLACES_SELECTED, PERCENTAGE_DECIMAL_PLACES_SELECTED } from '../types' import { combineReducers } from 'redux' import { createSelector } from 'reselect' import { mass, volum...
true
c2a57dae4fdfabdd90d7d9a763c81ddf8a4b6c6b
JavaScript
EngineerParth/restaurant-management-system
/src/App.js
UTF-8
2,639
2.65625
3
[]
no_license
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import {createStore} from 'redux'; import reducer from './reducers/reducer.js'; import addTableItem from "./actions/addTableItem.js"; import deleteTableItem from "./actions/deleteTableItem.js"; import incrementMoneyEarned from ...
true
188ed224f1e68ebed86a9d66f4747c0c34a6851a
JavaScript
JahnaviSangisetti/weatherapp
/weatherapp/main.js
UTF-8
5,293
3.640625
4
[]
no_license
const appid = '#'; const dateElement = document.getElementById("date"); const options = {weekday : "long", month : "short", day : "numeric"}; var today = new Date(); dateElement.innerHTML = today.toLocaleDateString("en-US", options); // define fetch function to send GET request to Open Weather API const fetchWeather =...
true
27aff409c036a41467aaa904d42a7cae6aebacc6
JavaScript
dingzhaowei666/index
/js/myindex.js
UTF-8
2,509
2.765625
3
[]
no_license
$(function(){ $('.section-toggle').on('click', function(){ var $this = $(this), sect = $( '#' + $this.data('section') ),//给当前点击的menu存一个id“section” current_sect = $('.section.active');//当前屏 if(sect.length == 1){//如果点击了menu if( sect.hasClass('active') == false && $('body').hasClass('section-switching') == f...
true
29eea39a9e6535031dcbb49b19ec5b89c2514afb
JavaScript
Emmanuelprz1400/DEMO
/Frontend/controllers/index.js
UTF-8
2,455
2.96875
3
[]
no_license
/* Obtenemos las categorías */ import { categoriesService } from "../models/categories.js"; const carousel = document.getElementById('carousel'); const features = document.getElementById('features'); const data = new categoriesService(); const setIndexPage = async (data) => { data.trends = await data.getTrendsBycat...
true
04495085a2d7ee601c26f70db7d6a5861ae52ec8
JavaScript
thetinyspark/tomahawk
/tomahawk/canvas/display/DisplayObjectContainer.js
UTF-8
15,065
2.75
3
[]
no_license
/* * Visit http://the-tiny-spark.com/tomahawk/ for documentation, updates and examples. * * Copyright (c) 2014 the-tiny-spark.com, inc. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software witho...
true
5cae6a9afb663c39da22d812b84f22037c4153bb
JavaScript
boo182/ItCrowdApi
/controllers/postController.js
UTF-8
693
2.546875
3
[]
no_license
import PostModel from '../models/postModel'; import ObjectUtils from '../utils/objectUtils'; class PostController { // Getters async getRepost(id) { return {post: `this is repost n ${id}`}; } async getArticle (id) { return {post: `Article n°${id}`}; } // Setters async newA...
true
b6716f13d7a396b7bdabcceb6fd1e165a1b3ccf8
JavaScript
harsha01/anglrjsprjt
/HrSoftUI/AJExamples/app/services/employeeDatacontext.js
UTF-8
1,425
2.546875
3
[]
no_license
(function () { var id = 'employeeDatacontext'; angular.module('ajExpApp') .factory(id, ['$http', '$q', employeeDatacontext]); function employeeDatacontext($http, $q) { var service = { employees: getEmployees, addEmployee: addEmployee }; ...
true
025fb134d57301787b76b88759865d33bf948d1d
JavaScript
mininqpuppy/batmangame
/sketch.js
UTF-8
910
2.625
3
[]
no_license
var Umbrella, umbrellaImage; var Thunder,thunderImage function preload(){ umbrellaImage=loadAnimation("images/Walking Frame/walking_1.png","images/Walking Frame/walking_2.png","images/Walking Frame/walking_3.png","images/Walking Frame/walking_4.png","images/Walking Frame/walking_5.png","images/Walking Frame/walkin...
true
d2c0972b8a90197192518f7e4a1de6763c6ffe83
JavaScript
michaellourenco/CardGame
/app.js
UTF-8
431
2.546875
3
[]
no_license
//Requires Modules /* var express = require('express')(); //Requires Express module for Routing and REST management var JSON2 = require('JSON2'); var data = {'zica': 2, 'treta': 4} var obj = JSON2.stringify(data) console.log(obj) var obj = JSON.parse(obj); console.log(obj); */ var open = require('open') open("http://w...
true
6d6d23acea27be00b16eb9c1959de51fdb0aadbc
JavaScript
neostoic/Rest_API
/server.js
UTF-8
9,062
2.90625
3
[]
no_license
//############################################################### ///// Copyright 2015, Georgoulas Ioannis, All rights reserved. ///// ///// Project: Venues recommender API ///// ///// File description: (server.js) ///// Server functionalities: port number, routes, http requests, mongodb connection ///// //############...
true
e65e043a2cfea5e00595545efd630cf65b4968a5
JavaScript
lldarrow/Web-Dev
/ProjectRepo/newGame/js/game/Sword.js
UTF-8
1,525
3.125
3
[]
no_license
/* Luke Darrow, David Hoekman CptS 483 Web Dev Project */ function Sword(context) { ScreenWidget.call(this, context); var self = this; self.speed = 0; //self.image = image; self.imageIndex = 0; self.imageOffset = 0; self.width = 40; self.height = 40; self.timer = 1; self.hitbo...
true
7dbded84405083d671b7fa19d6fc2b1051befdd1
JavaScript
uvula6921/react_basic_course
/week-3-route_ex/src/Cat.js
UTF-8
397
2.609375
3
[]
no_license
import React from "react"; const Cat = (props) => { console.log(props.match) // route에서 :를 이용해 파라미터를 props로 전달받았는데, match라는 key 값으로 찾아볼 수 있음. return ( <div className="CatMain"> 내 고양이 이름은 {props.match.params.cat_name} {/* url 파라미터 값을 사이트에 넣기 */} </div> ); }; export default Cat;
true
b80224bef0903f36b4578ba3d42a786d5734f279
JavaScript
MedoHaleem/Algorithms
/AddTwoNumbers.js
UTF-8
1,662
4.40625
4
[]
no_license
function createNode(value) { return { value: value, next: null }; } class LinkedList { constructor(value) { this.head = createNode(value); this.tail = this.head; this.length = 1; } append(value) { const newNode = createNode(value); let curren...
true
dbffb6efc41844576870ff4a15d5f764bc938078
JavaScript
mgawino/gpw
/gpw/static/graph.js
UTF-8
3,126
2.921875
3
[]
no_license
var SERVER_URL = 'http://localhost:8000'; var companyNames = null; var selectedCompanyName = null; var statNames = null; var selectedStatName = null; function clearGraphs() { var elements = document.getElementsByTagName('svg'); for(var i = 0; i < elements.length; i++) { element = elements[i]; ...
true
482ba5f7c3e8368c70b3096b023edfda41042f1a
JavaScript
valis78/JavaScript
/JavaScript/random color/app.js
UTF-8
405
3.34375
3
[]
no_license
const btn = document.querySelector('.btn') const color = document.querySelector('.color') btn.addEventListener('click', () => { changeColor() }) function changeColor(){ setInterval(() => { let random = '#'+Math.floor(Math.random()*16777215).toString(16); document.body.styl...
true
e87602b59577acd2a2c1cf9fc79b906f7999037a
JavaScript
marjan1993/expensify-app
/src/playground/redux-expensify.js
UTF-8
6,974
3.265625
3
[]
no_license
import { createStore, combineReducers } from "redux"; import uuid from "uuid"; //ADD_EXPENSE const addExpense = ({ description = "", note = "", amount = 0, createdAt = 0 } = {}) => ({ type: "ADD_EXPENSE", expense: { id: uuid(), description,//description : description, but we use shorthand way since the...
true
325b5feee965e221d687782f051675139fb182bd
JavaScript
MikeDulik/playlistr
/public/js/views/playlistView.js
UTF-8
2,882
2.640625
3
[]
no_license
var PlaylistView = function(playlist){ this.playlist = playlist; this.$el = $("<div class='column column-6 playlist'><div class='playlist module'</div></div>"); }; var counter=0; PlaylistView.prototype = { render: function(){ var self = this; self.$el.html(self.playlistTemplate(self.playlist)); $("....
true
66ce3e9b04e272c839cd391ea195683fc9fb8d22
JavaScript
jxhnkndl/bus-call
/client/src/components/Daysheet/index.js
UTF-8
4,728
2.578125
3
[ "MIT" ]
permissive
// Import dependencies import React from 'react'; import dayjs from 'dayjs'; import ListGroup from 'react-bootstrap/ListGroup'; import ListGroupItem from 'react-bootstrap/ListGroupItem'; import './index.scss'; // Create and export Daysheet component export default function Daysheet(props) { const { gig, nextGig } = ...
true
10bf3e83e5ee0ecaf266c51ee9b54d62ca29e1f8
JavaScript
cleverbee/WAR_FSB_O_03_FSB_O_Module_3_Redux-master
/1_Zadania/Tydzien_2_Dzien_1_i_Dzien_2/1_async/src/redux/actions.js
UTF-8
1,053
2.640625
3
[]
no_license
// Plik z akcjami import api from "../api/index" const QUOTE_FETCHING = "[QUOTE] QUOTE_FETCHING"; const QUOTE_FETCHED = "[QUOTE] QUOTE_FETCHED"; const QUOTE_ERROR = "[QUOTE] QUOTE_ERROR"; const ADD_FAV = "[QUOTE] add quote to favourites" const startFetching = () => ({ type: QUOTE_FETCHING, }); const quoteFetche...
true
5ed962d865655a5b9fd89a422e1fd62c42507d3a
JavaScript
4U6U57/shields
/frontend/lib/filter-examples.js
UTF-8
585
2.859375
3
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
function exampleMatchesRegex(example, regex) { const { title, keywords } = example; const haystack = [title].concat(keywords).join(' '); return regex.test(haystack); } export default function filterExamples(examples, query) { if (! query) { return examples; } const regex = new RegExp(query, 'i'); // C...
true
3791c54e5ee41e54fe7f8990cdd558431c439354
JavaScript
Darth-koder007/hackerrank
/1 Warmup/8 Min Max/script.js
UTF-8
870
3.734375
4
[ "MIT" ]
permissive
/** * calculates minimal sum and maximal sum from given numbers * @return {String} outputString contains minimal and maximal sum */ function main() { let aTemp = readLine().split(' '); let a = parseInt(aTemp[0]); let b = parseInt(aTemp[1]); let c = parseInt(aTemp[2]); let d = parseInt(aTemp[3]); ...
true
652e99da9af364c352bc6aaf84975f2a3e4afd75
JavaScript
cryptobuks/Garlicoin-Mobile-Wallet
/www/js/init.js
UTF-8
4,754
2.65625
3
[]
no_license
window.onload = function () { document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { checkTextZoom(); getSavedAddresses(); addAddressOnClick(); scanQRCode(); saveSelectedExplorer(); } }; function checkTextZoom() { //change the Tex...
true
99d5a46a36fafada074b8081971db5c10a270e90
JavaScript
AmandaAzeved0/LabLuby-Prova-js-ninja
/frontend/js/cart.js
UTF-8
5,181
3.375
3
[]
no_license
const cartcontent = document.getElementById('cart') cartcontent.innerHTML = ` <div class="card"> <div class="container"> <div class ="text-uppercase strong-bold-text">cart</div> <div class="card-body col" id="card-body"></div> <div id="total"> ...
true
1c79bce791356265751f8759dc98955cf087ce97
JavaScript
afman42/10-projects-vanilla
/9.custom-search-filter/app.js
UTF-8
1,487
3.609375
4
[]
no_license
window.addEventListener('DOMContentLoaded',initializeApp); const list = document.querySelector('.list'); const searchInput = document.querySelector('#search'); const span = document.querySelector('span'); const form = document.querySelector('form'); function initializeApp(){ doEventBindings(); } function createThi...
true
7f2d4539138a568d04dc4099306298d0bfa596c0
JavaScript
Nytra/OnlineMathQuiz
/script.js
UTF-8
19,752
3.859375
4
[]
no_license
let TO_RAD = 3.14 / 180; let operators = ['+', '-', '/', 'x']; // we will always display 'x' instead of '*' let reArith = /\d*[+-/*x]\d*/; // for detecting standard arithmetic questions let reTrig = /^\b(sin|cos|tan)\b/; // for detecting trigonometry questions function submit() { // why is this function so big? ...
true
f623e1ced45dbbcf27b59ff0be1c40ed6e621b57
JavaScript
iflam/English-Pal-Pairer
/public_html/palMatcher.js
UTF-8
7,717
3.015625
3
[ "MIT" ]
permissive
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ class Node { constructor(num, person){ this.num = num; this.person = person; this.next = null; } }; ...
true
f2d6c2553225b6984ef286ea8d39813565d253b6
JavaScript
Erik--Vink/majong
/app/js/components/match/match.factory.js
UTF-8
1,455
2.578125
3
[]
no_license
var _ = require('underscore'); module.exports = function($http, apiUrl, SocketService){ var self = this; var urlBase = apiUrl+'games'; var maxSelectedTiles = 2; var selectedTiles = []; self.toggleTile = function (tile) { if(_.contains(selectedTiles, tile)) { selectedTiles = _....
true
291a3d93b95ebcdeb18d8f66cf42f8edfa509664
JavaScript
sone47/ToDo
/src/js/index.js
UTF-8
3,740
2.765625
3
[]
no_license
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import './rem.js'; import '../css/index.css'; class TodoBox extends Component { constructor(props) { super(props); this.state = { data: [ {id: 1, task: '吃饭', complete: false}, {id: 2, task: '睡觉', complete: false},...
true
8fda9c8b31aa3a249fb886faf84382ba4d8248fd
JavaScript
qzap/-dot-vscode
/extensions/ktsn.vue-designer-0.7.1/lib/utils.js
UTF-8
1,470
2.921875
3
[ "MIT" ]
permissive
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function mapValues(record, fn) { const res = {}; Object.keys(record).forEach(key => { res[key] = fn(record[key], key); }); return res; } exports.mapValues = mapValues; function takeWhile(list, fn) { const res = []; ...
true
84260a51994ac2c2fbca9581fb141ce4e6e8ad9b
JavaScript
Equipo-alfa-super-mega-dinamita/VACA-Project
/P5_Tests/vaca/libraries/p5.touchgui-master/p5.touchgui-master/examples/beginner/sliderV/sketch.js
UTF-8
796
3.5
4
[ "MIT" ]
permissive
let gui; // Create a variable for your SliderV let s; function setup() { createCanvas(400, 400); gui = createGui(); // Create SliderV. // The last two optional arguments define the min and max (minimum and maximum) values. // The default min and max values are 0 and 1, respectively. s = createSliderV("...
true