I have a lot of people at Hacker Hours ask about where to look for jobs - here are some places I recommend.
- AngelList (startups)
- Authentic Jobs
- Craigslist (mostly freelance)
- Digital DUMBO (NYC-specific)
- Github
- Idealist (social good)
| The regex patterns in this gist are intended to match any URLs, | |
| including "mailto:[email protected]", "x-whatever://foo", etc. For a | |
| pattern that attempts only to match web URLs (http, https), see: | |
| https://gist.github.com/gruber/8891611 | |
| # Single-line version of pattern: | |
| (?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])) |
| #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] |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| #!/usr/bin/env bash | |
| # bash 3.2.25(1) Ubuntu 7.10 Date : 2012-02-15 | |
| # | |
| # _______________| freqy : sort and order lines by frequency of appearance. | |
| # | |
| # Usage: freqy [optional: file(s)] | |
| # | |
| # Notes: Will work in a pipe. | |
| # Does not alter the file(s) themselves. | |
| # |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| if Rails.env.development? | |
| Rails.application.assets.logger = Logger.new('/dev/null') | |
| Rails::Rack::Logger.class_eval do | |
| def call_with_quiet_assets(env) | |
| previous_level = Rails.logger.level | |
| Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/} | |
| call_without_quiet_assets(env) | |
| ensure |
I have a lot of people at Hacker Hours ask about where to look for jobs - here are some places I recommend.
| # 1. Add rack-rewrite to your Gemfile and run 'bundle install': | |
| # gem 'rack-rewrite' | |
| # | |
| # 2. Create a file with the contents below in config/initializers/asset_server_middleware.rb | |
| # | |
| # 3. Rename 'YourApp' below | |
| # | |
| # 4. In config/environments/production.rb and config/environments/test.rb, set: | |
| # config.serve_static_assets = true | |
| # config.assets.compile = false |
| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # This skeleton also assumes you're using the following gems: | |
| # | |
| # rspec-rails: https://github.com/rspec/rspec-rails |