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
9585b77d62ee3ba5cb8a52ff474ca8d599a5e6fe
JavaScript
name-already-taken/sports-website
/src/components/typing/typing.jsx
UTF-8
2,271
2.703125
3
[ "0BSD" ]
permissive
import React from "react"; import { css, keyframes } from "@emotion/react"; const caret = keyframes` 50% { color: transparent; } `; class Typing extends React.Component { constructor(props) { super(props); this.state = { index: 0, stoptime: 1000, forwardtime: 100, backwardtime: 30,...
true
422ba5e0fa1caf22ee435c41ca5d8fa416f6120a
JavaScript
Dzejolina/Zadatak-za-praksu-Devana-2
/controller.js
UTF-8
3,602
2.59375
3
[]
no_license
var ngApp = angular.module('devana-app',[]); ngApp.controller('appController', function ($scope) { var counter=1; $scope.folders = [ { "id": 0, "title": "root", "stage": 0, "show" : false } ]; $scope.files = []; $scope.folder_stage...
true
8ed4088c4125567ea0b8228f307083ea98b59243
JavaScript
posty-studio/kroket
/src/components/sassGenerator.js
UTF-8
3,914
2.515625
3
[ "MIT" ]
permissive
const chalk = require('chalk'); const fs = require('fs'); const shell = require('shelljs'); const path = require('path'); const convertJsToSass = require('../helpers/convertJsToSass'); const prettier = require('prettier'); const generateClasses = (utilities, targets, prefix = '') => { let response = ''; for (cons...
true
01aaa33e2e545acda740e58ec09058258b4ec83e
JavaScript
jordanalexis6/BagIt2.0
/controllers/api/currentList.js
UTF-8
1,981
2.65625
3
[ "MIT" ]
permissive
const router = require("express").Router(); var db = require("../../models"); // get route -> index router.get("/", function (req, res) { //TODO do things here for other routes }); // get route, edited to match sequelize router.get("/currentList", function (req, res) { // replace old function with sequelize function...
true
c1ac71d306b360408ce273a57022e94a440b9f6c
JavaScript
DRickRichard88/CodersLab-JS
/2.DOM/4.Eventy/js/zadanie_6.js
UTF-8
1,238
3.359375
3
[]
no_license
/** * Created by Jacek on 2016-01-12. */ //## Ćwiczenie 6 //Na stronie znajduje się jeden element ```div```. Napisz dla niego event, który będzie wypisywał położenie myszki w chwili, w której kursor znajduje się nad tym elementem. //Wyszukaj zarówno położenie myszki globalne (czyli odległość od górnego lewego rogu ok...
true
5daa13cf99e6176592d1d5e24ddb2d7d25eb2710
JavaScript
hsparfel/CompileJeux
/js/tictactoe/tictactoeIntroduction.js
UTF-8
9,191
2.953125
3
[ "MIT" ]
permissive
class Introduction { constructor() { this.joueur1 = ""; this.joueur2 = ""; this.difficulte=""; //this.joueurActif = 0; this._demarrer(); // this._afficherBoutonsNbJoueurs(); //this._afficherBoutonsChoixUnJoueur(); } _demarrer() { document.getE...
true
c95281caf561929613b5bb5da954950f4e94049e
JavaScript
daynedavis/P2PGM
/app/routes.js
UTF-8
6,945
2.828125
3
[]
no_license
var User = require('./models/user'); var Tag = require('./models/tag'); module.exports = function(app, passport) { // api =================================================================== // Users ----------------------------------------------------------------- // get all todos app.get('/api/user', funct...
true
164298bc4bad266b0204c6625cf8af212592ff1c
JavaScript
Kryztof55/inventario
/src/App.js
UTF-8
7,994
2.6875
3
[]
no_license
import React, {useState, useEffect} from 'react'; import Jumbotron from './components/atomos/jumbotron/jumbotron' import Button from './components/atomos/boton/boton' import Input from './components/atomos/input/input' import Modal from './components/organismos/modal/modal' import Alert from './components/moleculas/...
true
f4ee494ef560db1ac3c2e068700671066dca4d1b
JavaScript
strawbees/desktop-autoupdater
/compareVersions.js
UTF-8
3,255
2.8125
3
[ "MIT" ]
permissive
// compare semvers, from https://github.com/omichelsen/compare-versions/ /* The MIT License (MIT) Copyright (c) 2015-2017 Ole Michelsen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without res...
true
d912b951df5a245e6d95ffc9539bb1ae73f4a83c
JavaScript
Levidepsi/NODEJS
/server.js
UTF-8
2,462
2.65625
3
[]
no_license
const express = require('express'); const dotenv = require('dotenv') const morgan = require('morgan') const connectDB = require('./config/db') dotenv.config({path: './config/config.env'}) const bootcamps = require('./routes/bootcamps') // Connect to database connectDB(); const app = express(); // Body parser app....
true
9a6489d6c2926e251389b1ae10cbe39e8ae9289e
JavaScript
kkkkoyo/mytask
/dailyExport.js
UTF-8
638
3.28125
3
[ "MIT" ]
permissive
// /* 月曜日は新しいシートを作成 その後は、そのシートへ書き足していく 基本的に、logからコピーする。 */ function exportWeekly(){ var date = new Date(); var dayOfWeek = date.getDay(); var dayOfWeekStr = [ "日", "月", "火", "水", "木", "金", "土" ][dayOfWeek]; var sheetName = ""; if(dayOfWeek == 0) { sheetName = getAfterDay(-6) + "-" + getA...
true
bd279374ba130358caf31c671d88d057282f796e
JavaScript
lnongge/pinyougou-parent
/pinyougou-page-web/src/main/webapp/js/controller/itemController.js
UTF-8
2,039
2.734375
3
[]
no_license
app.controller('itemController',function($scope,$location){ //商品数据增/减 $scope.addNum=function(x){ $scope.num=$scope.num+x; if($scope.num<1){ $scope.num=1; } } //规格选择 $scope.specificationItems=[];//数组,用于包存用户选择的规格 $scope.selectSpecification=function (specName, specValue) { $scop...
true
9f254e0834e4a3910fbeeb2ed33bf8ea9f0ea8d5
JavaScript
rukhlin/navigator
/src/components/Places.js
UTF-8
2,675
2.625
3
[]
no_license
import React, {Component} from 'react'; import Place from './Place'; import Search from './Search'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; const reorder = (list, startIndex, endIndex) => { const result = Array.from(list); const [removed] = result.splice(startIndex, 1); ...
true
878477d3dae1e11b14c05ade0fd3a2594d11a658
JavaScript
achmadsetiadji/Tugas-ShowData-PHP-AJAX
/js/script.js
UTF-8
775
2.578125
3
[]
no_license
$(document).ready(function () { let table = $('#data').DataTable(); $('#data tbody').on('click', '#detail', function () { var current_row = $(this).parents('tr'); if (current_row.hasClass('child')) { current_row = current_row.prev(); } var data = table.row(current_ro...
true
08f4020c8e71f570838505cb71ec06e801b03118
JavaScript
meshdb/wikiboard
/http-server/server-ideas.js
UTF-8
1,124
3.015625
3
[]
no_license
'use strict' // Roughly follows the spirit of the git "smart" http transport... but without the shitty parts. // To get the list of refs, we support the "dumb" HTTP protocol GET $REPO/info/refs // Now instead of the ridiculous "smart" protocol & negotiation phase, we simply // combine what we "want" and what we "have"...
true
86f5f07859eef0ea75cb45d59a8c22250355afb8
JavaScript
viraj01032007/C-23-
/Pig.js
UTF-8
514
2.765625
3
[]
no_license
class Pig{ constructor(x,y){ var options={ 'restitution':1.0, 'friction' :0.3, 'density' :1.0 } this.body= Bodies.rectangle(x,y,40,40,options); World.add (world,this.body) this. width=40 this.height=40 } display(){ var pos = this...
true
38f495529f3e0218e9e7c32155638b3e40a0a722
JavaScript
RobotikUTT/eurobot-core
/src/communication/packets/SetOdometryPacket.js
UTF-8
1,063
2.859375
3
[]
no_license
import Packet from './Packet'; const PACKET_NUMBER = 9; const PACKET_LENGTH = 12; /** * Packet used to request the odometry state and store * the response packet */ class OdometryPacket extends Packet { /** * Constructor */ constructor(point = {x: 0, y: 0}, orientation = 0) { super(); ...
true
ca8cc0f6fb2dbd3327d365cc825eb92ab882240d
JavaScript
felixmariotto/felixmariotto.github.io
/tools/SpriteMixer.js
UTF-8
8,055
3.171875
3
[]
no_license
// Author: Felix Mariotto // Based on Lee Stemkoski's work who coded the core texture offsetting part : // http://stemkoski.github.io/Three.js/Texture-Animation.html function SpriteMixer() { var actionSprites = []; // Will store every new actionSprite. var listeners = []; // Will store the user callbacks to call ...
true
3fd3a2994d0167f21ad27e9d4da308e378f18447
JavaScript
kiba-zhao/brick-cluster
/lib/clusterManager.js
UTF-8
5,433
2.515625
3
[ "MIT" ]
permissive
/** * @fileOverview 集群 * @name clusterManager.js * @author kiba.x.zhao <kiba.rain@qq.com> * @license MIT */ 'use strict'; /** * @module */ const assert = require('assert'); const { PACKAGE_NAME, CLUSTER_NAME } = require('../lib/constants'); const cluster = require('cluster'); const { Worker } = require('cluster...
true
0db3ddbce6dbb6773c44b17ce2a37c0319645385
JavaScript
Paul271993/apiRestPeliculaMongo
/find.js
UTF-8
2,501
2.84375
3
[]
no_license
require("./connection"); //coneccion a base de datos const Pelicula = require("./pelicula"); // requerimos el modelo //Devuelve todas las peliculas almacenadas async function devuelvePeliculas(response) { //async function= funcion asincrona const pelicula = await Pelicula.find(); response.send(pelicula); ...
true
d06f02e77e451667b86e5674757f3413b0f59604
JavaScript
pattysc/knack_parsingCSV
/index.js
UTF-8
1,666
2.84375
3
[]
no_license
var fs = require('fs') var Column = require('./Column') var helpers = require('./dataHelpers') var csv = require('csv-parser') var columns = [] //create a Column per header read on the CSV file var createColumns = function(){ return new Promise(function(resolve, reject){ fs.createReadStream('test-contacts.csv')...
true
e145a4162b97104b8a69560c6a24f0271279a7fc
JavaScript
Rabollo/InteractiveMap
/Resources/functions/createRatingButtons.js
UTF-8
979
2.53125
3
[ "Apache-2.0" ]
permissive
// // createRatingButtons.js // InterActiveMap - Wroclaw // // Created by ISMAIL BULUC on 2015-05-27. // Copyright 2015 ISMAIL BULUC. All rights reserved. // function createRatingButtons(){ var detailsWindowRaitingButtonSet = Titanium.UI.createButtonBar({ labels:[{title:'Very Bad',image:"img/unlike.png"}...
true
12966715f05e1c30d123ec8eae172fd32d20f3fc
JavaScript
junzai97/foody_app_be
/src/repository/postLocation.repository.js
UTF-8
3,267
2.53125
3
[]
no_license
const { connection } = require("../config/mysql"); const LocationDTO = require("../dtos/locationDTO.dto"); const geohash = require("ngeohash"); const { createPlaceholderString, toMysqlTimestampString, } = require("../utils/mysql.utils"); const NearbyPrecision = require("../enums/nearbyPrecision.enum"); const { ...
true
52f2cb9bd308716ed34f7c7b2fc283218f61212c
JavaScript
LJiang219/react-box
/react-demos/code/src/components/CourseList/index_test.js
UTF-8
3,456
2.640625
3
[]
no_license
import React from 'react' import { courseList} from "../../datas/courses"; import "./tmp.css"; export default class CourseList extends React.Component { state = { checkedList: [], totalPrice: 0 } handelNum = (item, type) =>{ if(type === '+'){ item.cart++; this.setState({ c...
true
37e7c5932a48cefdc7f387fc3b80b5869a66d163
JavaScript
hash-it-tyagi/H-YShop
/scripts/productCrud/model/productOperations.js
UTF-8
2,124
2.828125
3
[]
no_license
const productOperations = { add(productObject,productCategory){ var productId = productObject.productId; var promise = firebase.database().ref("/products/"+productCategory+"/"+productId).set(productObject); promise.then(()=>console.log("Data is added into database")).catch(error=>console.lo...
true
0546bb9b417bb901236d08a4d9c803359edbabd8
JavaScript
jhulcher/breakout
/javascript/breakout.js
UTF-8
17,459
2.671875
3
[]
no_license
var noteMaker = document.createElement('script'); noteMaker.src = './javascript/music.js'; document.head.appendChild(noteMaker); var explode = document.createElement('script'); explode.src = './javascript/explode.js'; document.head.appendChild(explode); var particles = document.createElement('script'); particles.src ...
true
e0abb441c7aaf28a349aeb7e70a54d1bcee0f462
JavaScript
nearrjason/NearrProject_backend
/meiTaoMart/meitao-search-web/src/main/webapp/js/pagination.js
UTF-8
2,497
2.75
3
[ "MIT" ]
permissive
var pageNum; // 分页数量(一共有几页) var currentPage; // 当前分页 var showPageNum; // 分页展示数量 var keyword; function pageClick() { currentPage = $(this).html(); $('#pag').empty(); searchKeyAndPage(keyword, currentPage); //UpdatePages(); } function previousPage() { currentPage -= 1; $('#pag').empty(); searchKeyAndPage(keyword...
true
460e775c834906186301f6c7c6b2f131719d316d
JavaScript
MFD-Dev/codeExercises
/app.js
UTF-8
33,198
4.15625
4
[]
no_license
// If Else function START document.getElementById('resetBtn').style.display = 'none'; // document.getElementById('show').onclick = function (myFunc) { function myFunc() { let validTicket = true; let isCelebrity = true; let bribe = 9001; if ((isCelebrity == true && validTicket == true) || bribe > 9000)...
true
4391c1b4f19ac032eb76bcac94a18bfc9e0992da
JavaScript
mahaliagalleno/hdi
/js/js_functions.js
UTF-8
2,031
2.828125
3
[ "Apache-2.0" ]
permissive
/* function: check_required_fields params: required_fields (e.g required_fields = {'username': $('input[name=login]'), 'password' : $('input[name=password]')}); usage: to check if the fields have value hence will change the css style if the required field is null author: Justin ^_- */ function check_required_f...
true
585e85e7c0df70fcd4c8d1e9a6b6b59a0cf6aed1
JavaScript
LeoUral/tsmaster
/www/js/modal.js
UTF-8
2,639
2.90625
3
[]
no_license
'use strict'; //вызов модальных окон let telephone = document.querySelector('.tel__btn'); //кнопка - заказать звонок let sub_wind = document.querySelector('.substrate'); // окно - заказать звонок, подложка let windPhone = document.querySelector('.modal_phone'); // окно - заказать звонок let crossBtn = document.queryS...
true
06f46f3687ba0661c913878deb4d9814f55ae867
JavaScript
Stronhina/Way-of-the-Samurai
/src/redux/reducers/usersReducer.js
UTF-8
1,673
2.609375
3
[]
no_license
import { FOLLOW, UNFOLLOW, SET_USERS, SET_CURRENT_PAGE, SET_TOTAL_USERS_COUNT, TOGGLE_IS_FETCHING, TOGGLE_FOLLOWING_PROGRESS, } from '../actions/actionTypes'; const initialState = { users: [], pageSize: 5, totalItemsCount: 0, currentPage: 1, isFetching: false, followingInProgress: [], }; con...
true
f0234e9fc38a9133b7dd8b7e4e6f3ad15a3d21c9
JavaScript
ManspergerMichael/Algorithims
/Strings/IsPalendromeOrPermutation.js
UTF-8
2,434
4.5
4
[]
no_license
//A whtieboard test I was given. /*Write a function that takes a string that will test if the string is a palendrome or a permutation of a palendrome. Example inputs: MOM, MMO, OMO An edgecase I noticed is a string that has an un even number of letters. Example "bananab". Would strings that are not words count as pal...
true
2f207dc865a4465311ca1d263bbe57e2dfb1b2b2
JavaScript
bw07-flatiron/js-quotes-practice-dc-web-100818
/src/index.js
UTF-8
3,216
3.25
3
[]
no_license
// It might be a good idea to add event listener to make sure this file // only runs after the DOM has finshed loading. document.addEventListener("DOMContentLoaded", function () { getFetch() getForm().addEventListener('submit', function(e) { renderNew(e) }) }) /////////////Render Quotes/Get ////////////////...
true
c20c64932f550ecc9c53f4f4aab5e8b533886254
JavaScript
rafalmeidas/COD3R-web-moderno
/fundamentos/objeto.js
UTF-8
223
3.125
3
[]
no_license
const prod1 = {}; console.log(typeof prod1); prod1.nome = 'Celular Ultra Mega'; prod1.preco = 1.699; console.log(prod1); const prod2 = { nome: 'Camisa Polo Play', preco: 69.90, obj: { bla: 'T', } } console.log(prod2);
true
d587d8cea0d9821dc3d0ad80ec3c794aeceb8138
JavaScript
overtheleaves/pyxis
/src/object-group/base-object-group.js
UTF-8
1,332
2.53125
3
[]
no_license
/** * BaseObjectGroup */ var BaseObject = require('object/base-object'); var util = require('util'); var BaseObjectGroup = function (context, attrs) { BaseObject.call(this, context, attrs); this.children = []; this.id = util.generateObjectId(attrs.id); this.scrollableX = util.isNullOrUndefined(attrs.sc...
true
8344acd8c36c9cebc5a5558ef62bed255382c13c
JavaScript
mnauet/soft
/reactjs/hello-world/src/AppJoke.js
UTF-8
1,318
3
3
[]
no_license
import React from "react" import Joke from "./components/Joke" import jokesData from "./components/jokesData" function AppJoke() { const nums = [1,2,3,4,5,6,7,8,9] const doubled = nums.map(function(num){ return num *2 }) console.log (doubled) const jokeComponents = jokesData.map(joke =...
true
59fcd0055edd10635aa85b53100b75e3a51bea74
JavaScript
quid/refraction
/packages/react-date-picker/src/index.test.js
UTF-8
2,428
2.5625
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
/** * Copyright (c) Quid, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // @flow import * as React from 'react'; import { mount } from 'enzyme'; import { advanceTo } from 'jest-date-mock'; import Calendar from './'; import Cell...
true
3126fc2d487e65618874d86b3ab43483ce88b47c
JavaScript
AleksandarPotic/TripleAPizzeria
/public/user/assets/js/heder.js
UTF-8
1,552
2.953125
3
[ "MIT" ]
permissive
/** * Script for header.php file **/ var counter=0; var counter1=0; $(".dropdown").css('cursor', 'pointer'); function openMobileMenu(){ if(counter%2==0){ $(".dropdown-menu").css("display","block"); } else{ $(".dropdown-menu").css("display","none"); } counter++; } function openD...
true
5a29f83b03126790610bb2020e4e7d69c5c532c5
JavaScript
trox115/codingChallenges
/sortingSearching/searchRotatedArray.js
UTF-8
1,576
3.53125
4
[]
no_license
/** * @param {number[]} nums * @param {number} target * @return {number} */ function findPivot(array,middle){ if(array[middle]>array[middle+1]){ return middle; } else if(array[middle]<array[middle-1] ){ return findPivot(array,middle-1) } else if(...
true
8e74c0a6c84984a06742b981665b1c9e2e8a2508
JavaScript
jedrojas/InventoryApp
/components/TotalPrice.js
UTF-8
971
2.65625
3
[]
no_license
import React, { Component } from "react"; import { AppRegistry, Text, View, StyleSheet } from "react-native"; export default class TotalPrice extends Component { constructor() { super(); } calculatePrice() { let price = 0; const items = this.props.items.map(item => { price += item.count * item...
true
f9af014d0d12aa0a83047033151d13bea1172b2b
JavaScript
Emiltlarsen/Aarsproeve-Projekt
/ting.js
UTF-8
4,927
2.9375
3
[]
no_license
var BREDDE = 600; var HOJDE = 400; var time = 7; var minutter = 15; var sekunder = 0; var sekunder_alt = ((time * 60)*60 + minutter * 60 + sekunder)*10; var time0 = 0; var minutter0 = 0; var sekunder0 = 0; var start = sekunder_alt; var afspil = false; var lyd; var sluk; var snooze1; let slider; //var snoozefix =...
true
1ed7db3fb050497dd0307866b20a6f2b43cfcc65
JavaScript
robashton/layers
/components/particles.js
UTF-8
3,822
2.609375
3
[ "MITNFA", "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
define(['../scene/entity'], function(Entity) { return function(depth, config) { Entity.call(this); var self = this; var scene = null; var time = 0; var particles = {}; var layer = null; self.id = function() { return "particle-system-" + depth; } self.tick = function() { time++; ...
true
6b12a047b2bb00708b3c2f5b8365f56abe5905dc
JavaScript
Amos47/Comp3008-Parse-Data
/parser.js
UTF-8
736
2.65625
3
[]
no_license
var csv = require("fast-csv"); var fs = require("fs"); var EventTracker = require('./EventTracker'); // command line arguments csv from and too var args = process.argv.slice(2); if(args.length < 2){ console.log("Missing arguements. Must be run with args: {Input CSV} {Output CSV}"); process.exit(0); } var csvInputF...
true
826b5932873568360b69b5dfb6a23ebbbd61c874
JavaScript
dmvstar/ugb-vuejs-meest
/src/bankid/func/translit-maps.js
UTF-8
2,479
2.640625
3
[]
no_license
//@what translit-maps.js var isLocal = true; if (typeof msg != "undefined") { isLocal = false; } var translit_maps; if (isLocal) { translit_maps = require('./translit-maps.json'); } else { translit_maps = msg.dicts.translit_maps; } //----------------------------------------------------- function translit(...
true
872afa25eab95a9dd52a656dc3767e9c5cdbcc24
JavaScript
rednetio/react-include
/test/create-class.js
UTF-8
1,298
2.609375
3
[ "MIT" ]
permissive
import React from 'react'; import { mount } from 'enzyme'; import createClass from '../src/create-class'; describe('createClass()', function() { const Foo = createClass('Foo', {}, 'href', () => ''); beforeEach(() => { this.req = []; this.xhr = sinon.useFakeXMLHttpRequest(); this.xhr.onCreate = xhr =>...
true
26e0c938a15cd112f89cdc0d3daece1a06353579
JavaScript
eaglesfan05/Practice
/firebase/public/app.js
UTF-8
602
3.359375
3
[]
no_license
document.addEventListener("DOMContentLoaded", event => { const app = firebase.app(); console.log(app) }) function googleLogin() { //define provider in this case google// const provider = new firebase.auth.GoogleAuthProvider(); //reference firebase.auth library and pass in provider as argument// ...
true
e0cad4c4e8586cefac299562f790444e7865a693
JavaScript
itbcodedev/ng-gtfs-demo
/filters/calendar.js
UTF-8
1,432
2.71875
3
[]
no_license
(function (angular) { "use strict"; angular.module("ng-gtfs") .filter("calendarService", calendarServiceFactory) .filter("calendarDates", calendarDatesFactory) ; calendarServiceFactory.$inject = ["$filter"]; function calendarServiceFactory($filter) { var isoify = $filter("isoifyDate"); var...
true
94c73a9873393f85b320429afd6f7c3841779e56
JavaScript
scheul93/service-worker-demo
/sw_notifications.js
UTF-8
706
2.640625
3
[]
no_license
//Handle the notificationclose event self.addEventListener('notificationclose', event => { const notification = event.notification; const primaryKey = notification.data.primaryKey; console.log('Closed notification: ' + primaryKey); }); // Handle the notificationclick event self.addEventListener('notif...
true
398e015a29457048396b35ce1bb50775c98c857a
JavaScript
edubaschool/awesome-bookmarklets
/facebook-group-scraper-csv.js
UTF-8
2,480
2.609375
3
[]
no_license
function exportToCsv(filename, rows) { var processRow = function (row) { return row + '\n'; }; var csvFile = ''; for (var i = 0; i < rows.length; i++) { csvFile += processRow(rows[i]); } var blob = new Blob([csvFile], { type: 'text/csv;charset=ut...
true
ba0137f323c799d8b84b1e701827964cd3070af4
JavaScript
troy0566/react-drills
/app-6/src/App.js
UTF-8
936
2.671875
3
[]
no_license
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Todo from './Todo.js'; class App extends Component { constructor(props){ super(props) this.state = { todoList: [], todoItem: '' } this.handleChange=this.handleChange.bind(this) this.add...
true
326623bf50ace32981732fac2634434ee89c5569
JavaScript
ornuri17/Adjusti.co-MVP
/DAL.js
UTF-8
13,587
2.6875
3
[]
no_license
// NPM Packages const { Pool, Client } = require("pg"); const moment = require("moment"); // Adjusti.co packages const asyncForEach = require("./asyncForEach.js"); const postgresql = require("./postgresql.json"); // Constants const connectionString = postgresql.connectionString; const client = new Client({ connecti...
true
b30d547e9a964a244634e71101327b867b1e9a9d
JavaScript
perdsoul/postprocessing
/src/passes/DotScreenPass.js
UTF-8
1,776
2.609375
3
[ "Zlib", "CC-BY-3.0", "MIT" ]
permissive
import { DotScreenMaterial } from "../materials"; import { Pass } from "./Pass.js"; /** * A dot screen pass. */ export class DotScreenPass extends Pass { /** * Constructs a new dot screen pass. * * @param {Object} [options] - The options. * @param {Boolean} [options.average=false] - Whether the shader sho...
true
9fb7cb26a2029ba9668e7fe72b2d8ebce45fb7ec
JavaScript
google-code/allforgood
/frontend/js/calendar_widget.js
UTF-8
7,653
2.984375
3
[]
no_license
/* Copyright 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
true
a110c438431a08edd440fb67c72894cc3703906d
JavaScript
BradAyers/js-basics-online-shopping-lab-js-intro-000
/index.js
UTF-8
1,896
3.265625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
var cart = []; function getCart() { return cart; } function setCart(c) { cart = c; return cart; } function addToCart(item) { var cartList = { 'itemName' : `${item}`, 'itemPrice' : Math.floor(Math.random() * Math.floor(100)) }; console.log(cartList); return (cart.push(cartList) ? `${item} has been added to yo...
true
f08d78e52014754cc4a73d3e1dde42033dc556e1
JavaScript
pavelfedorov2000/jsTheory
/js/tasks.js
UTF-8
3,891
3.984375
4
[]
no_license
'use strict'; // 1 let x = 5; alert(x++); // это постфиксная форма инкремента.Сначала возвращается исходное значение (5), а уже потом выполняется действие. Префиксная форма сразу бы вывела нам нужный результат (6, т.е. 5,увеличенное на 1) alert(x); // Если добавить эту строку, то будет 6 // Ответ: 5 // 2 console.log(...
true
cef0446c9cf759d7a57f74ffcc084d55ae83b04b
JavaScript
naosim/programfighter
/src/js/programfighter/main.js
UTF-8
3,153
2.640625
3
[]
no_license
(function() { var startGame = function(game, fps, getCode, stage) { return function() { var code = getCode(); var scene = new Scene(); var hero = new Hero(game, code, program, stage); var shotLayer = new Group(); var enemyShotLayer = new Group(); ...
true
0ff1bb3164bc9d16a843aa098c57d2fe2f9edb9b
JavaScript
vizeke/pubghackfinder
/pubghack.js
UTF-8
1,924
2.84375
3
[]
no_license
const distance = require( 'euclidean-distance' ); let telemetry = require( './telemetry.json' ); let players = telemetry .filter( x => x._T == 'LogPlayerPosition' || x._T == 'LogVehicleRide' || x._T == 'LogVehicleLeave' ) .map( x => { return { name: x.character.name, timestamp: ...
true
ed5646c2206ee7533bf9a2fd6b6fa337b7491ab1
JavaScript
JosefMurmann/cyberspace
/other/flow.js
UTF-8
2,046
3.078125
3
[]
no_license
let feild = [] let ballz = [] function setup() { let canvas = createCanvas(windowWidth, windowHeight); canvas.parent("p5Canvas") frameRate(60) noStroke() background(190, 230, 255) fill(200, 15, 75, 100) for (let i = 0; i < 52; i++) { for (let j = 0; j < 27; j++) { let x = i let y = j ...
true
50552e5c8b160e394cb1ef56fb474c116629d1df
JavaScript
Uplink03/solarcrusaders
/src/client/engine/controls/Key.js
UTF-8
3,430
2.84375
3
[]
no_license
function Key(game, keycode) { this.game = game; this._enabled = true; this.event = null; this.isDown = false; this.isUp = true; this.altKey = false; this.ctrlKey = false; this.shiftKey = false; this.timeDown = 0; this.duration = 0; this.timeUp = -2500; this.repeats = 0; this.keyCode = k...
true
d19a74282680cd0db098d224c62212f4b091331c
JavaScript
tienhung2812/BinhDuongBusMap
/kaze-bus-map/src/Header.js
UTF-8
2,290
2.65625
3
[]
no_license
import React, { Component } from 'react'; import "./Header.css"; import logo from './logo.png'; var storageLang = localStorage.getItem('lang'); class Header extends Component { state = { options: [ { name: 'Tiếng Việt', value: "vi", }, { n...
true
07b08184118bea56d6c0b9398182b4ac8c3e8691
JavaScript
kporcelainluv/problems
/coursera_algorithms/sum.js
UTF-8
182
3.015625
3
[]
no_license
const stdin = process.openStdin(); stdin.addListener("data", text => { const a = text.toString().split(" "); console.log(parseInt(a[0]) + parseInt(a[1])); stdin.pause(); });
true
cc9b74493880484e21e3bc5765fc98eff88d6fdf
JavaScript
iliankostov/SoftUni
/JavaScriptAdvanced/Homework/01-Functions-and-Function-Expressions-Homework/08console-module/console-module.js
UTF-8
2,216
3.25
3
[]
no_license
var specialConsole = (function () { function extractPlaceholders(input) { var pattern = /{(\d+)}/g; var matches = input.match(pattern); if (matches != null) { for (var i = 0; i < matches.length; i++) { var match = matches[i].replace("{", "").replace("}", ""); ...
true
0573b9096a67066e1f7e8be7b59e1438a660daa5
JavaScript
aledriandev/Student-Records-PF
/assets/js/main.js
UTF-8
2,807
3.53125
4
[ "MIT" ]
permissive
let students = []; function listStudents() { return students; } function Student (name, teachPoints, lifePoints) { this.name = name; this.teachPoints = teachPoints; this.lifePoints = lifePoints; this.status = 'ACTIVE'; } function addStudent() { let name = prompt("Nombre de la estudiante").toU...
true
b76aabf8d066a1603af959b3f3ebc1cb50abb2f7
JavaScript
FinalProjectGroup01/Peak-Destinations-Rentals
/server.js
UTF-8
1,105
2.625
3
[]
no_license
//<!-- team --> // Dependencies var express = require("express"); var bodyParser = require("body-parser"); var logger = require("morgan"); var mongoose = require("mongoose"); mongoose.Promise = Promise; // Initialize the App var app = express(); // Uses morgan and body parser app.use(logger("dev")); app.use(bodyPar...
true
6e7a4adc8d83a2393da338c19fcc2e2876b36c74
JavaScript
soonlive/leetcode
/136. Single Number.js
UTF-8
267
2.953125
3
[]
no_license
/** * Created by Xin on 2022/5/6. */ /** * @param {number[]} nums * @return {number} */ var singleNumber = function(nums) { nums.sort(); for(let i =0;i<nums.length;){ if(nums[i] !== nums[i+1]){ return nums[i]; }else{ i +=2; } } };
true
947f3583c0a851db1a7ed7bd810fd06b52919472
JavaScript
dmc31a42/server_side_javascript_tutorials_self_study
/User_defined_modules/lib/calculator.js
UTF-8
263
2.859375
3
[]
no_license
module.exports.sum = function(a, b){ return a+b; } module.exports.avg = function(a){ try{ var sum = 0; for(var i=0; i<a.length; i++){ sum += a[i]; } return sum/a.length; } catch (e){ throw e; } }
true
fc96caa26bf4aba6454a5bde0720437fc00a3668
JavaScript
SerhiiRiabko/Final
/Project_Functions.js
UTF-8
359
3
3
[]
no_license
var buttonAdd = document.getElementById('button_add'); buttonAdd.addEventListener('click', myEvent); function myEvent() { var task = document.getElementById("txt").value; var div = document.createElement('div'); div.innerHTML = "<h3>Task Name</h3>"+task +"<br>"+"<button id='del'>delete</button>"+"<button>edit</button>...
true
2b5a7fd156c426aadeed2895fc3424d0dfe8ad26
JavaScript
antoiba86/jQuery_symfony
/web/js/events.js
UTF-8
3,028
2.9375
3
[ "MIT" ]
permissive
$( "#especial" ).click(function() { alert( "Has pulsado sobre un párrafo" ); }); $( "#especial" ).on( "click", function() { alert( "Has hecho click sobre un párrafo" ); }); $( "#no-especial" ).click(holaMundo).mouseenter(holaMundo); function holaMundo() { alert("Hola Mundo"); } $( "#no-especial" ).on( "...
true
69d05d99f05a49ceb648b43f5f9a8a7adf8d4bc8
JavaScript
Watted/FullstackAssignment
/Users.js
UTF-8
1,970
3.453125
3
[]
no_license
const User = require('./User'); function Users() { this.users = []; } Users.prototype.updateUser = function(username,password,age) { for (var i =0;i<this.users.length;i++){ if (this.users[i].getUsername()===username) { this.users[i].setPassword(password); this.users[i].se...
true
0241e342c0e38ddf9dc40895377e84ee484893c6
JavaScript
davidcesaretti/DEMOStreaming
/dist/src/actions/index.js
UTF-8
2,042
2.78125
3
[]
no_license
import axios from 'axios' import data from '../data/sample.json' export const GET_MOVIES = 'GET_MOVIES' export const GET_SERIES = 'GET_SERIES' export const ERROR = 'ERROR' export function getMovies () { return async function (dispatch) { try { let movies = data.entries.filter((e) => { ...
true
e85e18dc46fc776e8657d33cfae02af0406e4394
JavaScript
amellemgn/CART351-Final-Proj
/GradientExampleBasedOnPrototype/scripts/tile.js
UTF-8
1,860
3.28125
3
[]
no_license
// tile.js will host the tile class // function Tile(image, r, g, b, a){ function Tile(r, g, b, a){ // this.image = image; // this.box.classList.add("box"); this.r =r; this.g =g; this.b=b; this.a=a; this.draw = SVG().addTo('body').size(300, 300); this.hex = null; this.colA =0; this.colB = "#FFFF...
true
91b62f221780c5d62d7497f05f72d6a41e395006
JavaScript
deepshah097/Ahmedabad-city-guide
/build/web/admire/js/place_validation.js
UTF-8
3,922
3.03125
3
[]
no_license
function validatePlaceName() { var n=document.getElementById("name"); var nspan=document.getElementById("sname"); var letters=/^[A-Za-z\s]+$/; if(!n.value.match(letters)) { n.style="border:2px red solid"; nspan.innerHTML="Place name should have alphabets only"; nspan.styl...
true
e9f9c2d39249b76fe25fc2ad68bc98bcdcb6ff7c
JavaScript
lizacouser/js130
/challenge_problems/medium/custom-set.js
UTF-8
3,225
4.21875
4
[]
no_license
/* p: -create a custom set -all elements in set are numbers -input array e: -isEmpty() returns true if set contains no elements, false if not -contains() returns true if set includes an element, false if not -isSubset() returns true if all elements contains in other set (include empty) -isDisjoint() returns true if t...
true
b2a814308e2112da2b1fa3efc6644e34e4b7f48c
JavaScript
mrendleman/IoTProject15
/web/model_stuff.js
UTF-8
5,301
2.84375
3
[]
no_license
// Classifier Variable let classifier; // Model URL // "./" let imageModelURL = 'https://teachablemachine.withgoogle.com/models/jKkgyiPg2/'; //let imageModelURL = 'https://teachablemachine.withgoogle.com/models/jKkgyiPg2/'; // Video let video; let flippedVideo; // To store the classificati...
true
d89132a763b87fae9d8ca71bfbd49643ba987b21
JavaScript
MOHAMMAD-ADNAN-ALAZZAM/guessing-game
/js/app.js
UTF-8
5,243
3.828125
4
[ "MIT" ]
permissive
"use strict"; // let alert massig with the user inbot let score = 0; let Similarity = 0; let userName = prompt("Your Name ?"); console.log(userName); alert("wellcome " + userName); // yes or no (Q) function q1() { let q1 = prompt("Do you like physics?"); console.log(q1); // ANOTHER WAY IN SWITCH switch (q1.to...
true
0ef3441a2a960028ce20003488b4b4af050ea5d6
JavaScript
rockstartushar/nodemongo
/portfolio/js/script.js
UTF-8
2,858
2.609375
3
[]
no_license
const header1 = document.getElementById("header1"); const header2 = document.getElementById("header2"); const insideMenu = (menu) => { if (menu === "myself") { $("#header2 p strong").html("Let me introduce myself "); } if (menu === "project") { $("#header2 p strong").html("Here's My Work"); } } const...
true
5f63e1a3614c5968a54f6b26ca489296754abb09
JavaScript
jeffleu/coding-challenges
/leetcode/easy/validPalindrome/validPalindrome.js
UTF-8
312
3.640625
4
[]
no_license
/** * @param {string} s * @return {boolean} */ const isPalindrome = s => { if (s.length <= 1) return true; let str = ''; for (let i = 0; i < s.length; i++) { if (/[0-9a-z]/i.test(s[i])) str += s[i].toLowerCase(); } const reverse = str.split('').reverse().join(''); return str === reverse; };
true
505e4c517fac51f927b9c48c5a0ba167f83c5a3d
JavaScript
isaac-scarrott/Web-Authoring
/Javascript/Contact-Us.js
UTF-8
1,428
3.21875
3
[ "MIT" ]
permissive
$(document).ready(function () { //Used to store the longnitude and latitude of the business and the user var lat1 = 53.224461; var lon1 = -0.544418; var lat2; var lon2; var TotalDistance; //Used to get the current location of the computer if (navigator.geolocation) { navigator.ge...
true
e0dc8a09b0896d8d41643af57d13b13d8568c2fb
JavaScript
campsi/base-components
/lib/array/array-diff.js
UTF-8
2,098
2.921875
3
[ "MIT" ]
permissive
'use strict'; /** * Created by romain on 29/11/2015. */ var equals = require('equals'); module.exports = function (prev, next) { if(!Array.isArray(next)){ return []; } var arrayIndexOfEquals = function (arr, item) { var index = -1; arr.forEach(function (obj, i) { if (e...
true
27c05984f3aae2aaa945a4b7bea20fb31da28bd2
JavaScript
erose357/javascript-basics-challenge
/timesTable.js
UTF-8
224
2.96875
3
[]
no_license
function timesTable (num) { let table = []; for(i = 1; i <= num; i++) { for(x = 1; x <= 5; x++) { table.push(x * i); } table.push('\n'); } return table.join(' '); }; module.exports = {timesTable};
true
f36032cc8240e38b859bec0fe9d9ca65be42ee04
JavaScript
klairecoval/GROW-Main
/client/login/client.js
UTF-8
4,432
2.96875
3
[]
no_license
const generateUserCode = (length) => { let result = ''; const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; const charactersLength = characters.length; for ( let i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * cha...
true
c3ceeeea22d200b9abd10b241a46fd60ebb529ab
JavaScript
cyclohexane/ING-NormalTraining
/GetScript/sport.js
UTF-8
220
2.640625
3
[]
no_license
var data=[{ "name": "足球" },{ "name": "篮球" },{ "name": "排球" },{ "name": "网球" },{ "name": "板球" }]; $.each(data,function(index,sport){ $("ul").append("<li>"+sport["name"]+"</li>"); });
true
f5592d3a5fe3f301d95f9801fa23934248443348
JavaScript
IFYOUUUU/Blog
/project/TypeScript/typescript/Generics/03.js
UTF-8
474
3.546875
4
[]
no_license
/** * Created by Administrator on 2017/8/24. */ //泛型类看上去与泛型接口差不多。 泛型类使用( <>)括起泛型类型,跟在类名后面。 var MyClass = (function () { function MyClass() { } MyClass.prototype.show = function (x) { return x; }; return MyClass; }()); var class1 = new MyClass(); //可以创建不能类型的实例 var class2 = new MyClass(); co...
true
b30d66a9aa06579df5ec88e4938269d914d97b53
JavaScript
colinbate/number-game
/src/logic.js
UTF-8
3,328
3.078125
3
[]
no_license
import {writable} from 'svelte/store'; import {save, load} from './storage.js'; const BOARD_KEY = 'currentBoard'; const EMPTY_KEY = 'currentEmpty'; const gameBoard = [ [1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15], [4, 8, 12, 0] ]; const empty = [3, 3]; function flatten(b) { const flat = []; let order = ...
true
ece093a8207fcfec02f0b276dee38a40af511fef
JavaScript
MyLittleCubbyhole/Cubbyhole-dashboard
/server/v0/dashboard/controllers/dashboard.es6
UTF-8
3,213
2.609375
3
[]
no_license
/*Parent class cloning*/ var Controller = require('kanto-patterns').controller.clone(); /*Factories requiring*/ var DashboardFactory = require(__dirname + '/../factories/dashboard'); /*Attributes definitions*/ Controller._name = 'Dashboard'; /*Overridden methods declarations*/ /*Private methods declarations*/...
true
dd950a8ca3f7d930a790c0e6c2072abb5469e912
JavaScript
lasurrealista/FullStackApi-tanfolyam-anyagok
/x-promise-async-await/js/main.js
UTF-8
453
2.625
3
[]
no_license
fetch('img/ast-async2-pipe.jpg') .then( response => { if (!response.ok) { throw new Error(`Http error! STATUS: ${response.status}`); } return response.blob(); }).then( myBlob => { let objectURL = URL.createObjectURL(myBlob); let image = document.querySelector...
true
7a0178c95b342984383be5af5956980cea917d36
JavaScript
vanessaconti/-FSW-React-Calculator
/src/Components/Calculator.js
UTF-8
2,854
2.953125
3
[]
no_license
import React, { Component } from "react"; import DisplayButtons from "./DisplayButtons"; export default class Calculator extends Component { state = { num1: 0, num2: 0, math: "", toggleNum: true }; handleNumber = (num) => { const { num1, num2, toggleNum } = this.state; if (toggleNum || Number(num1) === 0) ...
true
7cdefa4aeefccccff44bfddf82d73748188a7eff
JavaScript
blessdarah/todoApp
/todo.js
UTF-8
2,775
3.234375
3
[]
no_license
const $ = element => document.querySelector(element) || undefined; const $all = element => document.querySelectorAll(element) || []; const create = element => document.createElement(element); let todos = JSON.parse(localStorage.getItem("todos")); // empty todos by default // if nothing in local storage, show this if(...
true
8d235ada7f145d5a215d7f30a630f6c13cdc5d88
JavaScript
starskreen619/Digital-Crafts-Classes
/NODE/server1.js
UTF-8
849
2.890625
3
[]
no_license
const http = require("http"); const htmlContent = ` <!DOCTYPE html> <html> <head> <title>My food</title> </head> <body> <h1>This is my favorite food!</h1> <ul> <li>Pizza!</li> <li>Arepas!</li> ...
true
d6b47ec6c0b3aaa91b3543895410b96746fd3c75
JavaScript
steem0/version_one_survey_platform
/app/components/QuestionChoice.js
UTF-8
1,044
2.703125
3
[]
no_license
import React from 'react'; export default class QuestionChoice extends React.Component { constructor( props ) { super( props ); this.state = { selectedOption: null }; this.handleChange = this.handleChange.bind( this ); } handleChange( e ) { // Radio buttons need to have selected option explicit...
true
bf812ba4c516067c44b10d99d8bfb7f79e0513f1
JavaScript
Gabrielcs96/Web-Developer-
/COD3R/Atividades/40 exercícios da primeira parte do curso/Fundamentos17.js
UTF-8
701
3.46875
3
[]
no_license
const calculaAumento = (str,salario) => { let res = str.toUpperCase(); switch (res) { case 'A': console.log(`O plano A dá um aumento de 10%, logo: ${salario}* 10%, logo = ${salario = salario*0.1 + salario}`); break; case 'B': console.log(`O plano B dá um aume...
true
30e11c3046088e7c8024322f2b499ec9dd011570
JavaScript
momentum-cohort-2020-01/javascript-practice-2-nwlilley
/homework.js
UTF-8
5,488
4.65625
5
[]
no_license
// 1. Create a function called "remove" that takes an array and a potential // member of the array, and returns a new array with that member removed. // For example, `remove(['Cadence', 'Ordel', 'Marion'], 'Marion')` results // in `['Cadence', 'Ordel']`. // // If the potential member is not in the array, return the arr...
true
d727890a50b7bffec02f7974a31d76d2094a7db5
JavaScript
jreyes33/es2015
/scripts/examples/sets.js
UTF-8
174
2.65625
3
[]
no_license
export default `let repeated = [1, 2, 1, 1, 2, 3]; let unique = new Set(repeated); console.log(unique.has(2)); console.log(unique.has(4)); console.log(Array.from(unique));`;
true
478239aa1fde8bc0402b88ac4e009dc290b79bc2
JavaScript
andrewmogbolu2/nexmo-node
/src/Number.js
UTF-8
4,720
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
"use strict"; import Pricing from "./Pricing"; import Utils from "./Utils"; class Number { static get PATH() { return "/number"; } static get ERROR_MESSAGES() { return { optionsNotAnObject: "Options parameter should be a dictionary. Check the docs for valid properties for options", ...
true
a01c679419e3f8747af32909191a226f520021d3
JavaScript
mwindson/cpptips
/libs/analyse/stack.js
UTF-8
1,211
3.03125
3
[]
no_license
/* -------------------------------------------------------------------------------------------- * stack.js * * Created on: 2020年4月05日 * Author: widyhu * * ------------------------------------------------------------------------------------------ */ //该类可以使用Array替代 module.exports = /** @class */ (function ()...
true
580c0129b99b0c10f9aafd550fa450638f122a69
JavaScript
beefybroccoli/ak478_server
/sample_encrypt_decrypt.js
UTF-8
2,420
3.390625
3
[]
no_license
// source :http://www.levigross.com/2014/03/30/how-to-write-an-encrypt-and-decrypt-api-for-data-at-rest-in-nodejs/ const crypto = require('crypto'); const algorithm = 'AES-256-CBC'; const hmac_algorithm = 'SHA256'; const private_key = crypto.randomBytes(32); const hmac_key = crypto.randomBytes(32); /* Encrypt * in...
true
bc4c1fe82b956595188f19ed1455fdc823e214a3
JavaScript
wwwcode/javascript-arrays-bootcamp-prep-000
/arrays.js
UTF-8
737
4.09375
4
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
var chocolateBars = ["snicker", "hundred grand", "kitkat","skittles"]; var addElementToBeginningOfArray = ["array", "element"]; var addElementToBeginningOfArray = ["array", "element"]; ["foo", 1, ...addElementToBeginningOfArray]; var destructivelyAddElementToBeginningOfArray = ["array","element"]; destructivelyAd...
true
092e0c72818176b6a44b3c7f50fad596d016e725
JavaScript
syboeuf/redux
/src/Movie.js
UTF-8
2,748
2.875
3
[]
no_license
import React, { Component } from "react" // Tu importes les fonctions du redux import { connect } from "react-redux" import { bindActionCreators } from "redux" // Tu importes les actions nescessaires au déroulement de ton application import * as Actions from "./actions/film" class Movie extends Component { const...
true
0b7ba85e41cee4e3170fc4ec327d33c6bfd1100d
JavaScript
claudiaraphael/IMC-e-Aposentadoria
/desafio02.js
UTF-8
1,687
3.765625
4
[]
no_license
//DESAFIO //Cálculo de aposentadoria //na condicional é preciso colocar == , pq = é atribuição. //condicionais: // 1 - tempo de contribuição (tempcont) //homem precisa contribuir por 35 ou mais (tempo de contribuição >= 35 ) //mulher precisa contribuir por 30 ou mais ( '' >= 30 ) ...
true
1f230a1e836e9ff05c3b89a8a4465fcdc0777bf3
JavaScript
sotek222/algorithms
/other_problems/missingAlphas/test.js
UTF-8
1,102
3.046875
3
[]
no_license
const missingAlphas = require('./index'); test('missingAlphas is a function', () => { expect(typeof missingAlphas).toEqual('function'); }); describe('missingAlphas returns missing letters from many sentences', () => { test('missingAlphas returns the missing letters from "A lazy dog jumps over the quick brown fox....
true