(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.
| var walked = []; | |
| var searchHaystack = function(haystack, needle, path, exactEquals) { | |
| //dumb truthiness handling | |
| exactEquals = exactEquals ? true : false; | |
| if(typeof haystack != "object") { | |
| console.warn("non-object haystack at " + path.join(".")); | |
| return [false, null]; |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools | |
| # install all sdk packages |
| console.log("Usage Syntax: scanScope(objectToScan, 'scanFor', ['whatToIgnore']); %c(whatToIgnore is optional and can be a string, or an array of strings) (scanScope can be shortened to ss)", 'color: red'); | |
| var abortAtLevel = 20, | |
| callStack = 0, | |
| errArray = [], | |
| funArray = [], | |
| scanLoop = function (whatToScan, scanValue, whatToIgnore, parentTree) { | |
| scanValue = scanValue.toLowerCase(); | |
| if (Array.isArray(whatToIgnore)) { | |
| whatToIgnore.forEach(function (ignoreVal) { | |
| ignoreVal = lowerCase(ignoreVal); |
| extension String { | |
| var isBlank: Bool { | |
| get { | |
| let trimmed = stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) | |
| return trimmed.isEmpty | |
| } | |
| } | |
| # Be sure to save your config files. Optional but I do: | |
| sudo cp /etc/postgresql/9.3/main/postgresql.conf ~ | |
| sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~ | |
| # Package repo (for apt-get) | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' | |
| # Also probably optional but I like to update sources and upgrade | |
| sudo apt-get update |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>This is the title of the webpage!</title> | |
| </head> | |
| <body> | |
| <p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p> | |
| </body> | |
| </html> |
| func showNotification() -> Void { | |
| var notification = NSUserNotification() | |
| notification.title = "Test from Swift" | |
| notification.informativeText = "The body of this Swift notification" | |
| notification.soundName = NSUserNotificationDefaultSoundName | |
| NSUserNotificationCenter.defaultUserNotificationCenter().deliverNotification(notification) | |
| } | |
| //showNotification() |
| # Docker version 1.1.2, build d84a070 | |
| FROM ubuntu:14.04 | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| software-properties-common \ | |
| python-software-properties \ | |
| make\ | |
| gcc \ | |
| g++ \ |
(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.
Take these courses to get web dev savy, in order:
All of these courses result in badges or symbols of course completion. Specifically the CodeSchool courses have OpenBadges awarded for example here's my CodeSchool "Report Card" page: https://www.codeschool.com/users/705399