(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.
(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.
id
and name
attributes have "user-content-"
prefixed to their value.sub
or sup
tags are allowed.ul
or ol
tags are allowed.Allowed Element | Allowed Attributes |
---|---|
All allowed elements | abbr , accept , accept-charset , accesskey , action , align , alt , axis , border , cellpadding , cellspacing , char , charoff , charset , checked , clear , color , cols , colspan , compact , coords , datetime , dir , disabled , enctype , for , frame , headers , height , hreflang , hspace , id , ismap , itemprop , label , lang , maxlength , media , method , multiple , name , nohref , noshade , nowrap , open , prompt , readonly , rev , rows , rowspan , rules , scope , selected , shape , size , span , start , summary , tabindex , title , type , usemap , valign , value , vspace , width |
a |
As above plus href (must be github-mac , github-windows , http , |
This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!
A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.
Here are the steps:
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
= Resources = | |
* zsh - http://www.zsh.org/ | |
* ZSH-LOVERS - http://grml.org/zsh/zsh-lovers.html | |
* manual - http://zsh.sourceforge.net/Doc/Release/index.html | |
* oh-my-zsh - https://github.com/robbyrussell/oh-my-zsh | |
* prezo - https://github.com/sorin-ionescu/prezto | |
* zsh-users - https://github.com/zsh-users | |
= Functions = |
import Data.Vect | |
-- `minus` is saturating subtraction, so this works like we want it to | |
eq_max : (n, k : Nat) -> maximum k n = plus (n `minus` k) k | |
eq_max n Z = rewrite minusZeroRight n in rewrite plusZeroRightNeutral n in Refl | |
eq_max Z (S _) = Refl | |
eq_max (S n) (S k) = rewrite sym $ plusSuccRightSucc (n `minus` k) k in rewrite eq_max n k in Refl | |
-- The type here says "the result is" padded to (maximum k n), and is padding plus the original | |
leftPad : (x : a) -> (n : Nat) -> (xs : Vect k a) |
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
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |