This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| S=Struct.new(:a,:b) | |
| ss = [S.new(1,2), S.new(3,4)] | |
| p ss.map{|a,b| "#{a} #{b}" } | |
| # => ["#<struct S a=1, b=2> ", "#<struct S a=3, b=4> "] | |
| class S ; def to_ary ; to_a ; end ; end | |
| p ss.map{|a,b| "#{a} #{b}" } | |
| # => ["1 2", "3 4"] |
| ################################################### | |
| ################################################### | |
| # Crash course | |
| ################################################### | |
| ################################################### | |
| En | |
| ################################################### | |
| # Quickstart | |
| ################################################### |
| function render() { | |
| aleph = Blockly.svg.cloneNode(true); | |
| aleph.removeAttribute("width"); | |
| aleph.removeAttribute("height"); | |
| aleph.removeChild(aleph.children[0]); | |
| aleph.removeChild(aleph.children[1]); | |
| aleph.removeChild(aleph.children[1]); | |
| if (aleph.children[0].children[1].children[0] !== undefined) { | |
| aleph.children[0].removeChild(aleph.children[0].children[0]); | |
| aleph.children[0].children[0].removeAttribute("transform"); |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| import pyfirmata | |
| import math | |
| board = pyfirmata.Arduino("/dev/ttyACM0") | |
| # connect piezo to pin 9 to use PWM | |
| SENSOR_PIN = 0 | |
| PIEZO_PIN = board.get_pin('d:9:p') | |
| it = pyfirmata.util.Iterator(board) |
| /** | |
| * RunInThread an other accompanying files are licensed under the MIT | |
| * license. Copyright (C) Frank Appel 2016-2021. All rights reserved | |
| */ | |
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
(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.
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| // vim: ft=javascript: | |
| /*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */ | |
| /*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */ | |
| /* | |
| * A script to automate requesting data from an external url that outputs CSV data. | |
| * | |
| * Adapted from the Google Analytics Report Automation (magic) script. | |
| * @author nickski15@gmail.com (Nick Mihailovski) | |
| * @author ianmlewis@gmail.com (Ian Lewis) | |
| */ |