(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.
| """ | |
| Compile with gcc flag -mpopcnt | |
| """ | |
| import numpy as np | |
| cimport numpy as np | |
| cimport cython | |
| from libc.stdint cimport uint32_t, uint8_t | |
| cdef extern int __builtin_popcount(unsigned int) nogil | 
| require 'spec_helper' | |
| describe "Homepage" do | |
| before :each do | |
| visit "/index.html" | |
| end | |
| it "has a title" do | |
| expect(page).to have_css("h1", text: "GitHub Help") | 
| 8/19/14 4:29:18.557 PM com.apple.CoreSimulator.CoreSimulatorService[22614]: Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7f8e085107e0 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} | |
| 8/19/14 4:29:18.557 PM com.apple.CoreSimulator.CoreSimulatorService[22614]: Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7f8e085107e0 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} | |
| 8/19/14 4:29:18.557 PM Xcode[52276]: [MT] iPhoneSimulator: Unable to connect to "com.apple.instruments.deviceservice.lockdown" (Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7f8a3ad2c5b0 {NSLocalizedDescription=Unable to lookup in current state: Shutdown}) | |
| 8/19/14 4:29:18.957 PM com.apple.CoreSimulator.CoreSimulatorService[22614]: Error Domain=com.apple.CoreSimulator.SimError Code=142 "The iOS 8.0 simulator runt | 
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class | 
(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.
There was [a tweet][tweetSoto] a couple of days ago that resulted in a discussion/question about what it wrong with the usage of removedOnCompletion = NO in the [SparkRecordingCircle code][code] for that [Subjective-C post][post].
We all kept saying that the explanation doesn't fit in a tweet, so here is my rough explanation about the issues.
But, let me first say that I think that the Subjective-C articles are reallt cool and useful to learn from. This is trying to reason about the general usage of removedOnCompletion = NO, using that code as an example, since that was what was discussed on twitter.
The root problem, as [Nacho Soto pointed out][rootProblem], is that removedOnCompletion = NO in combination with fillMode = kCAFillModeForwards is almost always used when you are not updating the model layer. This means that after the animation has finished, what you see on screen is not reflected in the property of the layer. The biggest issue that this can cause is that all the
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com | 
| /* | |
| Assuming you have an enum type like this. | |
| You want to rename 'pending' to 'lodged' | |
| */ | |
| CREATE TYPE dispute_status AS ENUM('pending', 'resolved', 'open', 'cancelled'); | |
| BEGIN; | |
| ALTER TYPE dispute_status ADD VALUE 'lodged'; | |
| UPDATE dispute SET status = 'lodged' WHERE status = 'pending'; | 
| #!/bin/sh | |
| # recursively removes all .pyc files and __pycache__ directories in the current | |
| # directory | |
| find . | \ | |
| grep -E "(__pycache__|\.pyc$)" | \ | |
| xargs rm -rf | |
| # or, for copy-pasting: |