A collection of useful emojis for logging and debugging. Cheerio 🙃.
✔️ | success, done |
❌ | failure, error |
#!/usr/bin/env bash | |
# This is based on this excellent gist https://gist.github.com/jvenator/9672772a631c117da151 | |
# Nothing of this is my original work, except that I made the download link an argument | |
# to this script, so it installs on OSX 10.11 | |
# | |
# Thank you jvenator & sethetter | |
set -e | |
error() { info "$1"; exit 1; } |
# block content | |
location ~ ^/content/(.*).(txt|md|mdown)$ { | |
rewrite ^/content/(.*).(txt|md|mdown)$ /error redirect; | |
} | |
# block all files in the site folder from being accessed directly | |
location ~ ^/site/(.*)$ { | |
rewrite ^/site/(.*)$ /error redirect; | |
} |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
title | author | layout | categories | |||
---|---|---|---|---|---|---|
Using grunt and angular with pushstate support |
Blackjid |
post |
|
Ember.GoogleAnalytics = Ember.Mixin.create({ | |
trackPageView: function() { | |
if(!Ember.isNone(ga)) { | |
Ember.run.next(function() { | |
var loc = window.location, | |
page = loc.hash ? loc.hash.substring(1) : loc.pathname + loc.search; | |
ga('send', 'pageview', page); | |
}); | |
} |
WARNING
This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!
An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars
.
<header>
#Deploy and rollback on Heroku in staging and production | |
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |