This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| document.querySelector('[contenteditable]').addEventListener('paste', function (event) { | |
| event.preventDefault(); | |
| document.execCommand('inserttext', false, event.clipboardData.getData('text/plain')); | |
| }); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 view_directories | |
| request.path_info.split('/').select do |path| | |
| Dir.entries(settings.views).include?(path) | |
| end | |
| end |
This file contains hidden or 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
| gem list --no-versions | xargs gem uninstall -aIx |
This file contains hidden or 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 | |
| gems=`gem list --no-versions` | |
| default_gems=(bigdecimal io-console json minitest psych rake rdoc test-unit) | |
| for gem in $gems; do | |
| if [[ ${default_gems[*]} != *$gem* ]]; then | |
| gem uninstall $gem -aIx | |
| fi | |
| done |