Real unit test (isolation, no children render)
Calls:
- constructor
- render
| ... | |
| ## | |
| # Until this commit is merged and released by rack | |
| # | |
| gem 'rack', git: 'https://github.com/rack/rack.git', ref: 'c859bbf7b53cb59df1837612a8c330dfb4147392' | |
| ... |
| const validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
| let array = new Uint8Array(40); | |
| window.crypto.getRandomValues(array); | |
| array = array.map(x => validChars.charCodeAt(x % validChars.length)); | |
| const randomState = String.fromCharCode.apply(null, array); | |
| console.log(randomState); |
| #!/usr/bin/env ruby | |
| require 'optparse' | |
| require 'erb' | |
| class GeneratesConfig | |
| attr_accessor :repo_dir, :output_file, :host, :port | |
| def initialize | |
| @host = "localhost" |
| var person = { | |
| firstName: 'Steve', | |
| lastName: 'Kinney', | |
| updateName: function () { | |
| $.getJson('/api/vi/person', function () { | |
| this.firstName = 'Wes' | |
| }.bind(this)); | |
| } | |
| }; |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
#Bootstrap Basics
Gain an understanding of what Bootstrap is Introduce "Mobile First" design, the grid and components of Bootstrap Workshop: Importing Bootstrap into a Rails Project Workshop: Transferring a wireframe to html and css using Bootstrap