This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Link to download resource as first argument | |
base_url=$1 | |
# end | |
# Number to stop the incrementing id | |
end_id=$2 | |
# starting id, will default to 1 if empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add remote | |
git remote add origin https://github.com/user/repo.git | |
# Save git credential | |
git config --global credential.helper store | |
# Enable this to separate git credentials for different repos | |
git config --global credential.github.com.useHttpPath true | |
# Delete branch local (multiple delete): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
teamcity-server: | |
image: jetbrains/teamcity-server:latest | |
volumes: | |
- ./server/data:/data/teamcity_server/datadir | |
- ./server/log:/opt/teamcity/logs | |
ports: | |
- 8080:8111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
button{ | |
display:block; | |
height:60px; | |
width:100px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTokens(rawString) { | |
// NB: `.filter(Boolean)` removes any falsy items from an array | |
// .split : split words from to to an array,input of spliting is Regex.This Regex means ignore white space character and any other special characters like commas,semi-colon,exclamation marks,etc... | |
// .sort : sorting words in an alphabetical order. | |
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort(); | |
} | |
function mostFrequentWord(text) { | |
var words = getTokens(text); | |
console.log(words); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/covokoj/2/edit?html,js,output | |
https://jsbin.com/taxavab/edit?html,js,console,output | |
https://jsbin.com/govafuc/edit?html,js,console,output | |
https://jsbin.com/kezicus/edit?html,js,console,output | |
https://jsbin.com/xiwidog/edit?js,console,output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/lurosel/edit?html,js,console,output | |
https://jsbin.com/zorovip/edit?html,js,console,output | |
https://jsbin.com/cahoray/edit?html,js,console,output | |
https://jsbin.com/jidodef/edit?html,js,console,output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/molimos/edit?html,js,console,output | |
https://jsbin.com/toyumed/edit?html,js,console,output | |
https://jsbin.com/telamiy/edit?html,js,console,output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/liwaham/edit?html,js,output | |
https://jsbin.com/feforef/1/edit?html,js,output | |
https://jsbin.com/nuyowo/edit?html,js,output | |
https://jsbin.com/canudir/edit?html,js,output | |
https://jsbin.com/ciserit/edit?html,js,output | |
https://jsbin.com/kabujux/edit?html,js,output | |
https://jsbin.com/ralogev/edit?html,js,console,output | |
https://jsbin.com/penadol/edit?html,js,console,output | |
https://jsbin.com/jonojoy/edit?html,js,console,output | |
https://jsbin.com/xuniloh/edit?html,js,console,output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-----------------------------------Drill 1-------------------------------*/ | |
function doTrafficLights() { | |
var activeLight = getActiveLight(); | |
// your code will replace this call | |
// to `console.log()` | |
if(activeLight==="red"){ | |
turnRed(); | |
} | |
else if(activeLight==="green"){ |
NewerOlder