https://devcenter.heroku.com/articles/custom-domains http://thenomadicfreelancer.blogspot.com/2012/08/pointing-godaddy-domain-to-your-heroku.html
For each custom subdomain use domains:add
in the Terminal.
#include <FastSPI_LED2.h> | |
#define DEBUG | |
#define LED_COUNT 60 // BlinkyTape has 60 LEDs! | |
struct CRGB leds[LED_COUNT]; // this struct contains 60 CRGB values. This is where | |
#define LED_MAX_BRIGHTNESS 55 | |
#define PIN_BUTTON 10 |
# RedCloth doesn't work well with the Prism syntax highlighting lirbary due to the way it handles <code> blocks when it comes to newlines using bc.. | |
# But we can add a config/initializers/redcloth.yml file to our Rails app and monkey patch it so it does. | |
# | |
# So, this monkey patch is to make RedCloth not split the bc.. code blocks on newlines. | |
# To actually use it with Prism the syntax should look like this: | |
# bc(language-ruby).. whatever multi-line code you want to display goes here | |
module RedCloth::Formatters::HTML | |
def bc_open(opts) | |
opts[:block] = true | |
"<pre#{pba(opts)}><code>" |
class ApplicationController < ActionController::Base | |
before_filter :delay_xhr | |
protected | |
def delay_xhr | |
session[:delay_ajax] = params[:delay_ajax].to_i unless params[:delay_ajax].blank? | |
sleep session[:delay_ajax] if !session[:delay_ajax].nil? && session[:delay_ajax] > 0 && request.xhr? | |
end |
<input | |
ng-model="searchPhrase" | |
ng-model-options="{debounce: 500}" | |
ng-change="getResults(searchPhrase)"></input> |
source "https://rubygems.org" | |
gem "devise", git: "git://github.com/plataformatec/devise.git", branch: "rails4" | |
gem "devise-i18n", "~> 0.6.5" | |
gem "jbuilder", "~> 1.0.1" | |
gem "jquery-rails" | |
gem "haml", "~> 4.0.1" | |
gem "mongoid", git: "git://github.com/mongoid/mongoid.git", branch: "master" | |
gem "simple_form", "~> 3.0.0.beta1" | |
gem "rails", "4.0.0.beta1" |
module TableHelpers | |
module ArrayMethods | |
def find_row(expected_row) | |
find_index do |row| | |
expected_row.all? do |expected_column| | |
first_column = row.find_index do |column| | |
content = normalize_content(column.content) | |
expected_content = normalize_content(expected_column) | |
matching_parts = expected_content.split(/\s*\*\s*/, -1).collect { |part| Regexp.escape(part) } |
module Acme | |
module Sidekiq | |
module PaperTrailMiddleware | |
class Client | |
# @param [Object] | |
# @param [Hash] job | |
def call(_, job, *) | |
job['whodunnit'] = ::PaperTrail.whodunnit | |
yield | |
end |
https://devcenter.heroku.com/articles/custom-domains http://thenomadicfreelancer.blogspot.com/2012/08/pointing-godaddy-domain-to-your-heroku.html
For each custom subdomain use domains:add
in the Terminal.
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/npm-* && rm -rf $TMPDIR/haste-* && rm -rf $TMPDIR/metro-* && rm -rf node_modules && npm install && rm -rf ios/Pods && cd ios && pod cache clean --all && pod repo update && pod install && ./android/gradlew clean -p ./android/ && rm -rf ios/build && rm -rf ~/Library/Developer/Xcode/DerivedData && npm start -- --reset-cache |
M05 S0 | |
G90 | |
G21 | |
G1 F600 | |
G1 X-40.225 Y39.6688 | |
G4 P0 | |
M03 S255 | |
G4 P0 | |
G1 F600.000000 |