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
| commit 71add8105fd6802ff4198096aa35a3d06bab09fb | |
| Author: Tomasz Warkocki <warkocz@codequest.eu> | |
| Date: Wed Dec 1 13:55:24 2010 +0100 | |
| changed mnduser google analytics value from md5 to id | |
| diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb | |
| index 529e479..bd47d6b 100644 | |
| --- a/app/helpers/application_helper.rb | |
| +++ b/app/helpers/application_helper.rb |
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
| javascript:(function(){var%20jqLoader={go:function(){if(!(window.jQuery&&window.jQuery.fn.jquery=='1.3.2')){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js');s.setAttribute('type','text/javascript');document.getElementsByTagName('head')[0].appendChild(s)}this.ok()},ok:function(){if(typeof(window.jQuery)!=='undefined'&&window.jQuery.fn.jquery=='1.3.2'){this.init()}else{setTimeout((function(){jqLoader.ok()}),100)}},init:function(){$.getScript('http://www.badlydrawntoy.com/static/960grid/js/jquery.960grid.bk-1.0.min.js',function(){$('body').addGrid(12)})}};jqLoader.go()})(); |
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
| on alfred_script(theNote) | |
| set AppleScript's text item delimiters to "#" | |
| set theTextItems to text items of item 1 of theNote | |
| set theTitle to item 1 of theTextItems | |
| set tagsWithSpaces to the rest of theTextItems | |
| set theTags to {} | |
| set AppleScript's text item delimiters to " " | |
| repeat with aTag in tagsWithSpaces | |
| set end of theTags to item 1 of text items of aTag | |
| end repeat |
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 mac-osx-editing-insert-at () | |
| "Insert @ at point" | |
| (interactive) | |
| (insert-char ?@ 1)) | |
| (defun mac-osx-editing-insert-curly-left () | |
| "Insert { at point" | |
| (interactive) | |
| (insert-char ?{ 1)) |
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
| brew install libxml2 | |
| gem uninstall nokogiri | |
| gem install nokogiri --version 1.5.0 -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 |
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
| <script type="text/javascript" charset="utf-8" id="mnd-script"> | |
| (function(){var s=document.createElement("script");s.type="text/javascript";s.async=true;s.src="http://sw.mynewsdesk.com/javascripts/mynewsdesk_hosted_iframe.js";var i=document.getElementsByTagName('script')[0];i.parentNode.insertBefore(s,i);})(); | |
| </script> |
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
| module Sendgrid | |
| module Configuration | |
| def self.included(klass) | |
| klass.extend ClassMethods | |
| end | |
| def mail(headers = {}, &block) | |
| headers['X-SMTPAPI'] = { category: calling_mailer_and_action.join("#") }.to_json | |
| super(headers, &block) |
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 copy-current-line-position-to-clipboard () | |
| "Copy current line in file to clipboard as '</path/to/file>:<line-number>'" | |
| (interactive) | |
| (let ((path-with-line-number | |
| (concat (buffer-file-name) ":" (number-to-string (line-number-at-pos))))) | |
| (x-select-text path-with-line-number) | |
| (message (concat path-with-line-number " copied to clipboard")))) | |
| (define-key global-map (kbd "M-l") 'copy-current-line-position-to-clipboard) |
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
| # config/routes.rb | |
| resources :contacts do | |
| resources :labels | |
| end | |
| # app/controllers/network/labels_controller.rb | |
| class Network::LabelsController | |
| def index |
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
| MyView = Backbone.View.extend | |
| initialize: -> | |
| @model.on('change', @render, @) | |
| render: -> | |
| @$el.html("whatever...") | |
| @ | |
| # Somewhere in your backbone-app ... | |
| view = new MyView(model: aModel) |