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 List.Panel extends App.Views.ItemView | |
| template: "users/list/templates/_panel" | |
| collectionEvents: | |
| "reset" : "render" |
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
| <table class="table table-striped table-bordered"> | |
| <thead> | |
| <tr> | |
| <th>Name</th> | |
| <th>Created</th> | |
| </tr> | |
| </thead> | |
| <tbody></tbody> | |
| </table> |
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
| <table class="table table-striped table-bordered"> | |
| <thead> | |
| <tr> | |
| <th>Name</th> | |
| <th>Created</th> | |
| </tr> | |
| </thead> | |
| <tbody></tbody> | |
| </table> |
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
| @Demo.module "HeaderApp.List", (List, App, Backbone, Marionette, $, _) -> | |
| List.Controller = | |
| listHeader: -> | |
| links = App.request "header:entities" | |
| headerView = @getHeaderView links | |
| App.headerRegion.show headerView |
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
| (defun touch-file (my-file) | |
| (interactive (list (read-string "File to create:" default-directory))) | |
| (shell-command (format "touch %s" my-file)) | |
| (if (eq major-mode 'dired-mode) (revert-buffer))) | |
| (global-set-key (kbd "s-f") 'touch-file) |
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
| (defun touch-file (my-file) | |
| (interactive (list (read-string "File to create:" default-directory))) | |
| (shell-command (format "touch %s" my-file)) | |
| (revert-buffer)) |
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
| (add-to-list 'load-path "~/.emacs.d/") | |
| (add-to-list 'load-path "~/.emacs.d/ruby-dev/") | |
| (autoload 'turn-on-ruby-dev "ruby-dev" nil t) | |
| (add-hook 'ruby-mode-hook 'turn-on-ruby-dev) | |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("marmalade" . "http://marmalade-repo.org/packages/") t) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.milkbox.net/packages/") t) |
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
| @Demo.module "Users", (Users, App, Backbone, Marionette, $, _) -> | |
| class Users.Router extends Marionette.AppRouter | |
| appRoutes: | |
| "users" : "listUsers" | |
| API = | |
| listUsers: -> | |
| console.log "listusers" |
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
| App.on "initialize:after", -> | |
| if Backbone.history | |
| Backbone.history.start() | |
| @navigate(@rootRoute, trigger: true) if @getCurrentRoute() is "" | |
| App.navigate = (route, options={}) -> | |
| Backbone.history.navigate(route, options) |
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
| App.addInitializer -> | |
| new Users.Router | |
| controller: API |