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
8271d0a18a4d7a800e1cbeb42432d54bf3026386
JavaScript
Danial-A/EduNetwork-V2
/backend/controllers/groupPostController.js
UTF-8
7,395
2.59375
3
[]
no_license
const mongoose = require('mongoose') const Group = require('../models/groupModel') const Post = require('../models/postModel') const Users = require('../models/usermodel') const {postValidationSchema} = require('../validation/validationSchema') const {groupValidationSchema} = require('../validation/validationSchema') ...
true
7d9a153fd8493ef9d2e42895d6edad3d1556220c
JavaScript
intuitivepixel/ember-cli-ember-table
/addon/column-definition.js
UTF-8
3,122
2.703125
3
[ "MIT" ]
permissive
import Ember from 'ember'; var ColumnDefinition = Ember.Object.extend({ /* * --------------------------------------------------------------------------- * API - Inputs * --------------------------------------------------------------------------- */ /* Name of the column, to be displayed in the head...
true
841f319413b05ae4f10d069769d8043a3fc122ea
JavaScript
tmaunier/Team_Giteub
/dev_calendar/calendar.js
UTF-8
336
2.828125
3
[]
no_license
'use strict'; var divs = document.body.getElementsByTagName("img"); var today = new Date(); for (var i = 0 ; i < divs.length; i++) { var divDate = divs[i].id.split('/'); var date = new Date(divDate[2], divDate[1]-1, divDate[0]); console.log(date > today); if (date > today) { divs[i].style.pointerEvents ...
true
76ed5f438d9d19c8bf54f3f931123ada86279f1f
JavaScript
david-r-frederick/code-wars
/cwNaughtyOrNice.js
UTF-8
1,379
4.71875
5
[]
no_license
//Naughty or Nice? // Save Christmas! // Santa needs you to write two functions. Both of the functions accept a sequence of objects. The first one returns a sequence containing only the names of the nice people, and the other returns a sequence containing only the names of the naughty people. Return an empty sequence ...
true
63296182cd7c5d6fe3065d713eaa932a40dabd81
JavaScript
aishjagtap/JavaScript
/Assignment1/Console_functions.js
UTF-8
890
3.65625
4
[]
no_license
//1.log() function console.log(document); //2.assert() function var a=5; console.assert(a==5,"False") //3.time():Start a timer console.time("Time taken:") //4.count() function:counts number of times the perticular count() function has called console.count() //5.error():outputs an error message to the console ...
true
d9e6caacdc1a2ae02d901f22c1169b235bd9b54f
JavaScript
Isa-Ismail/React-tutorial-projects
/src/Personal Project/src/Tictac.js
UTF-8
7,237
3.109375
3
[]
no_license
import React, { useState, useEffect } from 'react'; const TicTac=()=>{ const [section, setSection]= useState({name1:"",name2:"",name3:"",name4:"",name5:"",name6:"",name7:"",name8:"",name9:""}) const [flag,setFlag]= useState(true) const solution=[[1,2,3],[1,5,9],[1,4,7],[2,5,8],[3,5,7],[3,6,9],[4,5,6],[7,8...
true
83b11ea25dc466e9d4ede5d5af6464f70f4452a1
JavaScript
columns-and-rogues/columns-and-rogues
/public/auth-page/AuthPageApp.js
UTF-8
4,398
2.546875
3
[ "WTFPL" ]
permissive
import Component from '../Component.js'; import UserSignIn from './UserSignIn.js'; import UserSignUp from './UserSignUp.js'; import Header from '../common/Header.js'; import newChar from '../util/newCharacter.js'; import { signIn, signUp, addCharacter, getCharacterById } from '../services/game-api.js'; import Footer fr...
true
1239f0442907d12b9587f7925f8b21eceff1b062
JavaScript
ruhancomh/feracode-backend-test
/api/app/controllers/product_purchases.js
UTF-8
790
2.515625
3
[]
no_license
"use strict" import ProductPurchasesService from "../services/product_purchases" class ProductsController { constructor () { this.service = new ProductPurchasesService() } async create (req, res, next) { try{ let result = await this.service.create(req.body) return res.status(201).send({ ...
true
6742ef36308a4d8f59e08294fc539b3ba9f059fb
JavaScript
lebab/lebab
/src/transform/class/inheritance/Prototypal.js
UTF-8
3,988
3.015625
3
[ "MIT" ]
permissive
import {matches, matchesLength, extractAny} from 'f-matches'; /** * Processes nodes to detect super classes and return information for later * transformation. * * Detects: * * Class1.prototype = Object.create(Class2.prototype); * * or: * * Class1.prototype = new Class2(); * * optionally followed by: *...
true
eb85184fe6c45fddb9beab78355328170aa90837
JavaScript
kule2018/cow
/js/index.js
UTF-8
1,572
2.53125
3
[]
no_license
var $ = require('./zepto'); var dom = require('./common/dom'); var url = require('./common/url'); var com = require('./common/const'); Zepto(function() { /** * 预加载图片 */ $("img[data-src]").each(function () { var $this = $(this); var src = $this.data('src'); dom.preI...
true
72cbc32a24396b0bc89379297faadfa3920ae0d9
JavaScript
ahomu/webrtc-sandbox
/public/client.js
UTF-8
3,740
2.53125
3
[]
no_license
(function(win, doc, nav) { console.log('ws://'+location.hostname+':3000'); doc.addEventListener('DOMContentLoaded', function() { var startBtn = doc.getElementById('startCamera'), localVideo = doc.getElementById('localVideo'), remoteVideo = doc.getElementById('remoteVideo'), enterRoo...
true
6cb381e87d14322bf90b590cc8019b21f3b700f5
JavaScript
Jonchu650/Overlord-Bot
/commands/Moderation/ban.js
UTF-8
1,233
2.796875
3
[]
no_license
const { MessageEmbed } = require('discord.js'); module.exports = { name: 'ban', description: "Ban a user from the server!", usage: "<user> [reason]", category: "Moderation", args: true, execute(message, args) { if (!message.member.hasPermission("BAN_MEMBERS")) return message.chan...
true
38473b9aa2aff083e8f4785dbee0ffed0fc837a3
JavaScript
Haseeba393/songFinder
/application/screens/SongResult.js
UTF-8
3,838
2.546875
3
[]
no_license
import React, {useState, useEffect} from 'react'; import { StyleSheet, View, Image, ScrollView, Text, Linking } from 'react-native'; import { Spinner } from '../components/elements'; import { Colors } from '../resources'; const rapiApiKey = 'Input your API key here'; function SongResult({rou...
true
5a8acce44b5bb0c11366948acdf324607a9ca0d7
JavaScript
oct16/leetcode-javascript
/172.factorial-trailing-zeroes.js
UTF-8
344
3.078125
3
[ "MIT" ]
permissive
/* * @lc app=leetcode id=172 lang=javascript * * [172] Factorial Trailing Zeroes */ // @lc code=start /** * @param {number} n * @return {number} */ var trailingZeroes = function(n) { let nCount = 0 while (n) { const res = Math.floor(n / 5) nCount += res n = res } return n...
true
75138ff95eb704491e8c863142ab62bc275d9ca9
JavaScript
ProjectGinsberg/dashboard-open
/src/js/modules/tags.js
UTF-8
2,920
2.78125
3
[ "MIT" ]
permissive
/** * Module to supplement the tags API. Not sure this is actually used anywhere! * Status: EXPERIMENTAL! */ angular.module('gb.tags', ['gb.resources']) .factory('TagsService', ['$log', 'Events', 'UserService', function($log, Events, UserService) { // Tag -> average mood // Knitting tags with other data series....
true
a86e1c1227436f06120cd521c8500f50f302e4ad
JavaScript
commonode/algoExperts
/HARD/NumbersInPI/numbersInPi.js
UTF-8
2,176
4.09375
4
[]
no_license
// Numbers in Pi // Given a string representation of the first n digits of Pi and a list of your favorite numbers (all positive integers in string format), write a function that returns the smallest number of spaces that need to be added to the n digits of Pi such that all resulting numbers are found in the list of fa...
true
763390d591a7f8ca5437473d177d473ccf861d05
JavaScript
shawnbaughcodes/baugh_creative
/static/js/script.js
UTF-8
2,641
2.921875
3
[]
no_license
console.log('Loding....'); $(document).ready(function() { // Stuff to do as soon as the DOM is ready $("#about").click(function(){ about_slide(); }); $("#projects").click(function(){ projects_slide(); }); $('#contact').click(function() { contact_slide(); })...
true
9e6c548c62146a82b0a9cdfa3fc8fba3c16ac062
JavaScript
rgoc123/lc_problems
/medium/list/list_remove_nth_node_from_end.js
UTF-8
2,225
3.59375
4
[]
no_license
/** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } */ /** * @param {ListNode} head * @param {number} n * @return {ListNode} */ var removeNthFromEnd = function(head, n) { // Notes ...
true
a9a70bb857662fc6c72c4d981cd9cf54b2729ee8
JavaScript
PrincipleOrganization/kernel-docker-manager
/src/client/utils/auth/index.js
UTF-8
1,393
2.875
3
[ "MIT" ]
permissive
/* eslint-disable no-undef */ class Auth { constructor() { this.tokenKey = 'token'; this.userNameKey = 'username'; this.userIdKey = 'userId'; this.userRoleKey = 'userRole'; this.userSlugKey = 'userSlug'; } // TOKEN getRoles() { return { ADMIN: 'admin', CHANGE: 'change', ...
true
a04bcc78e38da0a6276f4032160700d47619d011
JavaScript
sprin191/prime_prestudy_01
/script.js
UTF-8
111
2.75
3
[]
no_license
function checkUp(check) { console.log("Hey, this " + check); return "Hey, this " + check; } checkUp("works!");
true
17ea2a96ed30fbb4b572fc5ff58f878ffc6b8dd0
JavaScript
ProGloD/JS
/exercises/JS_temtamen_Yaroslav/2/script.js
UTF-8
300
3.4375
3
[]
no_license
/* Implement your solution here */ let container = document.querySelector(".container"); let buttons = document.querySelectorAll("button"); for (let button of buttons) { button.addEventListener("click", function(e) { container.style.backgroundColor = e.target.textContent.toLowerCase(); }); }
true
682ba50b4d2bacaa139b9d0c8a60b43500033701
JavaScript
Abdelrahman-Mahmoud-Dev/small-project-and-tricks-Practice-JS
/Oninput with Textarea/js/custom.js
UTF-8
327
3.03125
3
[]
no_license
let count = document.getElementById("count"), txtarea = document.getElementById("text"), maxLength = txtarea.getAttribute("maxlength"); txtarea.oninput = function(){ count.innerHTML = maxLength - this.value.length; if(count.innerHTML == 0){ count.classList.add("zero") }else{ count.classList.remove("zero") ...
true
899a72b3fa50c01fc42a56fa39c4b57e1c36a7b4
JavaScript
jackjury/hitcounter
/public/sketch.js
UTF-8
675
3.359375
3
[]
no_license
let width = 500; let height = 72; let count; let digits = 7; function preload() { count = loadStrings("count.txt"); } function setup() { count = count[0].split("").map((x) => parseInt(x)); while (count.length < digits) { let zero = 0; count.unshift(zero); } console.log(count); let canvas = createC...
true
d63f0bad7bf2c7298a500ccf633ce2a001cf7266
JavaScript
NguyenSonArsenal/on-tap-php
/javascript/challenge2_check_key_word/helper.js
UTF-8
776
3.46875
3
[]
no_license
function readTextFile(file) { var rawFile = new XMLHttpRequest(); rawFile.open("GET", file, false); rawFile.onreadystatechange = function () { if(rawFile.readyState === 4) { if(rawFile.status === 200 || rawFile.status == 0) { var allText = rawFile....
true
b1809aad0f005869259fbaa38c244c37d696cfe6
JavaScript
dmoore092/shortstop
/assets/javascript/checkMyInfo.js
UTF-8
259
2.53125
3
[ "MIT" ]
permissive
//alert('Ping'); function checkMyInfo(field) { //alert('Ping'); switch(expression) { case x: // code block break; case y: // code block break; default: // code block } };
true
f78ac6cfc8021643acd233cfd7b94ca58ac1aad9
JavaScript
zachvehlert/JasmineExercise
/calculator.js
UTF-8
2,071
3.640625
4
[]
no_license
window.addEventListener('DOMContentLoaded', function() { const form = document.getElementById("calc-form"); if (form) { setupIntialValues(); form.addEventListener("submit", function(e) { e.preventDefault(); update(); }); } }); function getCurrentUIValues() { return { amount: +(docum...
true
6276c50c783bb8cea2deba65bba2ecca59dd2e50
JavaScript
StephanK9/word-puzzle
/js/scripts.js
UTF-8
436
3.015625
3
[ "MIT" ]
permissive
$(document).ready(function() { $("#blanks form").submit(function(event) { event.preventDefault(); var vowels = ('aeiou'); var sentence = $('input#person1').val(); for (var i = 0; i < sentence.length; i++) { if (vowels.indexOf(sentence[i]) > -1) { sentence = sentence.replace(sentence[i], "-");...
true
1474c85423d2360a375db061ed95b83643850883
JavaScript
xiaomingbp/module
/20200206上/排序/js/list.js
UTF-8
1,024
3.125
3
[]
no_license
define(function(){ function List(obj){ /* data box */ Object.assign(this,obj); this.init(); } List.prototype = { constructor:List, init(){ this.render(); this.bindEvent(); }, sort(attr){ this.data.sort(function(a,b){ if(a[attr] < b[attr]){ return -1; } if(a[attr] > b...
true
c21319cb969877a0843700ce5da4640a07a9751e
JavaScript
Berlinetta/react-hooks-demo
/src/components/useToggle/index.js
UTF-8
430
2.625
3
[]
no_license
import React from "react"; import { useToggle } from "ahooks"; export default function YourFunctionComponent() { const [ state, { toggle } ] = useToggle(); const onButtonClick = () => { toggle(); }; return ( <div> <p>Current Boolean: {String(state)}</p> <p> ...
true
215b5448b7e4dc8ed3c27f43d4d427d475ccf2e1
JavaScript
Krafalski/GA-NYC-Bowie
/w07/d04/homework/gifbomb/public/js/app.js
UTF-8
1,136
2.84375
3
[ "MIT" ]
permissive
//alert ('you did it! JS connected! So rad!'); $(document).ready(function(){ $('#random').on('click', function (event){ event.preventDefault(); var $ul = $('#showGifs'); $.get('/random').done(function(data){ console.log(data['data']['image_original_url']); showGifs($ul, data['data']['image_original_url...
true
e263d7982fc71f71bddd220b406b43d4cf329815
JavaScript
jaojeda/witcher-api
/lib/services/seed-data.js
UTF-8
1,527
2.84375
3
[]
no_license
// const { scrapeCharacterInfo } = require('./character-page'); const { scrapeNames } = require('./character-names'); const { scrapeCharacterInfo } = require('./character-page'); const { client } = require('../utils/connect'); const queries = [ 'The_Witcher_characters', 'The_Last_Wish_characters', 'The_Witcher_2...
true
211736f032178ab76ee93beaabee6239529f7a54
JavaScript
zankarkhandale/Day1-14-july-Let-s-Upgrade-Assignments
/day1js/day1 LU differentiate/boolay.js
UTF-8
238
3.6875
4
[]
no_license
//Let { let name="Naruto Uzumaki"; name="Killua Zoldyack"; console.log("Using Let:", name); } console.log(name); //const const country="Incredible India"; console.log(country); //var var name1="Naruto Uzumaki"; console .log(name1);
true
b79c6314cc04db4e6df96c4648681889d627c8e7
JavaScript
Aman-Kumar1/game
/4 Hangman/Scripts/script.js
UTF-8
2,103
3.703125
4
[]
no_license
var language = ["hindi","english","french","russian","arabic","spanish","portuguese","japanese","korean","italian"] let answer = ''; let maxwrong = 6; let mistakes = 0; let guesses = []; let wordstatus = null; function randomword(){ answer = language[Math.floor(Math.random() * language.length)]; } // make but...
true
3ee6b8b347365e147752974d26af6204fd0ff44b
JavaScript
w11010101/smartcampus
/content/custom/js/campusCard.js
UTF-8
1,390
2.859375
3
[]
no_license
// 校园卡对象 var campus = function(){ var html = []; var that = this; var obj = {} // 弹窗层 this.popup = function(arr,callback){ html.push('<div class="camput-popup smart-popup"><ul>'); for(var i in arr){ var val = typeof arr[i] == "string"?arr[i]:arr[i].name; var key = typeof arr[i] == "string"?arr[i]:arr[i]....
true
bdff8bff8df725f10f6e278c1ba38e0b5f7b7c70
JavaScript
Scandit/datacapture-cordova-samples
/IdCaptureSimpleSample/template_src/www/index.js
UTF-8
5,218
2.515625
3
[]
no_license
document.addEventListener('deviceready', () => { // Create data capture context using your license key. const context = Scandit.DataCaptureContext.forLicenseKey('-- ENTER YOUR SCANDIT LICENSE KEY HERE --'); // Use the world-facing (back) camera and set it as the frame source of the context. The camera is off by ...
true
24b45f437086677c02fe950a886e9f5c5e5e9194
JavaScript
shikakker/Kruzki
/js/common.js
UTF-8
1,833
2.53125
3
[]
no_license
$(document).ready(function(){ $('.hamburger').click(function(){ $(this).toggleClass('active-burger'); $('.navbar nav').slideToggle(); $('body').toggleClass('menu-active'); }); // tabbed content // http://www.entheosweb.com/tutorials/css/tabs.asp $(".tab_content").hide(); $(".tab_content:first").show();...
true
9cb518ef170189985b4a68d033a0f6b52b95be87
JavaScript
providenetwork/HNScan
/src/handlers/names.js
UTF-8
1,217
2.625
3
[ "MIT" ]
permissive
const { getClient } = require("../util/clients.js"); async function namesHandler(request, h) { let amount; let page; const client = getClient(); if (request.query.amt) { amount = parseInt(request.query.amt); } else { amount = 25; } if (request.query.p) { page = parseInt(request.query.p); ...
true
20f765bf91f11552bc94d0e4f4e98b40b187d236
JavaScript
mruzova/TIN
/lab04/4g.js
UTF-8
140
2.96875
3
[]
no_license
function defineType(arg) { return (Array.isArray(arg)) ? "array" : typeof arg; } var arr = [1, 2, 3, 4]; console.log(defineType(arr));
true
99f9309d22684471de2189c9b5e58a83404e0c19
JavaScript
JobZeng/day-day-up
/leetcode/day01/merge-array.js
UTF-8
615
3.5
4
[ "MIT" ]
permissive
// 双指针 const merge1 = function (nums1, m, nums2, n) { let i = m - 1; let j = n - 1; let k = m + n - 1; while (i >= 0 && j >= 0) { // nums1[i] > nums2[j] if(nums1[i] >= nums2[j]) { nums1[k] = nums1[i]; i--; k--; } else { nums1[k] = nums2[j]; j--; k--; } } ...
true
bf1164446000f2fc1545cd47f0f9950e0333c0cb
JavaScript
twodee/twoville
/src/interval.js
UTF-8
3,997
2.75
3
[]
no_license
import { Expression, ExpressionInteger, ExpressionVector, } from './ast.js'; import { Vector3Animator, Vector2Animator, NumberAnimator, } from './animator.js'; import { typesToSeries, LocatedException, MessagedException, } from "./common.js"; export class Interval { constructor(fromTime, fromValu...
true
efcaa3cc9b44bd474cc4b75756c4289c42ff9c3b
JavaScript
Binhhp/picture-engineer
/PictureEngineer.Core/ClientApp/src/utils/round-number/roundNumberScale.js
UTF-8
447
2.78125
3
[]
no_license
const roundNumberScale = (num, scale) => { if(!("" + num).includes("e")) { return +(Math.round(num + "e+" + scale) + "e-" + scale); } else { var arr = ("" + num).split("e"); var sig = "" if(+arr[1] + scale > 0) { sig = "+"; } var i = +arr[0] + "e" + sig + (+arr[1] ...
true
1366fcc36b0a9336c24615250fa26dac4f93fba7
JavaScript
jokernakartama/klustrone
/src/api/parseLocation.js
UTF-8
597
2.765625
3
[]
no_license
export const TRASH_URL_IDENTIFIER = 'trash' export default function (location) { if (typeof location === 'string') { // remove a slash at the begining const locationData = location.slice(1).split(/\/(.*)/, 2) const serviceData = locationData[0].split(':', 2) const path = locationData[1] || '' var...
true
7b82281b2ffa6a947f0ae556e78ce0a2f9e143cb
JavaScript
foodbodidev/foodbodi-server
/src/server/controllers/search.js
UTF-8
5,510
2.59375
3
[]
no_license
const ErrorHandler = require("../utils/response_handler"); const ErrorCodes = require("../utils/error_codes"); const firestoreFactory = require("../environments/firestore_factory"); const firestore = firestoreFactory(); let Catalog = require("../models/catalog"); let Stemmer = require("../utils/stemming"); let CatalogD...
true
7bfe0baab767a92f17ba1a772601d767a3e79243
JavaScript
markusdeli/Calori-the-perfect-Calorie-Counter
/app/resources/js/components/dash/SportAdder.jsx
UTF-8
5,721
2.71875
3
[]
no_license
/* eslint-env es11 */ import React, { Component } from "react"; import { Button, Card, CardActions, CardContent, MenuItem, Typography, } from "@material-ui/core"; import AppSelect from "../AppSelect"; import AppTextField from "../AppTextField"; import SportRepository from "../../data/SportRepo...
true
b516f85b7dfec35459330fcff938252236e6f2a9
JavaScript
jr184/Projects
/South_America/Includes/CMScene.js
UTF-8
30,821
2.734375
3
[]
no_license
//****************************************************************** // CMScene object // // GetView(ViewIndex); // GetCanvasMap(); // //****************************************************************** //****************************************************************** // definitions //******************...
true
8ae423c9e7b79f3eee596208d7d62cc7d9a9dada
JavaScript
duchuy05/js2021
/JavaScript/function/main.js
UTF-8
1,140
3.390625
3
[]
no_license
const prompt = require('prompt-sync')(); var fname = prompt('Enter your first name: '); var lname = prompt('Enter your last name: '); console.log("Your full name is",fname,lname); var languages = [ 'Javascript', 'Python', 'C++', 'PHP' ] var result = languages[languages.length -1] languages.splice(...
true
325ae6c31fbdbbb673d03217623ca2e86e8a5741
JavaScript
joecosta117/algos
/str-algos/bubble-search.js
UTF-8
320
3.703125
4
[]
no_license
function bubbleSort(array) { let swaps = true while (swaps) { swaps = false for (let i = 0; i < array.length; i++) { let curr = array[i] let next = array[i + 1] if (curr > next) { array[i] = next array[i + 1] = curr swaps = true } } } return array }
true
dd05cc2eb3461754bc70128a5c462b8f04863a2b
JavaScript
pablog22/food_beverage_orders
/misc/backup/setBeverageOrderToInDelivery.js
UTF-8
1,619
2.75
3
[]
no_license
// ORDER_STATUS_IN_PROGRESS => ORDER_STATUS_IN_DELIVERY // Takes one order and sets it to be processed. // If one order is found and its status is changed, and a 202 status is returned to the client. // If no open order is found a 412 status is returned to the client. // Object retuned by mongodb: // http://mongodb.git...
true
87abf79bb7aa79d158bf37f15e538a90aa5815a6
JavaScript
allenalmario/webFundamentals
/JavaScript/arraysAlgo.js
UTF-8
347
3.90625
4
[]
no_license
var testArr = [6, 3, 5, 1, 2, 4] // Challenge 1: Print Values and Sum var sum = 0; for (var i = 0; i < testArr.length; i++) { sum = sum + testArr[i]; console.log("Num: " + testArr[i] + " Sum: " + sum) } // Challenge 2: Value * Position for (var i = 0; i < testArr.length; i++) { testArr[i] = testArr[i] *...
true
312c0f8c36dd224879213d01e6fac9529457087e
JavaScript
Mamadou9094/loopstudios-landing-page
/script.js
UTF-8
532
2.5625
3
[]
no_license
const images = ["./images/desktop/image-deep-earth.jpg", "./images/desktop/image-night-arcade.jpg", "./images/desktop/image-soccer-team.jpg", "./images/desktop/image-grid.jpg","./images/desktop/image-from-above.jpg", "./images/desktop/image-pocket-borealis.jpg", "./images/desktop/image-curiosity.jpg", "./images/desktop...
true
41e76527933e64639db72b4294ddbdd17a47be97
JavaScript
Gtosta96/algorithms
/leet-code/21-merge-two-sorted-lists/answer.js
UTF-8
624
3.625
4
[]
no_license
/** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} l1 * @param {ListNode} l2 * @return {ListNode} */ var mergeTwoLists = function(l1, l2) { l1 = l1 || []; l2 = l2 || []; const result = []; const length = l1....
true
756be230e5cfa9a10f1319f4b2b549aef237649b
JavaScript
uesteibar/Ironhack-week-3
/3-wednesday/4-game-of-thrones/episode-actions.js
UTF-8
1,291
2.828125
3
[]
no_license
var episodeFormatter = require('./episode-formatter'); var actions = { print: function(err, episodes) { episodes.sort(function(a, b) { return parseInt(a.episode_number) - parseInt(b.episode_number); }).forEach(function(episode) { console.log(episodeFormatter.format(episode)); }); }, pri...
true
f7655176777a55a0299969d1a273b8f451ee50e5
JavaScript
Wenodh/capstone-1
/src/utils/Common.js
UTF-8
1,690
2.578125
3
[]
no_license
// export const getUserNewTab =() =>{ // const userStr1= localStorage.getItem("user1") // if(userStr1) // {return JSON.parse(userStr1);} // else // {return null;} // } export const getUser =() =>{ const userStr=localStorage.getItem("user") if(userStr) {return JSON.parse(userStr);} else ...
true
ccfa0cb6a6f908e04684ad6ce3411037242fd139
JavaScript
xdanradu/word-compression
/lib/lib.js
UTF-8
1,633
2.8125
3
[]
no_license
const chalk = require('chalk'); const fs = require('fs'); const lib = require('bits-utils'); function loadWords(filename) { const input = fs.readFileSync(filename, { encoding: 'utf8'}); let words = input.split('\r\n'); words.push(' '); words.push('\r\n'); return words; } function getCodes(words) { let co...
true
d6729a65a85ddfcbe150a7c7c97ba1bd2a31dab9
JavaScript
vinwatanabe/portfolio_2016
/js/parallax-mouse.js
UTF-8
1,874
2.71875
3
[]
no_license
$(document).ready(function(){ // THUMB RIGHT MOUSE MOVE $(window).mousemove(function(e){ var x = (e.pageX * 1 / 70); var y = (e.pageY * 1 / 70); $('.thumb-right').css({'transform':'translate(' + x + 'px, ' + y +'px)'}); $('.thumb-right').css({'-webkit-transform':'translate(' + x + 'px, ' + y +'px)'}); $('....
true
849093a8c69cd566c38ae7085e6a79ebf9c34c9f
JavaScript
Sonawap/Worker-salary-with-javascript
/js/app.js
UTF-8
1,257
2.828125
3
[]
no_license
new Vue({ el:'#vue-app', data:{ /////assigning default values to data hours:0, extrahours:0, price:1000, extraPrice: 200, earn: 0, xearn : 0, tearn: 0, error: false }, methods:{ calculateSalary(){ // Calculate ...
true
a0c310935b7b039fcf1b1445af9dcbadf6a90d54
JavaScript
Divyalok123/WebTech-Class
/hw/Assignment1/public/js/modelToggler.js
UTF-8
1,039
2.609375
3
[]
no_license
var pubButtons = document.getElementsByClassName('publications'); var applyButtons = document.getElementsByClassName('apply'); var pubModal = document.getElementById('pub_modal'); var applyModel = document.getElementById('apply_modal'); var pubClose = document.getElementById('close_pub_modal'); var applyClose = documen...
true
d02506f4e7679aed9543a2eb8c75c19934076bb7
JavaScript
niallryan/ClientSideProject
/scripts/cspswitcher.js
UTF-8
2,610
2.921875
3
[ "MIT" ]
permissive
var familytreeStyleLink, bearleaderStyleLink; familytreeStyleLink = document.getElementById("familytree"); bearleaderStyleLink = document.getElementById("bearleader"); function setActiveStyleSheet (styleId) { var i = 0; var linkItem, linkArray; linkArray = document.getElementsByTagName("link"); for ( i = 0...
true
88a65c66353d1d56f10d52b8d506e2c8d221c18c
JavaScript
Gdrake235/madlibs
/cypress/integration/stories_spec.js
UTF-8
728
2.53125
3
[]
no_license
describe("Stories", function() { it('allow user to choose a title', function(){ cy.visit('/stories'); cy.get('.title').contains('First Story'); }); it('allows user to create a story', function(){ cy.visit('/stories'); cy.contains('First Story').click(); cy.get('body').contains('fill out the ...
true
0ae58e0cb6eb4814083e294fc1a4a986cea08646
JavaScript
nickwagner6/Wagner-part-two
/js/script.js
UTF-8
737
4.1875
4
[]
no_license
var petName = prompt("What is your pets name?"); var energy = 0; var happiness = 0; for (var i = 0; i < 6; i++) { // i is equal to 0, as long as i is less than 6, run again var answer = prompt("feed, pet, walk"); if (answer == "walk" && energy == 0) { alert("Not enough energy to enjoy a walk"); } if (answ...
true
0b073fe76bcf0dc367b4691f09986e200cbf25e9
JavaScript
vvvk-gh/react
/intro/basic-app/src/LifecycleA.js
UTF-8
1,210
2.703125
3
[]
no_license
import React, { Component } from 'react'; import LifecycleB from './LifecycleB' class LifecycleA extends Component { constructor(props) { super(props); this.state = { value: 'Default state', }; console.log('LifeCycle A constructor'); } changeHandler = () => { this.setState({value:'Cha...
true
be84d99980327b0d08acdffbb7a7f050ea5f5ca2
JavaScript
Eric-Patterson/Expense-Tracker
/src/components/UI/Card.js
UTF-8
503
2.5625
3
[]
no_license
//this allows us to replace a div with a re-usable card component //We are using this in expenseItem.js and Expeses.js import React from "react"; import "./Card.css"; const Card = (props) => { // children is a reserved property // allows you to wrap other Classes such as Card wrapping ExpenseDate // any value ...
true
14f9c62a9a0f3fb126316ef41808281dcdfd4e2a
JavaScript
lirongrong/H5-Vue-Insurance
/src/utils/filters.js
UTF-8
2,371
2.921875
3
[]
no_license
/* 过滤器 */ const Fen2Yuan = (price,num) => { if ( typeof price !== "number" || isNaN( price ) ) return null; if (!num ) return ( price / 100 ); return ( price / 100 ).toFixed( num ); }; //封装最小值到最大值按步数遍历出的值 const MinToMax = (min,max,step) => { let length = (max-min)/step; let begin = ...
true
a8353a2631349338a0176a4bdabb48a2115fc799
JavaScript
ederml/tp-javascript
/script/eder-main.js
UTF-8
1,318
2.671875
3
[ "MIT" ]
permissive
$(function(){ var i=1; for(var b=1;b<=$(".fadeslider .slide").length;b++){ $(".slidelist").append("<div></div>") } $(".slidelist div:nth-child(1)").addClass("active"); function slider(){ var l = $(".fadeslider .slide").length; if(i==l){i=0;} $...
true
85f38552d1926e98a1a38b3eda0a25a2ac033c77
JavaScript
AlbertYu8467/react-jianshu
/todolist/src/store/sagas.js
UTF-8
526
2.515625
3
[]
no_license
import { put, takeEvery } from 'redux-saga/effects' import { GET_INIT_LIST} from './actionType'; import { initListAction } from './actionCreator'; function getData(){ return new Promise((resolve) => { setTimeout(() => { const data = [1,2,3] resolve(data) }, 2000) }) } function* getInitList() {...
true
e1062155cf14f94afe550011e83e5917d1a7f583
JavaScript
owenroberts/mmp310
/examples/20s/characters/sketch.js
UTF-8
785
3.828125
4
[]
no_license
/* characters sketch 1.27.2020 */ // loading graphics var jerry; // var declaration var jenny; /* runs before setup when preload is done, setup gets called */ function preload() { jerry = loadImage('jerry.png'); jenny = loadImage('jenny.png'); } // location variables var jerryX = 100; var jerryY = 200; va...
true
2b76f93a0a1d6392c6a2604b184d05a53f400606
JavaScript
ayushakya2000/Calc
/cal.test.js
UTF-8
319
2.703125
3
[]
no_license
const objk = require('./cal'); test('1 + 2 to equal 3', () => { expect(objk.sum(1, 2)).toBe(3); }); test('3 - 2 to equal 1', () => { expect(objk.sub(3, 2)).toBe(1); }); test('1 * 3 to equal 3', () => { expect(objk.mul(1, 3)).toBe(3); }); test('4 / 2 to equal 2', () => { expect(objk.div(4, 2)).toBe(2); });
true
880652d7f2a2b56e66539a8d690777fc8e330b30
JavaScript
DonaldBrower/number-of-atoms
/number-of-atoms.js
UTF-8
5,610
3.015625
3
[]
no_license
"use strict"; var { isCap, isNumber, replace, tupleJoin, Group } = require("./utils"); module.exports = { numberOfAtoms: main, tokenizeAtoms }; // ******************* function main(formula) { var innerGroupContent = getInnerGroups(formula); var innerGroupContentExpanded = expandInnerGroups(innerGroupContent...
true
15cfd779aa543f910c1f8259f2bbb1d65d42999b
JavaScript
shravanz/JSExample
/seekAndDestroy.js
UTF-8
960
4.15625
4
[]
no_license
// SEEK & DESTROY // Remove from the array whatever is in the following arguments, return the leftover // values in the array //ex. seekAndDestroy([2,3,4,6,6,'hello'],2,6) ==> [3,4,'hello'] //Method 1 --> arguments, indexOf , filter function seekAndDestroy(arr) { const args = Array.from(arguments); // args ==> [ [...
true
72cedee5cb354fa2f63fbbf31a54a1b490f8bb0f
JavaScript
harrysolovay/state-mint
/src/utilities.js
UTF-8
1,300
2.515625
3
[ "MIT" ]
permissive
export const noop = () => {} export const IN_NATIVE = navigator && navigator.product === 'ReactNative' export const isClass = (InQuestion) => !!InQuestion.constructor export const isConfig = (inQuestion) => { if (typeof inQuestion !== 'object') { return false } for (let key in inQuestion) { if (in...
true
a831c18c43ff9966824c99715329979d15bc189e
JavaScript
jagger-u/IdeaHack
/static/js/helperFunc.js
UTF-8
3,193
3.28125
3
[]
no_license
function generateRandomId() { return `ITEM_${Math.random().toString().slice(2,10)}`; } function generateRandomInteger(a, b) { return Math.floor(Math.random() * b) + a; } function randomlyChooseOneElement(input_array) { return copy(input_array)[generateRandomInteger(0, input_array.length)]; } function shuff...
true
047ce6639a522398cefe553b75d9abde6c5b4b56
JavaScript
rolrodriguez/WDD330
/week06/js/Todos.js
UTF-8
7,440
3.390625
3
[]
no_license
/** * Todos.js * * Includes the definition of the todos class as well as * helper functions to provide to read/write using the * ls module. */ import ls from './ls.js'; import utilities from './utilities.js'; // The todoList object will hold the list of tasks let todoList = null; // Defining the constants, th...
true
a8dde13d89381ab8dc2ef10b843e721a7c182928
JavaScript
fed2310/vc-blog
/src/utils/tools/leadership/index.js
UTF-8
5,699
2.671875
3
[ "MIT" ]
permissive
export const places = ['Democratic', 'Transactional', 'Transformational', 'Laissez-faire', 'Coaching', 'Charismatic ', 'Servant', 'Bureaucratic', 'Autocratic']; export const mapResult = (answer, places, setResult, setResultIndex, setFormId) => { if(Object.values(answer)[1] == 'b1') { if(Object.values(answe...
true
dc31256cf99331b6e08fd749c06b070d5139af9c
JavaScript
MihA-aa/Diplom
/Course.WEB/Course.WEB/Scripts/Graphics/JS/Keyboard.js
UTF-8
279
2.515625
3
[ "MIT" ]
permissive
function Keyboard() { var handlers =[]; project.view.onKeyDown = function (event) { for(var i = 0; i < handlers.length; i++) { handlers[i](event); } }; this.addHandler = function(func) { handlers.push(func); } }
true
472392a467a1a75c1f5aa471f2083daea36360b8
JavaScript
pengteling/17-6
/html5/14_Worker、服务器推送、webSocket/demo_worker.js
UTF-8
109
2.671875
3
[]
no_license
var i = 0; setInterval(timedCount,1000); function timedCount() { i = i + 1; postMessage(i); }
true
f3d5108da0ce207ad5783624a1f04556ae840ba3
JavaScript
Michayla-C/Code-Quiz-MC
/script.js
UTF-8
1,027
3.859375
4
[]
no_license
var quizQuestions = [ { prompt: "HTML is a coding language used to make web pages \n (a) True \n (b) False", answer: "a" }, { prompt: "Which of the following HTML tags is used to insert a blank line? \n (a) <h2>\n(b) <p>\n(c) <br>\n(d) <a>", answer: "c" }, ...
true
3847223f0df9452746217e5bacfc5d13c21d5453
JavaScript
thaapontes/TombaLatas-First_Website
/Projeto2018_Django_ThabataPontes/connectedin/perfis/static/scripts/js/validar.js
UTF-8
693
3.4375
3
[]
no_license
function validaNome(nome){ if( nome.length > 30){ return false; }else if( nome.length == 0){ var nomeAnimal = "Desconhecido"; return nomeAnimal; }else{ return true; } } function validaLocal(local){ if( local.length < 5 || local.length > 50){ return...
true
d099cdc0c5bce600524e406af70c53fc0204a39d
JavaScript
izasorin/1313067-keksobooking-21
/js/page-toggle.js
UTF-8
1,580
2.609375
3
[]
no_license
'use strict'; (function () { const PIN_SIZE = { WIDTH: 62, HEIGHT: 84 }; const map = document.querySelector(`.map`); const mainForm = document.querySelector(`.ad-form`); const formElements = document.querySelectorAll(`.ad-form__element`); const mapFilters = document.querySelector(`.map__filters`);...
true
b8b5ff799667b5aa37208379009cc928a77f2f4a
JavaScript
DouglasMacKrell/Data-Structures-And-Algorithims
/Algorithims/LongestCommonPrefix.js
UTF-8
764
3.765625
4
[]
no_license
const input1 = [apple, apply, ape, at]; //HORIZONTAL METHOD // apple => appl => ap => a // apply ape at //VERTICAL METHOD => same speed/time complexity BEST best case scenario // apple // apply // ape // at => // a const longestCommonPrefix = (strs) => { // prefix = "" let prefix = ""; if (strs.lengt...
true
c99a0cc72ebf330e81a4d7f42a48d37047ff0076
JavaScript
ulul27/h8-p0-w3
/Exercises-6.js
UTF-8
575
4.21875
4
[]
no_license
function angkaPalindrome(num) { // you can only write your code here! while (true) { num++ var strNum = String(num) var string = '' for (let i = strNum.length - 1; i >= 0; i--) { string += strNum[i] } if (num == string) { return num ...
true
42616da0413811dfb83cf572dcee0a20d6b3a739
JavaScript
JVariance/serverless-invoices
/src/filters/currency.filter.js
UTF-8
413
3
3
[ "MIT" ]
permissive
export function formatCurrency(val, digits = 2) { if (val !== null) { let x = parseFloat(val); if (Number.isNaN(x)) { return ''; } const decimalLimiter = 10 ** digits; x = Math.round((x + Number.EPSILON) * decimalLimiter) / decimalLimiter; const parts = x.toFixed(digits).split('.'); ...
true
6fc53ef39e2afefcfdd2eff7720c331bc49ce23a
JavaScript
MrKelvic/github-repo-page-clone
/services/API.js
UTF-8
3,420
2.9375
3
[]
no_license
// API call function let Api=(url,method,body)=> { document.getElementById('loadStat').innerHTML=`Fetching Kelvic's github information...`; fetch(url, { headers:{ "Authorization":`bearer c3afae5bfc5a77a4af1ab0c99406c36d3b58e998` }, method:method, body: JSON.stringify(body) }...
true
fb4f9cee7a143fe0cda6a53bd24acd3f40e08451
JavaScript
ambeche/sssf-course-express-mongodb
/controllers/catController.js
UTF-8
2,075
2.671875
3
[ "MIT" ]
permissive
'use strict'; // catController const Cat = require('../models/catModel'); const fs = require('fs'); const createCat = async (req, res) => { const body = req.body; console.log(body); try { const imgData = () => { if (req.file) { return { data: fs.readFileSync(req.file.path), // reads image...
true
cb4b5c5a6e0abdd535aa2f09f6ce5d4b86ef5282
JavaScript
thomasvanmalderen/webtech_portfolio
/Webtech2/Advanced JS/todoApp/js/framework.js
UTF-8
3,686
3.59375
4
[]
no_license
/* ---------------------------------------- FRAMEWORK ---------------------------------- */ var WrapperElement = function(element) { // a wrapper element allow us to extend html dom functionality // without changing the behaviour of built-in elements // this contains the actual selection this.element ...
true
569c4ddccd544c7ce62d5d9c9a403370c7368a3a
JavaScript
vicks07/DataStructures
/HashTable.js
UTF-8
386
2.59375
3
[]
no_license
class HashTable { constructor(){ this.visited = {}; } add(url){ if(typeof(url)=='string'){ this.visited[url]==true?1:this.visited[url]+=1; } else if(typeof(url)=='object'){ url.forEach(doc=>{ this.visited[url]==true?1:this.visited[url]+=1; }); } } check(url){ ret...
true
d27fb0c9749ff36b1bec89a173214c6b21587479
JavaScript
alailsonko/trybe-exercises
/bloco_4/dia_4/exercise_1.js
UTF-8
280
2.640625
3
[]
no_license
let info = { personagem: "margarida", origem: "pato donald", nota: "namorada do personagem principal nos quadrinhos do pato donald" } console.log("bem-vinda", info.personagem) info.recorrente = "sim" console.log(info.recorrente) for ( const i in info ) { console.log(i) }
true
479f26893d85ad8f2cfbd1b7586715acaf06c874
JavaScript
crytpokeeper79/q3-labs
/PI3-labs/06. JS-Advanced-DOM-Manipulations-Lab-Resources/05. Mouse-Gradient/app.js
UTF-8
611
3.125
3
[]
no_license
function attachGradientEvents() { // Dom variables const box = document.getElementById('gradient'); document.body.addEventListener('mousemove', findPercent); } function findPercent(e) { if (e.target.id == 'gradient') { // box width const width = e.target.offsetWidth; ...
true
7d300d7ced9a6ed098f5f061310e9276e5a7c8a2
JavaScript
wushuo7/CSE330_Module5
/fall2017-module5-group-451802-452666/delete_event.js
UTF-8
1,382
2.75
3
[]
no_license
function delete_event(){ var event_name_delete = document.getElementById("event_name_delete").value; var xmlHttp = new XMLHttpRequest(); var dataString= "event_name_delete="+encodeURIComponent(event_name_delete)+ "&token="+encodeURIComponent(token)...
true
0cfdd345712505df22fbd65e6041a78124193a62
JavaScript
DavidJaimesDesign/FreeCodeCampBackend
/ex8.js
UTF-8
430
3.203125
3
[]
no_license
//It should write 2 lines to the console //one should be an int amount of characters recieved //the seond line should contain the entire string var http = require('http') var bl = require('bl') url = process.argv[2]; http.get(url, function(response) { response.setEncoding('utf8'); var string = undefined; respon...
true
c51b3b32ed97aa2408a329846b554fc474a37570
JavaScript
Doladev/TodoItemRestfulAPIApp
/ToDoItemRestfulAPIApp/wwwroot/js/site.js
UTF-8
4,161
3.046875
3
[]
no_license
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification // for details on configuring this project to bundle and minify static web assets. // Write your JavaScript code. const uri = 'api/TodoItems'; let todos = []; function getToDoItems() { document.getElementB...
true
7be2450bc5ba03c957d44483845aa99387dcd76f
JavaScript
OwlMan77/Schools-Explained
/client/src/Roman.js
UTF-8
1,992
3.78125
4
[]
no_license
import React, { Component } from 'react'; // create a function that will convert number into roman numerals function romanize (num) { if (!+num) //if not a number return false return false; else if (num < 100 && num > 0) { //turn the number into a string var digits = Stri...
true
58b58cf14a9301831b826008240e8d9c684c2042
JavaScript
ukarpenkov/JS
/Haverbeke _JavaScript/cycle120.js
UTF-8
352
3.21875
3
[]
no_license
let uslow = (i, num) => { while (i < num) { debugger i++ return num } if (i == num) { console.log('end') return false } } function cycle(u, t) { if (u == 10) { console.log(t++) } else if (false) { console.log('fff') } } console...
true
8b4267cf3df9daaa7f575a35e5cb75cf8594b674
JavaScript
musicking/switch-button
/source/jquery.switchbutton.js
UTF-8
4,051
2.640625
3
[]
no_license
;(function ($) { // 样式列表 var types = { inside: 1, slide: 1, dynamic: 1 }; // 事件列表 var events = { on: function () { return true; }, off: function () { return true; }, changed: function () { return tru...
true
1981a014bf98be000fa8e5caac81db0e796dc043
JavaScript
topological-reads/topological-reads
/data/threads.js
UTF-8
5,301
2.59375
3
[]
no_license
const { ObjectID } = require('mongodb'); const mongoCollections = require('../config/mongoCollections'); const users = require('./users'); const forums = mongoCollections.forums; const threads = mongoCollections.threads; module.exports = { async create(forum, op, initialComment) { if (!forum || !ObjectID.i...
true
8450c4e59791167379872912ed722534ef666d54
JavaScript
metadew/iesi-ui
/bin/consoleLogger.js
UTF-8
595
2.59375
3
[ "MIT" ]
permissive
const chalk = require('chalk'); const { log } = console; const BASIC_LOG_PREFIX = ' '; const emphasis = chalk.bold; const error = emphasis.red; const success = emphasis.green; const status = emphasis.yellow; module.exports = { styles: { emphasis, error, success, status, }, ...
true
c1abb2be38558aba95dc0f836961cbe414c5c1e3
JavaScript
ntregillus/expensify
/src/tests/actions/expenses.test.js
UTF-8
6,113
2.65625
3
[]
no_license
import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import {startAddExpense, addExpense, editExpense, removeExpense, setExpenses, startSetExpenses, startRemoveExpense, startEditExpense} from '../../actions/expenses'; import expenses from '../fixtures/expenses'; import database from '../....
true
0184eed9c44c2677ef2ae5a40f84319613b4792a
JavaScript
markdg/startup
/main.js
UTF-8
6,132
2.8125
3
[]
no_license
/* Main program ====Description==== App allows users to get their travel itineraries crowd rated. Growth is based on rapidly growing registered users, getting them to enter itineraries, and getting them to rate other users' itineraries. To this end, unregistered/not logged in visitors are shown only the top ...
true
ab074b51d7d010370507e60ebfb8a3331f5c22d5
JavaScript
OlivierMonkey/School-Projects
/Javascript-D01/ex_02/arrayIsEqual.js
UTF-8
313
3.890625
4
[]
no_license
//var a = [2, 2, 3]; //var b = [2, 2]; function arrayIsEqual(a, b) { i = 0; alen = a.length; blen = b.length; if (alen == blen) { while (i < alen) { if (a[i] != b[i]) return("False"); i++; } return("True"); } else return("False"); } console.log(arrayIsEqual(a, b));
true
5606358f1a5b732f04bbfa72c2593be49732301e
JavaScript
bpummill1/mongo-grump
/specificLogAxios.js
UTF-8
2,058
2.78125
3
[]
no_license
require('dotenv').load(); const axios = require('axios'); const prompt = require('prompt'); const AWS = require('aws-sdk'); const s3 = new AWS.S3({ accessKeyId: process.env.AWS_ACCESS_KEY, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY }); const mlabApiKey = process.env.MLAB_API_KEY; const serverName = pr...
true
ff22196f06b1c114c064dc919a4ff2ae84a360cc
JavaScript
maasa1221/keio_marine_web
/Marine.js
UTF-8
6,079
2.84375
3
[]
no_license
const lat = 35.300289; const lng = 139.481155; const api_json_data = []; const label = []; const wave_data = []; const water_data = []; const wind_data = []; const wind_dir = []; fetch(`https://api.stormglass.io/v1/weather/point?lat=${lat}&lng=${lng}`, { headers: { Authorization: "fa3595f6-3a9a-11ea-acb4-0...
true