This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Router.query = (function(router) { | |
| var current = function () { | |
| return router.current(); | |
| }; | |
| var rawParams = function () { | |
| return current().params.query; | |
| }; | |
| var params = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyApp.Update | |
| constructor: (@obj, @attrs={}) -> | |
| @obj.data ?= {} | |
| @obj.isOwned = false | |
| $.extend @attrs, | |
| ownerId: (v) => | |
| @obj.isOwned = MyApp.account.signedIn v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fileutils' | |
| # Set folder path | |
| folder_path = "/User/absolute/path/to/dir" | |
| # Start at number | |
| start = 0 | |
| # Group into directories of size | |
| size = 125 | |
| # "%07d" for 7 digits ie 0000001.jpg | |
| padding = "%07d" | |
| # Then run this monster |
NewerOlder