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
alias docker-stop='docker stop $(docker ps -qa)' | |
alias docker-rm='docker rm $(docker ps -qa)' | |
alias docker-kill='docker-stop && docker-rm' | |
alias gs='git status' | |
alias gf='git fetch' | |
alias gp='git pull' | |
alias ll='ls -la' | |
alias kill-port='f(){ sudo kill -9 $(sudo lsof -t -i:$@); unset -f f; }; f' |
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
const solution = (S, K) => { | |
const words = S.split(' '); | |
if (words.some(word => word.length > K)) return -1; | |
let counter = 0; | |
while (words.length > 0) { | |
const firstWord = words.shift(); | |
let freeSpace = K - firstWord.length - 1; | |
if (words.length === 0 || freeSpace <= 0) { | |
counter++; | |
} |
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
@media screen and (max-width:992px) { | |
p{ | |
padding-left: 5%; | |
padding-right: 5%; | |
} | |
} |
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
@font-face { | |
font-family: 'Bebas Neue'; | |
src: url('fonts/BebasNeueRegular.otf'); | |
src: url('fonts/BebasNeueRegular.otf') format('otf'), | |
url('FileName.ttf') format('truetype'); | |
src: url(fonts/BebasNeueRegular.otf); | |
src: url(fonts/BebasNeueRegular.ttf); | |
font-style: normal; | |
font-weight: normal; | |
} |
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
<script src="less.js" type="text/javascript"> | |
</script> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script src="js/bootstrap.min.js"></script> | |
<link rel="stylesheet/less" type="text/css" href="css/styles.less"> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> |
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
<meta name="description" content="The classic Pong game made with the HTML5 elements canvas and audio!" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" href="style.css" /> |