(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.
| <div id="demo"> | |
| <h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
| </div> | |
| <ul id="humans-list"> | |
| <li v-repeat="humans"> | |
| {{fields.firstName}} {{fields.lastName}} | |
| </li> | |
| </ul> |
| #! /bin/bash | |
| # This if for the mac hipchat client | |
| # To setup, download this file to any folder and save as `hip.sh` | |
| # change the permissions of the file so it is executable using terminal | |
| # You can do this by running `chmod u+x ./hip.sh` | |
| # Now you can run `./hip.sh` | |
| echo 'Hipchat hooray...ho... - Press CTRL+C to stop' | |
| while : | |
| do |
(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.
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="de.mobilej.overlay" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk android:minSdkVersion="14" /> | |
| <application android:label="SystemOverlay" > | |
| <activity |
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
"required_if_attribute" => "The :attribute field is required." to application/language/[language]/validation.php.Define the rule using:
required_if_attribute:[field],[operator],[value]
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.zip.ZipEntry; | |
| import java.util.zip.ZipFile; | |
| class AndroidXMLDecompress { | |
| // decompressXML -- Parse the 'compressed' binary form of Android XML docs | |
| // such as for AndroidManifest.xml in .apk files |
| <?php | |
| define('SHOPIFY_APP_SECRET', 'my_shared_secret'); | |
| function verify_webhook($data, $hmac_header) | |
| { | |
| $calculated_hmac = base64_encode(hash_hmac('sha256', $data, SHOPIFY_APP_SECRET, true)); | |
| return ($hmac_header == $calculated_hmac); | |
| } |
| import java.security.InvalidKeyException; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.SignatureException; | |
| import java.util.Formatter; | |
| import javax.crypto.Mac; | |
| import javax.crypto.spec.SecretKeySpec; | |
| /** |