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
03cb0820d9be6d86bd829c983b3608b44fdef953
JavaScript
DyuldinKS/sticky-notes
/src/components/StickyNotes.js
UTF-8
1,153
2.546875
3
[]
no_license
import { useCallback, useState } from 'react'; import { generateId, logger } from '../utils'; import { Board } from './Board'; const createSticker = ({ x, y, width, height }) => ({ id: generateId(6), clickedAt: Date.now(), position: { x, y }, size: { width, height }, }); export const StickyNotes = () => { c...
true
24a3c85d3d3d786b0f7197f304b45f1f749bf0da
JavaScript
edhale3/manageThis_prod
/SQLQueries/Account.js
UTF-8
1,144
2.625
3
[]
no_license
const database = require('../services/db'); const Account = { async readAll(req, res) { try { const readAllQuery = 'SELECT * FROM accounts'; const { rows } = await database.query(readAllQuery); return res.send({ rows }); } catch (error) { return res.send(error); } }, async vali...
true
c10e2f39a549f103b8e51c54675b00b7e45017bc
JavaScript
maetl/roguelike-tutorial
/src/entity.js
UTF-8
763
2.84375
3
[ "MIT" ]
permissive
const defaultFlags = { blocking: true } class Entity { constructor(x, y, name, flags, components) { this.x = x; this.y = y; this.name = name; this.flags = {...defaultFlags, ...flags}; this.action = null; for (let attribute of Object.keys(components)) { this[attribute] = components[at...
true
e17313d00d217dd76427cc9b890640b70c1f573e
JavaScript
ServisionFrontend/servision-ui
/public/scripts/component/jquery.servision.textbox.js
UTF-8
2,621
2.796875
3
[]
no_license
/** * jQuery ServisionUI 1.0 * /** * textbox - jQuery ServisionUI * */ (function($) { // 内部对象,私有方法,对内可见 var textbox = { init: function(target) { var self = this; var opts = $.data(target, 'textbox').options; self.initEvents(target); self.setSize(target, opts.width, opts.height); if (!self.p...
true
6531e99c32571696723b1085716c44d3729ea0b7
JavaScript
marcwright/WDI_ATL_1_Instructors
/REPO - DC - Students/w10/d02/Matt/muppet-upvote/js/character/model.js
UTF-8
528
2.65625
3
[]
no_license
// A model for an individual character var CharacterModel = Backbone.Model.extend ({ defaults: { name: '', image: '', rating: 0 }, upVote: function() { var self = this; $.ajax({ }) }, }); // A collection of the characters var CharactersCollection = Backbone.Collection.extend({ model...
true
5a7298994a238bd912c9a78af64924ee9c817d87
JavaScript
avilcan/g3_2017
/modules/login/reducers/LoginReducer.js
UTF-8
759
2.703125
3
[]
no_license
import { login } from '../../../Api'; /** * Actions */ const USER_SUCCESSFULLY_LOGGED_IN = 'login/USER_SUCCESSFULLY_LOGGED_IN'; /** * Action creators */ function loggedInUser(resp) { return { type: USER_SUCCESSFULLY_LOGGED_IN, payload: resp, }; } /** * Async Actions */ export function ...
true
b487ba9ed2b69fa880990d20c09954aa42524c4d
JavaScript
heekyungdo/TIL
/JavaScript/practice/day1/app.js
UTF-8
1,316
3.484375
3
[]
no_license
const title = document.querySelector("#title"); const superEventHandler = { // 마우스가 title 위로 올라가면 텍스트가 변경된다 titleEnter: function () { title.innerHTML = "The mouse is here :)"; title.style.color = "blue"; }, // 마우스가 title을 벗어나면 텍스트가 변경된다 titleLeave: function () { title.innerHTML = "The mouse is g...
true
8e5d93a70d2228f4d3165665d2d7da1d934932cd
JavaScript
nikhilroy2/28-Days-Target-30-Project-Custom-Video-Player-with-Javascript
/js/script.js
UTF-8
2,372
3
3
[]
no_license
'use strict'; // Nikhil Roy Video player // contact +8801774372294; // don't copy full code try to learn something; // global variable are here; let video = document.querySelector('#video'); let dur_range = document.querySelector('#dur_range'); let prev_dur = document.querySelector('#prev_dur'); let next_dur = documen...
true
f4533344569f3bb7948b15069f50d6e9eabdf895
JavaScript
cintia-valente/javascript
/js/17_multiplos.js
UTF-8
300
3.5
4
[ "MIT" ]
permissive
function verificaParImpar(tamanho) { let soma3 = 0 let soma5 = 0 for (let index = 0; index <= tamanho; index++) { if (index % 3 == 0) soma3 += index if (index % 5 == 0) soma5 += index } console.log(soma3 + soma5) } verificaParImpar(10)
true
011781c2dbec233541c201427ab3754c4947b9b3
JavaScript
lilgallon/M2-Workshops
/src/back/api.js
UTF-8
2,103
2.546875
3
[]
no_license
const db = require('./db'); /** * TODO * @param {Express} app */ function start(app) { // ---------------- // "HTML" ENDPOINTS // ---------------- app.get('/', function(req, res) { db.getWorkshopList() .then((workshops) => { res.render('index', { workshops: workshops, ...
true
8d5743e1e2c74017c587e2d732a325f3538bdeb0
JavaScript
shivarora87/pliigo-cups-agent-fixing-printers
/lib/cli/cli-manage.js
UTF-8
2,254
2.53125
3
[ "MIT" ]
permissive
/** * Created by johannespichler on 01.02.16. */ 'use strict' //var printer = require("printer"); //console.log(printer.getPrinter("Canon_ImageRunner_C5045i")); //console.log(printer.getPrinterDriverOptions("Canon_ImageRunner_C5045i")) //process.exit(0); // require the needed libraries const PrinterManager = req...
true
32a57b42d8383bdbb809e8f31707a83f9e3c0f6d
JavaScript
lucasmcast/html-css
/proway/news_api/js/cardModel.js
UTF-8
2,303
3.5
4
[]
no_license
/** * Class responsible for creating cards in the html page * * @since 1.0.0 * * @author Lucas Martins de Castro <lucas.martins.c03@gmail.com> * */ export class CardModel{ constructor(){ this.cards = document.getElementById("cards") } /** * Creates card for render in the page *...
true
bb522236765f6dc6d2b2cc0e59497f6931abe085
JavaScript
zhaoyunyes/animateWidthAnimateCss
/animateWithAnimateCss.js
UTF-8
3,850
2.65625
3
[]
no_license
/* * 879006948@qq.com v20170213.2 * 参照bootstrap的动画处理相关函数,对动画没有触发的情况进行了处理 * 支持自定义动画时长,默认动画时长是在相关css文件里面定义的 * 优化了一些代码 * 879006948@qq.com v20170214.1 * 修复了一处bug: 判断支不支持animation失灵 * 优化了一处代码: 动画结束后重置animation-duration * */ /*需要引入underscore.js*/ /*注意animation事件和transition事件不一样,所以注册$.support.transition.en...
true
8f48d478ed2062087df0ef13dbe1924afa4cef5e
JavaScript
BDrake672/daeil
/js/field/field_main.js
UTF-8
1,809
3.03125
3
[]
no_license
const fieldArr = document.querySelectorAll('.nav_container>a'); //클릭된 nav item의 색상을 변경하고 해당 카테고리를 보여주는 기능 for(let i = 0; i < fieldArr.length; i++) { fieldArr[i].onclick = function() { let fieldSectionContainerArr = document.querySelectorAll('.field_section_container'); for(let j = 0; j < fieldArr.length;...
true
eb2deb0861adc8103b61a64dc50256a7b2574824
JavaScript
magalipujol/memory-game
/main.js
UTF-8
2,876
3.203125
3
[]
no_license
let cardsArr = ["img/vase-cat.png", "img/tiny-kitten.png", "img/charger-kitten.png", "img/food-cat.png", "img/liquid-cat.png", "img/loaf-cat.png", "img/pizza-cat.png", "img/president-cat.png", ...
true
1532fbde471ede8004b249605db49185558bbfe4
JavaScript
bargre/Portfolio
/innisfree/js/script.js
UTF-8
267
2.515625
3
[ "MIT" ]
permissive
$(function(){ $(window).scroll(function(){ var pos=$(document).scrollTop(); if(pos>500){ $(".top").fadeIn(200); }else{ $(".top").fadeOut(200); } }); $(".top").click(function(){ $("html, body").animate({scrollTop:0},200); }); });
true
9b502a10f3bbcc79aa33cb7899c18533f82f219a
JavaScript
mogelbrod/pbot
/lib/utils.js
UTF-8
856
3.453125
3
[]
no_license
Object.assign(exports, { filter, omitUnderscored, }) /** * Filter function for objects like array.filter(). * Returns a copy of the original object that only includes properties that the * predicate returned a truthy value for. * * @param {Object} obj - Object to filter * @param {Function} predicate - Filter...
true
b9115c8a88d0f70cab192c1321d43f3ff85ebd48
JavaScript
Synomi/ns2stats_web_source
/protected/components/highcharts/highchartsWrapper2.js
UTF-8
4,606
2.6875
3
[]
no_license
var highcharts = new Array(); var highchart; $(document).ready(function() { loadHighcharts(); }); function loadHighcharts() { for(i in highcharts) { if(highcharts[i].request) highcharts[i].request.abort() if($("#" + highcharts[i].chart.renderTo + ':visible').length > 0) ...
true
d8000e034bd1b6ef0228ddc9e63322fc55cd4a85
JavaScript
DGemmell/CodeClan_Work
/week_11/Day_4/Bank/bank.js
UTF-8
1,007
3.296875
3
[]
no_license
// The bank should have: // An array of accounts // The bank should be able to: // // Add an account // Find account by account name. // Find the largest account. // Find the total value of all accounts. // Find the average value of all accounts. // Find the total value for a certain account type. const _=require("loda...
true
1672eecc6ce5083e4d28d1315044cfc7b6155272
JavaScript
cwnga2/awsScripts
/codepipelineNotification.js
UTF-8
1,422
2.703125
3
[]
no_license
const defaultSlackPath = '/services/xxxxxx/xxxxxx/xxxxx' exports.handler = async (event) => { const {detail} = event; const { pipeline, stage, action, state } = detail const title = `[${state}] ${pipeline} ${stage} ${action}` const showGreen = (state === 'SUCCEEDED' || state === 'STARTED' )...
true
92511f2d648ac3870c16f6005ea3aecb9b2a4b8d
JavaScript
CodeWithAnkitSinghal/XT-Core
/JS-ES6/hands-on/src/index_FunctionAsParamter.js
UTF-8
1,459
3.125
3
[]
no_license
console.log('script connected'); //function args name = 'subu' function greeter(greet) { var name = 'Singhal'; greet(); } const h1 = function(){ var name = 'Ankit'; console.log(this.name); }; greeter(h1); const myGreeter = greet => greet('Subramnian'); myGreeter(name => console.log(name)); //UC ...
true
666d677392bb630bb20133a93b55c62a11e307ca
JavaScript
OStepanenkoWeb/web-excel
/src/components/table/TableController.js
UTF-8
684
2.96875
3
[]
no_license
export class TableController { static SELECTED = 'selected' constructor() { this.selectedArea = [] this.current = null } select(element) { this.dropSelected() this.current = element this.selectedArea.push(element) addClass(element.setFocus()) } selectArea(elements) { this.dropSe...
true
f40e289b35ee132ce93d5e02404c5f1182b0203e
JavaScript
jrod4work/Basic-HTML
/4-script.js
UTF-8
2,683
4.15625
4
[]
no_license
/* Index of functions clear console: the ban circle If else: 8 Big or small:41 Birds: 56 Name and Age: 82 Id Card:98 */ function myFunction() { var inputGrade = prompt("Enter a grade:") var numberGrade = parseInt(inputGrade); var letterGrade; // Add your code below if (numberGrade >= "90") { letterGrade = (...
true
8e1501c105845b99e8fbbae43dfaa95d1a2ea7dd
JavaScript
antoninanilsson/CourseFrontEnd21pr
/Del_2_Java_Html_Css/Laborationer/Laboration 9/4_Expand_On_Touch/js/script.js
UTF-8
481
2.75
3
[]
no_license
// const topNav=document.querySelector("#top-nav"); const topMenu = document.querySelector("#top-menu"); const iconToggle = document.querySelector("#icon-toggle"); iconToggle.addEventListener('click',(e) => { if (topMenu.classList.contains('open')){ topMenu.classList.remove('open'); iconToggle.inn...
true
5dc034df94e8c7ebdb67634efa393349e0570398
JavaScript
JepsonGithub/letao
/public/back/js/common.js
UTF-8
1,439
2.5625
3
[]
no_license
/** * Created by Jepson on 2017/11/29. */ // // 进度条功能 // 禁用进度环 NProgress.configure({ showSpinner: false }); // 给 document 注册, 全局事件 $(document).ajaxStart(function () { // ajax 开始开启进度条 NProgress.start(); }); $(document).ajaxStop(function () { // ajax 结束, 关闭进度条 setTimeout(function () { NProgress.done(); ...
true
825191dfe32fa01554ac72e8801d43353a0b425b
JavaScript
herobrine-1234/Real-time
/main.js
UTF-8
654
2.78125
3
[]
no_license
function setup(){canvas=createCanvas(300,300);canvas.center();video=createCapture(VIDEO);video.hide(); classifier=ml5.imageClassifier('https://teachablemachine.withgoogle.com/models/CDRStxZ3L/model.json',modelLoaded); } function draw() { image(video,0,0,300,300); classifier.classify(video,gotResult); } functi...
true
e3dfe59629354fc0d5fdc8169ecf77362ab0a5da
JavaScript
froots/advent-of-code-2020
/src/day20/tiled-image.test.js
UTF-8
1,023
2.828125
3
[]
no_license
const TiledImage = require('./tiled-image'); const testData = require('./test-data'); function byFirstValue(a, b) { return a[0] - b[0]; } describe('TiledImage', () => { test('Parses test data', () => { const image = new TiledImage(testData); expect(image.tiles.size).toBe(9); }); test('Creates borders...
true
a6e35a4fdf44c1dbba820ef4fde4d105d443c336
JavaScript
VaughanCC/SocialNet
/Source/Vcc.SocialNet.Presentation.UI/ClientApp/mock-data/login-middle.js
UTF-8
2,957
2.65625
3
[]
no_license
// module.exports = (req, res, next) => { // if (req.method == 'POST' && req.path == '/api/auth/authenticate') { // if (req.body.UserName === 'joon.choi@gmail.com' && req.body.password === 'password') { // res.status(200).json({}) // } else { // res.status(400).json({message: 'wrong pas...
true
4af921ade5e96dc372bb52b5b14d040ad5a6f6c3
JavaScript
ArminSheng/Algorithm-Playground
/js/number-of-islands.js
UTF-8
798
3.15625
3
[]
no_license
/** * @param {character[][]} grid * @return {number} */ var numIslands = function(grid) { const len = grid.length; if (!len) return 0; const wid = grid[0].length; const visited = []; let count = 0; for (let i = 0; i < len; i++) { visited[i] = []; } for (let i = 0; i < len; ...
true
d99dd61a552c73bccf3ffa9b312f457b15cfe3cb
JavaScript
dmitryvishnevsky/ITSTEP
/20191203/3/script.js
UTF-8
106
2.953125
3
[]
no_license
let side = prompt("Введите сторону квадрата"); let square = side**2; alert(square);
true
dd474a35f122f0230b02e2c16349ccd1d7eb8866
JavaScript
SolGee/Restful-app.NODEJS
/src/ejercicios/express/index.js
UTF-8
2,178
2.859375
3
[]
no_license
const express = require('express') const app = express(); // Se crea una variable de ambiente que cambiara el servidor de acuerdo al que se le asigne. De lo contrario usara el servidor 3030 const port = process.env.PORT || 3030; app.use(express.json()); const doggos = [ { id: 0, size : "small", breed: "...
true
4d2acd1ef83da0673fc548346bc1e127cb3dfe5f
JavaScript
JackieG19/Javascript101
/DOM/venue/script.js
UTF-8
1,989
3.21875
3
[]
no_license
var venue = { companyName: "Gillette Stadium", url: "https://www.gillettestadium.com", seatsAvailable: ["A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10"], seatsBought:[], // array in total totalSeats: function(){ return this.seatsAvailable.length; }, displayS...
true
36c4d0ba91065ae33c4e499c94bf5b4d26c55c2b
JavaScript
Mic4mi/CursoIngresoJS
/8-TPs/12-jsRisingBTL.js
UTF-8
3,870
3.484375
3
[]
no_license
/*RISING BTL. Empresa dedicada a la toma de datos para realizar estadísticas y censos nos pide realizar una carga de datos validada e ingresada por ventanas emergentes solamente (para evitar hacking y cargas maliciosas) y luego asignarla a cuadros de textos. 12. Los datos requeridos son los siguientes: A. Edad, entr...
true
15eaaa40770244d79b69abbf92a6df2ea30865bc
JavaScript
vhfmatks/todo-react
/src/App.js
UTF-8
1,866
2.5625
3
[]
no_license
import React, { Component } from 'react'; import Table from './components/Table'; import getData from './service/get.service'; import putData from './service/put.service'; import postData from './service/post.service'; class App extends Component { constructor(props){ super(props); this.state = { d...
true
42ef5d469408881ff8d0dee44b629f76ecd6087e
JavaScript
bgoonz/UsefulResourceRepo2.0
/_OVERFLOW/Resource-Store/01_Questions/_JAVASCRIPT/96-uniqueBinarySearchTrees.js
UTF-8
1,018
3.921875
4
[ "MIT" ]
permissive
/** * Key: Dynamic Programming. * Binary search tree: all left nodes are less than root, and all right node are greater than root * That means, given number n, if the root is i, only numbers between [0, i-1] appear on the left, while * only numbers between [i+1, n] appear on the right. Thus, the total combination i...
true
d4ed30acfb6840040d68fba53037c87493b23525
JavaScript
functional-promises/functional-promises
/src/monads.js
UTF-8
1,053
2.84375
3
[ "MIT" ]
permissive
import { FPInputError } from './modules/errors' export default function monads(FP) { return {chain, chainEnd} /** * Start 'recording' a chain of commands, after steps defined call `.chainEnd()` * @returns FunctionalPromise */ function chain() { // create a placeholder/initial promise to hold the s...
true
0a2ac10a16bc13cfc7c6dfdc94498d45e1fccca2
JavaScript
dmutende/healthit-react-example
/src/Store/Posts/reducers.js
UTF-8
485
2.625
3
[ "MIT" ]
permissive
import * as types from "./actionTypes" import Immutable from "seamless-immutable" const initialState = Immutable({ posts: undefined, postsIsFetched: false }) export default function postsReducer(state=initialState, action={}){ switch (action.type) { case types.POSTS_RECEIVED: ...
true
3fe867d602a460215af85a2d886af09c596de5c4
JavaScript
chenjing123456/javaScript-enhance
/es6/day04/src/promise-ajax.js
UTF-8
518
2.96875
3
[]
no_license
function getJSON(url){ return new Promise((resolve,reject)=>{ let request = new XMLHttpRequest(); request.open('GET',url,true); request.responseType = 'json'; //request.setRequestHeader('Accept','application/json') request.setRequestHeader('Content-Type',"application/json;charset=utf-8") request.send(); ...
true
f3fca1d8c9bfec27ef44969d73e5d6fe0c09b84d
JavaScript
sfleishm/CS340_Project
/BAD_FOLDER/bad_insert.js
UTF-8
7,422
2.84375
3
[ "MIT" ]
permissive
document.addEventListener('DOMContentLoaded', SubmitBook) document.addEventListener('DOMContentLoaded', SubmitLibrary) document.addEventListener('DOMContentLoaded', SubmitPatron) document.addEventListener('DOMContentLoaded', SubmitGenre) document.addEventListener('DOMContentLoaded', SubmitAuthor) document.addEventListe...
true
9c7cba663de43d0be14ebd892dfcac24a30159c8
JavaScript
liutaoBboy/DearBaby
/js/shop.js
UTF-8
6,549
2.578125
3
[]
no_license
var wareInfo; if($.cookie("wareInfo")){ wareInfo = JSON.parse($.cookie("wareInfo")); } else{ window.history.go(-1); } $(function(){ /*放大镜部分代码 <div class="middle"> <img src="../img/b1.jpg" class="mid" /> <div class="pop"></div> </div> <div id="small"> <ul> <li class="sm curr...
true
cd474a5cc4aaf70c4e177760a236a59c7bc75819
JavaScript
rauloriol/js-daw2020-practiques-rauloriol
/Practicas/app/scripts/Practica1_Bom_dom_cookies.js
UTF-8
239
2.921875
3
[]
no_license
/** * Funcion para redigir en 5 segundos a google.es * @returns A la pagina web www.google.es */ function redigir() { document.write('Nos vamos'); setTimeout(() => { location = 'https://www.google.es'; }, 5000); } redigir();
true
b85dff8f52406a2b4af44d795b42c43647313278
JavaScript
be7DOTis/AVcomp-Visual2-ComputerVision
/examples/backgroundSubtraction/sketch.js
UTF-8
2,036
3.15625
3
[]
no_license
var video; var backImage; var difference; var counter = 0; function setup() { createCanvas(640 * 2, 480); pixelDensity(1); video = createCapture(VIDEO); video.hide(); } function draw() { background(0); image(video, 0, 0); difference = createImage(video.width, video.height); difference...
true
93badca8a5b81fceef9998672dfbab7cf3a49b8e
JavaScript
johnhornsby/masquerade-build
/www/assets/scripts/sequence/display/InputController.js
UTF-8
9,392
2.59375
3
[]
no_license
// JavaScript Document var InputController = function(interactiveElement){ this._delegate; this._interactiveElement = interactiveElement; this._originX = 0; this._originY = 0; this._lastX = 0; this._lastY = 0; this._leftDelta = 0; this._topDelta = 0; this._downStartTime = 0; this._clickStartArray = [new Date(...
true
e4e4cb0bb2c6928772793d52fe83be3176be61d8
JavaScript
ElmouradiAmine/sortizer
/src/algorithms/selectionSort.js
UTF-8
771
3.125
3
[]
no_license
const selectionSort = (array, animation, colors) => { const newArray = array.slice(); let arrayBeforeUpdate = newArray.slice(); animation.push(arrayBeforeUpdate); colors.push([]); for (let i = 0; i < newArray.length - 1; i++) { let min = i; for (let j = i + 1; j < newArray.length; j...
true
0b8603b5e87424cb515c37dd0bf163de115ebfc3
JavaScript
codetribute94/nesa-chat
/src/model/accountType.js
UTF-8
690
2.75
3
[]
no_license
class AccountType { password; gMail; faceBook; static TYPES = { "PASSWORD": 'password', "GMAIL": 'gmail', "FACEBOOK": 'facebook' } constructor (type, value){ if (!type || !value){ throw new Error('incomplete params'); } switch (type) ...
true
564c2205ef744fff552b5a0b94c90dd88725a750
JavaScript
hub-sp/ciphers
/index.js
UTF-8
1,217
2.921875
3
[ "MIT" ]
permissive
const utils = require('./utils'); const shift = (input, amt) => { if (amt < 0) return shift(input, amt + 26); let out = ''; input.split('').forEach(c => { let char = c; if (char.match(/[a-z]/i)) { char = char.charCodeAt(); char = String.fromCharCode( char >= 65 && char <= 90 ...
true
daaccf49261104472971a2eb54b27cea9deb3f93
JavaScript
sajeebmahamed/advanced-JS
/functional-programming/currying.js
UTF-8
323
3.78125
4
[]
no_license
// concept like that ekta function e function e multple arguments thakle venge ekta ekta kore pass krbo function add(a,b,c) { return a + b + c } function currying(a) { return function (b) { return function (c) { return a + b + c } } } var res = currying(1)(2)(3) console.log(re...
true
752eb16704e1a855fa7d2fcf718d9de27c06c9a7
JavaScript
coLlenz/evsu-insider
/public/js/subject_dropdown.js
UTF-8
1,225
2.71875
3
[]
no_license
window.addEventListener("DOMContentLoaded", () => { const subjectDropdown = document.querySelectorAll(".subject__dropdown"); const subjectDropdownGroup = document.querySelectorAll( ".subject__dropdown-group" ); const subjectDropdownBtn = document.querySelectorAll( ".subject__dropdown-btn" ); const s...
true
ed7b25e6403a09555489c28c37197aea64e1dc2e
JavaScript
neto112/Rocketseat
/JavaScript/ManDados/manipulandoarray.js
UTF-8
518
4.125
4
[]
no_license
// Manipulando Arrays let techs = ["html", "css", "js"] // adicionar um item no fim console.log(techs.push("nodejs")) // adicionar no começo // techs.unshift("sql") // remover do fim // techs.pop() // remover do começo // techs.shift() // pegar somente alguns elementos do array console.log(techs.slice(1, 3)) // remov...
true
0099630196f62be4089cf2083dbb84bb13250cae
JavaScript
dawnsuggs/Mongo-Scrape
/server.js
UTF-8
4,710
2.5625
3
[]
no_license
var express = require("express"); var bodyParser = require("body-parser"); var logger = require("morgan"); var mongoose = require("mongoose"); var request = require("request") var axios = require("axios"); var cheerio = require("cheerio"); var db = require("./models"); var PORT = 8080 var app = express(); app.use(l...
true
c52dbae2770d18ae03419f46f83c2ff9b9f2bb1c
JavaScript
IkeyBenz/Unemployed
/client/src/components/PostPage/Post.js
UTF-8
3,065
2.546875
3
[]
no_license
import React, { Component } from 'react'; import './Post.css'; import CommentList from './CommentList'; import CommentForm from './CommentForm'; import axios from 'axios'; import TopNav from '../TopNav'; class Post extends Component { constructor(props) { super(props); this.state = { po...
true
54ce14b7c09c9ec2c773e588dd2f94bea7cb28a2
JavaScript
Leandro01832/php
/MeusPrimeirosProjetos/ProgramacaoEstruturada/htdocs/projeto_javascript/javascript/elementos.js
UTF-8
130
2.671875
3
[]
no_license
var el = document.getElementById('elem'); window.onload = function(){ alert(el.parentElement.id); alert(el.children[0].id); }
true
08038c64e261063ce096742d9636835d47f94917
JavaScript
Coupechoux/formes
/a_remplir.js
UTF-8
2,682
3.546875
4
[]
no_license
// Retourne une ligne de taille w, avec le caractère c // Avec un <br/> à la fin // Exemple : "*******<br/>" function fullLine(w,c) { let s = ""; return s; } // Retourne un rectangle avec le caractère c, de w colonnes et h lignes // Exemple : "*****<br/> // *****<br/> // *****<br/>" function fullRectangle(w...
true
39a4c8f6df690c846672ec25c9b53bed04bb480f
JavaScript
technophile81/Bamazon
/bamazonCustomer.js
UTF-8
3,969
2.96875
3
[]
no_license
var mysql = require("mysql"); var inquirer = require("inquirer"); var Table = require('cli-table'); var connection = mysql.createConnection({ host: "127.0.0.1", port: 8889, // Your username user: "root", // Your password password: "root", database: "bamazon_db" }); connection.connect(fun...
true
b1748f4be0fd5c0447c64db6a0d403c8297cf9d1
JavaScript
ultraalkaline/p5solarsystem
/js/main.js
UTF-8
4,420
3.203125
3
[]
no_license
var canvas; var framerate = 60; var stars = new Array(50); var speedMulti; var zoomMulti; var sun, mercury, venus, earth, mars, jupiter, saturn, uranus, neptune; var solarSystem = []; var currentPerspective = undefined; function setup() { canvas = createCanvas(windowWidth, windowHeight); canvas.position(0, ...
true
26598356d8945ee8a327a003b011ba449df1f1f1
JavaScript
JavaScriptApplicationsTeamFortress/JS-Apps-Online-Team-Fortress-
/CV-Generator Project/CV-Generator/scripts/assets - Copy.js
UTF-8
7,604
2.578125
3
[]
no_license
var Assets = (function(){ var document = (function () { var document = {}; Object.defineProperty(document, 'init' , { value: function (title, language) { this.title = title; this.language = language; this.personalInfo = []; ...
true
572ed867e6b01a25640779699cfb34d155e7542c
JavaScript
Yekku/js-frontend
/src/practics/numerals.js
UTF-8
601
3.75
4
[]
no_license
/* // BEGIN (write your solution here) const True = x => y => x; const False = x => y => y; const If = p => t => e => p(t)(e); // example: If(True)('foo')('bar') const Zero = f => x => x; const Succ = n => f => x => f(n(f)(x)); const IsZero = n => n(x => False)(True); const Mul = n => m => f => n(m(f)); const Pair ...
true
2c92dbd8e4143b5671e0726650a8d709882be2b2
JavaScript
filipouui/React-projects
/weather-app/src/App.js
UTF-8
1,253
2.609375
3
[]
no_license
import React, { useState, useEffect } from "react"; import LeftPanel from "./components/LeftPanel"; import RightPanel from "./components/RightPanel"; import axios from "axios"; import GlobalStyle from "./components/GlobalStyle"; function App() { const [weather, setWeather] = useState(null); const [latitude, setLat...
true
be9f05980d8c350f331a9cbcc9e8da39463ffa0f
JavaScript
dmoresp/TFG-Nannyfinder
/public/app/services/profileService.js
UTF-8
788
2.515625
3
[]
no_license
(function() { 'use strict'; /*------------Profile Service------------*/ angular .module('nannyfinder') .factory('profileService', [ '$http', profileService ]); function profileService($http) { // List of possible profile services var profileService = { getUserData: getUserData, updateUserDat...
true
f406e398fbfcc25728d599a609e8a5cfb6599a4c
JavaScript
isaac-gros/pinsplash
/src/store.js
UTF-8
4,552
2.515625
3
[]
no_license
import { createApi, toJson } from 'unsplash-js'; import { createStore } from 'vuex'; const unsplash = createApi({ accessKey: process.env.VUE_APP_UNSPLASH_KEY }); export default createStore({ state: { error: false, loading: false, currentPage: 1, pictures: [], pins: [], }, mutations: { set...
true
647425a6b2c4477131d12d82cc2acb2eb08d471e
JavaScript
hujiba/Assignment-Organizer
/templates/script.js
UTF-8
1,665
2.734375
3
[]
no_license
function sub() { var an = document.getElementById('AssignmentName').value; var dd = document.getElementById('DueDate').value; var al = document.getElementById('AssignmentLink').value; var ac = document.getElementById('AssignmentClass').value; var td = document.getElementById('dropdown').value; if (an.length == 0)...
true
6b044b65c52ba193174e882d6094be76943611a0
JavaScript
EmamYounes/jitsi-meet
/react/features/base/util/helpers.js
UTF-8
2,595
3.03125
3
[ "MIT", "Apache-2.0" ]
permissive
// @flow /** * Creates a deferred object. * * @returns {{promise, resolve, reject}} */ export function createDeferred(): Object { const deferred = {}; deferred.promise = new Promise((resolve, reject) => { deferred.resolve = resolve; deferred.reject = reject; }); return deferred; }...
true
70c101b2917a4471f96fd66c008c33706f3f710e
JavaScript
richardroy/boids
/sketch.js
UTF-8
355
2.90625
3
[]
no_license
const flock = [] function setup() { createCanvas(windowWidth, windowHeight-5); for(let i=0; i<100; i++){ flock.push(new Boid(i)) } } function windowResized() { resizeCanvas(windowWidth, windowHeight-5); } function draw() { background(51); for(const boid of flock) { // boid.edges(); boid.flock(flock); ...
true
436f436196224ad8e9c414dd4f527fd97981ca29
JavaScript
malekashkar/ServerGuard
/commands/ban.js
UTF-8
3,140
2.640625
3
[]
no_license
const embeds = require("../utils/embed"); const ms = require("ms"); exports.run = async(client, message, args) => { let guildData = await client.models.config.findById(message.guild.id); let reason = args.splice(2).join(" "); if(!args[0]) return message.channel.send(embeds.error(`**Usage:** ${guildDat...
true
e0aafaf9470825e9b83b6e173ada693ac5509f4c
JavaScript
illiptic/enigma
/rotor.js
UTF-8
1,651
2.84375
3
[]
no_license
var utils = module.require('./utils.js'); function Rotor(permutation, position, notches){ /* PRIVATE */ this._permutation = permutation; this._originalPos = position ? utils.toNum(position)[0] : 0; this._mapForward = []; this._mapBackward = []; this._notches = notches ? utils.toNum(notches) : []; this._p...
true
29cbc17c32f0e265c80fa3c2200a1fd110caf2cc
JavaScript
jtirunagari/Project-36
/sketch.js
UTF-8
1,439
3.203125
3
[]
no_license
var dog var dogImage var happyDog var database var foodS var foodStock function preload() { dogImage=loadImage("images/dogImg.png") happyDog=loadImage("images/dogImg1.png") } function setup() { createCanvas(800, 800); database=firebase.database() dog=createSprite(400,400,20,20) dog.addImage(dogImage) dog...
true
a7ae5af561e70d97e0e375e4d21aec69837076e7
JavaScript
usa-npn/npn-geo-services
/api/controllers/boundaries.js
UTF-8
2,435
2.515625
3
[]
no_license
let db = require('../helpers/database.js'); function boundary(req, res) { let fwsBoundary = req.swagger.params['fwsBoundary'].value; let stateBoundary = req.swagger.params['stateBoundary'].value; let format = req.swagger.params['format'].value; let useBufferedBoundary = req.swagger.params['useBufferedB...
true
ce53a48912b23df3a59d64b18c0b5509716facd0
JavaScript
brightestPeng/front_end_everyday
/2019-04-18/src/object/02_this.js
UTF-8
868
4.40625
4
[]
no_license
/** * 1、在对象的方法内调用,指向对象本身 */ let person = { name:"peng", say:function(){ //this指向对象本身 console.log(this.name); } } person.say(); /** * 2、普通函数调用,指向window */ say = person.say; say(); //此时this指向window /** * 3、在构造器函数内使用,指向返回的对象 */ class Animal{ constructor(n...
true
bd70e9288ca20c19662aa75292d3df556c164c83
JavaScript
ajacksified/wowsuch
/src/routes.js
UTF-8
2,041
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
var querystring = require('querystring'), Q = require('q'), http = require('http'); module.exports = function(app){ var getDoges = function(number){ var deferred = Q.defer(); var query = { hasDictionaryDef: true, includePartOfSpeech: 'adjective,noun,idiom,verb-transitive', minCorpu...
true
eac9768bc9042823748a52aab61cb1496b3219dd
JavaScript
Adoptedthistle/SchoolofCode
/pokesuggest/src/components/Autocomplete.js
UTF-8
831
3.109375
3
[]
no_license
import React, { useState, useEffect } from "react"; //Options includes: //OptionsList //Option //options //needs to be seen by autocomplete > options list //is dependent on searchTerm //lives in AutoComplete //fetch here // const options = [ // { id: 1, name: "pikachu" }, // { id: 2, name: "randomchu" }, // { ...
true
340c726b026d1854c965304f6ce82b20eba1dfc2
JavaScript
banicaDaniel07/comfy-house
/src/js/views/productView.js
UTF-8
1,514
2.90625
3
[]
no_license
class ProductView { _parent = document.querySelector('.product__spinner'); _generateMarkup = (item) => { return (`<div class="product__content" id="product" data-index=${item.id}> <img src="${item.imageUrl}" alt="product" class="product__image"> <h1 class="product_...
true
2e2fd6bdf2caa5447f33099ad9ced5585bd4ac4a
JavaScript
JimMcKenzieSmith/node_wexler
/first_express_project/main.js
UTF-8
321
2.515625
3
[]
no_license
const express = require('express') const httpStatus = require('http-status-codes') const port = 3000 const app = express() app.get('/', (req,res) =>{ console.log(req.body) console.log(req.url) res.send('This is an express server') }).listen(port, () => { console.log(`Server up and running in port ${port}`) }...
true
a7a6b1c193543b651032e4752783d00e18b7f088
JavaScript
mertzt89/twitch-node-sdk
/lib/twitch.init.js
UTF-8
897
2.515625
3
[ "MIT" ]
permissive
// ## Initialization (function() { // Initialize the library. // // Accepts an options object specifying // your appplication's __client id__, recieved after // app creation on TwitchTV. // // Typical initialization: // // <script> // Twitch.init({ // clientId: YOUR_CLIENT_ID // ...
true
99362363494c8a1656ddfccf2b906edb2ddb0de7
JavaScript
josedavms13/rickAndMorty
/src/services/fetchResidentsById.js
UTF-8
313
2.796875
3
[]
no_license
function fetchResidentsById(ids){ const residentIds = ids.slice(1, ids.log); let url = `https://rickandmortyapi.com/api/character/${residentIds}` const residentsPromise = fetch(url) .then(response => response.json()) return residentsPromise } export default fetchResidentsById
true
f98de611458288e75f484a837594675899ad9fc9
JavaScript
Masbrop/JavaScript
/JavaScript/Retos/CodeAbbey/1_Suma_A+B/js/Suma.js
UTF-8
356
3.484375
3
[]
no_license
'use strict' var num1 = parseInt(prompt("Ingrese el primer valor a sumar")); var num2 = parseInt(prompt("Ingrese el segundo valor a sumar")); alert("La suma de " + num1 + " + " + num2 + " = " + (num1+num2)); console.log("La suma de " + num1 + " + " + num2 + " = " + (num1+num2)); document.write("La suma de " + num1 + ...
true
a6175d709ac69a9caf1f99df3bf2d0dbe124741b
JavaScript
jbirdr/Webstore
/Theme Changer.js
UTF-8
202
3.46875
3
[]
no_license
var message = "Choose the correct theme color."; var theme = prompt(message); var color = "green"; while(theme !== color) { theme = prompt(message); } console.log("Hey you picked the right color");
true
c8e473680aec257464f7ab5190ced833deceb105
JavaScript
DanielMafra/RDelivery-frontend-ReactJS
/src/GlobalContext.js
UTF-8
4,369
2.75
3
[]
no_license
import React from 'react'; export const GlobalContext = React.createContext(); export const GlobalStorage = ({ children }) => { const [data, setData] = React.useState([]); const [listProducts, setListProducts] = React.useState([]); const [openCart, setOpenCart] = React.useState(false); const [openObs, setOpen...
true
4a2f29c55f4dc7c48a3650f3f846190dcc4f6b32
JavaScript
jmthompson2015/vizzini
/game/starfightersquadrons/src/main/js/process/ui/TokenChooser.js
UTF-8
3,287
2.546875
3
[ "MIT" ]
permissive
define(["../../../../../../../coreweb/src/main/js/ui/InputPanel2"], function(InputPanel) { "use strict"; var TokenChooser = React.createClass( { propTypes: { tokens: PropTypes.array.isRequired, callback: PropTypes.func.isRequired, attacker: ...
true
c0bacd2c0a775f59373ad5eca6419d2915c4a2ec
JavaScript
lejiteyu/JavaScriptSample1
/public/js/scrollMenu.js
UTF-8
4,371
2.84375
3
[]
no_license
/** * 實踐無障礙網站 https://ithelp.ithome.com.tw/articles/10218749 * 深入理解javascript中的焦点管理 * https://www.cnblogs.com/xiaohuochai/p/5874447.html */ var isOpen=false; //偵測瀏覽器版本 var browser = navigator.appName; var menuindex=-1; if(browser === "Netscape"){//如果瀏覽器是 Netscape or fireFox //開始監聽鍵盤動作 document.capture...
true
723f898b0b662630fb63830b547f38a9fa59da9c
JavaScript
MiroslavMilosevic/telefoniZadatak
/apiapi/src/main/webapp/onePhone.js
UTF-8
1,822
2.734375
3
[]
no_license
var retrievedPhone = localStorage.getItem('currentPhone'); if(retrievedPhone.length > 0){ let el = JSON.parse(retrievedPhone) let app_div=document.getElementById('one_phone_app'); app_div.innerHTML=''; let ul = document.createElement('ul'); ul.classList.add('ul-one-phone'); let li1 =document.createElement('li'); li1...
true
5054ec9746899cac346116bc8bd5410d6c6da994
JavaScript
ckaiser258/learning-next.js
/pages/ninjas/[id].js
UTF-8
1,327
3.109375
3
[]
no_license
//getStaticPaths is similar to getStaticProps in that it allows nextjs to know what to render ahead of time //With getStaticPaths it knows how many individual pages to render ahead of time export const getStaticPaths = async () => { const res = await fetch("https://jsonplaceholder.typicode.com/users"); const data ...
true
e276f87dc2dd1b8c56de8582d0c5b851fad88d65
JavaScript
sapcc/elektra
/plugins/networking/app/javascript/widgets/ports/reducers/ports.js
UTF-8
3,706
2.546875
3
[ "Apache-2.0", "MIT" ]
permissive
import * as constants from "../constants" //########################## PORTS ############################## const initialState = { items: [], receivedAt: null, updatedAt: null, isFetching: false, hasNext: true, currentPage: 0, searchTerm: null, } const requestPorts = (state, { requestedAt }) => Object...
true
0983e0b0ccc1fd5be4b56b3f3a80cee3246d39db
JavaScript
ryanwevans/happy-hive
/happy-hive-client/src/reducers/chores.js
UTF-8
461
2.78125
3
[ "MIT" ]
permissive
const choresReducer = (state = [], action) => { switch(action.type) { case 'FETCH_CHORES': return action.chores; case 'ADD_CHORE': return state.concat(action.chore); case 'UPDATE_CHORE': const updatedChore = action.chore return [ ...
true
c2f2706e358851cafb7352cace647daa142a89e9
JavaScript
woodstock1993/myproject
/static/js/core.js
UTF-8
9,119
3.0625
3
[ "MIT" ]
permissive
let user = null let latitude = 37.5559598 let longitude = 126.9723169 // 유저의 값을 글로벌하게 사용하기 위해 초기화한다. // 위도와 경도를 서울역을 기준으로 초기화한다. (사용자 접속 시 사용자의 위치로 이동) window.onload = function () { geoFindMe(); // 사용자의 위치 받아내기 userCheck(); // 사용자가 처음 접속한 사람인지 확인 } function geoRefresh() { $(".column-0").empty() $(".col...
true
70538b7cbe49633d7f1efea5f268e30ae993f377
JavaScript
eduardosm7/load-donkey
/load-donkey-cli/src/main/resources/templates/result-bar-chart.js
UTF-8
1,651
2.796875
3
[ "MIT" ]
permissive
function renderResultBarChart(chartId, data) { const width = 800; const height = 400; const margin = { top: 50, bottom: 50, left: 50, right: 50, }; const maxY = Math.max.apply(Math, data.map(d => d.value)); const svg = d3.select(`#${chartId}`) .appen...
true
0ec4afd185377ebdcd68a18f9dea41aaca7c09f9
JavaScript
almothafar/FinePlay
/public/javascripts/lab/library/d3geoprojection.js
UTF-8
1,561
2.78125
3
[ "MIT" ]
permissive
'use strict'; $(document).ready(function() { var graphContainer = $('#graphContainer'); var svgWidth = graphContainer.width(); var svgHeight = svgWidth / 2; var svg = $('#geoGraph'); svg.outerWidth(svgWidth); svg.outerHeight(svgHeight); var earth = d3.geoNaturalEarth1() .translate([svgWidth / 2, svgHeight ...
true
b17d29748d9f531cf2eae3f20f4aed0cbcaaebd9
JavaScript
kartik-3/guvi_tasks
/week2/task6/findPerimeter.js
UTF-8
247
3.765625
4
[]
no_license
/* Problem Find the Perimeter of a Rectangle Create a function that takes height and width and finds the perimeter of a rectangle. */ function findPerimeter(num1,num2) { return (2*(num1+num2)); } var peri = findPerimeter(6,7); console.log(peri);
true
e830654bd10b71bf8417ac08ff76ae06c63f106f
JavaScript
andrelago13/LAIG
/LAIG TP1/TP3/reader/communication/Client.js
UTF-8
2,051
3.015625
3
[]
no_license
////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////// STATIC MEMBERS /////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////...
true
2f4596408692dc9f25885b0f1684b312a56228c6
JavaScript
tsilva19/CampeonatoNodeJS
/teste.js
UTF-8
128
3.0625
3
[]
no_license
var times = ['gremio', 'vasco', 'palmeiras', 'inter']; t = times.length; m = times.length/2; console.log(t) console.log(m)
true
8ae9e2c2ff48967bb5c1c9621bb12af675406898
JavaScript
SeoHyeonMyeong/node-tutorial
/2-global.js
UTF-8
387
2.734375
3
[]
no_license
// 2-global.js // 내장된 전역변수에 대한 이해 // GLOBALS - NO WINDOW !!! // __dirname - 최근 디렉토리 경로 // __filename - 파일 이름 // require - 모듈을 사용하기 위한 함수 // module - 최근 모듈의 정보 // process - 실행중인 프로그램의 환경 정보 console.log(__dirname) setInterval(() => { console.log("hello World!"); },1000);
true
06fe37ee92bd82cf73a0bbccc2263c24f029e8c7
JavaScript
theosotr/async-tajs
/test-resources/src/1k2014dragons/1615.js
UTF-8
3,705
2.640625
3
[ "Apache-2.0" ]
permissive
// Initialize some variables and make a hue table to speed up rendering. for (b = [e = [g = [d = h = j = N = 5]]], i = 360; i--; g[i] = c.fillStyle) c.fillStyle = "hsl(" + i + ",100%,50%)"; // This function was discovered after countless hours of playing around in processing with rendering various types of trees. f = ...
true
54f11a61a8b6d2573239a06878b89bcd18bbd545
JavaScript
travisslack/BucketList_FullStackJS
/bucket_list_front/src/views/country_list_view.js
UTF-8
810
3.046875
3
[]
no_license
var CountryListView = function( DOMelement ){ this.DOMelement = DOMelement; this.countries = []; this.onChange = undefined; this.DOMelement.addEventListener( 'change', function( event ){ var index = event.target.selectedIndex; var country = this.countries[ index ]; this.onChange( country ); }....
true
bffb13af24c23681bd859992a7ce9c34adb12775
JavaScript
highcharts/Highcharts-Cloud-API-Demo-MEAN-Stack
/myServer.js
UTF-8
5,341
2.6875
3
[]
no_license
//express to set the server var express = require('express'); var app = express(); //request to communicate with the highcharts cloud var request = require('request'); //cors to send/receive data inJ SON fomrat var cors = require('cors'); //to set the public path where the index.html is saved var path = require...
true
a0bc989521010bdbf6ef6f50a3acacf44c7251f1
JavaScript
booldook/2020-kn-node2-modules
/01.module.js
UTF-8
1,252
2.84375
3
[]
no_license
const log = console.log; const clear = console.clear; log(__dirname); log(__filename); //console.time("시간"); for(let i=0; i<100000000; i++) { } //console.timeEnd("시간"); const obj = { name: "홍길동", summary: { age: 25, gender: "M" } }; console.dir(obj); setInterval(() => {}, 1000) setImmediate(() => {}) setTim...
true
0c911cee365e47c9370c19e960c765558151777a
JavaScript
IreneStep/FL-11
/FL11_HW6/homework/js/task1.js
UTF-8
654
3.484375
3
[]
no_license
let a1 = +prompt('Enter the numeric value on the x-axis of point A', ''); let a2 = +prompt('Enter the numeric value on the y-axis of point A', ''); let b1 = +prompt('Enter the numeric value on the x-axis of point B', ''); let b2 = +prompt('Enter the numeric value on the y-axis of point B', ''); let c1 = +prompt('Enter ...
true
9999221c044a4e247ea7f04313a1e136449e9c0a
JavaScript
vasilak/json-schema-doc-theme
/components/sidebar.js
UTF-8
4,854
2.578125
3
[ "BSD-3-Clause" ]
permissive
const React = require('react'); const Component = require('react-pure-render/component'); const ImmutablePropTypes = require('react-immutable-proptypes'); const _ = require('lodash'); const offsetTop = require('./helpers').offsetTop; const getLinks = (links, search) => links .filter(link => { if (link.get...
true
9c70bf98037984fa5c48f1991d3ea5ad0c2cc5b5
JavaScript
shermp/JustifyText
/utils.js
UTF-8
1,418
3.328125
3
[]
no_license
/** * Wrap all text nodes in the body with span tags */ function wrapSpanAllText() { var walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, false); var currTxtNode; var oldTxtNode = null; while(currTxtNode = walker.nextNode()) { if (oldTxtNode) { oldTxtN...
true
1e645ba2166e462f3c61ca1a4aa5d765d498405a
JavaScript
thanhtamit2779/sailsjs-dental-io
/api/models/UserModel.js
UTF-8
2,831
2.515625
3
[]
no_license
/** * UserModel.js * * @description :: A model definition represents a database table/collection. * @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models */ const md5 = require("md5"); module.exports = { attributes: { // ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗ // ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗ // ...
true
17fdbae754f15e77efee43c06fd67ec5a6a5a178
JavaScript
praegnanz-de/node-pushover-client
/lib/api/pushover-1.0.0/validate/send.js
UTF-8
1,105
2.515625
3
[ "MIT" ]
permissive
/** * @module api/pushover-1.0.0/validate/send * @exports {Function} options */ 'use strict'; module.exports = { /** * Validate send data. * * @throws {Error} * @param {Object} * @return {Object} */ options: function (options) { var data = options.data; ['token', 'user', 'message']...
true
25fb4cef217f32eca819e407a48fd21671e50296
JavaScript
freebz/Functional-JavaScript-Programming
/ch02/code2-93.js
UTF-8
360
3.859375
4
[]
no_license
// 코드 2-93 var start = f => f(f); var logger = (a, b) => start(f => log(a) || a++ == b || f(f)); logger(6, 10); // 6 7 8 9 10 // 위와 동일한 코드를 function 키워드를 사용하여 확인 var start = function(f) { f(f); }; var logger = function(a, b) { start(function(f) { log(a) || a++ == b || f(f); }) }; logger(1, 5); // 1 2 3 4 5
true