tell application "Spotify"
play track "spotify:track:51pQ7vY7WXzxskwloaeqyj"
end tell
tell application "Finder"
| require 'base64' | |
| class Provider < ActiveRecord::Base | |
| belongs_to :user | |
| def prepare_access_token(oauth_token, oauth_token_secret) | |
| token_hash = { oauth_token: oauth_token, oauth_token_secret: oauth_token_secret } | |
| access_token = OAuth::AccessToken.from_hash(TWITTER_APP, token_hash) | |
| access_token | |
| end |
| class Candidate < ActiveRecord::Base | |
| include PgSearch | |
| pg_search_scope :search_by_candidate, | |
| against: { | |
| enterprise: 'A', | |
| last_name: 'B', | |
| first_name: 'C' | |
| }, | |
| using: { | |
| tsearch: { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| class User < ActiveRecord::Base | |
| serialize :preferences, Hash | |
| def initialize(preferences = {}) | |
| @preferences = preferences | |
| end | |
| end | |
| user = User.create({ food: { tomatoes: true, salad: false }, sleep: { light: false, noise: false } }) |
| require 'verbal_expressions' | |
| tester = VerEx.new do | |
| start_of_line | |
| find 'http' | |
| maybe 's' | |
| find '://' | |
| maybe 'www.' | |
| anything_but ' ' | |
| end_of_line |
httpd -v in the terminalmkdir ~/Siteswhoamisudo nano /etc/apache2/users/votreuser.conf<Directory "/Users/votreuser/Sites/">
Options Indexes MultiViews
AllowOverride All