(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.
| #Author: Jacob Rust | |
| #Date: 7/8/2013 | |
| #Description:This script organizes downloaded files into separate folders depending | |
| #on the file type. This was made for windows systems. | |
| #Download directory should be the first command line argument | |
| #New file types can be added to the dictionary in the main method | |
| import os | |
| import sys | |
| import hashlib | 
| var FormRepo = function (namespace) { | |
| /// <summary>Persistent form values, saves to localStorage</summary> | |
| /// <param name="namespace" type="String">the namespace to store values in localStorage</param> | |
| // should also protect per page, since we could have the same forms in various places | |
| this.N = namespace + '.' + window.location.pathname; | |
| }; | |
| $.extend(FormRepo.prototype, { | |
| namespace: function (key) { | |
| return this.N + '.' + key; |