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
def owns?(object) | |
object.respond_to?(:user_id) && object.user_id == self.id | |
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
function mustache(template, data) { | |
return template.replace(/{{\s?(\w+)\s?}}/g, function (_, match) { | |
return data[match]; | |
}); | |
}; |
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
export $(cat .env) |
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
body { | |
background-image: repeating-radial-gradient(red, red 1px, transparent 1px, transparent); | |
background-size: 36px 36px; | |
} |
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 lang="en"> | |
<head> | |
<title>Hello World</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="stylesheet" href="" /> | |
<script src="" defer async></script> |
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
$au-base-dir: 'assets' !default; | |
$au-default-file-dir: 'public/files' !default; | |
$au-file-types: ( | |
fonts: ('eot', 'otf', 'ttf', 'woff'), | |
images: ('jpg', 'jpeg', 'png', 'svg') | |
) !default; | |
@function asset-url($file-name) { | |
@each $file-dir, $file-dir-types in $au-file-types { |
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
(400..599).each do |status_code| | |
error status_code do | |
send_file "#{settings.public_dir}/#{status_code}.html", | |
:status => status_code | |
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
#!/usr/bin/env sh | |
read -p 'File? ' file | |
echo 'data:'$(file --mime-type -b $file)';base64,'$(base64 -i $file) | pbcopy |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.12 (Darwin) | |
mQENBFBEE/gBCACy6e3EeDEmPG97fQpzdzbU8LBGxPWaq3UVymbrQeYudlP10kvm | |
EfR++wFT+9F5RR0pxZiGA5RxuDWQcEDfl9W/yZhg2on/phfLSXSDAt8mmWiWR6IG | |
caUneLrEGe5FPiVcnAirV/3/WdkL3QFiqVdz307MvB4qPi8FfK3Ziez0mzLs939R | |
wZduZfHVnU4+Ll1C7TF9LsyCS0o+DN5BpUF915QXTcaBk0IQhqr0Z5DAw7VOuzyP | |
ljLguaJDgFviqIvljNvQc/Ju0ReGQS7uDU7LEa5sZbn/G/t8lpGr81deIfNvSWuM | |
9YgJACQb3foNj/zCOwpln+bsRalHqp4SfuanABEBAAG0QENlc2FyIEZpZ3Vlcm9h | |
IChVc2VyIEludGVyZmFjZSBEZXNpZ25lcikgPGNlc2FyLmZpZ3Vlcm9hQG1lLmNv |
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
property :created_at, DateTime, :writer => :private | |
property :updated_at, DateTime, :writer => :private |
OlderNewer