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
7c03585ed2da9f9dc72164733883ae52ad33f375
JavaScript
Arvind25/vc
/arvind/apps/landing/public/javascripts/framework/v2/events.js
UTF-8
2,339
2.609375
3
[]
no_license
define(function(require) { var log = require('log')('event', 'log'); var map = {}; function __entry () { return { emitters : {}, listeners : {} }; } _event = {}; _event.emitter = function (name_space, binder) { if (!binder) { log.error ('emitter: error: null binder for name_space:' + name_space)...
true
8745b6d08425575ed6eb96068f41e78ad2f5625d
JavaScript
kansalshubham75/bug-tracking-web-app
/bug-tracking/frontend/src/models/reducers/bugreducer.js
UTF-8
566
2.859375
3
[]
no_license
export const bugReducer = (initState={bugList:[]},action)=>{ console.log('Action is ',action); if(action.type==='ad'){ var bugs = [...initState.bugList]; bugs.push(action.payload); console.log('Bug List is ',bugs); return initState = {bugList:bugs}; } if(action.t...
true
b7ac191b74e0dd138ebabb66e6407f6565c52614
JavaScript
Kamana04/redux-app
/src/reducers/upDown.js
UTF-8
293
2.765625
3
[]
no_license
const initialState = 0; const changeTheNumber = (state = initialState,action) => { switch(action.type){ case "INCREMENT" : return state + action.payload; case "DECREMENT" : return state -1; default:return state; } } export default changeTheNumber;
true
a4b7ee5737ae2d280fc36b52ccdfb61b6686e859
JavaScript
Miksu75/coding-journalist
/12-select-option/script.js
UTF-8
270
3.109375
3
[]
no_license
window.onload = () => { const select = document.querySelector('select'); const info = document.querySelector('p'); select.onchange = (e) => { let selectedOptionValue = e.target.value; info.textContent = 'You have chosen ' + selectedOptionValue; }; };
true
a2ed044982d7c064cca13e5bb4a8adb6b39bf45c
JavaScript
Some-Cool-Name/Find-Loverz-WebApp
/src/BackendRequests/Authentication.js
UTF-8
553
2.8125
3
[]
no_license
// sends login request to backend export const loginRequest = async (user) => { const resp = await fetch('https://lamp.ms.wits.ac.za/home/s1851427/WDAGet.php?' + `username=${user.email}&password=${user.password}`, { method: 'GET', }); if(resp.status === 200){ const data = await resp...
true
53e6d5d1d0089a1cc4f5714493878c32c83ade40
JavaScript
jmgerow/Bamazon
/bamazonManager.js
UTF-8
5,193
2.828125
3
[]
no_license
var mysql = require("mysql"); var inquirer = require("inquirer"); var connection = mysql.createConnection({ host: "localhost", port: 3306, user: "root", password: "password", database: "bamazon" }); connection.connect(function (err) { if (err) throw err; console.log("connected as id " + co...
true
0acad57839d9db9b5bb338769eb2b789b1f1e389
JavaScript
mcanthony/slayer
/test/readers/array.js
UTF-8
2,495
2.640625
3
[ "Apache-2.0" ]
permissive
'use strict'; var slayer = require('../../index.js'); var path = require('path'); var expect = require("chai").expect; var DEFAULTS = { minPeakDistance: 30, minPeakHeight: 4.1 }; describe('Slayer.fromArray', function(){ var fixtures = require(path.join(__dirname, '..', 'fixtures', 'default.json')); it('shoul...
true
90700b2b2fc80a734c81a238f188778c212f0265
JavaScript
tanat1994/KickStarterSolidity
/components/ContributeForm.js
UTF-8
1,773
2.546875
3
[]
no_license
import React, { Component } from 'react'; import { Form, Input, Message, Button } from 'semantic-ui-react'; import Campaign from '../ethereum/campaign'; import web3 from '../ethereum/web3'; import { Router } from '../routes'; //Curly brackets coz routes.js file exports many properties class ContributeForm extends Comp...
true
a897126e2a55774f4f5f367db018dc27276773e4
JavaScript
vargasgabriel/dixitonline
/packages/decks/src/useCases/__tests__/get-shuffled-deck.test.js
UTF-8
1,899
2.65625
3
[ "MIT" ]
permissive
import { shuffle as shuffleWithSeed } from 'shuffle-seed'; import { events as deckEvents } from '../../events'; import { makeGetShuffledDeck } from '../get-shuffled-deck'; const CARDS_COUNT = 372; const MIN_CARDS_IN_DECK_PER_PLAYER = 14; const MAX_PLAYERS = 6; const DEFAULT_GAME_CARDS_COUNT = MIN_CARDS_IN_DECK_PER_PLA...
true
22389888a8446b043e1d39fee3d0663910da034a
JavaScript
Harpreet634/phasetwo
/index.js
UTF-8
2,776
3.265625
3
[]
no_license
let input = document.getElementById('myinput'); let add1 = document.getElementById('add') let log = document.getElementById('log'); add1.onclick = inputsave; // save data click on button function inputsave() { //create a function to save data if (input.value == "") { alert('please enter some value...
true
d1bc4535b2bb08bb9f65f9f5820221d6f0eff2f1
JavaScript
Sarath9380556175/node.js-basic-example
/myfirstmodule.js
UTF-8
449
3.015625
3
[]
no_license
//we are using exports keyword to make functions available outside the module exports.sarath=function(){ var fname="BUJALA SARATH KUMAR"; var lname="Reddy"; var email="sarathbunny89@gmail.com"; var gender="male"; var qualification="B.E \"computer science and engineering\" "; console.log("My fname is:" +fname); conso...
true
1a89433b298fbacd3403b7292dfd898a6a88a4db
JavaScript
AnastasiiaHladina/WebGL-Lessons
/lessons/lesson1/les1.js
UTF-8
2,144
2.625
3
[]
no_license
class Lesson1 { constructor(gl, shaders, type) { this.coord = [ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, ]; this.vertexShaderCode = shaders.vertexShaderCode; this.fragmentShaderCode...
true
0f3d658f3f6a8ffd1fdad75f2a73cb12002437cb
JavaScript
ubermuss/iNoticeboard
/www/js/services/registration.js
UTF-8
3,014
2.515625
3
[]
no_license
$('#reg').on('keydown', 'input', function (event) { if (event.which == 13) { event.preventDefault(); var $this = $(event.target); var index = parseFloat($this.attr('data-index')); $('[data-index="' + (index + 1).toString() + '"]').focus(); } }); //var a = $("#snackbarid").attr('d...
true
3b41104d2d140d956db8262fd579ab112de3eb8e
JavaScript
cosmin1123/ImagineCupGame
/TheImpossibleGame/js/classes/Bullet.js
UTF-8
2,910
3.09375
3
[]
no_license
var cooldown = 500;// cooldownTime; function Bullet(id, height, width) { this.x = 0; this.y = 0; this.img = document.getElementById(id); this.height = height; this.width = width; this.fired = false; this.firedTime = 0; this.isFired = false; this.speedX = 0; this.speedY = 0; t...
true
18ee86163fd8b01a3fc7887eea216f0cfdc8cc72
JavaScript
zcoderboy/movie-hunt
/context/UserContext.js
UTF-8
2,334
2.59375
3
[]
no_license
import React from 'react'; import { useReducer } from 'react'; const LOGIN_TYPE = 'SIGN_IN'; const LOGOUT_TYPE = 'SIGN_OUT'; export const UserContext = React.createContext(); const userReducer = (state, action) => { switch (action.type) { case LOGIN_TYPE: state = { ...state, ...action.pay...
true
ca3491fcc6e4da42d372ad49be883cb728be8a07
JavaScript
adamafriansyahb/algorithm-practice
/circularArray.js
UTF-8
531
3.5
4
[]
no_license
// this code does not pass some of the test cases on hackerrank due to its time complexity. const rotateArray = (a, k, queries) => { let result = [] for (let i=0; i<k; i++) { let head = a[a.length-1] let tail = a.slice(0, a.length-1) a = [] a = a.concat(head) ...
true
fa82eee7d7023ce09e865625f03739204e26b5b7
JavaScript
costaivo/Tutorial-NodeJS
/1_IntroductionToNodeJs/blocking/bookSync.js
UTF-8
213
2.703125
3
[ "MIT" ]
permissive
var fs = require('fs') function getBook(id) { const contents = fs.readFileSync(__dirname+'/'+id+'.txt','utf8') for(var i=0;i<5000000000;i++){ var x=10+i; } return contents; } module.exports = getBook;
true
199a7293f358e26fee0625e9ab7f9186e4c4bb0e
JavaScript
roanrobersson/js-minesweeper
/js/block.js
UTF-8
5,267
2.515625
3
[]
no_license
class Block { constructor (configs) { this.field = configs.field; this.haveMine = configs.haveMine; this.nearbyMinesCount = configs.nearbyMinesCount; this.row = configs.row; this.column = configs.column; this.htmlElement = document.createElement("img"); this.s...
true
9edcd764d0d856b92908604f2bda475dfe2034d3
JavaScript
Z3N00/javascript-tuts
/01intermediate/01functions.js
UTF-8
604
3.796875
4
[]
no_license
let sayHello = function(name){ console.log(`Greetings message for ${name}`); console.log(`Hey ${name}`); } //sayHello('john') let fullNameMaker = function(firstName, lastName){ console.log(`Welcome to LCO`) console.log(`Happy to have you, ${firstName} ${lastName}`) } //fullNameMaker('John', 'Doe'...
true
7832ab9e232ac9494fe6f5b838069acdcde69dd6
JavaScript
gonzalotroncoso/ejercicios
/Ejercicio 15/prefijos.js
UTF-8
482
3.234375
3
[]
no_license
function validarPrefijos(numero){ telefono = {} var prefijos = [54, 55, 56, 57, 58] var paises = ["argentina", "brasil", "chile", "colombia", "venezuela"] for (var i = 0; i <= prefijos.length; i++) { parametro = prefijos[i] telefono[parametro] = paises[i] } if(telefono[numero.slice(0,2)]){ console.log("...
true
b9840275aed1ddf8a7eee67ff5dda4f625bf4b9b
JavaScript
misaelbg/node-express-mongoose-boilerplate
/__tests__/user.test.js
UTF-8
1,515
2.78125
3
[]
no_license
import bcrypt from 'bcryptjs'; import faker from 'faker'; import dbHandler from './db-handler'; import User from '../src/app/models/User'; describe('User', () => { /** * Connect to a new in-memory database before running any tests. */ beforeAll(async () => await dbHandler.connect()); /** * Clear all test ...
true
15471c00f795b78ba8be9a7f5249e2f8254924c9
JavaScript
jam3s007/csv-generator
/src/blockchain-info/index.js
UTF-8
1,599
2.71875
3
[ "MIT" ]
permissive
const queue = require('async/queue') const request = require('request') const config = require('../config') const BLOCKCHAININFO_OFFSET = config.blockchaininfo.offset module.exports = { /** * fetches all transactions from a given address, including their inputs and outputs from blockchain.info */ getTransa...
true
3af95de44c456cc46dd796d26bd25d8b230123bf
JavaScript
domenicomanna/beerHub
/src/Components/BeerHilight/BeerHilight.js
UTF-8
1,278
2.515625
3
[]
no_license
import React from 'react'; import styles from './BeerHilight.module.css'; const BeerHilight = (props) => { // solid star color fill: <i class="fas fa-star"></i> // outlined star color: <i class="far fa-star"></i> let favoritedState = props.isFavorited ? "fas fa-star" : "far fa-star"; let favoriteButt...
true
5728c1f4bd142cf1f073372ccde35816efb673e5
JavaScript
lefevre-fraser/cs313-php
/web/prove03/prove03.js
UTF-8
744
3.046875
3
[]
no_license
var http; function addToCart(add) { http = new XMLHttpRequest(); var params = "add=" + add; http.open('POST', 'changeCart.php', true); http.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { alert("Added Item to cart"); } } http.setRequestHeader("Content-type", "applic...
true
7ba899790136dd19e60f33616188a64b57c0aa73
JavaScript
KarinaKarapetyanWeb/projects
/cookery-project/js/modal-coop.js
UTF-8
734
2.578125
3
[ "MIT" ]
permissive
var modalCoop = document.querySelector('[data-modal-window="send-modal-coop"]'); var formCoop = modalCoop.querySelector("form"); var userName = formCoop.querySelector("#user-name"); var userTel = formCoop.querySelector("#user-tel"); var userMail = formCoop.querySelector("#user-mail"); var checkbox = formCoop.querySelec...
true
1362ab1025a7fc0f83520128776e3e2a0d6cce0a
JavaScript
Jgarrepy17/GuessGame
/Guessing Game.js
UTF-8
686
3.640625
4
[]
no_license
/* Guessing Game by Jake Garrepy */ var totalTurns = 0; var Games = 0; var Average = 0; var playAgain = "y"; // var (totalTurns = 0;var Games = 0;var Average = 0;var playAgain = "y";) /*Start playing*/ do{ var Answer = Math.floor(Math.random()*(99) + 1); alert(Answer); Turns = 0; do { Guess ...
true
8fc556a621ebe9ccc207cb590c539ad8bf817ffd
JavaScript
cnickc/ChristMoeller
/ElevationData.js
UTF-8
1,770
3.5
4
[ "MIT" ]
permissive
//ElevationData Class function ElevationData( lat, lon, length, sqrtNumPoints ) { //handle error cases. //check that lat, long are decimals within allowable data ranges //check that length is a decimal and that it creates a valid box within data ranges //check that sqrtNumPoints is an integer greater than 1 this....
true
27dfda6e6bdd54034160455e7c7ccec3a6079195
JavaScript
defunctzombie/localenv
/lib/loader.js
UTF-8
935
2.71875
3
[ "MIT" ]
permissive
var fs = require('fs'); var expand = require('./expand'); var parser = require('./parser'); // load from file and return key/values module.exports.load_env = function load_env(filepath) { try { var data = fs.readFileSync(filepath, 'utf8'); var block = parser.parse_block(data); return expan...
true
c226c9ce99883a9b077c8cdd86c02a511d7fd071
JavaScript
ishita20/todolist
/test.js
UTF-8
2,168
2.9375
3
[]
no_license
"use strict" // function initialize(){ // let service = new google.maps.places.PlacesService(document.getElementById('places')); // const watcher = navigator.geolocation.watchPosition(getPlaces, error, {distanceFilter:1500}); // setTimeout(() => { // navigator.geolocation.clearWatch(watcher); // }, 60000...
true
75399649fafb38bdeae9ebb1cfd4f7c63f8f36c7
JavaScript
nscherf/linus
/Export/src/LinusGui.js
UTF-8
11,703
3.25
3
[]
no_license
/** * Constructs a GUI manager. Provides basic functionality like: * - adding settings for float, colors, selection * - defining callbacks for each setting * - adding custom HTML * - while settings must have unique names, the visible name is created by * using a) the whole string if no "__" is part of the strin...
true
3b4d743d75956103d8fb61882ca1b10c821d1740
JavaScript
rudyalvaradobeltran/sales-report
/src/controller.js
UTF-8
6,943
2.515625
3
[]
no_license
import dotenv from 'dotenv'; dotenv.config(); import { soldProducts, stockProducts, totalOrders, ordersByMonth, ordersByCity, ordersDetailByCategory, bestSellingProductPerMonth, bestSellingProductPerYear, products } from "./operations"; const money = (value) => { return new Intl.NumberFormat('es-CL', {currenc...
true
c0b28ef737cceb3e23fc20c09c9de9062cc410ad
JavaScript
tobiasrask/wmbus-client
/src/client/telegramClient.js
UTF-8
2,811
2.59375
3
[ "MIT" ]
permissive
//var util = require("util"); import DataBuffer from "./../includes/buffer/data-buffer" import ImstReader from "./../products/reader/Imst" import AmberWirelessReader from "./../products/reader/amber-wireless" import WirelessMBusTelegram from "./../includes/telegram/wmbus-telegram" var EventEmitter = require("events")....
true
67620fc4ee658e04db6cd65bead25f0a51366ba9
JavaScript
EYoung75/watchlist
/src/components/MovieCarousel.jsx
UTF-8
2,700
2.65625
3
[]
no_license
import React, { useState, useEffect } from "react"; import { Carousel, CarouselItem, CarouselControl } from "reactstrap"; import { FaStar } from "react-icons/fa"; import { Link } from "react-router-dom"; function MovieCarousel(props) { const [hasErrors, setErrors] = useState(false); const [movies, setMovies] = use...
true
b89017f6f1971506123fe9ac0406bd3c9157862e
JavaScript
yurikbv/booking
/js/backend.js
UTF-8
1,373
2.703125
3
[]
no_license
'use strict'; (function () { var URL_LOAD = 'https://js.dump.academy/keksobooking/data'; var URL_SAVE = 'https://js.dump.academy/keksobooking'; window.backend = { load: function (onLoad,onError) { var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; xhr.addEventListener('load', fun...
true
ca60d0a018b69c0260fcd1bff6a9eb7fdebb7ae6
JavaScript
conor-c/JS101
/small_problems/easy4_9.js
UTF-8
876
3.953125
4
[]
no_license
// modify the function to exclude non letters function wordSizes(string) { let resultObj = {}; let wordLengths = string.split(' ').map(word => { let onlyLetters = word.split('').filter(character => { return 'abcdefghijklmnopqrstuvwxyz'.includes(character.toLowerCase()); }); return onlyLetters.joi...
true
18ed0ab2cd173fedd1cd02f82514d428c48e3425
JavaScript
ellipsoid/plan_my_fringe
/public/javascripts/Show.js
UTF-8
1,787
3.046875
3
[]
no_license
function Show(id, title, venue) { // inherit properties from Selectable Selectable.call(this); // override default value of 'selectable' this.selectable = true; this.id = id; this.title = title; this.venue = venue; venue.addShow(this); this.showings = []; this.selectedShowing = null; } // inheri...
true
6f4784d3480a87b11f67696ad3b242552aa19f10
JavaScript
PrathamBooks/wysihtml
/test/commands/formatInline_test.js
UTF-8
27,221
2.765625
3
[ "MIT" ]
permissive
if (wysihtml.browser.supported()) { module("wysihtml.Editor.commands.formatInline", { setup: function() { this.editableArea1 = document.createElement("div"); this.editableArea1.id = "wysihtml-test-editable1"; this.editableArea1.className = "wysihtml-test-class1"; this....
true
3514d76bff683d520e5f56ae91ebe920d2b1c5db
JavaScript
gearmobile/canvas_javasript
/linda-canvas/scripts/lesson-10.js
UTF-8
2,336
3.328125
3
[]
no_license
/** * Created by zencoder on 4/7/16. */ // toDataURL - сохраняет в формате DATA URL изображение, созданное в canvas // getImageData - возвращает данные о цвете (RGB) и прозрачности указанного участка холста // globalAlpha - задает уровень прозрачности, от 0 до 1 window.onload = function () { var canvas = documen...
true
6d61eacee50f6af3d893cde1ff1b09c606f13035
JavaScript
ntemple/cs-facebook-quiz-pixel
/assets/js/intercept.js
UTF-8
1,245
2.734375
3
[]
no_license
/* The goal is to a) determine if this is a page from thrive, and b) if it is, fire a ViewContent event. This action triggers sends to the Facebook pixel. See: https://developers.facebook.com/ads/blog/post/2017/05/29/tagging-a-single-page-application-facebook-pixel/ */ (function(open) { XMLHttpRequest.prototype.op...
true
3271828d7f6a054582272b1f5465233fcdbfb714
JavaScript
contepas/four-in-a-row
/js/Game.js
UTF-8
7,764
3.578125
4
[]
no_license
class Game{ constructor(){ this.board = new Board(); this.players = this.createPlayers(); this.ready = false } //=== GET/SET ========= /** * @return {object} the player object whose active property is equal to true */ get activePlayer(){ return this.playe...
true
dda7ed6313165f032c86a4538573e61e89d2a0ff
JavaScript
Infinity0106/hooked-semanai
/src/Reducers/landing.js
UTF-8
646
2.578125
3
[]
no_license
export default ( state = { active: "landing", tags: [], products: [], beer: null }, action ) => { let newState = { ...state }; switch (action.type) { case "GET_LANDING_TOP_TAGS_FULFILLED": newState.tags = action.payload.bindings.map(ele => { return { name: ele.tagName }; ...
true
d30506c1038b765f5286151c678ac886e7c3b43f
JavaScript
e5pe0n/rea-ct
/02-javascript/05-class/bird-proto.js
UTF-8
411
3.25
3
[]
no_license
function Bird(name) { this.name = name; this.chirp = function() { console.log(`${this.name} chirps`); } return this; } Bird.explain = function(name) { console.log(`${name} has wings and lays an agg`); } function FlyableBird(name) { Bird.call(this, name); this.fly = function() { console.log(`${t...
true
a50c5e8acce4d2924a235099488168e6ee11d334
JavaScript
ph1p/test-boilerplates
/ava-example/test/index.test.js
UTF-8
989
2.9375
3
[]
no_license
import test from "ava"; import { sum, sub } from "../src/index.js"; test.serial("typeof sum equal function", t => { t.is(typeof sum, "function"); }); test.serial("typeof sub equal function", t => { t.is(typeof sub, "function"); }); test.serial("adds 7 + 7 to equal 14", t => { t.is(sum(7, 7), 14); }); test.seri...
true
04ae00bcf2a59a735b3268976a491c2d778d45cc
JavaScript
txie1993/Rush-Hour
/lib/car.js
UTF-8
3,611
2.921875
3
[]
no_license
class Car { constructor(options) { this.id = options.id; this.img = options.img; this.pos = options.pos; this.len = options.len; this.height = options.height; this.game = options.game; this.horizontal = options.horizontal; this.draggable = false; ...
true
9264b53b319dc9c8f88057905e2aee5fe6f696af
JavaScript
bliu23/billsplitter_react
/src/Add.js
UTF-8
493
2.546875
3
[]
no_license
import React, { Component } from 'react'; class Add extends Component { constructor(props) { super(props); this.state = { totalCost: 0, checked: false } } handleChange = ()=> { checked: !this.state.checked; } render() { var incr = 0; if(this.state.checked) { this...
true
07db2bb6baca7592948b5759f0952c9db6404cde
JavaScript
rbnx/lh3-snippets
/js/cosmic.js
UTF-8
6,098
2.625
3
[]
no_license
#!/usr/bin/env k8 /***************************** ***** Library functions ***** *****************************/ /******************************* * Command line option parsing * *******************************/ var getopt = function(args, ostr) { var oli; // option letter list index if (typeof(getopt.place) == 'u...
true
03171a001373d5baacf4567528c298bc033bced0
JavaScript
rafaelmuto/rafaelmuto.github.io
/fakecon.js
UTF-8
1,019
2.6875
3
[]
no_license
// TODO: finish this refactor pls... console.log('fakeCon online...') export default class FakeCon { constructor() { this.LN = 0 this.PRINT_SPEED = 10 } init() { // get container element // create internal elements return this } setCommands(commands) { ...
true
1a77c3101d33c650b9a18c31d2cb3a30d35c585b
JavaScript
luis-alves/Freecodecamp
/Intermediate-Algorithm-Scripting/Steamroller/script.js
UTF-8
2,922
3.765625
4
[]
no_license
/** * FreeCodeCamp Algorithm exercise * SteamRoller */ function steamrollArray(arr) { var newArray = []; var finalArray = []; finalArray = rollEach(arr); function rollEach(arr) { for (var i = 0; i < arr.length; i++) { if (!Array.isArray(arr[i])) { newArray.push(arr[i]); ...
true
f2cc141ddad5da6773f12ffc901238bdf3bb4e20
JavaScript
JacobPerry34/Daily-Journal
/src/scripts/DomPrint.js
UTF-8
358
2.546875
3
[]
no_license
import makeJournalEntryComponent from "./BuildJournalEntry.js" // Printing to the Dom const renderJournalEntries = (entries) => { entries.forEach( singleEntry =>(document.querySelector(".entryLog").innerHTML += makeJournalEntryComponent.buildEntryCard(singleEntry) ) )} // Exporting to Api Manage...
true
dab4fb83492596a5d0f2fee3c637e3fc8e8911a7
JavaScript
aliegeois/pokemon-go-capstone
/src/consensus/Ballot.js
UTF-8
383
2.984375
3
[]
no_license
export default class Ballot { constructor(pid = '', n = 0) { this.pid = pid; this.n = n; } /** * @param {Ballot} ballot1 * @param {Ballot} ballot2 * @returns {boolean} */ static greaterThan(ballot1, ballot2) { return ballot1.n > ballot2.n || ballot1.n === ballot2.n && ballot1.pid > ballot2.pid ...
true
db2c87c5db7d1cb838b744dffedcb12ed027b137
JavaScript
imannost/digital-calendar-react
/src/panels/monthViewer/MonthViewer.js
UTF-8
4,329
2.8125
3
[]
no_license
/* global _ */ import React from "react" import "./month1.css" import MonthCalendar from "./monthCalendar/MonthCalendar" import arrowImg from "./arrow.png" import plusImg from "./plus.png" import * as firebase from "firebase" class MonthViewer extends React.Component { constructor(props) { super(props) ...
true
454962c5f5ddfba74c98f44d5552edbb6e01a3d5
JavaScript
AlexanderMur/domaveka
/app/post_types/media-project.js
UTF-8
500
2.546875
3
[]
no_license
jQuery(document).ready(function($){ frame = wp.media({ title : 'титл', multiple : true, library : { type : 'image' }, button : { text : 'кнопка' } }) frame.on('select',function(){ imgs = frame.state().get('selection').toJSON() console.log(imgs) for (var i = imgs.length - 1,text=''; i >= 0; i--) { im...
true
979e8827580c73b740e995014735003364a3777b
JavaScript
melissaroman/interview-problems
/apple.js
UTF-8
2,573
3.796875
4
[]
no_license
// 7-segment clock digits (logic, whiteboard) // 1) What time will show the least number of segments? (111) // 2) What time will show the most number of segments? (1008) // 3) How would you go about figuring out what times would be the biggest delta (whiteboard thru the logic)? // Key press (ember) // Secret code keyp...
true
0090709526ff0ad56c4c1bd7e5b6bf8f0a457a53
JavaScript
vigneshdemitro/Guvi
/Codekata/Javascript/22.js
UTF-8
279
2.765625
3
[]
no_license
const readline = require('readline'); const inp = readline.createInterface({ input: process.stdin }); inp.on("line", (data) => { var ar = data.split(" "); [a1,b1,c1] = ar; a = parseInt(a1); b = parseInt(b1); c = parseInt(c1); d = (a*b)%c; console.log(d) });
true
1b36140bcbaeb537dc27edee1771f36b18673aef
JavaScript
alvinkheng/CS448BProject
/chartAggregate.js
UTF-8
4,036
2.65625
3
[]
no_license
var margin = {top: 20, right: 20, bottom: 20, left: 30}, width = 640 - margin.left - margin.right, height = 372 - margin.top - margin.bottom; var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; var parseDate = d3.time.format("%m/%d/%Y %H:%M").parse; var x = d3.scale...
true
420c2d008730bbecd4f212afbd4d27edbb524ab0
JavaScript
mattslay/GoFish
/Source/HTML/GoFish.js
UTF-8
605
2.921875
3
[]
no_license
<script type="text/javascript"> //Finds y value of given object function findPos(obj) { var curtop = 0; if (obj.offsetParent) { do { curtop += obj.offsetTop; } while (obj = obj.offsetParent); return [curtop]; } } //Scroll to location of "matchdiv" function ScrollToMatch(){ va...
true
90e82fb3c453fe140abe8659795a546df2a49ccf
JavaScript
lsx1014426766/seckill
/src/main/webapp/resources/script/seckill.js
UTF-8
4,727
2.578125
3
[]
no_license
//javascript模块化 //seckill.detail.init(params); var seckill={ //存放秒杀相关的url URL:{ now:function(){ return "/seckill/time/now"; }, exposer:function(seckillId){ return "/seckill/"+seckillId+"/exposer"; }, execute:function(seckillId,md5){ return "/seckill/"+seckillId+"/"+md5+...
true
9f82a6d0a36d4dd70858befeb8f9bae6af37637c
JavaScript
MatejaBezjak/Test-Villa-Schweppes
/src/js/submenu.js
UTF-8
1,263
2.53125
3
[]
no_license
console.log('ajmo submenu'); var submenu = $('.b-header__submenu'); var submenuHeight = submenu.height(); var currentMousePos = 0; $(document).mousemove(function(event) { currentMousePos = event.pageY; }); // $(document).ready(function(){ // $('.b-header__navigation-link').hover( // function(){ // ...
true
32a9e9fdc0e557a243baff20d11a2abeafd95617
JavaScript
cams99/flamuko
/src/components/Buscador.js
UTF-8
2,335
2.5625
3
[]
no_license
import React, { Component } from 'react'; import Swal from 'sweetalert2'; import { Link } from 'react-router-dom'; class Buscador extends Component { state = { busqueda: "", resultado: Boolean } handleChange = (e) => { var busqueda = e.currentTarget.value this.setState({ ...
true
e4b3ca76008dffcf6bca1054651fc48aeb9cefca
JavaScript
wj89757/tzc-blueberry
/Public/js/common.js
UTF-8
674
2.53125
3
[]
no_license
$('#datetimepicker').datetimepicker({ language: 'zh-CN', }); </script> <script type="text/javascript"> function checkNull() { var num=0; var str=""; $("input[type$='text']").each(function(n){ if($(this).val()=="") { ...
true
4e4073c58fa7429fc296b6bc9d422de30ae213ac
JavaScript
nileshndethe/LWCHandsOn
/force-app/main/default/lwc/selectTextRightClickMenuPoc/selectTextRightClickMenuPoc.js
UTF-8
1,720
2.65625
3
[]
no_license
/** * @File Name : selectTextRightClickMenuPoc.js * @description : * @Author : Nilesh Dethe * @Group : * @Last Modified By : Nilesh Dethe * @Last Modified On : 1/8/2020, 5:40:19 PM * @Modification Log : * Ver Date Author Modification * ...
true
3da8c7bc71ad7e8a64340e9e8954fc340d8d4596
JavaScript
jtwebman/jts-project-euler
/test/answers/0003.js
UTF-8
399
2.828125
3
[]
no_license
'use strict'; var expect = require('must'); var findLargestPrimeFactor = require('../../answers/0003'); describe('Question 3 tests', () => { it('largest prime factor of 13195 is 59', () => { expect(findLargestPrimeFactor(13195)).to.equal(29); }); it('largest prime factor of 600,851,475,143 is 6857', () =>...
true
a8d752cddb7812520b5663e97e1d2c6bc9b72357
JavaScript
APPIAN-PET/APPIAN
/src/dashboard/dashboard_web/src/js/brainbrowser/core/tree-store.js
UTF-8
6,901
2.828125
3
[ "MIT", "OFL-1.1", "AGPL-3.0-only" ]
permissive
/* * BrainBrowser: Web-based Neurological Visualization Tools * (https://brainbrowser.cbrain.mcgill.ca) * * Copyright (C) 2011 * The Royal Institution for the Advancement of Learning * McGill University * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Gener...
true
85489fa2bd3d6990c817de3bb597d98adb124974
JavaScript
Henkiebob/bennoe_deploy
/app/assets/javascripts/map/viewMap.js
UTF-8
477
2.9375
3
[]
no_license
function drawMap(locations) { if(locations) { var markers = []; for (var i in locations) { loc = locations[i].split(', '); //Create a marker and give it a id(used later on to identify the correct inputfield) var markerPos = new google.maps.LatLng(loc[0], loc[1]); console.log(markerPos); var mrkr = ...
true
a35cd2c07aa0190a431bd2e03cd0f8bd25e8c707
JavaScript
AAI-USZ/FixJS
/input/100+/after/fe6f730fad8845088d87c72a2aefa8e8903efcef_0_5.js
UTF-8
401
2.8125
3
[ "MIT" ]
permissive
function() { var n; Updater.timeoutID = setTimeout(Updater.timeout, 1000); n = 1 + Number(Updater.timer.textContent); if (n === 0) { return Updater.update(); } else if (n === Updater.retryCoef) { Updater.retryCoef += 10 * (Updater.retryCoef < 120); return Updater.re...
true
53356f87c1739a6aba361054df580a380e64f687
JavaScript
HYK4466/ProtectSite
/clear.js
UTF-8
809
2.640625
3
[]
no_license
let li = document.getElementById("list"); if (li) { li.addEventListener("click", function() { chrome.tabs.create( { active: true, url: "list.html" }); }); } let su = document.getElementById("sub"); if (su) { su.addEventListener("click", function() { chrome.storage.sync.get(function(data...
true
afb58a3b25b6c40ef4f2b86461a9c33a98dd2fb5
JavaScript
kaerus-component/ced
/index.js
UTF-8
950
2.578125
3
[ "Apache-2.0" ]
permissive
var $ = require('elem'), commander = require('./commander'); module.exports = function Ced(container) { if(!(this instanceof Ced)) return new Ced(container); container = $(container); container.append(commander); container.on('click',oneditor); this.container = container; }...
true
11cf439b1dff4622dda1b7d6c2c2004c83a59c18
JavaScript
shayaljindal55/lc-practice
/deepclone-lodash.js
UTF-8
1,281
3.984375
4
[]
no_license
// Solution : Deep copy with lodash import _ from "lodash" // Import the entire lodash library const nestedArray = [["😉"], ["😊"], ["😇"]]; const notACopyWithEquals = nestedArray; console.log(nestedArray[0] === notACopyWithEquals[0]); // true -- Not a copy (same reference) const shallowCopyWithSpread = [...nestedArray...
true
8c3d9a08d142c08fc2625066b661a73c08fda0c6
JavaScript
mattgu74/si28
/project/public/javascripts/square.js
UTF-8
2,711
2.890625
3
[]
no_license
var Square = function(config, shape) { var that = this; this.config = $.extend({ size: 27, shape: "square" }, config); this.createShape = function() { shape.object = new Kinetic.RegularPolygon({ x: -1*(that.config.size + 2)/2, y: -1*(that.config.size + 2)/2, radius : that.config....
true
0c27726cefb76777f944f373b25a15467df6db5b
JavaScript
VodeniZeko/breaking-bad-api
/bb/src/components/Container.js
UTF-8
646
2.59375
3
[ "MIT" ]
permissive
import React, { useEffect, useState } from "react"; import Search from "./Search"; import Card from "./Card"; import axios from "axios"; const Container = () => { const [characters, setCharacters] = useState([]); useEffect(() => { axios .get("https://www.breakingbadapi.com/api/characters") .then(r...
true
12182d28218cf356c6535fa2c74ad6ed5ffb4f96
JavaScript
harshkothari410/jobdecider
/js/jobdecider.js
UTF-8
3,042
2.890625
3
[ "MIT" ]
permissive
$(function(){ $('#c_salary, #c_increment').keyup(function(event) { doCalculation(); }); $('#exp_salary_increment, #exp_salary_increment_1, #exp_salary_increment_2, #exp_salary_increment_3').keyup(function(event) { doCalculation(); }); }); var doCalculation = function(){ var c_salary = parseInt($('#c_salary')...
true
f2591de174b6a14f06427cf5020368f7cdbc2945
JavaScript
Duniaalkilany/city-explorer-api
/components/movies.js
UTF-8
2,447
2.921875
3
[]
no_license
require('dotenv').config() const superagent = require('superagent'); const MOVIE_API_KEY=process.env.MOVIE_API_KEY; const Cache =require('./cache') let cache=new Cache(); cache['data']=[] const controlMovie=(req,res)=>{ let query =req.query.query let movieArray=[] if (query){ if (cache.data.length >0){ ...
true
d78226735b06fe88d5f8c3f0f67946f0ecdb2501
JavaScript
Muthukumar1104/Jstask09
/table.js
UTF-8
486
2.671875
3
[]
no_license
function Myfn(){ let profile = JSON.parse(localStorage.getItem('student')); function Myfun(data){ return `<tr> <td>${data.name}</td> <td>${data.age}</td> <td>${data.gender}</td> <td>${data.email}</td> <td>${data.college}</td> <td>${data.depar...
true
329fcc83e04d15747a72860d9bc65db2a7419e02
JavaScript
edecker1/Text-Based-RPG
/js/shops.js
UTF-8
12,254
2.90625
3
[]
no_license
// this class will have the shop items class Shop { constructor(name, shopOwner, intro, items) { this.name = name; this.shopOwner = shopOwner; this.intro = intro; this.items = items; } } // Shops var weaponStore = new Shop("Weapon Store", "Nhan the Nimble", "'Welcome to my shop! I am the s...
true
00df30af7c0f01f09eecf7e970b0590c6a9cbf66
JavaScript
am20dipi/upfront-task-2
/frontend/models/category.js
UTF-8
459
3.15625
3
[ "MIT" ]
permissive
class Category { static all = [] constructor({name, id, tasks = []}){ this.name = name this.id = id this.tasks = tasks Category.all.push(this) } static getAll() { return this.all } static findByName(name) { return this.all.find(function(cate...
true
7cbf81487a85b6377f67288a05277224c46e6be8
JavaScript
chargingsleipnir/DoomLagoon
/Client/JS/End.js
UTF-8
564
2.578125
3
[]
no_license
var endState = ( function () { return { create: function () { game.add.text(80, 80, 'Game ended somehow', { font: '50px Arial', fill: '#ffffff' }); game.add.text(80, game.world.height - 80, 'Press S to start over', { font: '25px Arial', fill: '#ffffff' }); var sKey ...
true
50b6a2438bcb29d7bbdca03d8de35c23ad691754
JavaScript
Raykid/Olympus
/trunk/engine/net/NetUtil.js
UTF-8
1,707
2.84375
3
[]
no_license
/** * @author Raykid * @email initial_r@qq.com * @create date 2017-10-09 * @modify date 2017-10-09 * * 网络工具集,框架内部使用 */ function handleObj(obj) { if (!obj) return obj; else if (obj instanceof Array) return packArray(obj); else if (obj.pack instanceof Function) return obj.pack();...
true
4730213d2da93a001692bd59e92e0f0646906ee3
JavaScript
Ilya-Kravchenko/modal-window
/mode.js
UTF-8
1,055
2.53125
3
[]
no_license
function createModal(options) { const madal = document.createElement( 'div') madal.classlist.add('vmodal') madal.insertAdjacentHTML("afterbegin",` <div class="madal-overlay"> <div class="modal-window"> <div class="madal-header"> <span class="mode-title">Mode title</sp...
true
d7526997800b41a67b914d5e870625b984c52575
JavaScript
Tema359/jobs-listing
/store/jobs.js
UTF-8
1,135
2.625
3
[]
no_license
export const state = () => ({ jobs: [], }) export const mutations = { addJobs(state, newJob) { state.jobs.unshift(newJob) }, setJobs(state, jobs) { state.jobs = jobs }, } export const actions = { async fetchJobsList({ commit }) { try { const response = await this.$axios.get( 'htt...
true
70e62c45dff426a25a18b4e2a18a3a675017331b
JavaScript
aimerib/aimerib.github.io
/playground/grump/cssgridpixelart.js
UTF-8
2,726
3.03125
3
[]
no_license
function cssGridPixelArt(url){ loadIconsFromServer(url, drawCanvas); } function loadIconsFromServer(url, callDrawCanvas){ const getPixelArtObjectRequest = new XMLHttpRequest(); getPixelArtObjectRequest.open('GET', url, true); getPixelArtObjectRequest.send(); getPixelArtObjectRequest.onreadystate...
true
b594f1ea8aabead0176e289dc6a081d8c3269c3a
JavaScript
simonrelet/corewar-stadium-service
/app/pretty_printer.js
UTF-8
928
2.84375
3
[ "MIT" ]
permissive
'use strict'; const columnify = require('columnify'); const CYCLES_REGEX = /(\d+)(\d{3})/; let prettyCycles = cycles => { let res = `${cycles}`; while (CYCLES_REGEX.test(res)) { res = res.replace(CYCLES_REGEX, '$1 $2'); } return res; }; let prettyRank = rank => { return `#${rank}`; }; let printScores...
true
ffcbe88fbae66c31a7e086270f90c8baea7b1f3e
JavaScript
Kerilet/javascript-training
/007/example.js
UTF-8
233
4.03125
4
[]
no_license
const num = parseInt(prompt('Please, enter a prime number')); let isPrime = true; for (let i = 2; i < num; i++) { if (num % i === 0) isPrime = false; } alert(`The number ${num} ${ isPrime ? ' is' : ' is not' } prime`);
true
a138a1160146a114be5f80f69ae6a6514c6bac40
JavaScript
BenKalish42/EcoEngineers
/scripts/itemlist.js
UTF-8
2,272
2.9375
3
[]
no_license
function main() { var itemlist = new Vue({ el: "#itemListPage", data: { items: items_data, } }); // filterable search $("#itemSearchBar").keyup(function(){ var input, filter, table, tr, td, i; filter = this.value.toUpperCase(); table = document.getElementById("itemTable"); tr = table.getElementsB...
true
b4ba21bab1c5c02b8a1d679090fc80aca0cca3df
JavaScript
sabachau/practice-problems-javascript
/Serialize and Deserialize Binary Tree.js
UTF-8
1,383
4.15625
4
[]
no_license
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * Encodes a tree to a single string. * * @param {TreeNode} root * @return {string} */ //Sample Input: [1,2,3,null,5,6,7,null,null,null,null,8,null] var serialize = funct...
true
59223048147795122b5844e8a28776e772979183
JavaScript
amitepdl/MessagingService
/client/src/components/Timer.jsx
UTF-8
929
2.578125
3
[]
no_license
import React, { Component } from 'react'; import { Button } from "react-bootstrap"; export default class Timer extends Component { constructor(props) { super(props); this.state = { time: '', mounted: true } this.setCurrentTime = this.setCurrentTime.bind(this)...
true
48205522e5247437e2e8a38e14bcce6475148bbf
JavaScript
anto-caroca/react-tutorial
/src/App.js
UTF-8
2,734
3.625
4
[]
no_license
import React, { Component } from 'react'; import './App.css'; import Person from './Person/Person'; class App extends Component { // state is a special property. It is managed from inside a component and state is only available in components which are used by extending components. It is not available in function com...
true
e3a8dd37f3998cef8c6240ef852d94107a31809f
JavaScript
moisestech/react-music-player
/src/components/Player/index.js
UTF-8
1,742
2.84375
3
[]
no_license
import { useState, useRef, useEffect } from "react"; import "./player.css"; import PropTypes, { number } from "prop-types"; // COMPONENTS import Controls from "../Controls"; import Details from "../Details"; export default function Player({ currentSongIndex = 0, setCurrentSongIndex, nextSongIndex = 1, songs, ...
true
8c2a2410070ccbbc5f0a009955ff9c82fa7c0062
JavaScript
zikrostag/suckbag
/Assets/PointsManager.js
UTF-8
1,426
2.6875
3
[]
no_license
#pragma strict private var multiple : int = 1; private var myParticles : ParticleSystem; public var points : int = 40; public var pointsObject : GameObject; public var Health : int = 40; function Start () { myParticles = GetComponent(ParticleSystem); } function Update () { if (transform.localScale.x > .01) { ...
true
dcfccf86bd514bcfecf70c41389b32ea1ba54c9e
JavaScript
mrStorrs/AdventureLand
/Functions/Compound.js
UTF-8
2,040
3.140625
3
[]
no_license
//enter the items and desired level here, and rarity // 1 = store bought. 2 = common. 3 =rare. // 'nameOfItem' : [*level*, *rarity*] //this will be the logic for the compounding function compound_items(index1, index2, index3, rarity) { if (distance(character, find_npc("newupgrade")) > 100) { if (!smart.mov...
true
facc0453d329e3a2395cd2e434e6eb90425109d8
JavaScript
MadhavanRamakrishnan/Mughal-Mahal
/assets/js/driver.js
UTF-8
7,936
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
$(document).ready(function(){ if(countryId>0){ getState(countryId,stateId); } if(stateId>0){ getCity(stateId,cityId); } }); $("#country").change(function() { var countryId = $(this).val(); getState(countryId,stateId=0); }); function getState(countryId,stateId){ if(countryId)...
true
f8eb4fcbeaf21acae6314a3850296fb1eac4b6ad
JavaScript
IcaFulokoja/compromise
/src/terms/methods/misc.js
UTF-8
2,936
2.71875
3
[ "MIT" ]
permissive
'use strict'; const tagger = require('../../tagger'); const miscMethods = Terms => { const methods = { tagger: function() { tagger(this); return this; }, firstTerm: function() { return this.terms[0]; }, lastTerm: function() { return this.terms[this.terms.length - 1]; }...
true
ea31847ebd7fffe4753fadb780d24abef60cdf73
JavaScript
monkeysppp/NodeAppTemplate
/bin/addUser.js
UTF-8
1,905
3.125
3
[ "MIT" ]
permissive
/** * This talks to a MySQL database and adds a new user to the user database. * The password is salted and hashed. **/ 'use strict'; var userDb = require('../lib/userDb.js'); var addPrompt = require('prompt'); addPrompt.message = ''; addPrompt.delimiter = ''; function usage() { console.log(''); console.log(...
true
592286d30175fe87af5cb5d7a392fcb27ad45da3
JavaScript
Ting-Kerbell/KidzBop-Finder
/server.js
UTF-8
1,557
2.609375
3
[ "MIT" ]
permissive
/* TODO: ADD TRACK VIA https://github.com/ddanninger/node-gracenote Lyrics from Genius API Find streaming api */ const PORT = process.env.PORT || 8888; const express = require('express'); const Gracenote = require("node-gracenote"); /* Auth info */ var client_id = "1739837544-B5D728286C459FD6DF9650917CB4829F" var cl...
true
5fd972a45b0c5b0914324fa998746fc7ba4700f3
JavaScript
jjmax75/node-hexmap-generator
/routes/index.js
UTF-8
2,156
2.625
3
[]
no_license
'use strict'; const path = process.cwd(); const imageHandler = require(path + '/controllers/handleImage'); const hsvToTerrain = require(path + '/controllers/hueToTerrain'); const multer = require('multer'); // const storage = multer.diskStorage({ // destination: function(req, file, cb) { // cb(null, path + '/u...
true
275bbcfcefbbfa1aa11e0b0f334180a2e37c6207
JavaScript
brightleaf/react-hooks
/working/hooks/getter.js
UTF-8
2,726
2.53125
3
[]
no_license
import React, { useState } from 'react' import { useGet, useTitle, useFavicon } from '@brightleaf/react-hooks' export default () => { useTitle('useGet example from @brightleaf/react-hooks') const defaultIco = 'brightleaf.ico' const [favicon, setFavicon] = useFavicon(defaultIco) const [id, setId] = useState(1)...
true
fd12ceb17ad95c6647ac740fd7cb996c99e8a6f5
JavaScript
love-peach/blog-front
/src/components/kit/rotating-text/rotating-text.js
UTF-8
1,986
2.734375
3
[]
no_license
function guid() { function S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); } return S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4(); } export default { name: 'billboard', props: { words: { type: Array, default() { return ...
true
3a4e70fbc3e0a374654b2d271841a891f0c3824e
JavaScript
Alexjalva/Project3
/client/src/pages/SignUp.js
UTF-8
4,012
2.5625
3
[ "MIT" ]
permissive
import React, { useRef, useState } from 'react'; import AUTH from "../utils/AUTH"; import Form from "react-bootstrap/Form"; import Button from "react-bootstrap/Button"; function SignUpForm() { const firstnameRef = useRef(); const lastnameRef = useRef(); const emailRef = useRef(); const usernameRef = u...
true
a188a6c5f388028819003eb433c78fb8cf7291e0
JavaScript
maoweiwei1995/bj
/js/异步实现/promise/catch.js
UTF-8
150
2.59375
3
[]
no_license
let p = new Promise(function(resolve, reject) { reject(new Error('something is wrong')) }) p.catch(function(err) { console.log(err.message) })
true
a06df1b9ee8450815dae7add5542f850b007366f
JavaScript
whoisandy/react-rte
/src/EditorDemo.js
UTF-8
2,336
2.765625
3
[ "ISC", "BSD-3-Clause" ]
permissive
/* @flow */ import React, {Component} from 'react'; import RichTextEditor from './lib/RichTextEditor'; import type {EditorValue} from './lib/RichTextEditor'; type Props = {}; type State = { value: EditorValue; format: string; }; export default class EditorDemo extends Component<Props, State> { props: Props; s...
true
7b8fb1de19f4bd3c5e7eabc30d298f41f110f5f1
JavaScript
westl/Websocket
/public/javascript/main.js
UTF-8
6,257
2.546875
3
[]
no_license
var myApp = angular.module('myApp', ['ngMaterial']) .controller("mainController", function($scope, $timeout, $filter, $mdSidenav, $mdToast) { //UI related things $scope.openLeftMenu = function() { $mdSidenav('left').toggle(); }; //the main controller that will handle chat...
true