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
23600851cfd375b97319d1a41c5eec779488d016
JavaScript
fnando-gomez/weather-app_projekt
/server/routes/api.js
UTF-8
1,826
2.84375
3
[]
no_license
const express = require ('express') const router = express.Router() const request = require ('request') const moment = require ('moment') const City = require ('../models/city') // moment.locale('es') //Connecting & getting useful data from the API(weatherstack) router.get('/city/:cityName', function (req, res) { ...
true
a535400dc390cfa846847462cee6821ba338826b
JavaScript
harrisonfackrell/TAGjs
/TAGjs/Games/Venadapros/game.js
UTF-8
26,659
2.515625
3
[]
no_license
//Extensions-------------------------------------------------------------------- const Currency = function(name, location, methods, givenName, balance, turn) { Object.assign(this, new Entity(name, location, "", methods, givenName, turn)); this.redescribe = function() { this.description = this.balance + " " + t...
true
15a389852559c9639d1c5cb02863f4a5f1882225
JavaScript
tavidian/charts
/src/js/objects/SvgTip.js
UTF-8
3,028
2.625
3
[ "MIT" ]
permissive
import { $ } from '../utils/dom'; import { TOOLTIP_POINTER_TRIANGLE_HEIGHT } from '../utils/constants'; export default class SvgTip { constructor({ parent = null, colors = [] }) { this.parent = parent; this.colors = colors; this.titleName = ''; this.titleValue = ''; this.listValues = []; this.titleVa...
true
bde48a35b92b02c33a14aa3db3273e5ba23b16e8
JavaScript
Letitbe133/searchbox-challenge
/main.js
UTF-8
1,219
3.03125
3
[]
no_license
// DOM elements const searchbox = document.getElementById("searchbox"); const resultContainer = document.querySelector(".result"); const mangas = [ "One Punch-Man", "Beastars", "Eveil", "My Home Hero", "Le Voleur d'estampes", "Jagaaan", "Atrail", "The Way of the Househusband", "Komi Can't Communicate...
true
7d7ef2a8f2098c620b25542218d90708759b1072
JavaScript
jeheecheon/jeheecheon.github.io
/assets/js/post.js
UTF-8
1,938
2.75
3
[]
no_license
modifyHeader(); indicateProgress(); setInterval(function () { if (getScrolled) { modifyHeader(); toggleHeader(); indicateProgress(); getScrolled = false; } }, 100); //display goToIndexBtn when header is clicked headerBar.addEventListener("click", function () { console.log(goToIndexBtn); goToIn...
true
236dd8c9a3409b551f7163c52699835aa19ce897
JavaScript
darvenyashki/SoftAcadProject
/script/book-script.js
UTF-8
13,080
2.75
3
[]
no_license
// TOOLTIP $(document).ready(function () { $('.tooltip').tooltipster({ side: 'left', trigger: "custom", triggerOpen: { click: true, // For mouse tap: true, focus: true // For touch d...
true
993cad58ddbba0367dee4a0a0e159c600867ec57
JavaScript
AdityaLAPTOP/PET-CREATURE-1
/sketch.js
UTF-8
545
3.125
3
[]
no_license
//Create variables here var dog, happyDog, database, foodS, foodStock; function preload() { var a = loadImage("images/dogImg.png") var b = loadImage("images/dogImg1.png") //load images here } function setup() { createCanvas(800, 700); database=firebase.database(); var dog=createSprite(10,200,250,250); fo...
true
8ab5a405420f217a0156fcd8d21e9123fd9506c8
JavaScript
PaulaSanchez810/ARSW_LAB9
/FunctionProject/Fibonacci/index.js
UTF-8
641
2.671875
3
[]
no_license
var bigInt = require("big-integer"); module.exports = async function (context, req) { context.log('JavaScript HTTP trigger function processed a request.'); let nth = context.req.query.nth; let answer = bigInt.zero; let memo = {}; function fib(n, a = bigInt.zero, b = bigInt.one) { if (n in ...
true
e13af74af885cb195bb85d0af89ae9b818cea044
JavaScript
kaypa/project-memory-game
/js/app.js
UTF-8
6,442
3.65625
4
[]
no_license
/* * Create a list that holds all of your cards */ const cards = ['fa-diamond', 'fa-diamond', 'fa-paper-plane-o', 'fa-paper-plane-o', 'fa-anchor', 'fa-anchor', 'fa-bolt', 'fa-bolt', 'fa-cube', 'fa-cube', 'fa-leaf', 'fa-leaf', '...
true
887ff0bfc0d357b1a4304579d492a937a9470d84
JavaScript
chae-chae/BaekJoon
/1267.js
UTF-8
553
3.46875
3
[]
no_license
const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; let input = fs.readFileSync(filePath).toString().trim().split("\n"); const n = parseInt(input[0]); const times = input[1].split(" ").map(Number); let ysum = 0; let msum = 0; for(let i = 0; i<times.length; i++){ ...
true
7d8d3c37e9757aadde90aab3e72899cdc8ffec6c
JavaScript
augustoscher/curso-nodejs
/04-lists/for-forin/service.js
UTF-8
651
2.890625
3
[ "MIT" ]
permissive
const axios = require('axios'); const URL = 'https://swapi.co/api/people'; const getPeople = async (name) => { try { const url = `${URL}/?search=${name}&format=json` const response = await axios.get(url); return response.data; } catch(error) { console.error(`service error: `, error); const resu...
true
22fc2275c6d665e6b787a95a9a1394f35293b9ce
JavaScript
miodolini95/Clickerapp
/js/upgrades.js
UTF-8
681
2.59375
3
[]
no_license
var upgradeunit11 = document.querySelector(".upgradeunit11"); upgradeunit11.addEventListener('click', function(){ upgradeunit1() setStats() roundamount() }); //upgrades var flag11 = true; var costofupgrade11 = 1000; function upgradeunit1(){ if(flag11){ if(amount > costofupgrade11)...
true
05ad8106479c50d98ae3dd411aaaa4abdb3f222d
JavaScript
sidjtd/prep_getting_loopy
/loops.js
UTF-8
5,223
4.5625
5
[]
no_license
/* Presidents - Accessing values in an Array Declare a variable named presidents which contains the first 5 presidents' last names: Washington, Adams, Jefferson, Madison, Monroe. Now write a FOR loop which iterates through this Array. Within the FOR loop, use console.log to: Log the value of i. Use a message like Valu...
true
0545fcee6a12e2950a2193e59e6623686110443a
JavaScript
JoshuaHolloway/temp
/js/helper.js
UTF-8
1,383
3.171875
3
[]
no_license
const qs = (target) => document.querySelector(target); // ======================================================== const it = (target, innerText) => { const elem = qs(target); elem.innerText = innerText; }; // ======================================================== const it_append = (parent_target, target, inn...
true
b3cc586d1def873b4627a0a235b3faaca895bb03
JavaScript
mayanktech/slambook
/web/WEB-INF/jsp/resources/js/script.js
UTF-8
7,394
2.625
3
[ "Apache-2.0" ]
permissive
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ var gallery; var dialog = function(message,title){ this.message = message; this.title=title; this.dialogRef = $("#fullModal"); this.dialogBodyRef = $("#fullModal .modal-body"); this.dialogTitleR...
true
b0b96b2f902610c1dc79e00f939d17ff5910a179
JavaScript
ducphan1988/PhanHuuTaiDuc_BootcampPreparation_2.0
/B11_CauTrucLap_2/BaiTap/2.HienThiCacSoNguyenToDauTien/MyJS.js
UTF-8
578
3.5
4
[]
no_license
let number = parseInt(prompt("Nhập số lượng số nguyên tố cần hiển thị: ")); let count = 0; let n = 2; for (let i = 0; count < number; i++) { let flat = checkSoNguyenTo(n); if (flat === true) { document.write(n + " "); count++; } n++; } function checkSoNguyenTo(a) { if (a < 1) { ...
true
47138e071263ba6232063e76e0e4d1947e8b2554
JavaScript
Zhoutall/HealthMotivator
/javascripts/setting.js
UTF-8
4,733
2.546875
3
[]
no_license
$(document).ready(function(){ var st = window.localStorage; arrayday = new Array(24); for (var i=0; i<24; ++i){ arrayday[i] = {"x": i,"y":0} } arraydd = new Array(31); for (var i=0; i<31; ++i){ arraydd[i]={"x": i+1, "y": 0}; } arraymonth = new Array(12); for (var i=0;...
true
6f67db90fb34b448d1044799dd74193a845ade85
JavaScript
VictorKmin/feb-2021
/basic/consultation2/c2.js
UTF-8
3,944
4.1875
4
[]
no_license
// // // // // // true // // // // // // false // // // // // // // // // // // if (x === true) { // DONT DO THIS // // // // // // if (x) { // do that! // // // // // // // // // // // FALSY // // // // // // undefined, null, 0, '', NaN // // // // // // // // // // // TRUTHY // // // // // // All other values // // /...
true
849fc1a37421d1ee6a3261a9c1ae0b4c6dbb1ead
JavaScript
Auroriax/js13k-2021
/src/matter.js
UTF-8
70,242
2.921875
3
[]
no_license
var Common = {}; Common._nextId = 0; Common._nowStartTime = +(new Date()); Common.extend = function (obj, deep) { var argsStart, deepClone; if (typeof deep === 'boolean') { argsStart = 2; deepClone = deep; } else { argsStart = 1; deepClone = true; } for (v...
true
7aaa8a20fb12a4195388d6bafd6d9e52afad5d8f
JavaScript
muhammedminhal/EStor-shoppingCart
/public/assets/js/product.js
UTF-8
2,134
2.546875
3
[ "MIT" ]
permissive
const chatInitiator = () => { var loggedUserEmail = document.getElementById('emial').value; var socket = io("/", { query: { email_address: loggedUserEmail } }); localStorage.setItem("roomInitiatorEmail", loggedUserEmail); document.location.href = "/users/chat"; var e...
true
5cb54dc7ade57b8ee6ed5d35ec67d0f96cea1ff6
JavaScript
Fernandadp/exercism
/allergies/allergies.js
UTF-8
4,769
3.640625
4
[]
no_license
const listOfAllergiesObj = { eggs: 1, peanuts: 2, shellfish: 4, strawberries: 8, tomatoes: 16, chocolate: 32, pollen: 64, cats: 128 } const listOfScores = { 1: 'eggs', 2: 'peanuts', 4: 'shellfish', 8: 'strawberries', 16: 'tomatoes', 32: 'chocolate', 64: 'pollen', 128: 'cats' } class Al...
true
266c43048d1cd26c279826d61b3b0c1f45568f4f
JavaScript
ziggysauce/terminalTrivia
/index.js
UTF-8
13,152
2.671875
3
[ "MIT" ]
permissive
const prompt = require('prompt'); // Prompt user for answers const blanks = ["__1__","__2__","__3__","__4__","__5__"]; const placeholder = ["__1__", "__2__", "__3__", "__4__", "__5__"]; const newlist = []; let username = ''; // Trivia text for each category and difficulty level // Implemented dictionary to store text...
true
f8470d3fb0f9ef03426b11fe38b5d731e2add6d9
JavaScript
sephh/meli
/server/src/resources/item/utils.js
UTF-8
1,669
2.59375
3
[]
no_license
import AuthorDao from '../author/author.dao' import ItemDao from './item.dao' import CategoryDao from '../category/category.dao' import CurrencyDao from '../currency/currency.dao' export default { getAuthor: async sellerId => { try { const author = await AuthorDao.getOne(sellerId) const [first, ...la...
true
ad60a012c6ffc54361c1820ec9468a7783208a19
JavaScript
alex-avila/assignments
/express-exercises/rock-the-vote/client/src/redux/issueReducer.js
UTF-8
477
2.546875
3
[]
no_license
import axios from 'axios' export const getIssue = id => { return dispatch => { axios.get('/issues/' + id).then(response => { dispatch({ type: 'GET_ISSUE', issue: response.data }) }) } } const issueReducer = (state = {}, action) => { s...
true
6243e9b0309b47ad3c90c10bbb949fb502a1f070
JavaScript
evagolabek/week4_homework
/src/containers/Board.js
UTF-8
2,447
2.953125
3
[]
no_license
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import Square from '../components/Square' import './Board.css' import {duplicateRows, duplicateCols, threeOrMoreInARow, cols} from '../lib/game' export class Board extends PureComponent { static pro...
true
f8c006edb4badc7eb1669f1ca9df3fea73e718db
JavaScript
synaplasticity/node_basics
/src/async/file-ops.js
UTF-8
1,246
2.78125
3
[]
no_license
'use strict'; var fs = require('fs'); function FileOps() {} FileOps.prototype.syncFileOp = function(){ var oldFilename, newFilename, isSymbLnk; oldFilename = "./processId.txt"; newFilename = "./processIdOld.txt"; fs.chmodSync(oldFilename, 777); fs...
true
d9be7350774b71302fe5adeaf50f586cf0149558
JavaScript
Qxiaoqi/relearning-front-end-notes
/JavaScript/05-JavaScript执行(一)/demo/异步变色/script.js
UTF-8
410
3.375
3
[]
no_license
function sleep(duration) { return new Promise((resolve, reject) => { setTimeout(resolve, duration); }) } async function changeColor(color, time) { await sleep(time); document.getElementById("circle").style.backgroundColor = color; } (async function run() { while (true) { await changeColor("yellow", ...
true
34fe7778e5a101e2a950406228852f045090b4dc
JavaScript
VirtualOrganics/Simulator
/src/Grid.js
UTF-8
4,533
3.375
3
[]
no_license
/** * Grid.js * * An axis aligned evenly spaced grid representation. Each cell in the grid may hold a list of objects. * Objects are responsible for updating their grid occupancy by using add and remove. * The grid cells can be queried for their occupant list. * * NOTE: add and remove will directly modify the ...
true
e09c3227792de8ac229d747e88d882eca9f66f25
JavaScript
hbilles/found-minimum-case
/reducers/site.js
UTF-8
516
2.6875
3
[]
no_license
// Site Reducer // site action types export const types = { SET_IS_MOBILE: 'SITE/SET_IS_MOBILE', } export const initialState = { isMobile: false, } // site reducer export default (state = initialState, action) => { switch (action.type) { case types.SET_IS_MOBILE: return { ...state, is...
true
96f767cb8c05b8fb906ab595e23196a576840c9c
JavaScript
fernandopiniani/d2n-bot
/src/modules/jointown/index.js
UTF-8
4,579
2.84375
3
[ "Apache-2.0" ]
permissive
const moment = require('moment') const COMMAND_NAME = 'jointown' const TOWNS_CATEGORY = 'TOWNS' /** * Join module is responsible for the management of multiple towns in one * discord server. Using join module, members will be able to create private * chats and use as it pleases. Since this feature is created to help ...
true
2ad01ccfcb1818287b1487e3c007a0a99cb453e7
JavaScript
tstasiojr/javascript-test
/day7/js/index.js
UTF-8
599
3.328125
3
[]
no_license
// primitive const title = "My First App"; const verson = 1.0; const production = false; let username = ''; let score = 0; let isVip = true; // grouping / compound / complex const array = []; const object = {}; const users = []; const user0 = { firstName: 'James', lastName: 'James', isVip: true }; con...
true
14078db80603df7164586bdd608199452acb1ba9
JavaScript
RegiKein/regikein.github.io
/test.js
UTF-8
292
2.640625
3
[]
no_license
alert("Окошечко работает"); document.write('<table width="100%" border="1">'); for (i = 1; i < 6; i++) { document.writeln("<tr>"); for (j = 1; j < 6; j++) document.write("<td>" + i + j + "<\/td>"); document.writeln("<\/tr>"); } document.write("<\/table> ");
true
4dd455285b19012e0a11025f136aa646e4f0c0e5
JavaScript
eliyahuchaim/merge-sort-lab-immersive-alum
/index.js
UTF-8
2,477
3.84375
4
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
// // let wholeFood = [1, 2, 6, 7, 8] // let traderJoes = [3, 4, 5, 9, 10] // // // function merge(array1, array2, sorted = []){ // debugger // let arr1Min = array1[0]; // let arr2Min = array2[0]; // let arr = [] // // while(array1.length !== 0 && array2.length !== 0){ // if (arr1Min < arr2Min){ // ...
true
815d13c8cac77a11cafe97818d73820c7b12212f
JavaScript
ChristianKienle/vueplay
/packages/cli/lib/util/copy-dir.js
UTF-8
1,189
2.71875
3
[ "MIT" ]
permissive
const { promises: fs } = require("fs") const ncp = require("ncp").ncp ncp.limit = 1 /** @param {string} path */ const getFiles = async (path) => { const entries = await fs.readdir(path, { withFileTypes: true }) let files = entries .filter(file => !file.isDirectory()) .map(file => ({ name: file.name, path:...
true
c0793052b1637fdff06a52e8f6ee59f16b385e19
JavaScript
nchristanto/project-react-counter
/src/components/Counter.js
UTF-8
680
2.75
3
[]
no_license
import React from 'react' export default class Counter extends React.Component { constructor(props) { super(props) this.state = { counter: 0 } } modifyAddCounter = () => { this.setState({ counter: this.state.counter + 1 }) } modifySubtractCounter = () => { this.setState...
true
586c01b840cf2d6485335ad1479fdd5112321356
JavaScript
zilong-thu/leetcode-javascript
/0139-word-break.js
UTF-8
739
3.578125
4
[]
no_license
/** * word-break */ /** * @param {string} s * @param {string[]} wordDict * @return {boolean} */ var wordBreak = function(s, wordDict) { const L = s.length; const dp = new Array(L + 1).fill(false); const set = new Set(wordDict); dp[0] = true; for (var i = 1; i < L + 1; i++) { for (var j = 0; j <= i...
true
750a2344b685fff888fffc0747bc4d7b05296865
JavaScript
blixxurd/user-portal
/server/__tests/auth.test.js
UTF-8
1,657
2.78125
3
[]
no_license
require('dotenv').config(); const { db } = require('../db'); const { UserController, AuthController } = require('../controllers'); function makeid(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; ...
true
ec0208dc600745e1e0c4efa3dacffe2373b90358
JavaScript
doug-wade/example-sub
/tests/fixtures/mockPersister.js
UTF-8
828
2.734375
3
[]
no_license
'use strict'; /** * Exports a mock persister that matches the api of lib/persister.js, for use * when testing. The write methods do nothing, the read methods return an the * most minimal possible response of the correct type (an empty object for * config and the current timestamp for lastUpgraded). * @type {Obje...
true
684b56aeb0515a8d053691b6900c8ef7e333613d
JavaScript
adityaiparkar/Angular
/AA1Q5.js
UTF-8
194
3.46875
3
[]
no_license
function Fibonacci(n) { var t1 = 1, t2 = 1, next = 2; while (t1 <= n) { console.log(" " + t1); next = t1 + t2; t1 = t2; t2 = next; } } Fibonacci(55);
true
639ddcb9b89411321ecf681aab935e9fdfe8142d
JavaScript
LucasScotta/express-chat
/lib/routes/chat/message.js
UTF-8
1,438
3.015625
3
[]
no_license
module.exports = class Message { /** * @param {object} data's message * @return {object} data's message */ create(data) { const message = data.message const roomId = parseFloat(data.roomId) const user = data.user const date = data.date if (!message) throw Error('Invalid data: Missing me...
true
c2dc5b1f754ef4d052168235a66456db289560be
JavaScript
Altrx07/CursoIngresoJS
/9-Parciales/parcial2/5-switch.js
UTF-8
646
3.078125
3
[]
no_license
//Debemos lograr mostrar un mensaje al presionar el botón 'MOSTRAR'. function Mostrar() { var mesDelAño; var Enero; var Febrero; var Marzo; var Abril; var Mayo; var Junio; var Julio; var Agosto; var Septiembre; var Octubre; var Noviembre; var Diciembre; prompt ("Ingrese un mes"); switch (mesDelAño...
true
4f1584e4fc2d6a28d0e3dcd5b047d44a74deb2a0
JavaScript
Leodolz/Web-Project-React
/WebExamAppFrontend/exam-frontend/src/components/loginForm.jsx
UTF-8
3,177
2.546875
3
[]
no_license
import React, { Component } from 'react'; import userImg from '../images/userImage.png'; import ImageUploader from './smallComponents/ImageUploader'; import {API_URL} from './Globals'; class LoginForm extends Component { state = { contact: {}, username: '', display:null, user:null } constructor(props) { ...
true
b932d655d0e6f068a2c2f46ffe0c2bd3d8e1e9e1
JavaScript
GregerGundersen/rolf-greger-gundersen-js1-ca
/js/details.js
UTF-8
2,752
3.140625
3
[]
no_license
const detailContainer = document.querySelector(".chardetails"); const queryString = document.location.search; const param = new URLSearchParams(queryString); const id = param.get("id"); const url = "https://the-one-api.dev/v2/character/" + id; const quoteUrl = "https://the-one-api.dev/v2/character/" + id + "/quote"; ...
true
bab7f11f2866ac7e342b9e83aad00c51723a494e
JavaScript
crazychenz/webapps
/java/web/hikecalc.js
UTF-8
2,417
3.46875
3
[]
no_license
/** * Local Hike Calculator Validation and GUI Support. * @author Vincent Agriesti */ /** Minimum month within season. */ const MIN_MONTH = 5; /** Maximum month within season. */ const MAX_MONTH = 8; /** Maximum date within the last month within the season. */ const MAX_MONTH_DATE = 30; /** Maximum year allowed for...
true
84c77e3628122bf4d99efc804656db665253f4b5
JavaScript
SPConrad/a_wombats-bots-1
/javascript-sample.js
UTF-8
4,335
2.75
3
[ "MIT" ]
permissive
((state, timeLeftFn) => { const turnDirections = ['right', 'left', 'about-face']; const turnDirection = turnDirections[Math.floor(Math.random() * 3)]; const smokeDirections = ['forward', 'backward', 'left', 'right', 'drop']; const smokeDirection = smokeDirections[Math.floor(Math.random() * 5)]; co...
true
c004d0c9cfa57f3a096f4d30b0aafff50439480c
JavaScript
hakobyanviktoria8/Scrimba_React
/src/ReactHOOK/index1.js
UTF-8
842
3.03125
3
[]
no_license
import React, {useState, useEffect} from "react"; // componentDidMount // componentDidUpdate // componentWillUnmount import randomcolor from "randomcolor" const One = () => { //distructure const [count, setCount] = useState(0) const [answer, setAnswer] = useState("Yes") const [color, setColor] = useSt...
true
a8ce7d130490534f9c8403c03251bada1d3949c3
JavaScript
AymaneHrouch/foofighters
/assets/common/js/lyrics.js
UTF-8
2,979
2.765625
3
[]
no_license
if (location.protocol.startsWith("http")) { let xhr = new XMLHttpRequest(); let doc; xhr.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { let parser = new DOMParser(); doc = parser.parseFromString(this.responseText, "text/xml"); // Afficher la liste des c...
true
3cbc6b9d40f17069e390b5a5eea47b6612ec4f3e
JavaScript
mauroprojetos/Gekko-Multiple-Time-Frames
/RSI_Fall.js
UTF-8
3,802
3.015625
3
[ "MIT" ]
permissive
// RSI Fall // // This strategy will buy when hourly RSI is oversold // and 5 minute RSI is overbought, indicating trend // reversal. It will sell when hourly RSI is overbought // or if hourly RSI stalls after trend turns bullish. var log = require('../core/log'); var config = require ('../core/util.js').getConfig();...
true
84a67e8fda63d450645b5b321a02511eebfbb9b0
JavaScript
puls/minesweeper
/src/Board.js
UTF-8
9,847
2.921875
3
[]
no_license
import React, { Component } from "react"; import "./App.css"; class Board extends Component { constructor(props) { super(props); this.state = { boardState: null, elapsedTime: 0, statusFace: "🙂", lossSquare: null }; window.oncontextmenu = () => false; } componentWillUnmo...
true
b044b3e13ef1755067f1b758ea3af48e9d492b17
JavaScript
yeahihi/study
/src/app.js
UTF-8
1,430
2.78125
3
[]
no_license
/** * Created by Yeji Lee on 2017-02-12. */ // 변수 선언 // 이전 //var a = 1; // ES6 //const b = 2; // const는 한번 선언 하면 변수의 값을 할당을 해줘야 하고 재할당을 할 수 없음. //let a = 3; // 재할당이 가능. //const tplList = require('./list.hbs'); // require는 보통 jsp 만 읽음. import tplList from './list.hbs'; //const tplMain = require('./main.hbs'); // req...
true
68795e4453c9b68890c3449bb45b7803aca9e4b0
JavaScript
gkdyddl33/js_workspace
/project0925/Bullet.js
UTF-8
887
3.765625
4
[]
no_license
/* 총알을 정의한다. */ class Bullet{ constructor(container,x,y,velX){ this.x=x; // 총알의 x좌표 this.y=y; // 총알의 y좌표 this.velX=velX; // 총알의 속도를 결정짓는 변수 this.img = document.createElement("img"); this.img.src="../images/shooting/ba...
true
e09834c568a716e2ba58f8225ae6f5ebaba7ec5a
JavaScript
tnoworyta/books-react
/client/app/bundles/HelloWorld/components/NewBook.jsx
UTF-8
892
2.640625
3
[]
no_license
import React, { Component } from 'react'; export default class NewBook extends Component { handleClick() { $.ajax({ url: '/api/v1/books', type: 'POST', data: { book: { author: this.refs.author.value, title: this.refs.title.value, year: this.refs.year.value ...
true
aa4ffb1575d7f9b587ad82febe2bf0aca19c736c
JavaScript
brianmcmillan/json-server
/faker.js
UTF-8
14,901
3.046875
3
[ "MIT" ]
permissive
//Generate a random set of user data //based on example from: https://egghead.io/lessons/nodejs-creating-demo-apis-with-json-server // module.exports = function(){ var faker = require("faker"); return { random: { number: faker.random.number(100), // faker.random.number(range) //number2: faker.rando...
true
8e899803e13c4fcd0548003d1e387553fde052ea
JavaScript
inesacsantos/my-weather-app
/src/index.js
UTF-8
4,244
3.5
4
[]
no_license
let now = new Date(); let currentDate = document.querySelector("#weather-date"); let date = now.getDate(); let hours = ("0" + now.getHours()).slice(-2); let minutes = ("0" + now.getMinutes()).slice(-2); let days = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", ]; let da...
true
e3bfcdcf8aece1f1bef8617e238aa4c1716365d8
JavaScript
akihikodaki/misskey
/tools/migration/node.1509958623.use-gridfs.js
UTF-8
1,942
2.8125
3
[ "MIT", "AGPL-3.0-only", "AGPL-3.0-or-later" ]
permissive
// for Node.js interpret const { default: db } = require('../../built/db/mongodb') const { default: DriveFile, getGridFSBucket } = require('../../built/api/models/drive-file') const { Duplex } = require('stream') const { default: zip } = require('@prezzemolo/zip') const writeToGridFS = (bucket, buffer, ...rest) => ne...
true
f03b6c43b712a8738c288108d5015e941a000a1b
JavaScript
Albertoni88/Universidad
/src/Grupos/CrearGrupo.js
UTF-8
3,871
2.53125
3
[]
no_license
import React, { Component } from 'react' import { BrowserRouter, Route } from 'react-router-dom' import { connect } from 'react-redux' import { loadProfesores, crearGrupo } from '../reducers/actionCreator' import axios from 'axios' import { ValidateEmptyFields } from '../Validaciones/validaciones' const mapStateToProps...
true
ab2fa1fbbe1fc65075de33732e4b89399990ba9e
JavaScript
syzer/functional-js
/codeEvalChallange/src/easy/shortestRepetition.js
UTF-8
798
2.515625
3
[]
no_license
"use strict"; var _ = require('lodash'); var lib = require('./../lib/lib')(_); _.mixin(lib); function shortestRepetition(str) { return str .replace(new RegExp(str[0], 'g'), ' ') .substr(1) .indexOf(' ') + 1; } function prepare(line) { var out = shortestRepetition(line); ...
true
9343895db8e9b92e07766d099dc13bb9349f9c4f
JavaScript
idhowardgj94/utube-demo
/src/utils.js
UTF-8
191
2.65625
3
[]
no_license
// @flow export function getDuration(t: string | string): string { const r = t .split('T')[1] .replace('M', '分') .replace('S', '秒') .replace('H', '時'); return r; }
true
bbc290b11fc5026c8992da2ad52b22b0fa4588f0
JavaScript
Myst3k69/Project-ShakeIt-Back-
/api/routes/rates.js
UTF-8
1,796
2.515625
3
[]
no_license
let express = require("express"); let router = express.Router(); const { json } = require("body-parser"); const Rating = require("../models/Rating.js"); // SUBMIT A RATE router.post("/", async (req, res) => { const rateCocktail = new Rating({ idCocktail: req.body.idCocktail, rate: req.body.rate, }); ...
true
3b3d332afff7b13d5ef410c642a58374dd7e55b4
JavaScript
timpur/cypress-polly-xhr-adapter
/lib/xhr-mock/MockEventTarget.js
UTF-8
1,757
2.65625
3
[ "MIT" ]
permissive
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MockEventTarget = /** @class */ function () { function MockEventTarget() { this.listeners = {}; } MockEventTarget.prototype.addEventListener = function (type, listener, options) { this.listeners = this.listeners || {}; ...
true
4c5564893892598c5fb92771699306b7a1936240
JavaScript
DL-space/myTest
/侃家静态文件/m/dist/js/common.js
UTF-8
10,960
2.609375
3
[]
no_license
$(function () { setEmotion();//解析表情 }); /** * 获取url参数 * @param name * @returns {null} */ function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); //匹配目标参数 if (r != null) return unescape(r[2]); ...
true
32e75b7a5a16fbc4b4e1a9e5bedf8b8061a14fc5
JavaScript
PandahutMushy/HTTPRequestClient
/download-image.js
UTF-8
612
2.578125
3
[]
no_license
var request = require("request"); var fs = require("fs"); var sysPath = process.cwd().toString() + "/w2d1/HTTPRequestClient/downloads/future.jpg"; request .get("https://sytantris.github.io/http-examples/future.jpg") .on("error", function(err) { console.log("There was an error: " + err); }) .on("response"...
true
2f51ba8b46a316ea9e2199ce4a2360a87f02ccef
JavaScript
joeyarnstein/JavaScriptJournalCount
/js/cli.js
UTF-8
337
2.59375
3
[]
no_license
// // var prompt = require('prompt'); // var moment = require('moment'); // prompt.start(); // // prompt.get('entry', function(err, result) { // var count = entryCount(result.entry); // count.forEach(function(element) { // console.log(element); // }); // // moment.get('date', function(err, result) { // var...
true
df35e3d9783b7f600dd7c637d89859278e733026
JavaScript
uwspstar/DataStructures-Algorithms
/Data-Structure/_Algorithm (LeetCode)/Alg-Study-Plan_Binary Search I/01608. Special Array With X Elements Greater Than or Equal X/1608. Special Array With X Elements Greater Than or Equal X.js
UTF-8
1,452
4.1875
4
[]
no_license
// 1608. Special Array With X Elements Greater Than or Equal X /* You are given an array nums of non-negative integers. nums is considered special if there exists a number x such that there are exactly x numbers in nums that are greater than or equal to x. Notice that x does not have to be an element in nums. Return ...
true
84e1cc8e5389ffc6bb3b42af4f1bd3473ae3d3fd
JavaScript
Ali-Aftab/DJ
/client/routes.js
UTF-8
2,014
2.578125
3
[ "MIT" ]
permissive
import React, {Component} from 'react' import axios from 'axios' /** * COMPONENT */ export default class Routes extends Component { constructor() { super() this.state = { pictures: [], search: '', graphics: [], selectedPictures: [], selectedGraphics: [] } this.handleSu...
true
011ff3f63942f85d4ea8bfbb666e19dbbcc141fb
JavaScript
blueberryiswar/bigger-fish
/src/scripts/map/structure.js
UTF-8
4,678
2.625
3
[ "MIT" ]
permissive
import StartingRoom from "./Rooms/StartingRoom" import Room from "./Rooms/Room" import Generator from "./Generator/Generator" import TargetRoom from "./Rooms/TargetRoom" import TreasureRoom from "./Rooms/TreasureRoom" import InteractableObjects from "../Groups/InteractableObjects" export default class Structure { ...
true
5e09fb0b1915c1d3dc91a89f94da28a0f62e7969
JavaScript
Rubinhuang9239/jet_stream_mini_game
/public/script/inputControl.js
UTF-8
1,605
2.578125
3
[ "MIT" ]
permissive
// Handle input const moveDir = { w: 0.0, s: 0.0, a: 0.0, d: 0.0 }; let rotateArc = { pitch: 0.0, yaw: 0.0, roll: 0.0 }; let lastView = 0; let gunCoolDown = 0.0; function reciveJoyStickData(data){ moveDir.w = data.pitch * 0.1; moveDir.d = data.roll * 0.1; rotateArc.yaw = dat...
true
1f03849babead159c6ab6c8c98a596f389426400
JavaScript
asdFletcher/data-structures-and-algorithms
/src/benchmarking/benchmarker/getRandomNumberSet.js
UTF-8
284
3.015625
3
[ "MIT" ]
permissive
'use strict'; function getRandomNumberSet(count) { const randomNumbers = new Set(); while (randomNumbers.size < count) { const num = Math.floor(Math.random() * 1024 * 1024 * 128); randomNumbers.add(num); } return randomNumbers; } module.exports = getRandomNumberSet;
true
c43990b0babf784fc2e6c9b07ed19533af648479
JavaScript
Nhvattum/React-Advanced-Calc
/src/App.js
UTF-8
1,126
2.984375
3
[]
no_license
import React, { useState } from 'react'; import './App.css'; import Calculator from './Calculator' function App() { const [input, setInput] = useState([]) const [negative, setNegative] = useState(false) const [operator, setOperator] = useState([]) const [num1, setNum1] = useState("") const addToInput = (e) ...
true
d2fddfe75022151d7d7d36540dc3114c59a4ec60
JavaScript
ttvi-cse/codewars
/7-ryu/common-substring.js
UTF-8
682
3.4375
3
[]
no_license
// TODO-fix 3 test case // Test.assertEquals(SubstringTest("test", "lllt"),false); // Test.assertEquals(SubstringTest("Codewars is sweet!", "is"),true); // Test.assertEquals(SubstringTest("oBjSguHTou", "gUMeFUFnvX"),true); function SubstringTest(str1, str2){ console.log(str1); console.log(str2); var aux1=[]; fo...
true
f1a7c160d0c5f1731f9fae7426d6647babab43e0
JavaScript
ugotsoul/business_reviews
/lib/getAndLoadHtml.js
UTF-8
342
2.578125
3
[]
no_license
'use strict'; const rp = require('request-promise'); const cheerio = require('cheerio'); function getAndLoadHtml(url) { return rp(url) .then(function(html) { return cheerio.load(html); }) .catch(function(err) { // TODO: Bubble up and handle this error console.log('error', err); }); } module.expo...
true
8ceb8aa30ea42dcf298a6a64cb9f2039d507204a
JavaScript
Vishruta-Patil/neoGcamp-Interview-Practice-Questions
/Sample 1/src/App.js
UTF-8
1,147
3.40625
3
[]
no_license
import "./styles.css"; import { useState } from "react"; export default function App() { var [num1,setNum1] = useState(""); var [num2,setNum2] = useState(""); var [result,setResult] = useState(""); function num1handler(event) { num1 = event.target.value; setNum1(num1); } function num2Handler(even...
true
d79d1703874c2a68fde888e93b247364c0ccc23a
JavaScript
wangmeng0815/react-hooks-demo
/src/hooks/UseRef.js
UTF-8
1,405
3.390625
3
[]
no_license
import React, { useState, useRef, useMemo, useEffect } from 'react'; /** * 1. 传统用法: 获取对应的DOM对象 * 2. “跨渲染周期” 保存数据 */ const App = () => { const [count, setCount] = useState(0); const doubleCount = useMemo(() => { return 2 * count; }, [count]); const counterRef = useRef(); useEffect(() =...
true
1ab935e066cd0069379fc14ffb592f2bd90c730c
JavaScript
marufsiddiqui/bonfires
/title_case_a_sentence.js
UTF-8
777
4.375
4
[]
no_license
function titleCase(str) { // make the whole thing lowercase var strLower = str.toLowerCase(); // "I'm a little tea pot" => "i'm a little tea pot" // split into an array var strLowerArr = strLower.split(' '); // "i'm a little tea pot" => ["i'm", "a", "little", "tea", "pot"] // placeholder f...
true
73bc49335d5897202ae8d955bd12d5a8f55c11bc
JavaScript
JackFurby/SUE-Fedora
/nodeJSON/js/functions.js
UTF-8
3,867
2.6875
3
[]
no_license
module.exports = { buildISOString: function buildISOString(curDate, svdDate) { if ( svdDate == null ) { return curDate.getUTCFullYear() + '-' + this.pad(curDate.getUTCMonth() + 1) + '-' + this.pad(curDate.getUTCDate()) + 'T' + this.pad(curDate.getUTCHours()) + ':' + this.pad(curDate.getUTCMi...
true
cbf7d265a2fdb6c14105794bfac86e516c3875f4
JavaScript
AlexJetB/AJB_CIT261_01
/EJS/Week07/TeamActivity/comments.js
UTF-8
222
2.984375
3
[]
no_license
// acts a model, view, and controller for comments export default class Comments { constructor(type) { this.type = type; } showCommentsList() { console.log("This is a comment example. " + this.type); } }
true
6a4c6b0c64a10730b0195c30fed9f8aa959a62f2
JavaScript
Gatozaurio/entornoCliente
/Tema2/Ejercicios_Tema2/Tema2.1/ejercicio.js
UTF-8
3,075
3.734375
4
[]
no_license
//PARA INCLUIR COMENTARIOS /* * PARA INCLUIR VARIAS LINEAS DE COMENTARIOS * * */ //ESTE SCRITP ES PARA PRACTICAR LAS DECLARACIONES DE VARIABLES ///esta funcion hay que corregirla para poder porbar las demas function corregirDeclaraciones(){ var funcion = new Object(); var ejemplo = "EJEMPLO"; var prueba...
true
c8ed380940047a2cb8e98842ab1539155f4ebbe9
JavaScript
LiandaDuanDal/Blog_Management_system
/blog/model/user.js
UTF-8
2,954
2.96875
3
[]
no_license
// 引入joi模块做规则验证 const Joi = require('joi'); // import mongoose const mongoose = require('mongoose'); // const bcrypt = require('bcrypt'); // async function run() { // const salt = await bcrypt.genSalt(10); // console.log("salt------>", salt); // const plain_text = "12345678"; // console.log("plain_tex...
true
c9de1ba219be6a94625399045b099d23c1b6b7ab
JavaScript
Darkzarich/light-dark-mode
/main.js
UTF-8
1,166
2.8125
3
[ "MIT" ]
permissive
import './style.css'; import sunImage from './assets/sun.svg'; import moonImage from './assets/moon.svg'; const themeBtn = document.querySelector('.theme'); function getCurrentTheme() { let theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; return loadFromLs() || theme;...
true
4c6bc2b2c06e93af33dc378f40e7e5923dce758b
JavaScript
Rohitsamad/ubiquitous-palm-tree
/intro-jsx/src/math.js
UTF-8
403
2.953125
3
[]
no_license
/*const pi = 3.1459; function doublePi() { return pi * 2; } function triplePi() { return pi * 3; } export default pi; export {doublePi, triplePi}; */ function add(n1, n2) { return n1 + n2; } function multiply(n1, n2) { return n1 * n2; } function substract(n1, n2) { return n1 - n2; } function...
true
94d6d3c680b21186f807933ce0d55f72cff93cf5
JavaScript
jcapchasalas/backend-nodejs-galeria
/bin/www.js
UTF-8
377
2.765625
3
[]
no_license
const http = require('http'); const app = require('../app'); //almacenar el puerto const port = parseInt(process.env.port, 10) || 8010; app.set('port', port); //se asigna el puerto a la constante "app" // Escuchar Peticiones const server = http.createServer(app); server.listen(port); console.log('Express Server co...
true
d70b41d8e7df39f10e0e1101108fa9da9b0c5e19
JavaScript
RajatArya007zxc/ReactBasic-react-router-Redux-
/src/Component/Nav.jsx
UTF-8
1,024
2.5625
3
[]
no_license
import React from 'react'; import {Link,withRouter} from "react-router-dom"; const Nav = (props) => { console.log(props); /*Actually the Nav is not in Route in App.js so we cant use props and props.history.push for redirect from home to another so that why we use higherOrderComponent withRouter which help ...
true
089ce97e8e433e94d958d6ed4d9396bac91a7ae3
JavaScript
BlockVisors/Blockchain-Story-Project
/test/TestStoryDao.js
UTF-8
2,871
2.578125
3
[]
no_license
import expectThrow from './helpers/expectThrow'; const StoryDao = artifacts.require("StoryDao"); contract('StoryDao Test', async (accounts) => { it("should make sure environment is OK by checking that the first 3 accounts have over 20 eth", async () =>{ assert.equal(web3.eth.getBalance(accounts[0]).toNum...
true
e3341ecd366b26183f2fea8f7ef0bed548f42db1
JavaScript
bhuber23/unit-4-game
/assets/javascript/game.js
UTF-8
2,197
3.875
4
[]
no_license
//Set variables - chooses random numbers for stones clicked and the score to match var reality = Math.floor(Math.random() * 11) + 1; var space = Math.floor(Math.random() * 11) + 1; var power = Math.floor(Math.random() * 11) + 1; var mind = Math.floor(Math.random() * 11) + 1; var time = Math.floor(Math.random() * 11) + ...
true
d8d9097e0b65b1d74fd913aaf56be2a028ad54b8
JavaScript
IzzleNizzle/node-server
/04-14-node_servers/Solved/server2.js
UTF-8
642
3.234375
3
[]
no_license
// We require/import the HTTP module var http = require("http"); // ========================= Then define the ports we want to listen to var PORTTWO = 7500; // create handler for requests and responses function handleRequestTwo(request, response) { response.end("JavaScript must not be your forte."); } ...
true
073fea7b44b710ef2a52311d7978a85961bd4980
JavaScript
cha63506/TDT4501
/app/App/Core/Property/String.js
UTF-8
1,230
2.59375
3
[]
no_license
goog.provide('App.Core.Property.String'); goog.require('App.Core.Property.Property_Type'); /** * Type of property String * @constructor * @extends {App.Core.Property.Property_Type} * @param {Integer} length * @param {String} regex */ App.Core.Property.String = function(length, regex) { //App.Core.Property.Property...
true
96795f5a8899fd5c2ef3839eafd3ab407ceb6230
JavaScript
jarrodek/feed-reader
/paper/lib_new/TemplateBinding/examples/how_to/template_ref.html.0.js
UTF-8
431
2.609375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
document.addEventListener('DOMContentLoaded', function() { var t1 = document.getElementById('example1'); t1.model = { name: 'Sam' }; var t2 = document.getElementById('example2'); t2.model = [{ name: 'Amy' }, { name: 'Lin' }, { name: 'Peter' }]; // Needed to detect model changes if O...
true
3849843942b088769789000faa73b2d62baa20a1
JavaScript
fisker/moment
/src/test/moment/weeks_in_year.js
UTF-8
8,280
2.59375
3
[ "MIT" ]
permissive
import { module, test } from '../qunit'; import moment from '../../moment'; module('weeks in year'); test('isoWeeksInYear', function (assert) { assert.equal( moment([2005]).isoWeeksInYear(), 52, 'ISO year 2005 has 52 iso weeks' ); assert.equal( moment([2006]).isoWeeksInYear...
true
892a667f98e9dfb33f9585daed5d89b1e50298e2
JavaScript
Divykant/timepass
/src/Components/quesbar/Quesbar.jsx
UTF-8
1,018
2.609375
3
[]
no_license
import userEvent from '@testing-library/user-event'; import React, { useState, useEffect } from 'react' import axios from 'axios'; import "./Quesbar.css"; export const Quesbar = () => { const [users, setUsers] = useState([]); useEffect(function(){ axios.get("https://jsonplaceholder.typicod...
true
993855dd3950626c4973458510f7e3626f7fee34
JavaScript
jmlashen/kennels
/src/components/quotes/QuoteCard.js
UTF-8
1,873
3.3125
3
[]
no_license
import React, { useEffect, useState } from "react" import { getAllQuotes } from "../../modules/QuoteManager" export const QuoteCard = () => { const [quotes, setQuotes] = useState([]) //intial state is empty const [quote, setQuote] = useState({}) // {} placeholder value for the template properites below in...
true
90711f4b6304b14cbe35f7f615daaff194a18498
JavaScript
brunagalibtcc/brunagalibtcc.github.io
/js/floor.js
UTF-8
288
2.71875
3
[]
no_license
const floorSize = 1000; const floor = new THREE.Mesh( new THREE.PlaneGeometry(floorSize, floorSize, 32), new THREE.MeshStandardMaterial({ color: 0x222322, side: THREE.DoubleSide }) ); floor.rotation.x = Math.PI/2; floor.position.y = 15; floor.receiveShadow = true; scene.add(floor);
true
46c664d0baaed3ff0e7beb60af8472728956e37a
JavaScript
Davydzz/Software-Cw
/static/js/liveFeedback.js
UTF-8
1,648
3.546875
4
[ "MIT" ]
permissive
function displayStars(numStars) { var stars = document.createElement("div"); for (var x = 0; x < 5; x++) { var star = document.createElement("span"); if (x < numStars) { star.className = "fa fa-star checked"; } else { star.className = "fa fa-star"; } ...
true
df4871a878e72a98e3946182880cf990e7acceb9
JavaScript
Gwemz/works
/pages/line/main1.js
UTF-8
7,750
2.703125
3
[ "ICU" ]
permissive
/** * Created by ajex on 2017/4/11. */ var canvas,stage,container1,container2,images = {}; function init() { createjs.MotionGuidePlugin.install(); canvas = document.getElementById("mainView"); stage = new createjs.Stage(canvas); container1 = new createjs.Container();//后雪景容器 stage.addChild(containe...
true
c40fc4036ce3f7c7824bc7c5bbce9ddb46b6fc46
JavaScript
MatthewRuby/Congress
/multiBar.js
UTF-8
2,646
2.796875
3
[]
no_license
function MultiBar(g, x, y, w, h){ var posX = x; var posY = y; var width = w; var height = h; var name = ""; var section = 0; var value = 0; var committees = new Array; this.num = 0; var sectX = new Array; var sectY = new Array; this.bOver = new Array; this.code = []; var mx; var my; var r...
true
bd8806c15dfba8bf11f2222be5817a86286cfc28
JavaScript
sushengyang/react-spring
/src/main/resources/scripts/reducers/submit.js
UTF-8
881
2.609375
3
[]
no_license
'use strict'; import * as types from '../constants/customerActionType'; const initState = { subType: '', subSuccess: false, isFetching: false, text: '' }; export function subReducer(state = initState, action) { switch(action.type) { case types.SUBTYPE: return Object.assign({}, state, { subTyp...
true
6cfa1fbb625c1bbc74005e138c752ea725ac6460
JavaScript
RankoHata/Life
/static/js/file_operation.js
UTF-8
1,792
2.8125
3
[]
no_license
function add0(m){return m<10?'0'+m:m} // 保证时间的格式化 function format(timestamp) // 将timestamp转化为人类看得懂的时间 { var time = new Date(timestamp * 1000); var y = time.getFullYear(); var m = time.getMonth()+1; var d = time.getDate(); var h = time.getHours(); var mm = time.getMinutes(); var s = time.g...
true
fbcfd80640e839300592dc17aae7431b0eab570c
JavaScript
jjignacio/Interactivas
/src/components/observatorioPyme/dashboad/AddCompany.js
UTF-8
21,999
2.59375
3
[]
no_license
import React, { Component } from "react"; // Componentes import Menu from "../Menu"; import Footer from "../../Footer"; // Importo llamada a endpoint import {GetAllCompanies as GetAllCompaniesAPI} from "../../controller/DashboardController"; // Importo llamada a endpoint import {AddCompanies as AddCompaniesAPI} from...
true
a64168284fa32c4c3d3735c34a89e2cade28b5dd
JavaScript
codewithsam/precepticon
/Case.js
UTF-8
1,808
3.046875
3
[]
no_license
const Fact = require('./Fact'); class Case{ constructor(config){ this.priority = parseInt(config.priority, 10) || 1; this.key = config.key; if(!config.hasOwnProperty("all") && !config.hasOwnProperty("any")) throw new Error('Atleast 1 boolean property (any,all) must exist'); ...
true
0f8c4259aad446c41463ea7527746862341d3450
JavaScript
Kritsatorn/100-days-of-leaning
/js-fundamentals-functional-v2/Day1.js
UTF-8
104
3.15625
3
[]
no_license
//functional programming is VERB // array is one of the object with cool feaetures console.log("HEELo")
true
c0cd9de906f78c1d64d2b43b8bea50ac178f1c4b
JavaScript
amgartseva/krnd-bath
/src/js/oop-calc.js
UTF-8
2,312
3.21875
3
[]
no_license
/*class Calc { constructor(params) { this.dismantlingValue = params.values.dismantling; this.dismantlingCoeff = params.coeffs.dismantling; this.dismantlingInput = params.input.dismantling; this.redevelopmentValue = params.values.redevelopment; this.redevelopmentCoeff = params.coeffs.redevelopment;...
true