Skip to content

Instantly share code, notes, and snippets.

View kulia26's full-sized avatar
🚀
To the moon

Bohdan Kulinich kulia26

🚀
To the moon
View GitHub Profile
@kulia26
kulia26 / .zshrc
Created November 11, 2022 14:30
Alias set for everyday use
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'
@kulia26
kulia26 / solution.js
Created November 8, 2019 11:17
SMS sender
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++;
}
@media screen and (max-width:992px) {
p{
padding-left: 5%;
padding-right: 5%;
}
}
@kulia26
kulia26 / styles.less
Created March 16, 2015 19:15
Font-face for my browser
@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;
}
@kulia26
kulia26 / index.html
Created March 15, 2015 08:41
start heads tags for bootstrap and less
<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">
@kulia26
kulia26 / doc.html
Created March 14, 2015 17:33
meta name 2
<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" />