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
b4889edffb0f08d0a7164dfb5539ab138dee9a2a
JavaScript
Uraniluib/template
/DomGenerator.js
UTF-8
2,369
2.625
3
[]
no_license
var DomGenerator = { loadFunctions: function () { var elemTypes = ['A', 'B', 'BIG', 'BLOCKQUOTE', 'BR', 'BUTTON', 'CAPTION', 'CANVAS', 'CENTER', 'CODE', 'DD', 'DIV', 'EM', 'EMBED', 'FIELDSET', 'FONT', 'FOOTER', 'FORM', 'HEAD', 'HEADER', 'HR', 'I', 'IFRAME', 'IMG', 'INPUT', 'LABEL', 'LEGEND', 'LI', 'LINK', 'MAP'...
true
de4a0c1ef4792c650857de7668225d5f4a8b117e
JavaScript
nathanbowser/healthy-school-buildings
/old/js/load-schools.js
UTF-8
1,208
2.53125
3
[]
no_license
function loadSchools (next) { var url = 'https://spreadsheets.google.com/feeds/list/13lKZiT0nbnswab36cBlV37_Wb6ppikbHwzcx14Rvkog/1/public/values?alt=json' d3.json(url, function (err, response) { if (err) { return next(err) } var schools = response.feed.entry.map(function (entry) { return Ob...
true
a15d589e63278d06380828342d02cb0c5c059423
JavaScript
wzw9803/JavaScriptLearning
/js中各类运算符原理/My_new.js
UTF-8
1,633
4.59375
5
[]
no_license
// // 实现一个new var Dog = function (name) { this.name = name } Dog.prototype.bark = function () { console.log('wangwang') } Dog.prototype.sayName = function () { console.log('my name is ' + this.name) } let sanmao = new Dog('三毛') sanmao.sayName() sanmao.bark() // new 的作用 // 创建一个新对象obj // 把obj的__proto__指向Dog.prototy...
true
f3f35c4535fd579bd5f3b15ae1a8f8ea65713688
JavaScript
brandonpham29/MarketVision-CSCE315
/src/components/Crypto/cryptoSearch.js
UTF-8
2,141
2.53125
3
[]
no_license
import React from 'react'; import { Button, Form, Icon} from "semantic-ui-react"; import './Crypto.css'; import { Link } from 'react-router-dom'; const cryptocurrencies = require('cryptocurrencies'); class SearchBar extends React.Component { constructor(props) { super(props); this.state = { suggestions...
true
55cfc4c207c4c21d0009bd88dffc18d574854e7c
JavaScript
Alanhliu/WYXW_detail
/WKWebview--master/news/HTML/newDetail.js
UTF-8
945
2.6875
3
[ "Apache-2.0" ]
permissive
window.onload = function(){ // alert('感谢你的支持'); var imageArray = document.getElementsByTagName("img"); for(var i=0; i < imageArray.length; i++) { var image = imageArray[i]; image.index = i; image.onclick = function(){ // alert(imageArray[this.index].src); wind...
true
0d823460db58d9e7df23f26ad014fa186c19ea34
JavaScript
cartfisk/themesong-player
/static/emulsion.js
UTF-8
2,941
3
3
[]
no_license
window.textBuffer = ''; window.admin = false; window.purgeQueued = false; function handleKeyDown(e) { if (e.target.tagName !== 'INPUT') { if (!window.purgeQueued) { window.purgeQueued = true; setTimeout(purgeBuffer, 1000); } window.textBuffer += e.key; switch (window.textBuffer) { ...
true
23421fcacc2efe3c14b53181481bc66fc5253eec
JavaScript
Mahmoud-Khader/can-of-books-backend
/model.js
UTF-8
4,059
2.671875
3
[]
no_license
'use strict'; const mongoose = require ('mongoose'); const express = require ('express'); const appsObj = require ('./server') appsObj.app.use(express.json()); // module.exports = addBookHandler; // module.exports = deleteBook; let functionHandlers={} mongoose.connect(process.env.MONGODB, { useNewUrlParser: true, us...
true
71ac00767b2fae11ab38cdf10e3d121d26630324
JavaScript
edneyRoldao/MeuControleHorasApp
/mchapp-frontend/app/js/directives/cepMaskDirective.js
UTF-8
828
2.6875
3
[]
no_license
/* Edney Roldao - 09/08/17 */ function CepMask() { var directive = {}; directive.restrict = "A"; directive.require = "ngModel"; directive.link = function(scope, element, attrs, ctrl) { var _formatCepNumber = function(cep) { cep = cep.replace(/[^0-9]+/g, ""); if(cep.length > 5) { cep = cep.substring(0...
true
21eb36c1e172d43a2359b942a40dc6f93ef362d6
JavaScript
slashman/interactionSample
/talkWork/src/MusicController.class.js
UTF-8
825
2.609375
3
[]
no_license
function MusicController(gameController){ this.gameController = gameController; this.musicMap = {}; } module.exports = MusicController; MusicController.prototype.init = function(){ var phaser = this.gameController.phaser; this.musicMap['title'] = phaser.add.audio('music-title',0.7); }; MusicController.prototype....
true
cc8905bfbdc1f31617b231f515eecb1d401affb7
JavaScript
dgoncharik/keksobooking
/js/notification.js
UTF-8
2,528
2.859375
3
[]
no_license
'use strict'; (function() { var errorTemplate = document.querySelector('#error').content.querySelector('.error'); var successTemplate = document.querySelector('#success').content.querySelector('.success'); var ESC_KEYCODE = 27; var SuccessTime = { ASCENT: 700, DISPLAY: 1000, REMOVE: 700 }; // ...
true
1b09b53d64c900a6c008e0a5cf6c02cc302f21f9
JavaScript
SubeiSpace/uda_study
/api/news.js
UTF-8
883
2.59375
3
[]
no_license
import {formatTime} from "../utils/util.js" const http = require("../api/http.js") const fetchNews = (type) => new Promise((resolve, reject) => { const url = 'https://test-miniprogram.com/api/news/list?type=' + type http.get(url).then(({ code, message, result}) => { if(code !== 200){ reject(message) ...
true
5a378261d4c26f27d1b0b4c50d25ca44e264af00
JavaScript
owndbyfred/react-url-params-tutorial
/src/components/DetailInformation.js
UTF-8
1,312
2.96875
3
[]
no_license
import React, { useEffect, useState } from 'react'; const DetailInformation = (props) => { // extract language from props const lang = props.lang; // use state for variables coming from an api const [rank, setRank] = useState(''); const [year, setYear] = useState(''); const [inventor, setInventor] = useSta...
true
3bbfd27f8f40d6c4a811d6532e326efc658b53d1
JavaScript
ugobriasco/white-summoner
/lib/gen-dinamic-data/gen-national-id/__test/national-id-it.spec.js
UTF-8
6,055
2.609375
3
[ "MIT" ]
permissive
const assert = require('assert'); const chai = require('chai'); chai.should(); const { genItNationalID, CodiceFiscale } = require('../national-id-it'); describe('gen-national-id/national-id-it', () => { it('should generate a valid a national ID as String if an empty object is passed', done => { const id = genIt...
true
2094fa54e9ffbd3924c493003a8fd58cb68ad269
JavaScript
Urthen/DCH-Nav
/static/js/node.js
UTF-8
800
2.578125
3
[]
no_license
$(function(){ var $canvas = $('#mapcanvas'), pos = JSON.parse($canvas.attr('data-pos')), filename = "/images/" + $canvas.attr('data-bg'), context, bg = new Image(), here = new Image(), scale = 1; //Make this dynamic at some point... bg.onload = function() { var canvas = document.getElementById('mapcan...
true
a4f9d76661e836f2dd765d624d3005097ce4b89a
JavaScript
liny93/note-javescript
/note/encrypt/base64.js
UTF-8
148
2.5625
3
[]
no_license
function encrypt(str) { return Buffer.from(str, 'base64').toString() } function decrypt(str) { return Buffer.from(str).toString('base64') }
true
2218b0e5114e48016011b7e131c55031321bca23
JavaScript
rohitgs28/Visualizing-Predicting-stocks
/HM/heatmap.js
UTF-8
3,744
2.5625
3
[ "MIT" ]
permissive
(function(){ var margin = { top: 20, right: 0, bottom: 50, left: 50}, width = (window.innerWidth/2) - margin.left - margin.right, height = 500 - margin.top - margin.bottom, gridSize = Math.floor(width / 12), legendElementWidth = gridSize, buckets = 9, colors = [...
true
63d61cab4dae7c36ff884295cca20b5eca1fd1eb
JavaScript
FranciscoBarafani/SimuladorMetodosCongruenciales
/src/components/ChiCuadrado/ChiCuadrado.js
UTF-8
5,424
2.859375
3
[]
no_license
import React, { useState } from "react"; import "./ChiCuadrado.scss"; import { Form, Input, Button, Switch } from "antd"; import { XYPlot, LineSeries, XAxis, YAxis, VerticalGridLines, HorizontalGridLines } from "react-vis"; import "react-vis/dist/style.css"; export default function ChiCuadrado() { //Carg...
true
ae416032a39725f62e993c517a474e5a51632473
JavaScript
WREQI/Ohm-s-Law
/scenery-phet/js/ArrowNode.js
UTF-8
4,859
2.75
3
[ "MIT" ]
permissive
// Copyright 2013-2021, University of Colorado Boulder /** * A single- or double-headed arrow. This is a convenience class, most of the work is done in ArrowShape. * * @author John Blanco * @author Chris Malley (PixelZoom, Inc.) * @author Aaron Davis * @author Sam Reid (PhET Interactive Simulations) */ import ...
true
60befc96d8a53ed394240fd437e53d22c801fdf5
JavaScript
wolfdale/Spaghetti-code
/nodejs/fileIo/fileIo.js
UTF-8
505
3.515625
4
[ "MIT" ]
permissive
//Reading a Simple file , lets say a package.json var fs = require('fs'); //Never use ReaFileSync (Event loop blocked) var content = fs.readFileSync('package.json'); var readble_content = fs.readFileSync('package.json').toString(); //If you print content directly it will print content buffer //(Non readable) console.lo...
true
d0320566b045483720b6e2c103a30bf6e84287c6
JavaScript
ratchagarn/react-redux-playground
/src/components/Json/Json.js
UTF-8
1,557
2.78125
3
[ "MIT" ]
permissive
/** * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * Component - Json * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ import React, { PropTypes } from 'react'; import { doRequestData, doSetPath } from 'modules/Json'; export default Json; /** * Prop types * --------------------------...
true
c58046496cd1e617bd6622ba805eb30c36c03a5b
JavaScript
mathcent/Projeto-Desenvolvimento-Web
/Projeto web/jogoprojeto.js
UTF-8
8,382
3.046875
3
[]
no_license
//variáveis do jogo var canvas, ctx, ALTURA, LARGURA, frames = 0, maxPulos = 3, velocidade = 3, estadoAtual, record, img, estados = { jogar: 0, jogando: 1, perdeu: 2 }, //detirmanando a cor e formato do chao chao = { y: 550, altura: 50, cor: "#006400", //funçao para que o chão mantenha esses...
true
da14885ccf03dd6efa02dfec2fc60a4d9fd87d0d
JavaScript
jakedoren/react-calculator
/src/tests/helper.test.js
UTF-8
874
2.609375
3
[]
no_license
const { addNum, subtractNum, divideNum, multiplyNum, equalsValidator } = require('../helpers/helper') describe("Helper functions", () => { it("addNumb -> Should add two numbers", () => { expect(addNum(3,4)).toBe(7) }) it("subtractNum -> Should subtract two numbers", () => { expect(su...
true
5c3d2899e00b6512d15150c1f6363064fe652d78
JavaScript
alexahdp/b-tree
/test.js
UTF-8
16,193
2.59375
3
[]
no_license
var testMap = { merge: { left : 1, right : 1, middleRight: 1, middleLeft : 1, middle2 : 1, }, remove: { // это только удаление для листьев leafLeftWithoutMerge : 1, //leafRightWithoutMerge : 1, leftWithMerge : 1, leafRightWithMerge : 1, leafMiddgeMergeRight: 1, l...
true
cdd07ae7c342f7e6ba1d14693d43e80b9bd75b97
JavaScript
friktiny/satana
/bot/commands/kahoot.js
UTF-8
1,970
2.890625
3
[ "Apache-2.0" ]
permissive
/** * @author conner * @since 03-06-2020 */ const request = require("request-promise") module.exports = { "info": { "permission": 1, "name": "kahoot", "description": "Dumps kahoot answers from ID", "aliases": [], "syntax": "kahoot [id]" }, run: (bot, msg, args) =...
true
4b448e27e9c3b8753ba4118edbd398218808c273
JavaScript
Adetayo1999/GDSC-NodeJs-study-group-2021
/intermediate-week-1/controllers/auth/refresh-token.js
UTF-8
419
2.546875
3
[]
no_license
const refreshAccessToken = async (req, res, next) => { /** * Takes a parameter * refreshToken * in the body of the request. * * Take that refresh token and send a return a response with a valid access code for that user * * response format * { * accessToken: ***...
true
d0b51e9e678432eba476b3f4978acae11c1f5a2f
JavaScript
lyeoWade/lisiky
/lisiky/js/index.js
UTF-8
3,280
2.546875
3
[]
no_license
// // $(function(){ // var up=true; // $('.listing-t').on('click',function(){ // //$('.list-warp').toggle() // if(!up){ // $('.list-warp').slideDown(function(){ // $('.scroll-bar span').css('display','block'); // }); // up=true; // }else{ // $('.list-warp').slideUp(function(){ // $...
true
c5abc36af6cba98ef8b6f12dea43ce4c11fe855a
JavaScript
wenmin92/jest-demo
/src/00_manual/math.js
UTF-8
349
3.25
3
[]
no_license
/** * 格式化数字 * @param {string|number} numStr 传入小于2位数的数值或字符串表示的数值 * @returns 不足2位数时, 前面补0 */ function formatNumStr(numStr) { numStr = typeof numStr === 'string' ? numStr : numStr.toString(); return numStr.length === 2 ? numStr : `0${numStr}`; } module.exports = formatNumStr;
true
eb38bdbad151176e85a280aa8d95dc2b64951ed7
JavaScript
Larento/topkolor-wordpress-theme
/assets/topkolor/js/search-form.js
UTF-8
466
2.953125
3
[]
no_license
document.addEventListener("DOMContentLoaded", clearSearch); function clearSearch() { let searchForms = document.querySelectorAll('.search-form'); searchForms.forEach((searchForm) => { let searchField = searchForm.querySelector('.search-field'); let searchEmptyButton = searchForm.querySelector('.search-butt...
true
5d89e996ffbb7c27688da2482a3dbe4906da2986
JavaScript
ycewe/key-value-store
/store.js
UTF-8
2,300
3.0625
3
[]
no_license
var redis = require('redis'); var config = process.env.REDIS_URL || null; // add your redis configuration here class Store { constructor() { this.client = {}; } /** * Creates a connection to the Database. */ static initialize() { this.client = (config !== null) ? redis.createClient(config) : re...
true
f922f8dc5ec623298a225604ef8a49b7c308258b
JavaScript
tanew7391/KrakenTaxes
/conversion.js
UTF-8
2,200
2.703125
3
[]
no_license
require('dotenv').config(); const key = process.env.KEY; // API Key const secret = process.env.SECRET; // API Private Key const exchangeApiKey = process.env.EXCHANGEKEY; const KrakenClient = require('kraken-api'); const kraken = new KrakenClient(key, secret); const request = require("request-promise"); const fs ...
true
225119d17528753bf25719be856de8362df0dc15
JavaScript
wadackel/sample-sort-colors
/src/app.js
UTF-8
849
3.078125
3
[]
no_license
import Color from "./Color"; import HSVColorSort from "./HSVColorSort"; import DistanceColorSort from "./DistanceColorSort"; // 色の一覧を描画 function render($results, colors){ let html = []; colors.forEach((hex, i) => { html.push(`<div style="background:${hex}"></div>`) }); $results.innerHTML = html.join("")...
true
cde7063bfb7b8dd47c6359bc75305addc3b11e11
JavaScript
joaohonorato/api2db
/etl/etl.js
UTF-8
2,671
2.609375
3
[]
no_license
const {etlonibuses,onibuses} = require('../db/models'); const axios = require('axios') const {CronJob} = require('cron'); const apiUrl = 'http://dadosabertos.rio.rj.gov.br/apiTransporte/apresentacao/rest/index.cfm/obterTodasPosicoes'; module.exports.configure = function configure(config){ this.config = config; ...
true
4e55f08046fc211f7c501f3af87525cb02bcf89d
JavaScript
SIDD2506yadav/React-chat
/src/components/Requests/Requests.js
UTF-8
5,983
2.53125
3
[]
no_license
import React, { useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import "./Requests-styles.css"; import { database } from "../../Firebase"; import { ref as dbref, onValue } from "firebase/database"; import { useStateValue } from "../../StateProvider"; import { Users } from "../Users/Us...
true
2d3eac14e94fa48dda7799743d6502ac3243a47f
JavaScript
Abu-Nayeem20/simple-bank
/js/login.js
UTF-8
665
2.84375
3
[]
no_license
document.getElementById('user-login-button').addEventListener('click', function(){ // get user email const userEmailField = document.getElementById('user-email'); const userEmail = userEmailField.value; // get user password const userPassField = document.getElementById('user-password'); const u...
true
aa0479707c35418dffd5e44aeee23eb73baa3c57
JavaScript
jolim24601/polylit
/frontend/stores/story_store.js
UTF-8
2,015
2.609375
3
[]
no_license
var Store = require('flux/utils').Store, AppDispatcher = require('../dispatcher/dispatcher'), StoryConstants = require('../constants/story_constants'); var StoryStore = new Store(AppDispatcher); var _stories = [], _topStories = [], _followedStories =[]; function resetStories(stories) { _stories = st...
true
73fdfc4d072f6de6a410e85371b3a58fcfb0513c
JavaScript
BadMomber/hgcapp
/scripts/components/Fish.js
UTF-8
1,624
2.734375
3
[]
no_license
/* Fish <Fish /> */ import React from 'react'; import h from '../helpers'; import autobind from 'autobind-decorator'; import classNames from 'classnames'; @autobind class Fish extends React.Component { constructor(props) { super(props); this.state = { summarized: true }; } onButtonClick...
true
e4413c767971751b3603a3d90d5d0d1d34eb89be
JavaScript
anne-lin/studyRecord-old
/letcode/second/10.正则表达式匹配.js
UTF-8
956
3.03125
3
[]
no_license
/* * @lc app=leetcode.cn id=10 lang=javascript * * [10] 正则表达式匹配 */ // @lc code=start /** * @param {string} s * @param {string} p * @return {boolean} */ var isMatch = function (s, p) { if (s == "" || p == "") { return false; } let length = s.length, indexS = 0, indexP = 0,mathS; ...
true
3c29ae915ce2b641a7446130a185d01d4cbbc903
JavaScript
mrparanyuk/vertex
/sketch.js
UTF-8
2,639
2.953125
3
[ "MIT" ]
permissive
// Daniel Shiffman // http://codingtra.in // http://patreon.com/codingtrain // Code for: https://youtu.be/urR596FsU68 // module aliases var Engine = Matter.Engine, // Render = Matter.Render, Runner = Matter.Runner, World = Matter.World, Events = Matter.Events, Bodies = Matter.Bodies, score = 0, gameOver ...
true
635f68bf353e13a376d05c0161b37791cd9361a5
JavaScript
orn688/sudoku-solver
/src/utils.js
UTF-8
2,565
3.359375
3
[]
no_license
import globals from "./globals"; export function solve(rawSquares) { const squares = rawSquares.map( value => (isValidValue(value) ? parseInt(value, 10) : 0) ); const givens = squares.map(value => value > 0); let i = 0; while (i >= 0 && i < rawSquares.length) { if (givens[i]) { i++; } else...
true
f710255655084c506ced065b0bfaecd21e87fc6d
JavaScript
sampreethr2/javascript_sessions
/myscript.js
UTF-8
551
3.296875
3
[]
no_license
/*console.log("Hello") alert('I am loaded now...')*/ if(confirm("Do you want to proceed?")==true){ document.getElementById('proceed').innerHTML = 'go forward'; } else { document.getElementById('proceed').innerHTML = 'go back'; } var age = prompt('Please Enter your Age: '); if (age>=18){ //document.write('y...
true
39eb122b10f94a69dbf1a39acc3fea697aac4d96
JavaScript
radenkovn/Telerik-Homework
/09. JavaScript UI DOM/11. HTML Templates/tasks/task-3.js
UTF-8
5,136
3.234375
3
[]
no_license
function solve() { return function () { $.fn.listview = function (data) { var prop, template, selectorData, currentTemplate, eachStartIndex, eachEndIndex, eachPattern, currentArray, ...
true
da9cd1921ede60986f5229fa2ba212a20156fc6c
JavaScript
M1lena/bowling-challenge
/src/BowlingView.js
UTF-8
215
2.75
3
[]
no_license
function Bowling(){ this.rolls = []; } Bowling.prototype.roll = function(pins) { this.rolls.push(pins) }; $(document).ready(function(){ var bowling = new Bowling(); $('#score').text(bowling.score); });
true
7edc5ff540f24c052d5be488d2ea7b050652158b
JavaScript
luiz787/rxjs-examples
/operators/pipe/src/index.js
UTF-8
1,007
3.65625
4
[]
no_license
const { of } = require("rxjs"); const { map, filter } = require("rxjs/operators"); const printFromPipe = (n) => { console.log(`From pipe: ${n}`); }; const print = (n) => { console.log(`From composition: ${n}`); }; const double = (n) => n * 2; const myObservable = of(1, 2, 3, 4, 5); (() => { /* Pìpe is just...
true
0e456b9492b370408eec39c242f96c40ecacdd2e
JavaScript
greendost/TweetFeed
/src/server/jsondbController.js
UTF-8
557
2.6875
3
[ "Apache-2.0", "MIT" ]
permissive
const fs = require('fs'); var db = {}; var dbPath = ''; function init(pathToDb, initData) { dbPath = pathToDb; data = initData ? initData : db; if (!fs.existsSync(dbPath)) { fs.writeFileSync(dbPath, JSON.stringify(data)); } readSync(); } function readSync() { db = JSON.parse(fs.readFileSync(dbPath));...
true
1b9b455e51035339aa14ad7065baf0e15c37ac53
JavaScript
laoxue6699/meishi
/src/api/index.js
UTF-8
749
2.515625
3
[]
no_license
/* 包含n个接口请求函数的模块 函数的返回值: promise对象 import ajax from './ajax' const BASE_URL = 'http://localhost:4000' //或者 const BASE_URL = '/api' //设置了跨域代理 例如 获取食品分类列表,GET请求: export const reqFoodCategorys = () => ajax(BASE_URL+'/index_category') 用户名密码登陆验证,POST请求: export const reqPwdLogin = ({name, pwd, captcha}) => ...
true
810b4f5d55c88f49135fa92608747ca2507225b1
JavaScript
karmapa/checkTibetan_for_ketaka
/checkTibetan.js
UTF-8
890
2.796875
3
[]
no_license
var correctlyLetters = require('./correctly-root-letters-sort'); var content; var indexOfSorted = function (array, syl) { var low = 0, high = array.length-1; while (low < high) { var mid = (low + high) >> 1; array[mid] < syl ? low = mid + 1 : high = mid; } if(array[low] != syl) return -...
true
af4d05ddb3ca7dfe8503bc2f40708cd5e7d7be36
JavaScript
Didi-FMI/cook-book
/src/main/webapp/js/recipe.js
UTF-8
2,704
2.78125
3
[]
no_license
$(document).ready(function () { const urlParams = new URLSearchParams(window.location.search); const id = urlParams.get('id'); requestRecipe(id) getComments(id) $("#comment-post").submit(function (e) { e.preventDefault(); postComment(id) }); }); function requestRecipe(id) { ...
true
21b2a17acb71b2f5a84d2a3df956aa5c4bc37bbe
JavaScript
Mr-Gao-XS/remApp
/js/rem.js
UTF-8
389
2.75
3
[ "MIT" ]
permissive
// 改变html字体大小 function htmlFontSize() { var clientWidth = $(window).width(); if (clientWidth > 769) { clientWidth = 750; } __rootrem = Math.floor(clientWidth * 100 / 750); $('html').css('font-size', __rootrem + "px"); } // 调用函数改变字体大小 htmlFontSize(); $(window).resize(function...
true
e181a23d269ae51c5c6c39204d81dd6bad5680f7
JavaScript
Joshuaasare/portfolio-v1
/src/features/_shared/services/uiService.js
UTF-8
649
2.71875
3
[]
no_license
/** * @Author: Joshua Asare <joshuaasare> * @Date: 2019-08-06 07:26:53 * @Last modified by: joshuaasare * @Last modified time: 2019-08-06 08:01:35 */ import React from 'react'; import { Icon } from '../components'; export function renderStars(name, type, rating) { // rating will come from api and the logic...
true
b76ec551d0e85b8b55589c5baea795b1ab22668d
JavaScript
AliaYousef/ToDoList
/main.js
UTF-8
2,837
3.25
3
[]
no_license
document.getElementById("take").addEventListener("click", move); var list = []; var cunt = 0; function move() { // create LI element var li = document.createElement('LI'); var inputValue = document.getElementById('checValue').value; if (inputValue === '') { alert("You must write something!"); } else...
true
275b60bbcbbe868526f079a2d935d0b5051f00a4
JavaScript
agbowlin/simtrader
/simtrader/src/ChartArea.js
UTF-8
9,211
2.71875
3
[ "MIT" ]
permissive
/* global ctk global ctk.AreaMap */ function ChartArea() { this.Map = new ctk.AreaMap(); this.BarWidth = 7; this.BarSpacing = 3; this.AxisStyle = new ctk.Style(); this.AxisStyle.StrokeStyle = 'gray'; this.AxisStyle.FillStyle = '#0A0000'; this.AxisWidth = 100; this.AxisLabelInterval = 1.00; this.AxisLabelMar...
true
fcd7c178b5311aab34c1c446168f1d8b752f40cb
JavaScript
Muhammad-Maher/NodeJs
/Lab3/pages/login_page/script2.js
UTF-8
518
2.71875
3
[]
no_license
$(document).ready(function () { $('.login_button').click( () => { let data = {}; var dateUsed = new Date(); $(".form input").each((index, item) => { data[$(item).attr("name")] = $(item).val() }); fetch("/login", { method: "POST", headers: { 'Content-Type': 'appl...
true
5f4b694b6876d67c2be4a05158a293f4bda989f2
JavaScript
jankern/ng-redux-app
/src/app/services/util.service.js
UTF-8
1,701
2.90625
3
[ "MIT" ]
permissive
/** * Util Service Class */ export default class { constructor(messageService){ this.messageService = messageService; } /** * Method to filter an object based on a given path * @param obj The object * @param str The object path * @return obj The fil...
true
1b6f08ddf90ed5b2bf62273f9afe304adf6d8cac
JavaScript
simonarthur/chickenfoot
/src/core/recorder/Recorder.js
UTF-8
24,098
2.71875
3
[ "MIT" ]
permissive
goog.require('goog.string'); goog.require('goog.style'); goog.require('ckft.dom.Box'); goog.require('ckft.dom'); // don't attempt labelling if node count exceeds this /** @const */ var RECORDER_NODE_THRESHOLD = 2200; /** * Returns the total number of nodes in the document, including nodes in other * fra...
true
e660322bdba365f85a1769eaa5ea3a26e4dd7d30
JavaScript
DeRidderJonas/QuizMaster
/public/assets/js/indexDB.js
UTF-8
6,434
2.734375
3
[ "MIT" ]
permissive
const db = (function () { window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; if (!window.indexedDB) { console.log('no indexed db'); return; } else { console.log('indexed db recognised'); } const maxAmountQuizzesInInde...
true
b4e1dd5d20d18afdae128c0da8c2564afaceeeaf
JavaScript
MatheusBedoni/SnapEureka
/theads.js
UTF-8
13,726
2.578125
3
[]
no_license
var port2 = ' ' var datareturn = ' ' var datareturn2 = ' ' var sprite = this.blockReceiver(); var message = ' ' Process.prototype.connectArduino = function (port) { var sprite = this.blockReceiver(); if (!sprite.arduino.connecting) { sprite.arduino.connecting = true; if (sprite.arduino.board ==...
true
7a9b718a129d824f84863cb627d1f80a3ef494c0
JavaScript
Gh0st0ne/shframework
/src/main/webapp/resources/js/auto_complete_init.js
UTF-8
6,246
2.8125
3
[]
no_license
//自动补全 教师/雇员 信息时的初始化 @author RanWeizheng //依赖于jquery.auto_complete.js , common_util.js(获取contextPath) //由于业务需求,要求展现 教师name 同时保存教师的id,故这里需要分别填写nameSelector、idSelector function init_autocomplete_employee_ajax(nameSelector, idSelector, depId, isContainOthers){ var data = {}; if (typeof(depId)!="undefined" && depId >0)...
true
ad3fdfc420d9747b4809bf1b02fa7417f3f63799
JavaScript
jodonnell/bubble_bobble
/spec/animations/linear_animation_spec.js
UTF-8
1,961
3.046875
3
[]
no_license
import LinearAnimation from '../../app/animations/linear_animation'; describe('LinearAnimation', function () { let animation; beforeEach(function () { animation = new LinearAnimation(3, ['deadEnemyRight', 'deadEnemyBottom', 'deadEnemyLeft', 'deadEnemyTop']); }); it('starts with the correct cu...
true
0748043c3f8ffd458f71e297cbd567c5b99676e4
JavaScript
jeromeportega/aircraft-scheduling-jo
/src/utils/validation.js
UTF-8
2,663
3.1875
3
[]
no_license
export const canAddFlightToRotation = (rotation, flight) => { let validationResult = { canAddFlight: false, error: '' } // Minimum turnaround time is 20 minutes, converted to seconds for calculation. const turnaroundTime = 60 * 20; for(let i = 0; i < rotation.length; i++) { // First entry in arr...
true
d018b39bbd964a5799636297a7252cf35977b314
JavaScript
Perrishnikov/improviz
/_js/setCanvasSize.js
UTF-8
3,585
3
3
[]
no_license
/* ----------------------- GLOBAL VARIABLES -------------------------------- */ var scene = "null"; var camera = "null"; var renderer = "null"; var WIDTH, HEIGHT; // Global so threejs can access {/* ----------------------------- READY ------------------------------------ */ $(document).ready(function(){ selectAspect(...
true
ae72b5cf3d359f83e5c4f4b1fc99a36fd0fab8b5
JavaScript
deepaksaroha/Dhrutham-Cart
/src/reducers/sortFilterReducer.js
UTF-8
1,040
2.671875
3
[]
no_license
export const sortFilterReducer = (state, action) => { switch (action.type) { case "SORT_BY": return { ...state, sortBy: action.payload, }; case "INCLUDE_OUT_OF_STOCK": return { ...state, includeOutOfStock: !state.includeOutOfStock, }; case "FAST_DE...
true
7850f71f0f9719a185b5ca4a029581a00a58b1a7
JavaScript
khalilsliti/ES6-basics
/destructuring.js
UTF-8
1,570
3.6875
4
[]
no_license
arr=[1,2,3,4,5] var [a,b,,d,e]=arr; console.log(a,b,d,e); var p = { "nom":"khalil", "age":22, "email":"khalil@gmail.com", "password":"haha" } var {nom,age,email,password}=p //the rule is that the name of the variables should be the same as the name of the object properties ...
true
89cb1691132ed6e83b8436f2e147bba316763276
JavaScript
mz135135/auto
/demo/白酒煮饭/2018年刑侦科推理题.js
UTF-8
3,085
2.71875
3
[]
no_license
var abcd = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; console.show(); threads.start(function () { while (true) { log(abcd.join("")); sleep(500); }; }) while (true) { abcd[0] += 1; for (var i = 0; i < abcd.length; i++) { if (abcd[i] > 3) { abcd[i] = 0; abcd[i + 1] += 1; } } if (!(abcd[0] =...
true
50794d0db3d673344b622f02a4a6fe8749e81b33
JavaScript
umarbahadoor/easysockets.com
/index.js
UTF-8
2,540
2.515625
3
[]
no_license
var Map = require("collections/map"); var Set = require("collections/set"); var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); const clients = new Map(); app.get('/', function(req, res) { res.sendFile(__dirname + '/index.html'); }); // middleware io.use...
true
48f00f86c28e4cfc6f6f571f3eefc4e88c607f0d
JavaScript
pr0stats/pr0stats.github.io
/js/template.js
UTF-8
744
2.5625
3
[ "Unlicense" ]
permissive
$(document).ready(function() { // Add header $.get('/template/header.html', function(response) { var header = response; $('body').prepend(header); }); // Add footer $.get('/template/footer.html', function(response) { var footer = response; $('body').append(footer); // Add edit link to every page wit...
true
05b0bb566f6343763e75a643d21aa7bf4cf83caa
JavaScript
StrongeLeeroy/freecodecamp-solutions
/bonfires/basic-algorithm-scripting/19-sum-all-numbers-in-range.js
UTF-8
347
3.390625
3
[]
no_license
function sumAll(arr) { var sum = 0; console.log("NEW ---------------"); var max = arr.reduce(function(a, b){ return Math.max(a, b); }); var min = arr.reduce(function(a, b){ return Math.min(a, b); }); console.log(max); console.log(min); for (var i = min; i <= max; i++) { sum += i; } ret...
true
3b161cc436a608b5d59ad1e351d617bbbba9ac84
JavaScript
jonnyhak/distancing
/src/components/SelectRadius.js
UTF-8
1,468
2.546875
3
[]
no_license
import React from 'react' export default function SelectRadius(props) { return ( <div> <label>Within how many miles must the property be from your nearest branch?</label> <select value={props.selectedRadius} onChange={e => props.setSelecte...
true
be6bb0e75e1286bdff78be306a9a3c38fcf30f8b
JavaScript
zhs007/jarviscrawlercore
/src/bt/bt.js
UTF-8
1,345
2.515625
3
[ "Apache-2.0" ]
permissive
const {loadConfig, checkConfig, getWebsiteConfig} = require('./cfg'); const {oabt} = require('./oabt'); const {sleep} = require('../utils'); const log = require('../log'); /** * a bot for dtbk * @param {object} browser - browser * @param {string} cfgfile - cfgfile * @param {bool} debugmode - debug modes * @param ...
true
5eeee34d6dc6a94ac801168b0507f287d94eb30c
JavaScript
2099492/Live-update-84dade07
/script.js
UTF-8
1,183
3.3125
3
[]
no_license
// function je_oma() { // // var body = document.querySelector("body"); // // body.classList.add("je_oom"); // console.log("boeler"); // // var color = document.getElementById("je_zus").value; // document.getElementById("body").style.backgroundColor = document.getElementById("je_zus").value; // } // function...
true
56372f600b1c761833d36ccd6684be70ad184148
JavaScript
orcourse/PeterM_01_20_1
/signaling.js
UTF-8
560
2.625
3
[]
no_license
function Signaling(model, currentPassword) { Service.call(this, model); this._currentPassword = currentPassword; } Signaling.prototype = Object.create(Service.prototype); Signaling.prototype.constructor = Signaling; Signaling.prototype.plusPass = function () { this._currentPassword += 1; }; Signaling...
true
bc53a16f8c6ab7f28bec3dd19643c73f826ef99d
JavaScript
dk1code/ds-06-errors-and-cors
/server.js
UTF-8
954
2.625
3
[]
no_license
const express = require("express"); const app = express(); const morgan = require("morgan"); const cors = require("cors"); app.use(cors()); app.use(morgan("dev")); app.use(express.json()); app.get("/getme", (req, res) => { res.send(fruits); }); app.post("/postme", (req, res) => { res.status(200).send(req.body); ...
true
cb17f172ff30f352d0e4bc2c734b07630eb74d5a
JavaScript
nuel-ikwuoma/trufflesuite.com
/helpers/breaklines.js
UTF-8
124
2.578125
3
[]
no_license
module.exports = function() { let text = arguments[0]; text = text.replace(/(\r\n|\n|\r)/gm, '<br/>'); return text; };
true
f11125b135e245a6f915c7f3a5896efb75d1b38d
JavaScript
neocreo/addressbook
/adressbook/js/scripts.js
UTF-8
10,963
2.875
3
[]
no_license
// JavaScript Document //global variable to hold client copy of the addresses in the database addresslist = ""; //reload the address list using ajax function displayAddressList(items) { //empty the contacts lists var list = $('#list ul'); //save a client copy of the items array for validation w...
true
cc89078b002a2b820c3bb69c2f619540999ed90f
JavaScript
herberthamaral/knockout_experiment
/spec/experiment-tests.js
UTF-8
1,271
2.859375
3
[]
no_license
describe("PessoaFormViewModel", function(){ it("nome completo deve ser mudado quando uma das partes do nome é mudada", function(){ var p = new PessoaFormViewModel(); p.nome('Herp'); p.sobrenome('Derp'); expect(p.nome_completo()).toBe("Herp Derp"); }); it("adicionar deve inser...
true
019d68cedab4f04ec88c0c762f6a7c1cbd5fa5bf
JavaScript
s41173/lockcode
/platforms/browser/www/js/profil.js
UTF-8
2,012
2.515625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
function profile(){ $(document).ready(function (e) { $.get(api+"customer/detail/"+localStorage.userid, function(data, status){ $("#name").html(data.first_name); $("#email").html(data.email); $("#phone").html(data.phone); $("#inputname")....
true
1c6fee7e2fc1c06576269ffdb61bf86e6774fa4a
JavaScript
HARSHJHASD/Maths-quiz-own
/app.js
UTF-8
3,290
3.296875
3
[]
no_license
var x = 30; var score = 0; document.getElementById("startButton").onclick = function() { if (x === 30) { document.getElementById("value").innerText = "0"; document.getElementById("startButton").innerText = "Reset"; // function timer for setting timer from 30 to 1 and game over and timer paused when =0. ...
true
7d74dfbb477bc707ddffd4d8a989b1cce2f0f505
JavaScript
ManeJ/POG
/app/javascript/plugins/by_location_in_list_index.js
UTF-8
1,629
2.609375
3
[]
no_license
const collapseBtns = document.querySelectorAll(".toggler-example"); collapseBtns.forEach((btn) => { btn.addEventListener("click", (event) => { const carouselContainer = event.currentTarget.parentElement.parentElement.children[1].children[0].children[0]; const input = document.querySelector(".mapboxgl-ctrl-geo...
true
884ae9bc6792c3573db7e5de8ac6895da95df0c6
JavaScript
jsipiranm/Dashboard
/js/login.js
UTF-8
1,395
2.75
3
[]
no_license
let btn_ingresar = document.querySelector('#btn_ingresar'); btn_ingresar.addEventListener('click',function(e){ let usuario = document.querySelector('#usuario').value; let pass = document.querySelector('#pass').value; if(usuario!=""){ if(pass!=""){ const coincide = (el) => el.usuario.toL...
true
1c97e292d0296cfb5e60f77d2cb6f798201ae3af
JavaScript
sdclibbery/drape
/modelling/primitives.js
UTF-8
1,553
2.671875
3
[]
no_license
define(function(require) { var vector = require('vector'); var bottom = require('modelling/bottom'); var abs = Math.abs; var sgn = x => (x<0) ? -1 : 1; var sign = Math.sign; var sqrt = Math.sqrt; var primitives = {}; primitives.cube = function (size) { return function (x, y) { if (abs(x) > size/2 || abs(y) > ...
true
5963fa27b52d79b4178d5936c647a334e15299db
JavaScript
Rajavn6789/d3-lidar-point-cloud-simulation
/app.js
UTF-8
7,753
2.8125
3
[]
no_license
/** * @description: D3 Lidar Obstacle Detection andn Point Cloud Simulation * @author: Rajavenkateshwaran Subramanian <rajavenkateshwaran.s@happiestminds.com> * @version: 1.0.0 */ const floorWidth = 600; const floorHeight = 500; const robotParams = { robotX: 210, robotY: 300, robotHeight: 70, robotWidth: 7...
true
136c1ff3afed152c5a47033ca7228aee2f162028
JavaScript
pushpakpop/Chirp
/js/script.js
UTF-8
4,028
2.65625
3
[]
no_license
$(document).ready(function () { //get hashtag from the url when the document is ready var currentLocation = window.location.hash.substring(1); if (currentLocation === "" || currentLocation === "home") //if home page { //get users home timeline when page loads Chirp.getHomeTimeline(); ...
true
6cd6125b6a0554581b281f9919e32c4ea5520ea6
JavaScript
Warriormuffin/momentum-remake
/app/components/weather/weather-controller.js
UTF-8
2,427
3.375
3
[]
no_license
function WeatherController() { var wc = this; var weatherService = new WeatherService(); weatherService.getWeather(function (weather) { drawWeather(weather) }) function drawWeather(weather) { debugger console.log(weather) var fahrenheit = weather.main.temp * (9 / 5) - 459.67 var f = fahre...
true
52dbe3bfbbd1aa1ac42be04014b5912d7973113e
JavaScript
fkhalili/wdi
/w05/d05/Homework/script.js
UTF-8
1,431
2.765625
3
[]
no_license
var fs = require("fs"); var express = require("express"); var ejs = require("ejs"); var bodyParser = require("body-parser"); var urlencodedBodyParser = bodyParser.urlencoded({extended: false}); var app = express(); app.set("view_engine", "ejs"); app.use(urlencodedBodyParser); var getLetters = function ge...
true
9e3593b4788bc71668d85f039509a30d843e7601
JavaScript
presian/HomeWorks
/JavaScriptBasics/_3_/_14_palindromesExtract.js
UTF-8
529
3.859375
4
[]
no_license
function findPalindromes(a) { var arr = []; var outArr = []; var reverse = ''; arr = a.toLowerCase().split(/\W+/g); for (var j = 7; j < arr.length; j++) { if (arr[j] === '') { arr.splice(j, 1); } } for (var i = 0; i < arr.length; i++) { reverse = arr[i].sp...
true
682c857df932cba0d5119a775c6a93dfa60e4b98
JavaScript
pjt3591oo/mini_react
/src/component.js
UTF-8
521
2.8125
3
[]
no_license
import React from './react' const Component = () => { const [ count, setCount ] = React.useState(1) const [ text, setText] = React.useState('mung') React.useEffect(() => { console.log('component useEffect called') }, [count]) return { render: () => { console.log(`[Rendder] Component : count...
true
4111e13c8cb2fc11ce61389d16908b780dc4521b
JavaScript
WD-Esha/ES6-Practice
/3dots.js
UTF-8
405
3.078125
3
[]
no_license
const ages = [12,22 , 24 , 26 ,13, 20 ]; const ages2 = [15, 16 ,17]; const ages3 = [34, 35 ,33]; const allAges = ages.concat(ages2).concat(ages3); const allages2 = [...ages,...ages3, ...ages2 ]; // console.log(allages2); const buissnesssman = 650 ; const minister = 450 ; const sochib = 250 ; const takapoisa = [6...
true
a87f4a57520562208cdbf73cfdedd19dac3d2eb9
JavaScript
churulik/SoftUni
/Front-end/JS-apps/3.Baas/models/country/deleteCountry.js
UTF-8
669
2.578125
3
[]
no_license
$(function () { $('#deleteCountryButton').click(function () { var countryName, countryId, method, url, data, message, confirmation; countryName = $('#deleteCountryInput').val(); isNullOrEmpty(countryName, 'Select country.'); confirmation = confirm('Are you sure that you want t...
true
974151fd8fb1cc1cbf0b7a57fe7aad0d983a4998
JavaScript
pmeet862/chat-app
/public/js/script.js
UTF-8
2,868
2.9375
3
[]
no_license
const socket = io('/'); const messageContainer = document.getElementById('message-container'); const messageFrom = document.getElementById('send-container'); const messageInput = document.getElementById('message-input'); const list = document.getElementById('ul'); const title = document.getElementById('title'); v...
true
c53ca2654f0e4dbcda2dfd973be97e484da04b59
JavaScript
gozdegozde/coinTrackerFrontend
/src/store/userCoin/reducer.js
UTF-8
715
2.53125
3
[]
no_license
const initialState = { loading: true, allCoins: {} }; export default function userCoinSliceReducer(state = initialState, action) { switch (action.type) { case "userCoinsList/fetched": return { loading: false, allCoins: action.payload, }; case "coins/addOneCoin": return { ...state, ...act...
true
7bffae07c9b544b943754ff018ca77399ac201f5
JavaScript
FennyLiang/practice
/leetcode_practice/easy/Remove Nth Node From End of List_linked list.js
UTF-8
1,780
4.09375
4
[]
no_license
/** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } * * 給一個連結陣列,移除連結陣列從後面數來第n個節點 例如, 1->2->3->4->5, n = 2. 從後面數2個,移除4後的連結陣列變成 1->2->3->5. 注意: n不會比連結陣列還長,試著跑一次迴圈解題。 * * * [1,2,3,4] , n = 2,fast = [1,2,3,4] , slow = [0,1,2,3,4]...
true
7f8585db107b78acc4ca6a627bb9051f688da0e5
JavaScript
dolittle/Bifrost
/Source/Bifrost.JavaScript.Specs/mapping/for_Map/when_asking_if_can_map_property_with_two_properties_and_last_property_matches.js
UTF-8
775
2.546875
3
[ "MIT" ]
permissive
describe("when asking if can map property with two properties and last property matches", function () { var propertyMapType = null; var result = null; beforeEach(function () { propertyMapType = Bifrost.mapping.PropertyMap; Bifrost.mapping.PropertyMap = { create: function (option...
true
153b6a3e805df46d4e9f99dd2b578e899ba0fdcf
JavaScript
marieke-ebar/next-tasksnotes
/components/Tasks/auxil/domHandler.js
UTF-8
4,038
2.75
3
[]
no_license
'use strict'; import { db_updateTaskDescr as ajaxUpdate } from '/js/ajaxRequests.js' var taskDescrVal = ''; var editDescrInputVal = ''; function attachListeners() { const taskToggleBtns = document.querySelectorAll('.todo-complete-btn'); const taskEditBtns = document.querySelectorAll('.edit-task'); const ...
true
4a025d90c6704c59478a73b10c9c5ce5afda07c6
JavaScript
kbarchenger/CSC431-Final
/project.js
UTF-8
35,426
3.78125
4
[]
no_license
// Created by Kimberly Barchenger and Jennifer Shaw // This code is distributed under the BSD license and it is a rewrite of code // shared in class CSC431 at DePaul University by Massimo Di Pierro. // Creates a matrix // Inputs: rows, a number, the number of rows in the matrix // cols, a number, the number of...
true
e7e0731f815fc49c4bfaa4ca6057e578c21b444a
JavaScript
yoksel/htmla-project-checker
/js/content.js
UTF-8
6,179
2.671875
3
[]
no_license
// Не смотрите в код. // Я предупредила! var $ = tinyLib; var doc = document; var body = doc.body; var pageContent = $.get('.page-content'); var defaultClass = 'criterie-item'; var checkItems = $.get('.' + defaultClass); var checkItemsIndex = {}; var itemsCounter = 0; var attentionList = {}; var attentionListContent ...
true
2611dd7c5a458afb1227581b1dad2f6226a5fcd4
JavaScript
nmarley/node-playground
/learnyounode/async-ls.js
UTF-8
448
3.171875
3
[ "MIT" ]
permissive
var fs = require('fs') // store args var dir = process.argv[2] var pattern = process.argv[3] // create regexp object var re = new RegExp("\\." + pattern + "$") fs.readdir(dir, function(err, list) { // iterate through list list.forEach(function(elem) { // for each elem, check: // does the elem mat...
true
2fbd6d37c405fba44232d4202e7d43ba17777c0c
JavaScript
axelrinaldiwanadoofr/stageALL
/inc/action/motionpause.js
UTF-8
1,599
2.609375
3
[]
no_license
// Temps de pause function MotionPause( id, time_pause, actif_event ) { this.id = id ; this.time_pause = time_pause ; this.actif_event = actif_event ; this.categorie = "action" ; this.time = 0 ; this.actif = false ; } MotionPause.prototype = { get_time_pause: function() { return this.time_pause ; }, ...
true
6b45dee5d88d0e246aa5387084f7a0608e3e15cb
JavaScript
Overload119/RapPad-Mobile-React-Native
/src/components/Home.android.js
UTF-8
2,002
2.515625
3
[ "MIT" ]
permissive
/** * Home screen holds tabs along the top and content within it. **/ import React, { View, Text, Platform, StyleSheet, ViewPagerAndroid } from 'react-native'; import {Tab, TabLayout} from 'react-native-android-tablayout' import {COLORS} from '../constants/Colors'; import Dashboard from './Dashboard'; import Forum ...
true
d70fe73316f9a4c39b7bfab71907665775b5519b
JavaScript
timenengwerda/es6-clicker
/dist/js/user.js
UTF-8
1,686
2.640625
3
[]
no_license
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
true
f0d7eaae86bbb9afc399c47c2b1bf1d6da38c8ca
JavaScript
podiumdesu/2018UniqueHackday-Grape
/server/user/auth.js
UTF-8
1,781
2.65625
3
[]
no_license
// 用于token认证 // callback: // "fakepeople" === wrong token // "1" === success // "wrong pwd" === wrong password, the token may be expired var MongoClient = require('mongodb').MongoClient var url = 'mongodb://localhost:27017/userlist' var query = require("./query") var jwt = require("jsonwebtoken") var config = require...
true
a702e4c3f45f3eab2569b3448baf292989a481b0
JavaScript
Joshfindit/Codeacademy.JS
/javascript-beginner-en-9Sgpi (Arrays and Objects in JS)/4.js
UTF-8
146
2.75
3
[ "MIT" ]
permissive
var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"]; for ( var i = 0; i < languages.length; i ++) { console.log(languages[i]); }
true