Skip to content

Instantly share code, notes, and snippets.

View krzychukula's full-sized avatar
✍️
https://kula.blog/

Krzysztof (Kris) Kula krzychukula

✍️
https://kula.blog/
View GitHub Profile
plugins=(git yarn brew docker docker-compose)
# Example aliases
alias zshconfig="code ~/.zshrc"
alias ohmyzsh="code ~/.oh-my-zsh"
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[core]
ignoreCase = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = me
email = @kula.blog
@krzychukula
krzychukula / highlight.md
Created October 22, 2015 11:51
how to highlight code

$ brew install highlight

$ pbpaste | highlight --syntax=js -O rtf | pbcopy

@krzychukula
krzychukula / get-time.js
Last active October 24, 2015 18:04
bitfountain get time to complete all
/*
How long is course at: http://fedora.bitfountain.io/courses/ios-design ?
*/
var time = $('.section-item').not('.completed')
.text()
.match(/\d+\:\d+/g)
.map(function(time){
return time.split(":")
console.log('external: 1');
@krzychukula
krzychukula / cache
Created April 24, 2014 11:43
//checkForMissing(components, results, host);
var updateErrorTimeout;
var updateErrorTime = 1000;//1s
var updateErrorTried = 1;
function checkForMissing(components, results, host){
var nonEmpty = results.filter(function(e){ return (e.content) ? e : false; });
if(nonEmpty.length < components.length) {
if(!updateErrorTimeout){
updateErrorTried *= 2;
@krzychukula
krzychukula / dabblet.css
Created March 18, 2014 12:30 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@krzychukula
krzychukula / dabblet.css
Created September 13, 2013 08:27 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@krzychukula
krzychukula / dabblet.css
Created September 12, 2013 14:26 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@krzychukula
krzychukula / styles.css
Last active December 22, 2015 21:49
layoutpreview styles
#navbar .navbar{
height: 3px;
overflow: hidden;
min-height: 3px;
}
#navbar .navbar:hover {
height: 45px;
}