View trump.sh
# Check Donald Trump's Site
# See: https://blog.chibicode.com/you-can-submit-a-pull-request-to-inject-arbitrary-js-code-into-donald-trumps-site-here-s-how-782aa6a17a56
# ==================================================================
function trump {
curl -s https://secure.donaldjtrump.com/donate-homepage > /tmp/trump.html
if grep -q "igorescobar.github.io" /tmp/trump.html
then
echo "MAKE AMERICA GREAT AGAIN!"
else
echo "igorescobar.github.io has disappeared from Trump's site"
View init.coffee
atom.commands.add 'atom-text-editor.vim-mode:not(.insert-mode)',
'user:vim-mode-move-down-three-times': (event) ->
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.add 'atom-text-editor.vim-mode:not(.insert-mode)',
'user:vim-mode-move-up-three-times': (event) ->
atom.commands.dispatch event.target, 'vim-mode:move-up'
atom.commands.dispatch event.target, 'vim-mode:move-up'
View init.coffee
atom.commands.add 'atom-text-editor',
'user:toggle-vim-mode': (event) ->
if atom.packages.isPackageDisabled("vim-mode")
atom.packages.enablePackage("vim-mode")
else
atom.packages.disablePackage("vim-mode")
View multipleFiles.js
// Directory structure:
// some_directory/index.js
// some_directory/library1.js ---> exports library1
// some_directory/library2.js ---> exports library2
// some_directory/index.js
export { default as library1 } from './library1'
export { default as library2 } from './library2'
// Importing (you can also do `import * as ... from ...`)
View send.rb
class SomeMailer < ActionMailer::Base
def send(id)
@resource = SomeModel.find(id) # => id is _process_action_callbacks
end
end
View hips-tertheme.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.1.0/jquery.fitvids.min.js"></script>
<script>$(".article-content .caption, .article-content .text-post-wrap").fitVids();</script>
View database.yml
myapp_development:
adapter: postgresql
encoding: unicode
pool: 5
username: myapp
database: myapp_development
View identicon.rb
# See: https://en.gravatar.com/site/implement/images/
def gravatar_url(size: 400)
@gravatar_url ||= begin
md5 = Digest::MD5.hexdigest(email.downcase.strip)
"http://www.gravatar.com/avatar/#{md5}?s=#{size}&d=identicon"
end
end
def anonymous_gravatar_url(size: 400)
@gravatar_url ||= begin
View gradient-primary.scss
// Inspired by Heroku:
// https://github.com/heroku/identity/blob/87afea00f0d62dbc7e1011d887590f8197dbaaa9/assets/stylesheets/purple/_purple-ui.scss#L4836
.gradient--primary {
$color-1: adjust_color($brand-primary, $hue: 15, $lightness: 18%, $alpha: -0.3);
$color-1-transparent: transparentize($color-1, 1);
$color-2: adjust_color($brand-primary, $lightness: 10%);
$color-2-transparent: transparentize($color-2, 1);
$color-3: adjust_color($brand-primary, $hue: -20, $lightness: 24%, $alpha: -0.4);
$color-3-transparent: transparentize($color-3, 1);
$color-4: adjust_color($brand-primary, $hue: 15, $lightness: 18%);
View edsurge-slack-color-scheme.md

Copy This

#00997A,#005C4A,#B6F0D9,#005C4A,#63BDAB,#FFFFFF,#F39040,#F39040

...into Preferences