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
call plug#begin('~/.vim/plugged') | |
Plug 'SirVer/ultisnips' | |
Plug 'Lokaltog/vim-powerline' | |
Plug 'Shougo/deoplete.nvim' |
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
>bądź mną | |
>mieszkaj w tej słynnej Polsce B na zabitej dechami wiosce | |
>psy szczekają dupami a ludzie wylizują talerz po bułce | |
>lepianki z gówna i cebuli wszędzie | |
>chuj, że 2k16, czas tu zatrzymał się 100 lat temu | |
>99% domów brak prądu i wody | |
>sąsiedzi srają za płot jak jebane zwierzęta | |
>wszystko spoko, tylko, że za tym płotem jest twój trawnik | |
>nie nadążasz sprzątać kloców | |
>boisz się chodzić po własnym trawniku, bo nasrane po kostki |
##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
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
post(path, data, config) { | |
return this.axios.post(`${Connection.BASE_URL}${path}`, data, config); | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>My Little Webapp: Coding Is Magic</title> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> | |
</head> | |
<body> | |
</body> | |
</html> |
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
class Trough < Array | |
alias_method :|, :push | |
def call(context) | |
reduce(context) do |ctx, pig| | |
pig.new(ctx).call | |
ctx | |
end | |
end | |
end |
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
class Trough < Array | |
alias_method :|, :push | |
def call(context) | |
reduce(context) do |ctx, pig| | |
pig.new(ctx).call | |
ctx | |
end | |
end | |
end |
When you're testing controllers and need to specify parameters across multiple requests, don't repeat yourself! A micro gem* to wrap up a convenient helper for default parameters in controller specs. Cleaned up version of code in this Stack Overflow answer: http://stackoverflow.com/a/14623960/2284646.
- Micro gems as suggested by Jeff Kreeftmeijer (http://jeffkreeftmeijer.com/2011/microgems-five-minute-rubygems)
Add this line to your application's Gemfile:
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
Section "InputClass" | |
Identifier "touchpad" | |
Driver "synaptics" | |
MatchIsTouchpad "on" | |
# Enables Palm Detection to prevent bad clicks | |
# This seems to work on PS/2, but not on i2c | |
Option "PalmDetect" "1" | |
Option "PalmMinWidth" "8" | |
Option "PalmMinZ" "100" | |
# Enable clickpad support |