Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
Or via the terminal:
Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
Or via the terminal:
# Make it easier to call rails routes from anywhere | |
class Routes | |
include Rails.application.routes.url_helpers | |
delegate :asset_path, :image_path, to: :controller_helpers | |
protected | |
def controller_helpers | |
ActionController::Base.helpers |
#!/usr/bin/env python | |
from subprocess import * | |
import sys | |
import re | |
# Add Regex to blacklist here | |
blacklist = [ | |
"\+[ ]+NSLog.+" # Prevent NSLog's from being added | |
] |
#!/usr/bin/env bash | |
# | |
# Minimimal example: | |
# | |
# cors_headers https://www.google.com | |
# | |
# Example with origin (-o): | |
# | |
# cors_headers -o localhost https://www.google.com | |
# |
# file: spec/support/database_cleaner.rb | |
require 'database_cleaner' | |
# More info: https://github.com/DatabaseCleaner/database_cleaner | |
RSpec.configure do |config| | |
config.before(:suite) do | |
# Ensure a clean slate | |
DatabaseCleaner.clean_with(:truncation) | |
end |
# file: spec/support/vcr.rb | |
require 'vcr' | |
# More info: | |
# - https://github.com/vcr/vcr | |
# - https://relishapp.com/vcr/vcr/docs | |
VCR.configure do |config| | |
config.cassette_library_dir = File.expand_path(File.join(__dir__, "..", "support", "vcr_cassettes")) |
# Allows you to run rspec with SCREENSHOT=1 to take screenshots. | |
# The images are stored under tmp/screenshots/ | |
# | |
module ScreenshotHelpers | |
SCREENSHOT_KEY = 'SCREENSHOT' | |
DIR_PATH = Rails.root.join('tmp', 'screenshots') | |
# @example | |
# screenshot("dashboard_clean_slate") | |
# screenshot("shopping_cart_multiple_items") |
# usage: NameGenerator.generate | |
# | |
module NameGenerator | |
def self.generate | |
[ADVERBS.sample, ADJECTIVES.sample, NAMES.sample].join("_") | |
end | |
NAMES = [ | |
"ai", | |
"analytics", |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"os" | |
"strings" | |
"github.com/PuerkitoBio/goquery" | |
"github.com/codegangsta/cli" | |
) | |
func findSynonyms(query string) string { |