(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Deploy and rollback script for Heroku on staging and/or production | |
# Modified from: https://gist.github.com/njvitto/362873 | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
desc 'Deploy to Staging on Heroku' | |
task :staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
desc 'Deploy to Production on Heroku' |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
=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') |
npm install
.npm test
.// Boolean logic | |
const tru = (t, f) => t() | |
const fals = (t, f) => f() | |
const not = x => (t, f) => x(f, t) | |
const and = (a, b) => (t, f) => a( | |
() => b(t, f), | |
() => f() | |
) |
import {AbstractControl, FormArray, FormControl, FormGroup, ValidationErrors} from '@angular/forms'; | |
import {Injectable} from '@angular/core'; | |
import {debounceTime, distinctUntilChanged} from 'rxjs/operators'; | |
export declare interface ServerError { | |
[key: string]: []; | |
} | |