(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.
| import types | |
| def init_generator(spec): | |
| """Generate `__init__` function based on spec | |
| """ | |
| varnames, defaults = zip(*spec) | |
| varnames = ('self', ) + varnames | |
| def init(self): |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
Check out how all your default styles look, before you start having to write overrides to override your overrides.
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| #! /usr/bin/env bash | |
| ### | |
| # | |
| # install_mysql.sh | |
| # | |
| # This script assumes your Vagrantfile has been configured to map the root of | |
| # your application to /vagrant and that your web root is the "public" folder | |
| # (Laravel standard). Standard and error output is sent to | |
| # /vagrant/vm_build.log during provisioning. |
| #!/usr/bin/env python | |
| #encoding: utf-8 | |
| import urllib2 | |
| from base64 import b64decode | |
| LIST_URL = 'https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt' | |
| BLACK_FILE = 'gfw.url_regex.lst' | |
| WHITE_FILE = 'cn.url_regex.lst' |
| /** | |
| * CSS theme for the Clearly browser extension by Evernote. | |
| * See: www.evernote.com/clearly/ | |
| * | |
| * Options used alongside this CSS: | |
| * Body font: "Adelle", Georgia, 微軟正黑體, Helvetica, Arial, sans-serif | |
| * Header font: Soho-condensed, PT Serif, 微軟正黑體, Helvetica | |
| * Monospace font: 微軟正黑體Mono, Inconsolata, Consolas, Droid Sans Mono | |
| * Background: #FFFFFF | |
| * Foregound: #333333 |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |