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
7f1586107e9f44fe652d82d684ea002134dfac99
JavaScript
VicenteRD/Conforme
/app/assets/javascripts/filter_table.js
UTF-8
760
2.75
3
[]
no_license
(function( $ ) { $.fn.filterable = function(options) { var defaults = { inputSelector: '.filterer', hasHeaderRow: true }; var settings = $.extend( {}, defaults, options ); var $input = $(settings.inputSelector); var $rows = this.find('tr'); if (settings.hasHeaderRow) { $rows...
true
910474ecada3eb60c9b5e5d0149f4c3c3c0796ce
JavaScript
evernoteHW/WeiBo
/src/common/network/index.js
UTF-8
3,281
2.78125
3
[]
no_license
/** * DataRepository * 刷新从网络获取;非刷新从本地获取, * 若本地数据过期,先返回本地数据,然后返回从网络获取的数据 * @flow */ 'use strict'; import { AsyncStorage, } from 'react-native'; export var FLAG_STORAGE = {flag_popular: 'popular', flag_trending: 'trending'} export default class DataRepository { constructor(props) { // super(props)...
true
63dd545de06496f9611f8d64674841944657affd
JavaScript
VhCompany1/Discord-Vulnerabilidade-Token
/Code/PEGAR.js
UTF-8
1,771
2.59375
3
[ "MIT" ]
permissive
const express = require('express'); const app = express(); const port = 3000; const path = require("path"); const low = require('lowdb') //banco de dados const FileSync = require('lowdb/adapters/FileSync') const adapter = new FileSync('database/db.json') const db = low(adapter) //app.set('view engine', 'html'); app....
true
866f08a0383357ea430f9a73466b97218a0aca0c
JavaScript
marthadansylemarbella/personal-api-proj
/assets/js/dictionary.js
UTF-8
11,699
3.125
3
[]
no_license
const baseUrl = "https://mydictionaryapi.appspot.com/?define="; const input = document.getElementById("search-bar"); var inputArr = []; var count = 0; document.getElementById("load").style.display = "none"; //noun const defaultDisp = document.querySelector("#defaultDisplay"); function generate(id, target) { var ...
true
675a30a8b35390bd09c3787a278e3d82e3cbf9b0
JavaScript
smvasiltsov/JavaScript-clock-project
/jsWithClock.js
UTF-8
2,456
3.359375
3
[]
no_license
// document elements const clock = document.getElementById('clock'); const image = document.getElementById('image'); // const variables const ONE_SECOND = 1000; const ENTER_KEY_CODE = 13; const wakeupHour = 3; const dayTimeHour = 12; const goToSleepHour = 21; // Images const nightCatSrc = 'http://www.leadervet.com/ni...
true
564fe9e4da1412d4bc9715e94020416a7d52b97a
JavaScript
lysycyn/dz3
/src/Terminator/Sinewave.js
UTF-8
1,377
3.046875
3
[]
no_license
/** * Класс для отрисовки звуковой частоты с помощью канваса */ export default class Sinewave { constructor(analyzer, canvas) { this._analyzer = analyzer; this._canvas = canvas; this._context = canvas.getContext('2d'); this._bufferLength = this._analyzer.fftSize; this._dataArray = new Uint8Arra...
true
0bff94e03b2692b82768c58f91049fa326eba74b
JavaScript
ton3s/reactnd-myreads
/src/App.js
UTF-8
1,328
2.546875
3
[]
no_license
import React, {Component} from 'react' import * as BooksAPI from './BooksAPI' import './App.css' import {Route} from 'react-router-dom'; // Components. import SearchBooks from './components/SearchBooks'; import ListBooks from './components/ListBooks'; class BooksApp extends Component { state = { books: [] }; c...
true
4062729f8063f19250924a6acf256c956dfcfeb0
JavaScript
Iyke09/Events
/server/server-test/events.spec.js
UTF-8
12,053
2.546875
3
[ "MIT" ]
permissive
let data = {}; let userToken1 = ''; let userToken2 = ''; let checkId = ''; const eventTest = (expect, request, eventUrl, usersUrl) => { console.log(eventUrl); describe("EVENTS TEST", () => { before((done) => { request.post(`${usersUrl}/signin`) .send({ password: '1...
true
dbcf837ef9d30c3b348949154e16dd5c88eb4bf3
JavaScript
Millsy55/ToneGenerator
/popup.js
UTF-8
425
3.078125
3
[]
no_license
/** * @author Adam Mills */ document.addEventListener("click", sine); var canvas = document.getElementById("myCanvas"); var dt = canvas.getContext('2d'); var freq = 1000, freqMultiplier = 1; dt.moveTo(10,10); dt.lineTo(50,50); dt.stroke(); var sineWave = document.getElementById('SineWave.mp3'); function sine(){ dt.f...
true
9e7c8c9e67a51453f2bb4acca9889b0f5b9abdd8
JavaScript
dudada/node-simulate-linuxDirective
/ls/echo.js
UTF-8
140
2.734375
3
[]
no_license
var argument = process.argv.splice(2); var source = argument[0]; if(source == null){ console.log(''); }else{ console.log(source); }
true
9cb1ac4aabe314ccb4792ffb7c18e3ca81d5ce42
JavaScript
abstractiondev/TheBallMeWeb
/WebTemplates/CPanelVR/assets/controlpanel/js/oipuieventhelpers.js
UTF-8
1,647
2.6875
3
[ "Unlicense" ]
permissive
/** * Created by Kalle on 4.9.2014. */ ReplaceIFrameTagsWithMarkup = function(inputString) { /* * Regex: <iframe (.*)>.*</iframe> * Replace: [:iframe $1] * * or back * * Regex: \[:iframe (.*)\] * <iframe $1><iframe> * * */ //var pattern = /<iframe (.*)>.*</iframe>...
true
bd3eb2e2b0f216dff3ad509da57a1e79255c6e52
JavaScript
LoriNitzel/gpl
/routes/users.js
UTF-8
4,293
2.703125
3
[]
no_license
'use strict'; var express = require('express'), router = express.Router(); var Table = require('../data/knexSetup.js'), Users = Table('users'); var bcrypt = require('bcrypt'); // GET ‘/’ - shows all resources TODO router.get('/', function(req, res) { Users().select('*') .then(function(usersData) { r...
true
f302b17a9e3a0e198ca856f62c3bbea7b3d6020d
JavaScript
jacksari/carrito-js-v1
/js/index.js
UTF-8
6,448
2.9375
3
[]
no_license
const CART_PRODUCT = "cartProductsID"; document.addEventListener("DOMContentLoaded", ()=> { loadProduct(); loadProductCart(); }); function getProductsDb(){ const url = '../dbProducts.json'; return fetch(url).then( resp => { return resp.json() }).then(result => { return result }...
true
a335cf24ee686b26acd4b365cd9c3681bb02e583
JavaScript
bad-logic/schema_generator
/main.js
UTF-8
2,420
4.0625
4
[]
no_license
// VALUE TYPEOF // null object // object object // array object // undefined undefined // string string // number number // boolean boolean // /** * GET THE DATA TYPE OF ANY JAVASCRIPT OBJECT * * @param {object} x ANY JAVASCRIPT OBJECT * * @return {type} T...
true
cc62fc71b502924ac6e7c3127122b45f4edd0656
JavaScript
Kenzie-Academy-Brasil-Developers/entrega-contador-frequencia-sprint-3-gustavool1
/script.js
UTF-8
1,703
3.59375
4
[]
no_license
let textoInput = document.getElementById("textInput") let btnCont = document.getElementById("countButton") btnCont.addEventListener("click", palavras ) function palavras(){ let lettersDiv = document.getElementById("lettersDiv"); let filhos = [...lettersDiv.childNodes] if(filhos.length>0){ while(le...
true
da288a03c4b4ae4aeab49a735ba160a7429f1e68
JavaScript
pillarrock/todo
/src/js/elements.test.js
UTF-8
2,738
2.734375
3
[]
no_license
describe('', () => { beforeEach(() => { document.body.innerHTML = `<div class="container"> <div class="header"> <h1>My To-do List</h1> </div> <div c...
true
bbb6626179794fd2fcdbd26c0422c5c942904862
JavaScript
emonmazharul/fullstack-project
/router/apiRouter.js
UTF-8
1,507
2.625
3
[]
no_license
const express = require('express'); const Product = require('../db/pruductModel'); const Order = require('../db/orderModel'); const router = new express.Router(); const {v4:uuid} = require('uuid'); router.get('/product', async (req,res) => { try { const products = await Product.find(); if(products.length < 1) { ...
true
ab2cf8c4de17ffa372a2178666d317633cd7bdc9
JavaScript
dmitriyPruss/binary_search
/js/index.js
UTF-8
1,105
3.96875
4
[]
no_license
'use strict'; // Использовать бинарный поиск, чтобы отгадать загаданное пользователем число от 0 до 100. // Задавать вопрос с помощью confirm. // console.log('searchValue() :>> ', searchValue()); function searchValue() { let start = 0; let end = 100; let middle; while (start <= end) { mid...
true
bbe788a1f92642ec297e19041e28abaf5d5006d2
JavaScript
windldream/leetcode
/sort/maxCoins.js
UTF-8
252
3.25
3
[]
no_license
/** * @param {number[]} piles * @return {number} */ var maxCoins = function (piles) { piles.sort((a, b) => a - b) let l = 0 let r = piles.length - 1 let ans = 0 while (l < r) { ans += piles[r - 1] l++ r -= 2 } return ans }
true
859f9d3524e00ecb97e72c7a3fd7b10c2721a921
JavaScript
benrudolph/homepage
/public/js/resume.js
UTF-8
1,409
2.65625
3
[]
no_license
var Resume = function(svg, svgWidth, svgHeight) { this.svg = svg this.svgHeight = svgHeight this.svgWidth = svgWidth this.height = 600 this.width = 1000 } Resume.prototype.display = function(isDisplayed) { d3.select(".resumeContainer") .style("display", function() { if (isDisplayed) ...
true
d3bb246f64519c4d8b460ae41431919c8afdc792
JavaScript
roniejisa/formValidate
/checkAfterSubmit.js
UTF-8
833
2.71875
3
[]
no_license
const showError = function(json){ let main = document.querySelector(".ajaxform.register-form").querySelectorAll("input,select"); inputFirst = Array.from(main).filter( (input) => input.name == Object.keys(json)[0] ); inputFirst[0].focus(); for (const [key, value] of Object.entries(json)) { ...
true
96c2c64c618f3664a0c01ed9814a942975e37fe7
JavaScript
slemcke/contactJS
/js/modules/subscriber/subscriberList.js
UTF-8
3,753
2.96875
3
[]
no_license
/** * This module represents a SubscriberList. It is a subclass of AbstractList. * * @module SubscriberList * @fileOverview */ define(['easejs', 'abstractList', 'subscriber'], function(easejs, AbstractList, Subscriber){ var Class = easejs.Class; /** * @class SubscriberList * @classdesc This class rep...
true
cff3d0944a289b8a0a66a52e13f67c6da58a7a19
JavaScript
underdogdude/react-training
/src/App.js
UTF-8
1,300
2.671875
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import './styles.css'; import 'normalize.css'; import FormItems from './components/formItem'; import ListItems from './components/listItem'; class App extends Component { state = { items:[],total:0 }; submit = (item) => { this.setState((state) ...
true
fe608aba569fc17debad2b680ea8ef67d1e23ddd
JavaScript
epsitec-sa/react-usage
/src/test/babel-6-decorators.js
UTF-8
972
2.640625
3
[]
no_license
'use strict'; import {expect} from 'mai-chai'; let fooCalled = 0; let fooClassBefore; let fooClassAfter; function foo (x) { fooCalled++; class Bar extends x { bar () { return 'bar'; } }; fooClassBefore = x; fooClassAfter = Bar; return Bar; } @foo class Foo { bar () { return 'foo'; ...
true
c19ab8a9d13a361d7861efb9a0dbfe8a7c5a6d9c
JavaScript
Lukis92/ew-javascript
/14/js/scripts.js
UTF-8
472
3.8125
4
[]
no_license
var person = { firstName: "Jan", lastName: "Kowalski", hobbies: ["sport", "technologie"], birthdate: new Date(1970, 2, 15), married: false, salary: 2000, sayHello: function() { return this.firstName + " " + this.lastName; } }; //Konwertowanie obiektu na JSON //null - funkcja //4...
true
6b240a64f7d587e13826730714c6d8c1f0e0e97f
JavaScript
zi-mu/biao-class
/practice/037-所有重复的工作都可以交给循环(for,while)/main.js
UTF-8
27,062
2.953125
3
[]
no_license
; (function () { 'use strict'; // let userList = [ // '王花花', // '李拴蛋', // '赵克爽', // ]; // for (let i = 0; i < userList; i++) { // console.log(userList[i]); // } //2. // let userList = [ // '王花花', // '李拴蛋', // '赵克爽', // ]; // ...
true
48ef0fb4cbca8125467a33595b5e159a793a34a6
JavaScript
Shog9/edb_docs_advocacy
/src/components/prev-next.js
UTF-8
1,530
2.546875
3
[ "MIT" ]
permissive
import React from 'react'; import { Link } from 'gatsby'; import { filterAndSort } from '../constants/utils'; const getPrevAndNextLinks = (links, path) => { let result = { prevLink: null, nextLink: null }; const idx = links.findIndex((element, index, array) => { return element.path === path; }); if (idx > ...
true
6ecb253d2b2dc2640b041d93566956ad944a8c18
JavaScript
mike964/winit-90
/server/controllers/auth.cont.js
UTF-8
5,010
2.640625
3
[ "MIT" ]
permissive
const jwt = require( 'jsonwebtoken' ) const ErrorResponse = require( '../utils/errorResponse' ) const asyncHandler = require( '../utils/asyncHandler' ) // const sendEmail = require( '../utils/sendEmail' ) const User = require( '../models/User' ) // const { sendErrorResponse } = require( '../utils/functions' ) const CLI...
true
3507d54dfd80f473f94669471e20bf3798642192
JavaScript
erbaclaire/Sample-Web-Dev-Code
/hw4/index.js
UTF-8
8,428
3.078125
3
[]
no_license
// get date in javascript: https://tecadmin.net/get-current-date-time-javascript/ // api: https://api.nasa.gov/ // sorting: https://gomakethings.com/sorting-an-array-by-multiple-criteria-with-vanilla-javascript/ // formatting numbers: https://blog.abelotech.com/posts/number-currency-formatting-javascript/ function for...
true
3179cda4750dcadd10f00ebd02a0d3616cbd2197
JavaScript
momentum-cohort-2018-07/project-w3-fe-game-hankmitsch
/src/star.js
UTF-8
773
2.875
3
[]
no_license
import Keyboarder from './keyboarder' class Star { constructor (game) { this.game = game this.center = { x: Math.floor(Math.random() * 550), y: Math.floor(Math.random() * 550) } this.keyboard = new Keyboarder() this.size = { x: 4, y: 4 } } draw () { this.game.c...
true
74173dd0c67646b94717c47e39686d1a0234008a
JavaScript
GreenRabite/Homeco
/services/passport.js
UTF-8
3,222
2.578125
3
[]
no_license
// require in passport middleware const passport = require('passport'); //need local strategy as well -- Luuu const LocalStrategry = require('passport-local').Strategy; const GoogleStrategy = require('passport-google-oauth20').Strategy; const mongoose = require('mongoose'); const keys = require('../config/keys.js'); c...
true
46172911be69ca8ed6d4b84db34b7db58abda307
JavaScript
novakoki/MyNote
/js/NoteList/view.js
UTF-8
902
2.8125
3
[ "MIT" ]
permissive
var $tagName = document.querySelector('.note-list h1') var $noteList = document.querySelector('.note-list ul') var $newNoteButton = document.querySelector('.new-note') module.exports = { $tagName: $tagName, $noteList: $noteList, $newNoteButton: $newNoteButton, render: function (notes, currentTag) { $tagNam...
true
22a7162b5a9440aae750ed0ae737c5ec7533709a
JavaScript
William-Hill/earnestUIChallenge
/server.js
UTF-8
1,157
2.75
3
[]
no_license
// console.log(process.argv); // console.log(process.argv.length); // var i = 2; // var sum = 0; // for (i; i < process.argv.length; i++){ // // console.log("numbers: ", Number(process.argv[i]) ) // sum += Number(process.argv[i]) // } // console.log(sum); // var fs = require('fs'); // var fileName = process.argv[2]; ...
true
e35138837c1407512106ddcdcb5a6c140a56845b
JavaScript
yu3211/studyCode
/js_sample/js/chap03/scripts/match_multi.js
UTF-8
320
3.078125
3
[]
no_license
// http://127.0.0.1:8887/chap03/17_2.match_multi.html var p = /^[0-9]{1,}/g; //var p = /^[0-9]{1,}/gm; var str = '101匹ワンちゃん。\n7人の小人'; var result = str.match(p); for (var i = 0, len = result.length; i < len; i++) { console.log(result[i]); } for(let r of result) { console.log(r); }
true
bccc96b65de6fbe0e2e57a83cba472007819cb0f
JavaScript
ajveach/threedo
/js/core/Models/_Sphere.js
UTF-8
869
2.921875
3
[]
no_license
(function(){ threedo.Sphere = function(options){ var options = options || {}; // // Create sphere mesh // // Start with geometry var radius = options.radius || 1, segments = options.segments || [8,6], phi = options.phi || [0, Math.PI * 2], theta = options.theta || [0, Math.PI], geometry = n...
true
e6d12f9be105322ffaa9eafe9c9d8759be2f03da
JavaScript
BonuolaK/Covid19_Visualization
/js/utils.js
UTF-8
665
3.21875
3
[]
no_license
function sortBy(arr, prop) { return arr.sort((a, b) => a[prop] - b[prop]); } Array.prototype.sum = function (prop) { var total = 0; for ( var i = 0, _len = this.length; i < _len; i++ ) { total += parseInt(this[i][prop]) } return total } function sortByDesc(arr, prop) { re...
true
39b32c1660c50143f605e4477871ae3edc95fa76
JavaScript
namanjagtap/Todo-List
/todo-list-app/src/App.js
UTF-8
789
2.71875
3
[]
no_license
import React from "react" import todosData from "./todosData" import TodosItem from "./todosItem" class App extends React.Component{ constructor(){ super() this.state ={ todos: todosData } } handleChange = (id) => { this.setState(prevState =>{ const UpdateTodo = prevState.todos.map(t...
true
7eb9f39e685e7b8e5a8d24241c21ea998f9a642a
JavaScript
Dumpinator/Portfolio
/app.js
UTF-8
3,634
2.796875
3
[]
no_license
//////// GRID PORTFOLIO ////////// import { slideUp , slideDown , slideToggle } from './js/toggle.js' import projects from './js/data.js' class Portfolio { constructor (selector) { this.activeContent = null this.activeItem = null this.container = document.querySelector(selector) if (this.container === null) {...
true
7be3539771cea9fbf267efad852053d58add7a7f
JavaScript
davidrs/idle-or-bieber
/js/twitter.js
UTF-8
2,439
2.84375
3
[]
no_license
function showNextTweet(){ attempts++; if(score>bestScore){ updateHighscore(); } $('#score').html('Score: '+score+' / '+attempts); $('.tweet:nth-child(1)').hide("slow", function(){ $(this).remove(); $('.tweet:nth-child(1)').show("slow", function(){ allowInput=true; ...
true
138902259c834d17e264b56957d7ddccd892f701
JavaScript
davyzhang/flyssh
/flyssh_svr_changer.js
UTF-8
1,921
2.703125
3
[]
no_license
var system = require("system") var args = system.args var username = args[1] var password = args[2] var productID = args[3] var targetSvr = args[4] if (args.length < 4){ console.log("usage: phatomjs path/to/script username password productID targetSvr") console.log("eg. phantomjs test.js bob securitpass 987 02 ") ...
true
7482a1cee5337c7608ec1e1e8896b2fde90b0956
JavaScript
adrianromero/workflow-ts
/ts/index.js
UTF-8
317
2.765625
3
[]
no_license
"use strict"; var mymaths = require('./mymaths'); var _ = require('underscore'); console.log('Hello TypeScript!!!'); console.log('Calculate 2 + 2 = %d.', mymaths.add(2, 2)); console.log('Random number between 1 and 100 = %d.', _.random(1, 100)); var greet = new mymaths.Greeter('Felipe'); console.log(greet.greet());
true
2aa0b67eac9a7521a1958693380fd02c016e3178
JavaScript
thomd/on-react
/src/components/Amount.js
UTF-8
1,011
2.765625
3
[]
no_license
import React, { Component } from 'react' class Amount extends Component { constructor(props) { super(props) this.state = { amount: 0 } } onIncrement = () => { this.setState(state => ({ amount: state.amount + 1 })) } onDecrement = () => { this.setState(state => ({ amount: state.amount > 0 ? ...
true
d460aa17b0b16c509eedb9c5f0406602331cd48f
JavaScript
ccondry/vvb-client
/src/models/fetch.js
UTF-8
933
3
3
[]
no_license
const fetch = require('node-fetch') module.exports = async function (url, options) { try { const response = await fetch(url, options) if (response.ok) { // try to parse and return the response try { const json = await response.json() return json } catch (e) { // resp...
true
4330f2088123a5f95a43e47986f2a792a310e35c
JavaScript
CB721/node-adventure-game
/stages/boss.js
UTF-8
2,375
2.90625
3
[]
no_license
const colors = require('colors'); const game = require('../game/game'); const normal = require('./normal'); const enemies = require('../Characters/enemies.json'); const story = require('../assets/story.json'); module.exports = { boss: function (curStage, character, username, health, weapons, lives, freePlay) { ...
true
99c63ceb204251df0680d67961f789bb49134e99
JavaScript
luotaoyeah/learning-javascript
/projects/2020/src/book/es6-for-humans/02/02-02/02-02-03/02-02-03-04.js
UTF-8
441
3.9375
4
[]
no_license
/* * New Syntax in ES6 * Arrow Functions * this in Arrow Functions */ console.log("\n-------------------------------------------------- 01"); { /* * arrow function 不能作为 constructor, * 因为 arrow function 中的 this 为当前环境的 this, * 它本身没有自己的 this; */ const Person = name => { this.name = na...
true
f892c97a1d6bcd1565a8e23261c05740a2b26e70
JavaScript
gugulu98/MERN-web-mobile-app
/web/api/exercise/exercise.route.js
UTF-8
2,248
2.8125
3
[]
no_license
import express from 'express'; import escapeRegExp from 'lodash.escaperegexp'; import { typeCheck } from 'type-check'; import Exercise from './exercise.model'; const exerciseRouter = express.Router(); /* Searches for a stool that matches the given params dateMin/dateMax - the date range durationMin/durationMax -...
true
b89e19964e88595bc8f78589fe919dcab390baa3
JavaScript
duenti/Object-Oriented-Javascript
/Classes and Subclasses/library.js
UTF-8
275
2.875
3
[]
no_license
var Car = function(loc){ this.loc = loc; }; Car.prototype.move = function(){ this.loc++; }; var Van = function(loc){ Car.call(this,loc); //Chama super classe } Van.prototype = Object.create(Car.prototype); Van.constructor = Van; Van.prototype.grab = function(){/*...*/};
true
b897c918319407a48fd70eddf4b9e7b92d0d7acc
JavaScript
abc2581314123/hello-world
/连续剧专题多集免费升级/epg/sp_2/bytueToolsSerial.js
UTF-8
1,702
2.9375
3
[]
no_license
(function(){ // bytueTools命名空间 if(!window.bytueTools){ window['bytueTools'] = {} } function getCenterDis(dom1, dom2){ // 获取dom1元素的中心点坐标 let dom1CX = dom1.offsetLeft + dom1.offsetWidth / 2; let dom1CY = dom1.offsetTop + dom1.offsetHeight / 2; // 获取dom1元素的中心点坐标 let dom2CX = dom2.offsetLeft + dom2....
true
e4ed93e1dc6ac65f1dac68f1ff386baa4ef1d060
JavaScript
Hellsflash/JSCORE
/JS Advanced/Advanced Functions Exercises/08.Euclids Algorithm.js
UTF-8
230
2.921875
3
[]
no_license
function eclidsAlgorithm(a,b) { return gcd(a,b); function gcd(a,b) { if (b===0){ return a; } else { return gcd(b,a%b); } } } console.log(eclidsAlgorithm(252, 105));
true
1b10c3618098012398c796a724ab0010c1c8239d
JavaScript
zequnl/iCanteen
/src/main/webapp/js/salesInfo.js
UTF-8
1,284
3.0625
3
[ "MIT" ]
permissive
var num = 1;// 行的初始id var rowNum = 5;// 一次添加的个数 var dishName = new Array(); var dishPrice = new Array(); function $(elem) { return typeof elem == "string" ? document.getElementById(elem) : elem; } function getValue() { var y = document.getElementsByTagName("input"); for (var i = 0; i <= (y.length - 3)...
true
700caebc6f3b051a18ffef8752034354de35c86e
JavaScript
mezzoEmrys/BrutalMelee
/scripts/enemy.js
UTF-8
2,958
2.875
3
[]
no_license
function createEnemy(time){ var name = "enemy" + state.nextId; state.enemies[state.nextId] = new Enemy(name, time); state.nextId++; CreatePerson(name, "soldier.rss", true); IgnorePersonObstructions(name, true); IgnoreTileObstructions(name, true); //calculate off to edge; var absAng = getRandomArbitrary(0, state...
true
de6cf15df263a445dd640847cb871ffd1814f970
JavaScript
penouc/leetcode-js
/24.swap-nodes-in-pairs.js
UTF-8
1,029
3.53125
4
[]
no_license
/* * @lc app=leetcode id=24 lang=javascript * * [24] Swap Nodes in Pairs */ /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} head * @return {ListNode} */ var swapPairs = function(head) { let ret = new ListNode...
true
55257432e8df220229a0af9138d1058383115c8e
JavaScript
PavlovVitaly/NodeJs_Homework_ITMO
/js_homework/HW4/Task_04.js
UTF-8
733
3.421875
3
[ "Apache-2.0" ]
permissive
function SortArr(){ var inputArr = [12,2,4,3,10,1,20]; var lo = 0; var hi = inputArr.length-1; QuickSort(inputArr, lo, hi); alert(inputArr); } function QuickSort(A, lo, hi){ if(lo < hi){ var supportElem = Partition(A, lo, hi); QuickSort(A, lo, supportElem); QuickSort(A, ...
true
e032801b3b47a798da70e586232df18dbc925378
JavaScript
thomasfriedrichs/age-calc
/src/js/mercury.js
UTF-8
525
3.34375
3
[ "MIT" ]
permissive
export default class Mercury { constructor(myAge, lifeExpectancy) { this.murcYear = 0.24; this.myAge = myAge; this.mercuryAge = 0; this.lifeExpectancy = lifeExpectancy; this.yearsLeft; this.yearsPast; } ageCalc() { return this.mercuryAge += Math.floor((this.myAge / this.murcYear)); ...
true
9051c166349c12deb3df65d26562a3622cf92f5b
JavaScript
danivm/skylab-bootcamp
/javascript/katas/gradeBook/src/gradeBook.js
UTF-8
242
3.03125
3
[ "MIT" ]
permissive
function gradeBook(){ var total = arguments.reduce( function(acc,elem){ acc+=elem },0); var avg = total/arguments.length if (avg>=90) return "A" if (avg>=80) return "B" if (avg>=70) return "C" if (avg>=60) return "D" return "F" }
true
b211a0b144f9c30d995ef879b9786064e57eef50
JavaScript
Cam-Smith-Games/Isometric-MOBA
/client/Game/projectiles.js
UTF-8
539
3.5625
4
[]
no_license
function fire(position) { this.position = position; this.frame = 0; this.width = 64; this.height = 64; this.timer = 200; } fireList = []; function shootFire(position, angle, count) { fireList.push(new fire(position)); var newPos = new vector(position.x + Math.cos(angle)*50, position.y + Ma...
true
bd858fa9ef1757c85abf1875863583aee423d1d4
JavaScript
kchetan92/front_end
/Gautam/Day3/MVC/all.js
UTF-8
3,370
3.0625
3
[]
no_license
var id = 0; function PageController() { this.cManager = new ContactManager; this.cView = new ContactsView; var that=this; this.cView.addObserver('contactAdded', function() { that.cManager.addContact(new Contact(that.cView.getContactsFromForm())); that.cView.render(that.cManager.contacts); that.cView.cl...
true
933cb9ebd73215e9e3a52c9957438a9c1525eb9e
JavaScript
chulphan/tutorials
/Tutorials/study-react-test/src/components/__test__/NameList.test.js
UTF-8
1,240
2.578125
3
[]
no_license
import React from 'react'; import { shallow } from 'enzyme'; import '../../setupTests'; import NameList from '../NameList'; /* *********NameList 컴포넌트 테스트 항목*********** NameList 컴포넌트가 에러없이 렌더링 되었는지 가짜 데이터를 바탕으로 잘 렌더링 되었는지. renderList 메소드가 제대로 동작하는지. */ describe('about <NameList>..', () => { l...
true
b1090642bd1890abe47a345703bf53b78197df78
JavaScript
Damaged-Organic/TradingTime
/src/AppBundle/Resources/public/js/controllers/feedbackController.js
UTF-8
1,420
2.609375
3
[]
no_license
var app = app || {}; app.FeedbackController = (function(root){ function FeedbackController(){ this.el = $("#feedback"); this.initialize.apply(this, arguments); } FeedbackController.prototype = { form: $("#feedback-form"), responseHolder: $("#response-holder"), formData: {}, feedbackService: {}, initi...
true
3ab4a87b32195002980c26774d5445e374e21bd6
JavaScript
JairoMaxter/javascript-arrays-exercises-tutorial
/exercises/14-Divide-and-Conquer/app.js
UTF-8
405
3.625
4
[]
no_license
let list_of_numbers = [4, 80, 85, 59, 37, 25, 5, 64, 66, 81, 20, 64, 41, 22, 76, 76, 55, 96, 2, 68]; function mergeTwoList(array) { let odd = [] let even = [] for (i = 0; i < array.length; i++) if (array[i] % 2 === 0) { even.push(array[i]) } else { odd.push(array[i])...
true
4be1db8434f3e53ab7004885b5d1ef2794569fb5
JavaScript
ischekoldin/concord-client
/src/components/Input/Input.js
UTF-8
3,947
2.84375
3
[ "MIT" ]
permissive
import React, {useRef, useState, forwardRef, useImperativeHandle} from "react"; import 'emoji-mart/css/emoji-mart.css' import { Emojione } from "react-emoji-render"; import "./Input.css"; import EmojiPicker from "./EmojiPicker/EmojiPicker"; import TextareaAutosize from "react-textarea-autosize"; const Input = forwa...
true
e601003f7b417651658215258518fc3e9e090dad
JavaScript
SunRain/SailfishWeibo
/qml/js/JsonPath.js
UTF-8
4,952
2.59375
3
[]
no_license
.pragma library /* JSONPath 0.8.6 - XPath for JSON * * Copyright (c) 2007 Stefan Goessner (goessner.net) * Licensed under the MIT licence. */ var jsonPath = (function () { "use strict"; var options = { resultType: "VALUE" }, result, $; function normalize(expr) { ...
true
d12cc048fb3977dbeb49b7ffcdc3a989df4be2e2
JavaScript
gallynaut/Vault-Craft-Beer
/src/components/BeerList2.js
UTF-8
4,669
2.546875
3
[]
no_license
import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { getBeers } from '../contentful' import { Grid, Button, Typography, Divider, } from '@material-ui/core' import BeerCard from './BeerCard' import BeerJSON from '../beers.json' const allBeers = JSON....
true
03d760ceee20c00e51fa3fcf23530fa74996be8c
JavaScript
titibrown/DWWM-2005
/09 -API/main.js
UTF-8
1,373
3.40625
3
[ "Unlicense" ]
permissive
let villeChoisie = "mulhouse"; recevoirTemperature(villeChoisie); let changerDeVille = document.querySelector('#changer'); changerDeVille.addEventListener('click', () => { villeChoisie = prompt('Quelle ville souhaitez-vous voir ?'); recevoirTemperature(villeChoisie); }); function recevoirTemperature(ville) { co...
true
2051a62f886e447a5b4065e3799ca8bc012fe0c2
JavaScript
Messquerade/WhiteBoarding-Project
/prompt5.js
UTF-8
2,203
5.03125
5
[]
no_license
// Question #5: Array Sorting // Write an algorithm that sorts an array without using the sort() method. There are many different sorting algorithms - take the time to read about the following: // Quick sort // Merge sort // Heap sort // Insertion sort // Bubble sort // Selection sort // You may implement any of the a...
true
95b5e3d28c1f1ea65322a5a43e9ffcf1ea990647
JavaScript
lgsvl/apollo-5.0
/modules/dreamview/frontend/src/renderer/text3d.js
UTF-8
3,866
2.90625
3
[ "Apache-2.0" ]
permissive
import * as THREE from "three"; const _ = require('lodash'); const fonts = {}; let fontsLoaded = false; const loader = new THREE.FontLoader(); const fontPath = "fonts/gentilis_bold.typeface.json"; loader.load(fontPath, font => { fonts['gentilis_bold'] = font; fontsLoaded = true; }, function (x...
true
010bef6cf904cc7c35ebea80fc7debb2fbce85b5
JavaScript
oneilsw/algos
/Medium.js
UTF-8
1,368
3.78125
4
[]
no_license
// SUBARRAY const maxSubArray = (nums) => { let sum = nums[0] for(let i = 0; i < nums.length; i++){ let currentSum = nums[i] if(currentSum > sum) { sum = currentSum } for(let j = i+1; j < nums.length; j++){ currentSum += nums[j] if(currentSum > ...
true
99016d06b37f263cc5f36d002227c5d31cd2d8b0
JavaScript
shengye02/next-unsplash
/pages/api/photos/[uid]/download.js
UTF-8
1,494
2.59375
3
[]
no_license
import { getPhoto } from '../../../../api'; const sizeArray = [ { title: 'small', width: '640' }, { title: 'medium', width: '1080' }, { title: 'large', width: '1920' } ]; export default async function(req, res) { // Data const { uid, force, w } = req.query; let photo = null, fetchedData = null...
true
de533a52588f2c0b69818a5fa20f3c2ac20c2d6d
JavaScript
ThomasBullock/Camper-Leaderboard
/src/components/Main.js
UTF-8
4,299
2.75
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import ImageLoader from 'react-imageloader'; import './Main.css'; import Button from './Button'; import Preloader from './Preloader'; class Main extends Component { constructor(props) { super(props) this.getRemoteData = this.getRemoteDa...
true
1e9cddae32cfe84fbe605f5dc30895591b118d09
JavaScript
MahmoudAbdulrhman/Employee_Tracker
/server.js
UTF-8
7,197
3.1875
3
[]
no_license
const connection = require('./db/config.js'); const inquirer = require('inquirer'); function startPrompt() { console.log( ` +------------------+ | EMPLOYEE TRACKER | +------------------+ ` ) inquirer .prompt({ type: "list", name: "action", message: "What would you like to...
true
a7087b1d3cf2a0a19c6abb9cf88e50c31c151a8b
JavaScript
marco-koenen/Hackathon-WirVsVirus
/src/frontend/assets/js/components/timer/start.js
UTF-8
419
2.671875
3
[ "MIT" ]
permissive
import config from 'config' import timeSince from './timeSince' // // start a timer // -------------------------------------------------- export default (time, element) => { const timer = element // prevent the time from being displayed too late timer.innerHTML = config._waitingTime + ' ' + timeSince(time) ...
true
3992272e4876b6a8bfea10088bbafd163969193c
JavaScript
CS3750-FinalProject/ZAAMG
/js/professorSet.js
UTF-8
6,181
3.28125
3
[ "MIT" ]
permissive
/** * FUNCTIONS IN THIS FILE: * * add_toProfSet(profFirst, profLast, profId, timedCourseObjects, onlineCourseObjects) * momentGenerator_test(time, days, startMoment) * */ function add_toProfSet(profFirst, profLast, profId, timedCourseObjects, onlineCourseObjects){ var profName = profLast...
true
53274ccca6f1e46f4360f1e066b8a205f62315cc
JavaScript
xinsec/receiveandborrow
/myNode/test.js
UTF-8
117
2.578125
3
[]
no_license
/** * Created by Administrator on 2017/6/19. */ let a = 0; function test(x){ return x++ } console.log(test(a))
true
8971f47a34fadc9a662255787a70de6d45bf1933
JavaScript
000jemand000/newmessenger
/scriptBeispiel4.js
UTF-8
1,100
2.59375
3
[]
no_license
let cnt = 0; let username; function login(){ username = document.getElementById("txbx_usrname").value + ":"; //txfield.removeChild(document.getElementById("p1")); document.getElementById("loginSection").style.display = "none"; document.getElementById("messageSection").style.display = "block"; } funct...
true
66a716ef87069d5e3bd8dd3a5c84201f02b79ccd
JavaScript
samboosa5k/laravel-mi6-database
/resources/js/App/Components/LoginForm.jsx
UTF-8
1,730
2.65625
3
[ "MIT" ]
permissive
import React from 'react'; export default class LoginForm extends React.Component { constructor( props ) { super( props ); this.state = { email: '', password: '' } this.handleChange = this.handleChange.bind( this ); this.handleFormSubmit = this.handl...
true
33a1eaaf99fc698b01f9e18d4d5087b47d3dd875
JavaScript
hexter0x/hexter
/app/components/paginator.js
UTF-8
1,363
2.609375
3
[]
no_license
const {ul, li, nav} = require('../lib/html'); const link = require('./link'); module.exports = ({page = 1, size = 25, count = 0} = {}) => { const total = Math.ceil(count / size); const start = Math.floor((page - 1) / 10) * 10; const end = Math.min(total, start + 10); if (end < 2) { return null; } con...
true
5e54e17a0a7b25df9711f5870e0f33edaab80ed4
JavaScript
a-dov/vlad-s-clicker
/public/components/image/Image.js
UTF-8
288
2.578125
3
[]
no_license
(function () { "use strict"; const Block = window.Block; class Image extends Block { static create(className, src, alt) { const img = Block.create('img', [className], {'src': src, 'alt': alt}); return new Image(img.el); } } window.Image = Image; })();
true
8aac946f760369ffaec4cf73d38474af328b1737
JavaScript
jeanLeconteii/Budgeting-Web-App
/app.js
UTF-8
4,209
3.546875
4
[]
no_license
// Data encapsulation allows us to hide the implementation details of specific modules // immediately invoked function expression (iife) --> anonomous function //creates a new scope that is not visible to the outside scope //contains a private function that return a public function that utilizes the i...
true
d043c8715d032e89b8acaf33618ec62bd6f7cc55
JavaScript
nss-day-cohort-34/the-ternary-traveler-wfw40869
/src/scripts/factory.js
UTF-8
4,138
2.9375
3
[]
no_license
// All factory functions live in here const factoryObj = { createNotVisitedCard: (interest) => { return ` <div id="interestCard__div"> <h3>${interest.name}</h3> <h4>${interest.place.name}</h4> <p>${interest.description}</p> <aside ...
true
906050864cf14dd2dd86076a39a2ccc785b3acc7
JavaScript
Xiphe/karma-environments
/test/example/jasmineEnv/headerEnvironmentSpec.js
UTF-8
665
2.5625
3
[ "MIT" ]
permissive
/* global describe, it, expect, fara, cookies */ /** * This demonstrates the setup of an environment * inside the Test-file by specifying it inside * the banner comment. * * Karma environment * #active: false * #focus: true * clean: true * use: jasmine * add: fooLib.js | qunit * lib: another */ ...
true
16a7cbd40fa131dece7369efa0489a5086b91ec4
JavaScript
victorluizskt/formacao-node-js
/Fund Expressjs/routes.js
UTF-8
589
2.8125
3
[]
no_license
const express = require('express'); const router = express.Router(); /* request.query, parâmetros opcionais => /main?email=victorluizcefet@gmail.com */ router.get('/main', (request, response) => { const email = request.query["email"]; return response.json({dado: `success ${email}`}) }); /* param obri...
true
c488fd46dc18d54d973b22b4da5c194adb3d6827
JavaScript
bruno-asf/Sistema-de-cadastro-de-eventos
/eventos.js
UTF-8
1,064
3.671875
4
[]
no_license
let participante = 19; if (participante >= 18){ console.log(`Participante possui ${participante} anos. É maior de 18 anos. Cadastro realizado com sucesso!`); } else{ console.log(`Partipante possui ${participante} anos, cadastro NÃO permitido para menores de 18 anos.`); } let listaParticipantes = ["Bruno", "St...
true
4ccdd22beff3319f6bf86bb4233a5bac9f15cf5f
JavaScript
tom2kota/jest
/quiz/chunk1/index.js
UTF-8
216
2.96875
3
[ "MIT" ]
permissive
export default (array, size) => { const result = []; let index = 0; while (index < array.length) { result.push(array.slice(index, index + size)); index += size; } return result; }
true
5b20f292932ffc7ee5a4ec6b0ff6a6bcd6b218c7
JavaScript
so-tha/Javascript-DOM
/Github/Javascript/lista/ex1.js
UTF-8
373
4.28125
4
[]
no_license
/*Crie um programa que tenha um procedimento Gerador() que, quando chamado, mostre a mensagem "Olá, Mundo!" com algum componente visual (linhas) Ex: Ao chamar Gerador() aparece: +-------=======------+ Olá, Mundo! +-------=======------+*/ function Gerador(){ console.log(`+-------=======------+ Olá, ...
true
7bb9439cca92eebdea09a079a32132f78300f6af
JavaScript
13ruceYu/biao-class
/practice/069-JS-userManagerInterface/04/main.js
UTF-8
1,849
3.15625
3
[]
no_license
; (function () { 'use strict'; let data = [{ username: 'whh', email: 'whh@yo.com', balance: 12, }, { username: 'zks', email: 'zks@yo.com', balance: 16, }, ]; let form = document.getElementById('user-form'); let table = document.getElementById('user-table'); ...
true
9029d274a8e064e18702a9226cd55215c50b8c5b
JavaScript
jmarquis/mesh
/src/actions/user.js
UTF-8
813
2.53125
3
[]
no_license
import { firebaseRef, authenticate as fbAuthenticate } from "../firebase"; export function setUpAuthListener () { return dispatch => { firebaseRef.onAuth(authData => { if (authData) { firebaseRef.child("users/" + authData.uid).once("value", snapshot => { dispatch(updateUser(snapshot.val())); dispat...
true
d66cbfd16b69035208cfd0542300d812e70922aa
JavaScript
BuddyPass/curriculum_old
/lessons/SnakesAndLadders/final-source/javascripts/snakesandladders.js
UTF-8
4,776
3.578125
4
[]
no_license
$(function() { // Create the board by literally appending rows and columns of colored divs // with text inside each giving board number. var board = $(".board"); for (var i = 0; i < 10; i++) { var row = $("<div class ='row'/>"); board.prepend(row); for (var j = 1; j <= 10; j++) { var s...
true
9604a18180b617196a6aaaac541903e5a4665dcd
JavaScript
madelynarsenault/skills-check-3
/server/controller.js
UTF-8
541
2.765625
3
[]
no_license
const house = [ { name:'', image:'' } ]; const getName =(req, res) => { res.json(name) } const addName = (req, res) => { name.push(req.body); res.json(name); } const deleteName =(req, res) => { name.splice(+req.params.id, 1) res.status(200).send(name); } const updateNam...
true
154d6cc430e5bef575d7278f0e0d04278ccc61ce
JavaScript
animexe/animexe.github.io
/player.js
UTF-8
3,796
3.0625
3
[ "MIT" ]
permissive
window.addEventListener('load', function() { // Video Container video = document.getElementById('video'); pauseScreen = document.getElementById('screen'); screenButton = document.getElementById('screen-button'); // Progress Bar Container pbarContainer = document.getElementById('pbar-container'); pbar = documen...
true
162ae03d88ae92891e5efb42ebe0361672a09995
JavaScript
99063668/Pizzacalculator
/Pizzacalculator/Pizzacalculator.js
UTF-8
890
3.71875
4
[]
no_license
alert('Maak uw keuze uit de formaten pizzas'); var Small = prompt('Hoeveel small pizzas'); var Medium = prompt('Hoeveel medium pizzas'); var Large = prompt('Hoeveel large pizzas'); //Vraagt hoeveel pizzas document.write('<br>Small : ' + Small); document.write('<br>Medium : ' + Medium); document.write('<br>Large : ' +...
true
a957ecc4af0363db66d2251c3cf487fc34ab5569
JavaScript
GSXP/feature-prototypes
/demo1/Assets/Scripts/Dialog/Choices/YouLikeChoice.js
UTF-8
1,061
2.890625
3
[]
no_license
#pragma strict class YouLikeChoice extends ListMenu { function YouLikeChoice() { super(["Yeah, it's cool!","Nah, I'm not feeling it"]); } function draw() { var width = Screen.width / 3; var height = Screen.height / 4; var box : Rect = Rect(Screen.width / 2 - width / 2, Screen.height / 2 - height / 2, w...
true
ea8e20b2dfdac50bf739763e2ea2f46d44b7cfc3
JavaScript
TalBahat2/Minesweeper
/js/main.js
UTF-8
17,253
2.625
3
[]
no_license
'use strict' // global vars var gBoard; var gLevel = { SIZE: 4, MINES: 2, LIFE: 2 }; var gGame; var gIntervalId; var gElHint; const MINE = '💣'; const FLAG = '🎏'; // restart local storage: // localStorage.removeItem('recordEasy') // localStorage.removeItem('recordMedium') // localStor...
true
cfa811189657fb0060a1402ac6ef590074bfcad8
JavaScript
ME-FM-Society-of-BC/Practitioner-Database
/client/src/components/RadioGroup.js
UTF-8
1,856
2.921875
3
[]
no_license
/** * A wrapper for a radio group . * It's behaviour depends on the props.mode property as follows: * 'view': renders disabled, displaying the current values * 'create': renders enabled with no selection * 'edit': renders enabled, with the current value * * Additional props: * name: optional c...
true
9776034a47156e20f853a819660e828ba24cc1ad
JavaScript
BogdanZawr/SilviyaDiploma-back
/server/component/eventBus.js
UTF-8
1,693
2.609375
3
[]
no_license
import _ from 'lodash'; import { EventEmitter } from 'events'; class EventBusObj extends EventEmitter { constructor() { super(); this.queue = []; this.useQueue = []; this.current = null; this.nest = null; } use(eventName, listener) { this.useQueue.push(eventName); this.onSeries(event...
true
dce31f5a2b5e06c29e2779ce1be77657510cc519
JavaScript
jtaranets/movies
/src/js/5libraryPage.js
UTF-8
2,279
2.921875
3
[ "MIT" ]
permissive
const watchButton = document.querySelector('.js-libraryWatchedBtn'); const queueButton = document.querySelector('.js-libraryQueueBtn'); const element = document.getElementById('libraryListTemplate'); const noItemsToShow = document.querySelector('.myFilmLibraryPage__no-items'); const libraryWatchedList = document.query...
true
15a54dca08d6af78508e9646aa6a1135a84795f7
JavaScript
ZHYukino/sq2
/sql2/WWW/jspackage/rightMenu/js/demo.js
UTF-8
7,067
2.546875
3
[]
no_license
var countryTree = (function(countryTree) { var tree = { zTree: '', pNode: '', setting: { isSimpleData: true, treeNodeKey: "id", treeNodeParentKey: "pid", showLine: true, root: { isRoot: true, nodes: [...
true
f31aeca2b783e128ddae3eddb4de2ca327730ad0
JavaScript
csllc/cs-modbus
/lib/functions/WriteSingleCoilRequest.js
UTF-8
3,796
3.546875
4
[ "MIT" ]
permissive
'use strict'; var util = require('./util'); var Request = require('./Request'); var WriteSingleCoilResponse = require('./WriteSingleCoilResponse'); module.exports = WriteSingleCoilRequest; /** * The write single coil request (code 0x05). * * A binary representation of this request is 5 bytes long and consists of:...
true
5352c6ccbf0fbf57cfe2c7e2c9b8eaf2b2e8ae60
JavaScript
BattleChain-Lisk/BattleChain-MVP-core
/persistence/User.js
UTF-8
302
2.6875
3
[]
no_license
/** * User for persistence layer */ class User{ constructor(address, lastBalance){ this.address = address; this.balance = lastBalance; } setBalance(lastBalance){ this.balance = lastBalance; } getBalance(){ return this.balance; } }
true
6b2dd15cfa1a13f46bbbfda9bc7b4616bd5be870
JavaScript
gone7com/ibm-assignment
/js-assignment-master/TypeScript/handson/firstclass.js
UTF-8
403
2.96875
3
[]
no_license
var myCar = /** @class */ (function() { function myCar(model, price, engine) { this.model = ""; this.price = 0; this.engine = ""; this.model = model; this.price = price; this.engine = engine; } myCar.prototype.runCar = function() { console.log(this.model + " is Running"); }; return...
true
81f0c6b78a1ffd648f74d444e2f558cf82c36d13
JavaScript
bigbird231/leetcode
/src/js/6.js
UTF-8
2,024
3.984375
4
[]
no_license
//第六题,Z字形变换 (function(){ /** * @param {string} s * @param {number} numRows * @return {string} */ //思路:题目本身具有诱导性,会引导读者去纵向排列,其实横向排列才能更快的写出原始的解题代码 /* * L E E T * 0 0 C 0 * 0 O 0 0 * D E I S * 0 0 H 0 * 0 I 0 0 * R I N G */ //184ms,49.3MB var c...
true