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
97e36b5e7312a688e3d1f2f7c1c3bf05a6678ae5
JavaScript
JasonCloud/onmouseWheel
/js/mouseWheel.js
UTF-8
11,322
2.65625
3
[]
no_license
/* 创建于:2016-09-12 作者:JasonCloud */ var mouseWheel = (function(w){ /*工具类*/ Tool = { Event:{ "addEvent":addEvent, "removeEvent":removeEvent, "eventObj":eventObj, "preventDefault":preventDefault, "stopPropagation":stopPropagation, ...
true
b6261d94d792dd40d3f46e8d1939f949ecc5a1ae
JavaScript
pelykh/math-modeling
/src/labs/3.js
UTF-8
856
2.640625
3
[]
no_license
import Plotly from 'plotly.js-dist'; import solveConvectionDiffusionProblem from "../problems/ConvectionDiffusion"; const props = { t: 100, }; document.getElementById('root').innerHTML = ` <div id="graphDiv"></div> `; const result = solveConvectionDiffusionProblem(props); const graphDiv = document.getElementById(...
true
4a4deb047e104594db63ebcdc1941c597132c649
JavaScript
Isadorious/FinalYearProject
/frontend/src/Components/User/InlineUsers.js
UTF-8
1,226
2.53125
3
[ "CC0-1.0" ]
permissive
import React from 'react'; import Axios from 'axios'; import Loading from '../Utils/Loading'; class InlineUsers extends React.Component { constructor(props) { super(props); this.state = { usernames: [], } } componentDidMount() { this.mounted = true; let accessString = localS...
true
3f83fd0bb7726f713b087ab03b566517a7d1c54b
JavaScript
liqueurdetoile/fetch-mock-fixtures
/src/helpers/ServerHistory.js
UTF-8
1,449
2.84375
3
[ "MIT" ]
permissive
export default class ServerHistory { logs = []; _history = []; _call = null; _target = null; _verbose = false; push(request, response) { this._history.push({ request, response }) } log(message) { this.logs.push(message); if (this._verbose) console.log(message); // eslint-d...
true
eeab96ceeb9bdf4d4ce06dac833da124479dd996
JavaScript
hexapode/codeart
/demo-src/022_snowFlakes.js
UTF-8
1,350
3.640625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
int unit = 40; int count; Module[] mods; void setup() { size(640, 360); noStroke(); int wideCount = width / unit; int highCount = height / unit; count = wideCount * highCount; mods = new Module[count]; int index = 0; for (int y = 0; y < highCount; y++) { for (int x = 0; x < wideCount; x++) { ...
true
25a30563b4a8e5af8d63261bb23a428fd3034d39
JavaScript
crisal95/Brainstation
/cristube2/src/pages/home/home.js
UTF-8
1,591
2.578125
3
[]
no_license
import React, { useState, useEffect } from "react"; import "./home.css"; import GetList from "../../hooks/getList"; import VideoCard from "../../components/videoCard/videoCard"; const Home = () => { const [list, setList] = useState(null); const [inputText, setText] = useState(""); const [filteredList, setFiltere...
true
0f975de6d6f9470c3214075e39f4305aead1b15f
JavaScript
sitetriks/Sitetriks-CMS
/SiteTriksApp/SiteTriksApp.Web/SiteTriks/StaticFiles/scripts/common/data.js
UTF-8
2,695
2.59375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
var Data = (function () { let makeRequest = typeof fetch !== 'undefined' && isFunction(fetch) ? makeFetchRequest : makeAjaxRequest; // fallback to ajax if older browser function makeAjaxRequest({ url, method, body, headers, isForm }) { return new Promise((resolve, reject) => { let params = { url, metho...
true
0b4e5628740c00798c3946f2d7f4971ac61e8932
JavaScript
f3rn4nd001/vaca4
/vaca/src/Components/Notas.js
UTF-8
612
2.703125
3
[]
no_license
import React from 'react' const Nota =()=>{ const notes = [ { id: 1, content: "HTML es muy fácil", date: "2020-01-01", important: true }, { id: 2, content: "Los navagadores solo pueden ejecutar Javascript, HTML y CSS.", ...
true
5a9ffee82552fe6dc08f42f400a5391e8993ffee
JavaScript
iskeepingon/accumulation
/fetch-request.js
UTF-8
1,815
2.859375
3
[]
no_license
/** * http封装请求 */ import {fetch} from 'whatwg-fetch' let erorrMap = { 'CMN00000': '成功', 'CMN00001': '输入参数为空', 'CMN00002': '输入参数校验失败' } function checkStatus(response) { if (response.status >= 200 && response.status < 300) { return response } else { let error = new Error(response.statusText) err...
true
9aa1e92988067fe3f3b744583a3caec88846588b
JavaScript
venam/potato_rage
/Cocroach.js
UTF-8
2,271
3.140625
3
[]
no_license
function Cocroach(media) { Element.call(this); this.media = media; this.direction = Math.floor(Math.random()*2+1); //1 or 2 this.life = 3; this.nbTimesTouched = 0; this.taken = false; this.dead = false; this.img = 2 ; } Cocroach.prototype = new Element...
true
ed6c8db07b350edb2f04d2eae8ae5c8efbd7ac3b
JavaScript
paulyglot/bloc-messenger
/src/components/MessageList.js
UTF-8
1,704
2.671875
3
[]
no_license
import React, {Component} from 'react'; class MessageList extends Component { constructor(props) { super(props); this.state = { messages: [], nameNewMessage: '' }; this.handleMessageSubmit = this.handleMessageSubmit.bind(this); this.createMessage = this.createMessage.bind(this); ...
true
b1214a333edc0d3f1492b2c4d4d38bc101044581
JavaScript
LiliaRibac/driving-around-the-block
/main.js
UTF-8
6,282
3.625
4
[]
no_license
let car = document.getElementById('car'); let carProps = { drivingDirection: 'right', carSpeed: 10 } let board = document.getElementById('game-board'); let intervalId; function reset() { stop(); carProps.drivingDirection = 'right'; var board = document.querySelector("#game-board"); board.inner...
true
b97cd443272e8ed8c3be31caea3f076f2f62de3f
JavaScript
locohost/emb-netlify-site
/src/components/auth-service.js
UTF-8
1,985
2.84375
3
[ "MIT" ]
permissive
//import decode from 'jwt-decode'; import 'whatwg-fetch'; export const login = async (handle, pass) => { // Get a token from api server using the fetch api try { const response = await fetch(`${process.env.REACT_APP_RESTURL}/login`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, ...
true
94c49fdd6dee8c305817a3936077e1b7d2c3bac2
JavaScript
gilang-parjiyo/Master-Javascript-Programming-Exercises
/exercises/059-removeFromBackOfNew/test.js
UTF-8
575
2.84375
3
[]
no_license
const rewire = require("rewire"); test('Function removeFromBackOfNew must exist', () => { const removeFromBackOfNew = rewire("./app.js").__get__("removeFromBackOfNew"); expect(removeFromBackOfNew).not.toBe(undefined); }); test('Function must return a new array containing all elements, but the last', () => { ...
true
aad36dc432fc800da5c3932fc5d777eb1737d148
JavaScript
ScottMaclure/character-traits
/javascripts/jsx/PatreonBadge.js
UTF-8
534
2.515625
3
[ "MIT" ]
permissive
/** * Simple display of a patreon badge. * * @jsx React.DOM **/ var React = require('react'); exports.PatreonBadge = React.createClass({ propTypes: { hid: React.PropTypes.number }, render: function () { /*jshint unused:false*/ var patreonUrl = 'http://www.patreon.com/creation?hid=' + this.props.hid; /...
true
d3296362fc725728e422627b3f3142bd08924744
JavaScript
danirnias/qalyn_updated
/QALYN3.js
UTF-8
2,059
3.21875
3
[]
no_license
const makeCalculation = () => { // [start] education level calculating const eduLevel = document.getElementById("1").value; let education = document.getElementsByName('education'); for (var i = 0, length = education.length; i < length; i++) { if (education[i].checked) { initialVa...
true
69d69845ab3584f6b4b26386bbf4633c40529db4
JavaScript
tfernandes14/ProjetoMultimedia
/code/menus/menu_principal.js
UTF-8
1,400
2.71875
3
[]
no_license
"use strict"; (function(){ window.addEventListener("load", main); }()); function main() { var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "#0c6384"; ctx.font = "115px Showcard Gothic"; ctx.fillText("Frikin'", 203, 140); ctx.fillTe...
true
e9cec87a70cc13f2b8e92e5a1ab06ab484c0e459
JavaScript
pedroborges123/C0740134_week_05
/src/assets/js/script.js
UTF-8
584
3.671875
4
[ "MIT" ]
permissive
$(document).ready(function () { //alert("test"); alert(sum(7,6)); console.log(sum(7,6)); arrays(); }); function sum(a, b) { return a + b; } function arrays() { var pens; pens = new Array('green',"blue", 'red', "gray", "black"); markers = pens; console.log(markers); markers.pus...
true
32fc9b9fffc61abf0933b6d49787aa79605f9191
JavaScript
ishumski/world
/JS/3.canvas/1.basic_canvas(lesson_53)/10.task/js/script.js
UTF-8
225
2.984375
3
[]
no_license
/*10. Используя метод strokeRect, нарисуйте на канвасе квадрат */ const canvas = document.querySelector("#canvas"); const ctx = canvas.getContext("2d"); ctx.strokeRect(0, 0, 150, 150);
true
bb62ccf07f44e0e55f4cd4dc0d8102e7de5d8820
JavaScript
DelkTsai/react-template
/src/utils/exercise/exercise.js
UTF-8
335
3.125
3
[]
no_license
const isStraight = arr => { // 省略 j q k 鬼 => 11 12 13 14 arr.sort((a, b) => a - b); const notGhost = arr.filter(num => num !== 14); if ([...new Set(notGhost)].length === arr.length) { return "no"; } const length = notGhost[notGhost.length - 1] - notGhost[0] + 1; return length > arr.length ? "no" : "...
true
6f20eb6b66924f500f0c3644c8dc44785ad5e1b1
JavaScript
VadimS4/Algorithms
/persistentBugger.js
UTF-8
1,134
4.65625
5
[]
no_license
//Persistent Bugger algorithm from CodeWars //Function declaration, receive a number as an input. function persistence(num) { //change the number into a string and split the number into individual numbers. var numArray = num.toString().split(''); //Initialize a count variable to count its multiplicative p...
true
e8f4edbf05388b520bf1af0af2025cdda93dbada
JavaScript
tutsplus/modern-javascript-fundamentals
/lesson6.5-generator-functions.js
UTF-8
275
3.53125
4
[ "BSD-2-Clause" ]
permissive
(function () { 'use strict'; function* square(x) { let y = (yield x * x) * x; console.log('generator resuming', y); } let squareIterator = square(5); console.log(squareIterator.next()); console.log(squareIterator.next(10)); })();
true
882d8878fbf43a1cbafb109be15752707e7d09e0
JavaScript
zhadowz99/node-mongo-demo
/app.js
UTF-8
815
2.53125
3
[]
no_license
var express = require("express"); var app = express(); var port = 3000; var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); var mongoose = require("mongoose"); mongoose.Promise = global.Promise; mongoose.connect("mongodb://krisna:krisna@mongokrisna:2...
true
477bfd675732cb021a2ad6d7e5e01bd81f3ccc90
JavaScript
jacquescoetzee202/react-week2
/src/hooks/StepCounter.js
UTF-8
828
2.78125
3
[]
no_license
import { useState } from "react"; const StepCounter = ({ step, max }) => { const [ count, setCount ] = useState(0); const plusCount = () => setCount(count + step <= max ? count + step : count); const minusCount = () => setCount(count - step >= 0 ? count - step : count); return ( <> ...
true
c956783440945f5f7f3e9c8eba8e3d4c1aa75eca
JavaScript
mostafa772hesham/final_node_tasks
/notes/notes.js
UTF-8
1,915
3.03125
3
[]
no_license
const { Console } = require('console') const fs = require('fs') const addNote = (id,Mark, name,comment) => { const notes = loadNotes() const doplecateid = notes.filter((note)=>{ return note.id===id }) if(doplecateid.length===0){ notes.push({ id:id, Mark :Mark ,...
true
e150859ea0cd412277d6f65865ff08489b45d6cf
JavaScript
anikxt/js_learning
/28_Window/windowObject.js
UTF-8
381
3.171875
3
[]
no_license
console.log(window); // is same as window.console.log('Hi!'); alert('Yo'); window.alert('Yay'); const alert = 'message'; // window.alert('Heya!'); // It won't work now window.addEventListener('resize', () => { console.log('resized'); }); /* You can skip using 'window' if you wish, javasript is clever enough t...
true
9d5465da3d54a597036fd3214eb1dca992a47cc8
JavaScript
pillars/measures
/test/parser.js
UTF-8
1,921
2.84375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
const expect = require('chai').expect const Parser = require('../src/parser.js') describe('Parser', function () { this.timeout(30000) describe('parse()', function () { it('parses fractions', () => { const result = new Parser().parse('1/2in') expect(result).to.deep.eq([{ formattedValue: '1/...
true
1ccdebc1024bca883099ed4fb2dae06f42bfaa8e
JavaScript
wilsinneto/financial-control
/client/src/services/Users.js
UTF-8
1,256
2.734375
3
[]
no_license
const { execute } = require("@/utils/Request"); const { captureHttpStatusCode, getMessage } = require("@/utils/ResponseMessage"); let urlAPI = "http://localhost:3000/users"; class UsersService { constructor() {} logout() { // remove user from local storage to log user out localStorage.removeItem('user'); ...
true
cc7df36dd17e00451d900828cb01ffc0349aad57
JavaScript
spiritGo/utils-factory
/src/common/js/utils.js
UTF-8
1,937
2.953125
3
[]
no_license
/** * 会话存储 * key { String } 键 * value { Any } 值 */ const session = { set(key, value) { value = typeof value == 'object' ? JSON.stringify(value) + `-${typeof value}` : value + `-${typeof value}`; sessionStorage.setItem(key, value) }, get(key) { let _temp = sessionStorag...
true
811e1b38a01dd9e2806aab295d8ffc91a454f543
JavaScript
liodom/todo-list-with-remove-and-add-buttons
/src/NewTodo.js
UTF-8
980
2.8125
3
[]
no_license
import React, { Component } from "react"; class NewTodo extends Component { state = { text: "" }; onChangeHandler(e) { this.setState({ text: e.target.value }); } submitHandler(event) { event.preventDefault(); const textValue = this.state.text; const itemToAdd = { task: textVal...
true
6cd7f038fb15d2721587db0d34fb2df8fcc3666a
JavaScript
Anish-Sinha/studyspace
/public/controllers/log_in_controller.js
UTF-8
2,053
2.625
3
[]
no_license
// log_in_controller.js will be a front-end javascript that // runs on the Log In page and communicates with server.js // used for log messages var LOG = "log_in_controller: " // defining the controller angular.module('loginApp', []).controller('loginController', ['$scope', '$http', function($scope, $http) { // -...
true
d63b05ae083716ad8f8d1464682b8242152cd661
JavaScript
projectjamjar/JamJar
/src/app/services/searchService.js
UTF-8
2,139
2.75
3
[ "MIT" ]
permissive
'use strict'; function handleVenue(venue) { return { type: 'venue', icon: 'home', name: venue.name, id: venue.id, details: venue.formatted_address, } } function handleUser(user) { return { type: 'user', icon: 'person', name: user.username, id: user.id, details: null } }...
true
28e7423d9aef3681e9283c290752a859dfc09f95
JavaScript
lopezezequiel/clienteservidor
/src/main/webapp/userapp/js/dao.js
UTF-8
4,243
2.625
3
[]
no_license
var DaoFactory = function(schema, url) { var parseResponse = function(response){ return (response.code == 200 ? response.json(): response); } var parseIndex = function(response) { if(response.code == 200) { var objects = response.json(); var index = {}; for(var i=0; i<objects.length; i++) { inde...
true
e8fcd5d9bca7bd92b3bd3e9b1f73303f1bb01027
JavaScript
mattyboy/istanbul-slack-notify
/test/__mocks__/slack-node.js
UTF-8
575
2.828125
3
[ "MIT" ]
permissive
const sleep = (time) => { return new Promise((resolve) => setTimeout(resolve, time)); }; class Slack { setWebhook(url) { this.webhookUrl = url; } webhook(payload, callback) { if (this.webhookUrl.indexOf("error") > -1) { callback("fake error was thrown", payload); } ...
true
13961f61251945218a7225058ec790aff9b4bc4b
JavaScript
Holmz9000/nodejs-tutorial
/demo_readfile.js
UTF-8
529
2.859375
3
[]
no_license
// Creates a file to read this file "demofile1.html" // currently sitting in C:\Program Files\nodejs //<html> //<body> //<h1>My Header</h1> // <p>My paragraph.</p> // </body> // </html> var http = require('http'); var fs = require('fs'); http.createServer(function (req, res) { fs.readFile('demofile1.html', function(e...
true
63612304e2cef4ab9729383a09aba3c871685f91
JavaScript
Amidek/nauka-node.js
/app.js
UTF-8
1,039
3.4375
3
[]
no_license
const os = require('os'); const fs = require('fs'); const genders = ["M", "F"], maleNames = ["Adam", "Andrzej", "Bartek", "Marcin", "Zbyszek"], femaleNames = ["Anna", "Basia", "Kasia", "Ola", "Zosia"], lastNames = ["Kowalski", "Schmidt", "Nowak", "Johnson", "Williams"]; function randChoice...
true
6c8deda14e6d751a0452c074db38778aa2a3e81d
JavaScript
tkoriginal/sum-from-a-to-b-test-js
/index.js
UTF-8
160
2.71875
3
[]
no_license
function sum(fromN, toN) { // Sum all the values from fromN up to toN return fromN === toN ? fromN : fromN + sum (fromN + 1, toN); } module.exports = sum;
true
fb50c8acb2aca542c1de756a7e347c4aff6a697f
JavaScript
koduje/oop-to-frp
/src/shared.js
UTF-8
1,053
2.71875
3
[]
no_license
import Rx from 'rxjs'; export const once = (fn, context) => { let result; return function() { if (fn) { result = fn.apply(context || this, arguments); fn = null; } return result; }; }; export const countTo = (source$, to) => source$.scan( counter => counter >= to ? 1 : counter + 1, 0...
true
7169eefb11ad1b520f76d95fc85c16bb37f48941
JavaScript
harisha-swaminathan/StudentDetails
/src/Filters/StudentFilter.js
UTF-8
859
3.046875
3
[]
no_license
export default (students, name, tag)=>{ const nameMatch=()=>{ return students.filter((student) => { const studentName=`${student.firstName} ${student.lastName}`; const nameMatch = (studentName.toLowerCase().includes(name.toLowerCase())); return nameMatch; }) } const tagM...
true
352323eda7c6c6414f8030c31cee7131bbc16a2f
JavaScript
lanyinghua/TDD-
/TDD-practice1/test/main-test.js
UTF-8
1,907
3.65625
4
[]
no_license
'use strict'; describe('fizzBuzzWhizz', ()=> { it('If the number contains number 3, return ‘Fizz’ in hundred.',()=>{ //Given the number contains 3 var num = 13; var actualResult = fizzBuzzWhizz (num); var expectedResult = 'Fizz'; expect(actualResult).toEqual(expectedResult); }) it (...
true
f85c6f71b33b1e0ff0330c970603cd5e3eb32202
JavaScript
p925088/SAC-Custom-Widget
/hoshinKanriMatrix.js
UTF-8
6,936
2.765625
3
[ "MIT" ]
permissive
/** Copyright (c) 2021 Arijit Das Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
true
9c36af8954506a3a3b5ae50840adb5edca313b46
JavaScript
cwhwang1986/calendar
/calendar-data/public/js/components/courseCatalog.jsx
UTF-8
2,110
2.671875
3
[]
no_license
import React from 'react'; import Course from './Course' class CourseCatalog extends React.Component { constructor(props) { super(props); this.state = { temperaryCourseList: [...this.props.courseList] }; } componentWillReceiveProps(newProps) { this.refs.courseSearchBox.value = ''; this....
true
21f3f18f13843601fcb62dcebb581a5a15d972f8
JavaScript
tonyli97/hello-js
/leetcode/20200414-Perform String Shifts.js
UTF-8
763
3.828125
4
[]
no_license
/** * @param {string} s * @param {number[][]} shift * @return {string} */ var stringShift = function (s, shift) { let finalShift = 0; shift.forEach(([direction, amount]) => { finalShift += direction === 1 ? amount : -amount; // 1 right / 0 left }); const strlen = s.length; finalShift = finalShift % st...
true
f9514ac5666bed82f60dc41cb5d0bec727dd15da
JavaScript
zbert/alulu
/src/public/js/app/variables.js
UTF-8
2,207
2.765625
3
[ "MIT" ]
permissive
'use strict'; var globalVars = { device: { isIpad: null, isIphone: null }, elementStates: { headerHeight: null }, elements: { $siteHeader: $('.js-site-header') }, isMobile: false, isTabletMax: false, }; var setupValues, //responsive media query fun...
true
a7b3817ce6615dbe93d9ab068e22e981459f71c3
JavaScript
derekadams-uas/javascript_tutorials
/advanced_objects.js
UTF-8
719
4.15625
4
[]
no_license
// Reference type // Context vs scope. Context tells you where we are within an object. this // Keyword that equals what is to the left of the dot (e.g. this.alert("hello")). Refers to what object it's inside of. // Instantiation class Player { constructor(name, type) { this.name = name; ...
true
7ef55d9d3cb3c9cb1a8bd2bcaea7069987a4a31b
JavaScript
mingchuno/dataclass
/examples/flowtype/index.js
UTF-8
427
2.890625
3
[ "MIT" ]
permissive
/* @flow */ import Record from 'dataclass'; class User extends Record { name: string = 'Anon'; age: number = 0; } class Admin extends Record { nick: string = 'Boo'; } const user = new User({ name: 'Liza', age: 23, aaaa: false }); const updated = user.copy({ age: 24, isWeird: false }); const isEqual = user.equ...
true
2845d753b06d486daeb16bc1fa51b9984700239e
JavaScript
marcelomaias/panel-one
/app/scripts/main.js
UTF-8
2,694
3.109375
3
[]
no_license
const timeContainer = document.querySelector('#time'); const weatherContainer = document.querySelector('#weather'); const loader = document.querySelector('.lds-ring'); checkTime(); checkWeather(); setInterval(checkTime, 1000); setInterval(checkWeather, 600000); function checkTime() { const now = new Date(); const...
true
fb6f24c6bab64bc3132a9a41924315069a341352
JavaScript
oneleif/olWebsite-React
/src/components/MeetTheTeamCard/MeetTheTeamCard.jsx
UTF-8
1,003
2.515625
3
[ "MIT" ]
permissive
import React from 'react'; import Card from '../Objects/Card/Card'; import CardContent from '../Objects/Card/CardContent'; import CardFooter from '../Objects/Card/CardFooter'; import CardTagContainer from '../Objects/Card/CardTagContainer'; import Tag from '../Tag/Tag'; export default function MeetTheTeamCard({ membe...
true
3467e211c052c2e323c882173777e414094ed838
JavaScript
adunato/screeps
/role.builder.js
UTF-8
4,189
2.53125
3
[]
no_license
var statemachine = require('state-machine'); var cache = require('cache'); var builderFSM = new statemachine.StateMachine.factory({ init: 'none', transitions: [ {name: 'energyEmpty', from: '*', to: 'carrier_withdraw'}, //step to make it pick up energy from carrier if was going to pick up somewhe...
true
f172963a9207a26ce7a78c248b3e3a01e43aa084
JavaScript
kinome/kinomicDataQC
/js/general/barcodeProto.js
UTF-8
4,761
3.015625
3
[ "MIT" ]
permissive
/*global KINOMICS: false, console: false */ KINOMICS.expandBarcodeWell = (function () { "use strict"; //variable declarations var createObject, func, run, reportError, save, toString, userSave, userToString, toNumber; //variable definitions //functionsToReturn func = function (init) { /*///////////////////////...
true
bb874e96928f12dc4983477470a55e84cbb62791
JavaScript
geocodinglife/JavaScript-autumn-2020
/exercises/searching/searching.js
UTF-8
1,391
3.53125
4
[]
no_license
const wrapper = document.querySelector('.wrapper') const button = document.querySelector('button') console.log(countriesData[0].languages.join(', ')) const searchInput = document.querySelector('input') const filterCountry = (arr, term) => { const filteredCountry = arr.filter((item) => { let name = item.name.to...
true
fcd8121eb3a14735aedd35f51264137d543a286b
JavaScript
colinnichols/react-xzibit-select
/lib/components/option-list.jsx
UTF-8
1,556
2.515625
3
[ "MIT" ]
permissive
var React = require("react/addons"); var types = React.PropTypes; var OptionListItem = require("./option-list-item.jsx"); var LazyRender = require("react-lazy-render"); var ReactSizeBox = require("react-sizebox"); var OptionList = React.createClass({ propTypes: { options: types.array, onClick: types.func, addAl...
true
4f6a34510c064456172cec1305d8776d52b93f98
JavaScript
nhensh/bitcoin-profit-calculator
/src/InfoBox.js
UTF-8
3,279
2.640625
3
[]
no_license
import React, { Component } from 'react'; import moment from 'moment'; import './InfoBox.css'; class InfoBox extends Component { constructor(props) { super(props); this.state = { currentPrice: null, monthChangeD: null, monthChangeP: null, updatedAt: null } } componentDidMount(...
true
427376c73780b4fd4fed16cdf1ab387c689f6e03
JavaScript
dmperlaza94/taller-javascript
/parte-uno/eventos/ejericicio3/tres-eventos.js
UTF-8
427
2.53125
3
[]
no_license
"use strict"; const paragraph = document.querySelector(".loremuno"); const insertParagraph = "<p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel doloremque fuga corporis, ipsam at placeat cupiditate dignissimos voluptate veritatis quibusdam aliquid molestias, quia omnis eius minima veniam rerum tempore un...
true
1e465caaab6639398bb4dea4178cdb4cd3d4f818
JavaScript
KamilHrebeniuk/InternetOfThings
/Lista 3/Zadanie 1+2+3/Frontend/js/main.js
UTF-8
7,473
2.765625
3
[]
no_license
$(document).ready(function() { var $console = $("#console"); var correct = "#009933"; var alert = "#ffbc30"; var error = "#a70000"; function communicate (text, color) { return "<span style='color: " + color + "'>" + text + "</span>"; } $("#register-button").click(function () { ...
true
42cb5e5b6e137180011194a1656964ca9d8fa93c
JavaScript
JuHyeon-S/21-1-Web-Back-end_Programming
/project/parkSearch/WebContent/main.js
UTF-8
2,608
3.25
3
[]
no_license
/** * */ var container = document.getElementById('map'); //지도를 담을 영역의 DOM 레퍼런스 var options = { //지도를 생성할 때 필요한 기본 옵션 center: new kakao.maps.LatLng(33.450701, 126.570667), //지도의 중심좌표. level: 2 //지도의 레벨(확대, 축소 정도) }; var map = new kakao.maps.Map(container, options); //지도 생성 및 객체 리턴 if (navigator.geolocation) { ...
true
4c88c293c8339a946e2b1f9a4167d6bd26267664
JavaScript
luck2901/todolist
/src/components/App.js
UTF-8
1,906
2.890625
3
[]
no_license
import React, {Component} from 'react'; import PageTemplate from './PageTemplate'; import TodoInput from './TodoInput'; import TodoList from './TodoList'; const initialTodos = new Array(500).fill(0).map((foo,index) => ({id:index, text:`일정${index}`, done:false})); class App extends Component{ state = { input: ''...
true
89c7222b8f2e9ba98fc275a255d5c83ca818a4d5
JavaScript
renandefariazk/FaculdadeTrabalhoControleDeVendas
/ControleVendas/wwwroot/js/editSolucao.js
UTF-8
327
2.90625
3
[]
no_license
const inputCodigos = document.querySelector('#Codigo'); const oldCodigo = inputCodigos.value; console.log(oldCodigo); const buttonSubmit = document.querySelector('.btn'); const produto = localStorage.getItem(oldCodigo) buttonSubmit.addEventListener('click', () => { localStorage.setItem(inputCodigos.value,produto)...
true
3ee451f5fd6d781280cbfc94e77568d5b69407ab
JavaScript
AyrtonFSDiniz/Desafio_1_Blue
/Desafio1.js
UTF-8
1,431
4.15625
4
[]
no_license
/* Desafio 1 Projeto Detetive Faça um programa que faça 5 perguntas para uma pessoa sobre um crime. As perguntas são: "Telefonou para a vítima?" "Esteve no local do crime?" "Mora perto da vítima?" "Devia para a vítima?" "Já trabalhou com a vítima?" O programa deve no final emitir uma classificação sobre a participaçã...
true
9776922f672c55a0fceb47830d8fe9278a1032b1
JavaScript
JackieNew95/JS-exercise
/exercise/20170929/TypingGame/js/index.js
UTF-8
406
2.9375
3
[]
no_license
window.onload=function () { let game=new Game(); game.start(); let life=document.querySelector('.life'); let guanqia=document.querySelector('.guanqia'); let score=document.querySelector('.score'); setInterval(()=>{ life.innerText=`生命值:${game.life}`; guanqia.innerText=`第${game.g...
true
67fcff6923f0583b816128f95488beaa3fd706c7
JavaScript
Tharon-C/gridly
/utils/index.js
UTF-8
908
3.125
3
[]
no_license
export const makeGrid = (height, width) => { let makeRow = (rowIndex, rowWidth) => { let cells = []; for (let i = 1; i <= rowWidth; i++) { let coordinates = [ rowIndex, i ]; cells.push(coordinates) } return cells }; let grid = []; for (let i = 1...
true
77291cabaffd065af06effa8a741d0e37ea4e987
JavaScript
jirayasama89/kul-systeemtheorie
/javascript/control/src/system.js
UTF-8
21,674
2.9375
3
[]
no_license
var math = require('mathjs'); math.config({matrix: 'array'}); var num = require('./num'); var numeric = require('numeric'); /** * Module related to System object. * @module */ /** * Constructs a System object * @constructor * @abstract */ function System() { } /** * Returns a string of the latex representat...
true
75ea3e98dcd4b433698ec008d97d8d6b05cbe5d5
JavaScript
madebylu/whiteboard
/js/whiteboard.js
UTF-8
8,728
2.96875
3
[]
no_license
$(function () { "use strict"; var can = $('#whiteboard')[0]; var whiteboard = can.getContext('2d'); var drawing = false; var canvas_action = 'draw'; var lines = []; //to be filled with an array of point_set s. //starting position so that text doesn't appear behind the controls before //t...
true
c27c123d6783e202076541adc9ac572cdaa65079
JavaScript
andeev/rolecall
/bot.js
UTF-8
7,398
2.78125
3
[]
no_license
const Eris = require('eris').Client; const bot = new Eris(''); var play = 0; var l = 0; var f = 0; var s = 0; var m = 0; var playNames = []; var lateNames = []; var fillNames = []; var maybeNames = []; var spiritNames = []; bot.on("ready", () => { console.log("Ready!"); }); bot.on("messageCre...
true
9e6c3ff7f7d48241166c8b75d67e7440b0befe75
JavaScript
mareksubocz/Studies
/PAI/javascript/.history/form_check_20200407210321.js
UTF-8
1,843
3.171875
3
[]
no_license
function validate(form) { let imie = form.elements["f_imie"]; let nazwisko = form.elements["f_nazwisko"]; let kod = form.elements["f_kod"]; let ulica = form.elements["f_ulica"]; let miasto = form.elements["f_miasto"]; let email = form.elements["f_email"]; if (checkAndFocus(imie, 'Podaj imię!...
true
40eee0e88c05742667ab7f7356f5cde45aa137ce
JavaScript
cedmax/advent-of-code
/2020/13/index.js
UTF-8
1,291
3.234375
3
[]
no_license
const input = require("../../utils/getInput")(__dirname, { split: "\n" }); const earliest = parseInt(input[0]); const busses = input[1] .split(",") .filter((i) => i !== "x") .map((i) => parseInt(i, 10)); const result = busses .filter((i) => i !== "x") .reduce((acc, bus) => { let mod; let start = ear...
true
0aaf3ce7e502428dbb0a30a7246613f8a5aefd03
JavaScript
blearjs/blear.classes.touchable
/examples/pinch.js
UTF-8
1,519
2.578125
3
[]
no_license
/** * 文件描述 * @author ydr.me * @create 2018-06-20 15:38 * @update 2018-06-20 15:38 */ 'use strict'; var Touchable = require('../src/index'); var consoleEl = document.getElementById('console'); var demoEl = document.getElementById('demo'); var tch = new Touchable({ el: '#demo' }); var startRotation = 0; v...
true
12526ceb48921f1bdbd21b92e34fe97cfdedba20
JavaScript
mattiaseyram/hr-learning-system
/src/redux/actions/course.js
UTF-8
3,064
2.59375
3
[]
no_license
import { SET_COURSE, SET_COURSES } from '../actionTypes'; import { functions, db, auth } from '../../utils/firebase'; import { setLoading, setWarning } from './ui'; import { fetchLessons } from './lesson'; /** * Creates course in the db * @param {*} courseData */ export const createCourse = (courseData) => async d...
true
d9134a395ef906a65f9d16fe6f8b4f15002cd87b
JavaScript
ineesh/node_js-practise
/weather_app/app_ver1.js
UTF-8
1,187
2.90625
3
[]
no_license
// console.log("starting") // const { require } = require("yargs"); // setTimeout( () => { // console.log("2 second timer") // } , 2000) // setTimeout( () => { // console.log("0 second") // },0) // console.log("stopping") const chalk = require("chalk") const request = require("request") const URL = "h...
true
cd56082c80ae5b77e587c765bcb3ab77693d3e78
JavaScript
zekenie/trext-components
/models/node.js
UTF-8
1,067
2.640625
3
[]
no_license
var async = require('async') var Connection = require('./connection') var _ = require('lodash') /* assume - name - text - media (optional) */ var Node = function(config) { this.connections = []; for(k in config) { this[k] = config[k] } } Node.prototype.getText = function(cb) { var self = this; ...
true
82eb29bd04c06059a4cc0dfabfbedd8196ce481f
JavaScript
MaurizioFaedda/js-paliedispari
/main1.js
UTF-8
1,157
4.125
4
[]
no_license
// Palindroma: scrivere una funzione per valutare se una parola è palindroma oppure no // funzione per invertire una qualsiasi parola function parolaInversa(parola){ // la parola viene spezzettata e ogni carattere_reverse diventa un elemnento di un array var caratteri = parola.split(''); // roves...
true
14ef47fddc78355816c57e524a581aedb5b687f9
JavaScript
nbuikema/nbuikema.github.io
/public/script.js
UTF-8
1,930
2.859375
3
[]
no_license
window.onload = (e) => { let vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', `${vh}px`); window.addEventListener('resize', () => { let vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', `${vh}px`); }); let funMode = false; document...
true
98f10c66def324d504d0f86787c1afc5def04e3d
JavaScript
LuciOroles/athena-rsp
/src/functionalPolyfills/functionalConstructor.js
UTF-8
829
3.4375
3
[ "MIT" ]
permissive
function Person(spec) { var person = spec; //metods person.getDisplayName= getDisplayName; return person; function getDisplayName() { return this.firstName + " " + this.lastName; } } function Employ (spec) { var employee = Person(spec); // var that = otherConstructor(spec) em...
true
1f4922cb44f456d74b074846dbbc2f6b6474fc7d
JavaScript
mhdavis/avocado-toast
/controllers/user-controller.js
UTF-8
6,014
2.734375
3
[]
no_license
const User = require("../models/User"); const bcrypt = require("bcrypt-nodejs"); // GET POST DELETE const UserController = {}; // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // GENERAL USER METHODS // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
true
10aadb6178a2d5e949db92cecf37d1e0189ec718
JavaScript
fandiario/upVote-App
/client/main.js
UTF-8
994
2.640625
3
[]
no_license
var app = new Vue({ el: '#app', data: { message: 'upVote-App', currentPage: 'home', submissions: [], selectedSubmission: {} }, methods: { fetchData () { axios .get('http://localhost:3000/submissions') .then (({ data }) => { this.curre...
true
cfc819adfa65458fa3082a89f93efa648a1a95e3
JavaScript
andpigge/movies-explorer-api
/controllers/users.js
UTF-8
4,031
2.59375
3
[]
no_license
const jwt = require('jsonwebtoken'); const User = require('../models/user'); // Нужен для создания токена //* Конфигурация const config = require('../utils/movies.config'); const { NODE_ENV, JWT_SECRET = 'dev-secret' } = process.env; //* // Ошибки const BadRequest = require('../errorsHandler/BadRequest'); const Con...
true
4ae073efbf776a69046c4bd64b209ab1e745ee94
JavaScript
prozb/miles-davis-project
/src/service/MusicianService.js
UTF-8
2,295
2.984375
3
[]
no_license
import { musicianRepository } from "../repository"; import { albumService } from "."; /** * @author Pavlo Rozbytskyi * musician service layer extends basic functionality from musician dao */ class MusicianService { /** * getting musicians object by name * returning null if object not found or error happened ...
true
146ccee2633e7205d9c859e9f99237828e0daad3
JavaScript
w34538y/web_Frontend
/Reactjs_workspace/my-test-app/src/screen/InputValidationScreen.js
UTF-8
2,039
2.953125
3
[]
no_license
import React, { useState, useEffect } from 'react'; import styled from 'styled-components'; const Container = styled.div` margin:200px auto; width:400px; `; const InputWrapper = styled.div` padding:10px 0; `; const InputBox = styled.input` width:100%; border:0; outline:none; font-size:25p...
true
ee7249809b6575ea7dc2cce1c85afdbffe2a1849
JavaScript
abdul-imad/todo-app
/app.js
UTF-8
2,126
2.90625
3
[]
no_license
const addBtn = document.querySelector(".addBtn"); const input = document.querySelector(".input"); const taskContainer = document.querySelector(".task-container"); const mainContainer = document.querySelector(".main-container"); const completedTasks = document.querySelector(".completed"); const tasks = document.querySel...
true
18bb9202b5a8b32c3a5259de04a7b812540da813
JavaScript
amrvitale/GitHub-API-Assignment
/script.js
UTF-8
1,371
3.375
3
[]
no_license
"use strict"; //user must search for github user handle //search must trigger call to Github api // repos associated with handle searched for must display on page - repo name and repo url //must be able to make multiple searches and see only results for current search (.empty) $(document).ready(function(){ ...
true
f73411815d278925865a6f3b693d6bff56ff2cfb
JavaScript
pushparmar/ECOM
/src/redux/cart/cart.reducer.js
UTF-8
930
2.625
3
[]
no_license
import CartActionType from './cart.type'; import { addItemToCart } from './cart-utils' const INITIAL_STATE = { hidden : true, cartItem:[], }; const cartReducer = (state = INITIAL_STATE ,action) => { switch(action.type){ case CartActionType.TOGGLE_CART_HIDDEN: return { ...
true
3411ff2cbe7247cc55bd09e95cb48215f870d721
JavaScript
zotacy/SEI-project3-weather
/src/components/LocationsSearch/LocationsSearch.js
UTF-8
1,232
2.578125
3
[]
no_license
import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import './LocationsSearch.css'; class LocationsSearch extends Component { constructor(props) { super(props) this.state = { alertValue:'', } } alert=(event)=>{ console.log(event) this.setState({ al...
true
1e2661270e5a4902a7a85a21eb6b68a11f07cedd
JavaScript
yasinavo/simple_rest_api
/routes/api.js
UTF-8
1,143
2.71875
3
[]
no_license
const express = require('express'); const router = express.Router(); const Member = require('../models/memeber'); const foo = 0; // get a list of members from the database router.get('/members', function (req, res,next) { Member.geoNear( {type:'Point',coordinates:[parseFloat(req.query.lng),parseFloat(req.query...
true
43048cb680753abbd8f7abb32d0d9639c49f08d8
JavaScript
AndriiZil/react-router-hooks
/src/App.js
UTF-8
560
2.515625
3
[]
no_license
import { useHistory } from 'react-router-dom'; import Button from './Button'; const App = () => { const history = useHistory(); const toAboutHandler = () => { history.push('/about'); } const toBookHandler = (name) => { history.push(`/book/${name}`); } return ( <div cl...
true
379b281fee335bce0b006e7b7d91e16c83730f66
JavaScript
hermtechs/es6shop
/logic2.js
UTF-8
2,453
3.078125
3
[]
no_license
const cartBtn = document.querySelector('.cart-btn'); const cart = document.querySelector('.cart'); const cartOverlay = document.querySelector('.cart-overlay'); //Openning Cart Onclick cartBtn.addEventListener('click', ()=>{ cartOverlay.style.visibility = 'visible'; cart.style.transform = 'translateX(0%)'; // consol...
true
ca2f1721eed68791bee4a1c30710452b57b737a8
JavaScript
twmay006/project
/js/index.js
UTF-8
4,047
2.515625
3
[]
no_license
/*******异步加载头部和尾部*******/ /*$("#header_box").load('data/header.php',function(){ //判断当前是否已经登录,修改欢迎消息 var uname=sessionStorage ['loginName']; if(uname){ $('#login').html('欢迎登录:'+uname); } }); $('#footer').load('data/footer.php');*/ /********头部功能实现*********/ /********头部属性内容切换********/ $(...
true
52306b954694d617cd8b4a48532173ff71a4d175
JavaScript
lfcifuentes/platzi-programacion-basica
/16-eventos teclado/teclado.js
UTF-8
1,323
3.296875
3
[]
no_license
document.addEventListener("keyup",drawLines); var c = document.getElementById("canvas"); var ctx = c.getContext("2d"); var x = 150,y=150; var color = "blue"; let keys = { UP:38, LEFT:37, RIGHT:39, DOWN:40 }; var move = 5; c.addEventListener("mousedown",function(e){ console.log(e); drawLine(ctx...
true
41da4dc0096f904d63b2a0d04a54f8b82359101b
JavaScript
loqi/data-structures
/sprint-one/src/functional-shared/stack.js
UTF-8
601
3.375
3
[]
no_license
var makeStack = function() { var stack = {}; stack.storage = {}; stack.len = 0; extend(stack, stackMethods); return stack; }; var extend = function(to, from){ for (var key in from){ to[key] = from[key]; } }; var stackMethods = {}; // size, pop, push stackMethods.size = function() { return th...
true
583f9abe6ed72c829ead8b09db9cbf9d7c1691b3
JavaScript
SergiosVision/SergiosVision.github.io
/projects/FetchRequest/js/script.js
UTF-8
11,970
2.625
3
[]
no_license
var getSearchField = document.querySelector('#search'); var getResetBtn = document.querySelector('.resetBtn'); var getScrollTopBtn = document.querySelector('.scrollTopBth'); var getUpdateContainer = document.querySelector('#update'); var codeExample = document.querySelector('.codeExample'); var getNavigationContainer =...
true
9be2b94e7662ce90ddf1a13f7d8c3b8f446b5a4f
JavaScript
hjvedvik/tasks
/lib/Task.js
UTF-8
1,615
2.734375
3
[ "MIT" ]
permissive
class Task { constructor (task, tasks) { this.task = task this.title = task.title this.exitOnError = task.exitOnError || true this.tasks = tasks this.subtasks = null this.result = null this.cache = null this.status = null this.summary = null this.progress = null this.error...
true
92ce0b0f96c770fd93d80a719563227b3196a9d2
JavaScript
JWCosta/Find-users
/js/script.js
UTF-8
3,253
3.5
4
[]
no_license
// lists let allUsers = []; let filteredUsers = []; // elements let inputElement = null; let userList = null; let countUsers = null; let countFemale = null; let countMale = null; let totalUsers = null; let ageSumElement = null; let avgAge = null; let userStatistics = null; // statistics let totalFilteredUsers = 0; le...
true
34611a5227af29b2d073fccffc14c24e2fb73ee8
JavaScript
alibabaih/training
/1-3/functions/2/exercises.js
UTF-8
1,104
3.28125
3
[]
no_license
'use strict'; /* * Functions, Objects * See WEB Training I-3 Practice. * Implement the following Underscore.js functions: * bind, bindAll, partial, memoize, delay, defer, * throttle, debounce, once, after, before, wrap, negate, compose. * See http://underscorejs.org/#functions for more detail...
true
9e01102c9c70fc2f77376e7d790e4a57920d5523
JavaScript
tgck/serialLEDProgrammerWeb
/src/js/SrPlay.js
UTF-8
12,807
2.953125
3
[]
no_license
//////////////////////////////////////////////////////////////////////////////// // 再生情報 //////////////////////////////////////////////////////////////////////////////// function PlayInfo(cmd) { // 全体 this.index = 0; this.cmd = cmd; this.led = []; this.ctrl = 0x00; // System this.ledlen = 0; this.syswa...
true
df2fb9bcd66fefb5769baf72eca7d64b0035f921
JavaScript
pbocian96/CC5_Szachy
/src/pieces/bishop.js
UTF-8
2,101
3.296875
3
[]
no_license
import Piece from './Piece'; import board from '../board'; class Bishop extends Piece { constructor(x, y, side) { super(x, y, side); this.name = 'bishop'; this.display = `<i class="fas fa-chess-bishop ${side}"></i>`;//fontawesome bishop } findLegalMoves() { const possibleMo...
true
edca18fc475b3b0f3126a5e70c74bea0dd7f21bd
JavaScript
scsiiq/registration-form-js
/text.js
UTF-8
766
4.0625
4
[]
no_license
let name = document.getElementById("name"), surname = document.getElementById("surname"), age = document.querySelector("#age"), nameInput = document.getElementsByTagName("input")[0], surnameInput = document.querySelectorAll("input")[1], ageInput = document.querySelectorAll("input")[2]; nameI...
true
c7f01572ec6dcfa9415f9444ccc670cef01e729a
JavaScript
Amilsaleb/Restful_Cliebt_1718096
/client.js
UTF-8
1,865
2.765625
3
[ "MIT" ]
permissive
async function getData() { let url = 'http://localhost/ferdi/sepatu'; try { let res = await fetch(url); return await res.json(); } catch (error) { console.log(error); } } async function renderData() { let json = await getData(); let html = ''; console.log(json); ...
true
cf438effc90aa95bd4a6754687716289f070374e
JavaScript
rikster/LoadTestViaNode
/test.js
UTF-8
1,221
2.703125
3
[]
no_license
const axios = require("axios"); const argv = require('minimist')(process.argv.slice(2)); function test(url, body) { axios.interceptors.request.use(function (config) { config.metadata = {startTime: new Date()} return config; }, function (error) { return Promise.reject(error); }); ...
true
176ed3c42595ade9a1aec31e091216310e708ef9
JavaScript
afrimzenuni/CSC-595
/visualizations.js
UTF-8
1,107
2.65625
3
[]
no_license
(function(){ var margin = {top: 50, left: 50, right: 50, bottom: 50}, height = 400 - margin.top - margin.bottom, width = 800 - margin.left - margin.right; var width = 690, height = 500, centered; var svg = d3.select("#map") .append("svg") .attr("height", height) .attr("width", width); var projection = ...
true
3037eb49af6361fcf71ce438e8eb76d1dc0dc70d
JavaScript
hamzah-kurdi/react-quizmachine
/src/actions/index.js
UTF-8
1,774
2.625
3
[]
no_license
export function increasePotatoScore(potatoScore) { return { type: "SET_POTATO_SCORE", potatoScore: 1 }; } export function increaseDuckScore(duckScore) { return { type: "SET_DUCK_SCORE", duckScore: 1 }; } export function increaseCamelScore(camelScore) { return { type: "SET_CAMEL_SCORE", ...
true
640a2d9db40eeb242ed150fd262742cf22e474ed
JavaScript
TimDorsman/DiscordBot
/commands/su.js
UTF-8
349
2.84375
3
[]
no_license
module.exports = { name: "su", usage: "!su <term> <term2> <term3> <term4> <term5> <term6> <term7>", description: "Tell someone to shut up", async run(message, args) { let term; if(args.length >= 2) { term = args.toString().replace(/\,/g, ' and '); } else { term = args[0]; } message.channel.s...
true