This file contains 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
# expand selection to word, create new selection | |
cmd + d | |
# skip over a match | |
cmd + k, d | |
# expand selection to all matches | |
cmd + ctrl + g |
This file contains 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
# ------------------------- | |
# application_controller.rb | |
# ------------------------- | |
class ApplicationController < ActionController::Base | |
before_filter :setup_gon | |
def setup_gon | |
Gon.global.controller = controller_name | |
Gon.global.action = action_name |
This file contains 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
[{ | |
"name": "Munky.Views.ArticleFull", | |
"imports": ["Munky.Views.Category", "Munky.Models.Section", "Munky.Collections.Articles", "Munky.Settings.App", "Munky.Settings.Metrics", "Munky.Support.Time", "Munky.Support.Stocks", "Munky.FinApi"] | |
}, { | |
"name": "Munky.Views.Video", | |
"imports": ["Munky.Views.ArticleFull", "Munky.Settings.Metrics", "Munky.Support.Time"] | |
}, { | |
"name": "Munky.Views.Homepage", | |
"imports": ["Munky.Models.Section", "Munky.Collections.Articles", "Munky.Views.BreakingNews", "Munky.Views.Stock", "Munky.Views.Top", "Munky.Views.Stage", "Munky.Views.Focus", "Munky.Views.Special", "Munky.Views.Category", "Munky.Views.VideoSection", "Munky.Views.PhotoshowSection", "Munky.Views.Spinner", "Munky.Collections.Videos", "Munky.Collections.StockPrices", "Munky.Settings.App", "Munky.Settings.Spinner.Messages.Homepage", "Munky.Support.Browser"] | |
}, { |
This file contains 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
(function bankicker() { | |
var all_users = User.all(); | |
// the first character of a username is being replaced | |
// but not used/written back to the dom?? | |
// var chat = $('.uc'); | |
// chat.each(function() { | |
// var user = $(this).find('.cun').text(); | |
// user = user.replace(/[^a-zA-Z]/g, ''); | |
// }); | |
for (var i = 0; i < all_users.length; i++) { |
This file contains 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
zinc|master ⇒ gs | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: Gemfile | |
# modified: Gemfile.lock | |
# modified: app/assets/stylesheets/definitions.sass | |
# modified: app/assets/stylesheets/modules/_buttons.sass |
This file contains 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
Object.defineProperty(Object.prototype, '_log_', { | |
get: function() { | |
"use strict"; | |
console.log(this); | |
return this; | |
}, | |
enumerable: false | |
}); |
This file contains 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 FilterCollection extends Backbone.Collection | |
set: (models, options) -> | |
models = if _.isArray models | |
models | |
else | |
[models] | |
[models, filtered]= _.partition models, @filter | |
super(models, _.extend({merge: false}, options, {add: true, remove: false })) | |
super(filtered, _.extend({merge: false}, options, {add: true, remove: false, silent: true})) |
This file contains 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
init.coffee | |
Mole.start nwWindow: window.nwWindow | |
app.coffee | |
setup resources | |
start modules (Header, Calendar) | |
start module Authentication | |
calendar.coffee | |
initialize resources with either cached api response or empty objects |
This file contains 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
# Description: | |
# hubot suggests a place to go for food | |
# | |
# Dependencies: | |
# node-foursquare-venues | |
# | |
# Configuration: | |
# configure your foursquare client id and secret and your location | |
# | |
# Commands: |
This file contains 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
Process: Affinity Designer [874] | |
Path: /Applications/Affinity Designer.app/Contents/MacOS/Affinity Designer | |
Identifier: com.seriflabs.affinitydesigner | |
Version: 1.0.19046 (1.0.19046) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [162] | |
Responsible: Affinity Designer [874] | |
User ID: 501 | |
Date/Time: 2014-09-22 13:30:28.799 +0200 |
OlderNewer