Need a separate data store? Maybe a temporary one for search results? Go for it!
// app/components/search-box.js
import Ember from 'ember';
export default Ember.Component.extend({
store: Ember.inject.service('search-store'),
div style="width:500px;height:500px;border:1px solid black;" | |
button click="browse" | |
| Browse | |
button click="upload" | |
| Upload | |
file-upload url="/files" onfile="onfile" | |
= yield |
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v |
alias la='ls -la' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gb='git branch' | |
alias gco='git checkout' | |
alias gs='git status -sb' | |
alias gc='git commit -m' | |
alias gaa='git add -A' |
Extracted by SnappySnippet.
module Fishish | |
def kind | |
"fish#{super}" | |
end | |
end | |
module Dogish | |
def kind | |
"dog#{super}" | |
end |
Checkout the blog post for the whole story.
Setup Bower and install components:
npm install -g bower
bower install
Before deploying to Heroku, switch to the multi buildpack:
# Live cells with: | |
# < 2 living neighbors dies to underpop | |
# > 3 living neighbors dies to overpop | |
# Otherwise, lives! | |
# | |
# Dead cells with exactly 3 living neighbors is born | |
# | |
# . 0 . | |
# . 0 . | |
# . 0 . |
# Gemfile | |
ruby '2.1.1' | |
gem 'nokogiri' | |
gem 'pry' | |
# scrapey.rb | |
require 'rubygems' | |
require "net/http" |