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
| # Asynchronously load GitHub Embeds | |
| # Why? | |
| # Because no web developer worth his weight in bacon salt wants to have blocking <script /> style embeds in his content. | |
| # I want to be able to link to GitHub gists I write, and I want those links to show up in content aggregators as well. | |
| # And then, if possibly, progressively enhance by embedding the gist. | |
| # | |
| # Usage, simply link to a gist. An entire gist, or an anchor tag to a particular file. | |
| # | |
| # Requires: jQuery and Modernizr | |
| # |
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
| $ git branch -l | |
| master | |
| * operation_righteous_cowboy_lightning |
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
| # Make Grid | |
| # Only creates elements relative to that container. | |
| # things to include elsewhere = .alpha, .omega, .grid_right | |
| grid_width = 15 | |
| temp =<<CSS | |
| /* Containers | |
| -------------*/ |
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
| #!/usr/local/bin/ruby | |
| puts "Running application" | |
| class App | |
| def initialize(args) | |
| end | |
| def action(input) | |
| "input was #{input}" |
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:window.open(window.location.href.replace(/\.(com|org|net|tv|cc|us)/,".dev")) |
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/initializers/danott_custom.rb | |
| # connect using rdebug -c | |
| if (Rails.env.development? || Rails.env.test?) && !$rails_rake_task | |
| require 'ruby-debug' | |
| Debugger.settings[:autoeval] = true | |
| Debugger.settings[:autolist] = 1 | |
| Debugger.settings[:reload_source_on_change] = true | |
| Debugger.start_remote | |
| end |
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
| <?php | |
| public static function padWordlist($wordlistArr,$padTo){ | |
| $pads = $padTo-count($wordlistArr); | |
| for($i=0;$i<$pads;$i++){ | |
| $wordlistArr[] = self::getTail(8); | |
| } | |
| return $wordlistArr; | |
| } | |
| ?> |
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
| function MceEditor() {} | |
| MceEditor.prototype = { | |
| init: function (b, c) { | |
| this.canvasId = b.id; | |
| this.settings = c; | |
| var a = c.plugins; | |
| if (a && a.search('AtD') !== -1) this.settings.atd_rpc_id = $('post_form_id').value; | |
| if (this.is_visible || !this.settings.delay_initialization) this.startEditor(); | |
| }, | |
| startEditor: 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
| # Asynchronously load GitHub Embeds | |
| # Why? | |
| # Because no web developer worth his weight in bacon salt wants to have blocking <script /> style embeds in his content. | |
| # I want to be able to link to GitHub gists I write, and I want those links to show up in content aggregators as well. | |
| # And then, if possible, progressively enhance by embedding the gist. | |
| # | |
| # Usage, simply link to a gist. An entire gist, or an anchor tag to a particular file. | |
| # | |
| # Requires: jQuery and Modernizr | |
| # |
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
| ## | |
| # CSS NAMING CONVENTIONS! | |
| # | |
| # A Model CheeseBurger has a number of existing conventions in rails | |
| # Table name: cheese_burgers | |
| # Views: app/views/cheese_burgers/ | |
| # Collection partial: app/views/cheese_burgers/_cheese_burger.html.erb | |
| # | |
| # IDEA: Let a naming convention flow down into the css markup. | |
| # Inspired after reading http://nicolasgallagher.com/about-html-semantics-front-end-architecture/ |