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
| rm -rf `find . -name .svn` |
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
| <object width="480" height="270"> | |
| <param name="allowfullscreen" value="true" /> | |
| <param name="allowscriptaccess" value="always" /> | |
| <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=xyz&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=00adef&fullscreen=1" /> | |
| <embed src="http://vimeo.com/moogaloop.swf?clip_id=xyz&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=00adef&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="270"></embed> | |
| <video | |
| src="http://www.vimeo.com/play_redirect?clip_id=xyz" | |
| controls="controls" |
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
| #!/bin/bash | |
| # WEB SERVER | |
| sudo apt-get update | |
| sudo apt-get install nginx | |
| # APPS FROM SOURCE | |
| cd /usr/local/src/ | |
| # PHP (w/FPM for NGINX) |
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
| # Earl: Strings that do web things | |
| # | |
| # | |
| # Examples: | |
| # | |
| # text = "Blah blah http://tinyurl.com/4bnjzbu blah http://tinyurl.com/4tefu9f" | |
| # | |
| # text.urls # => ["http://tinyurl.com/4bnjzbu", "http://tinyurl.com/4tefu9f"] | |
| # | |
| # text.locations # => ["http://nutrun.com/weblog/2010/11/17/supercharged-ruby-console-output.html", "http://nutrun.com"] |
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 | |
| function render_template($filename, $locals=array()) { | |
| explode($locals); | |
| ob_start(); | |
| include($filename); | |
| return ob_get_clean(); | |
| } | |
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
| # Resources App | |
| app_resources = Dragonfly[:resources] | |
| app_resources.configure_with(:rails) do |c| | |
| c.datastore.root_path = Rails.root.join('public', 'system', 'resources').to_s | |
| # This url_format makes it so that dragonfly urls work in traditional | |
| # situations where the filename and extension are required, e.g. lightbox. | |
| # What this does is takes the url that is about to be produced e.g. | |
| # /system/resources/BAhbB1sHOgZmIiMyMDEwLzA5LzAxL1NTQ19DbGllbnRfQ29uZi5qcGdbCDoGcDoKdGh1bWIiDjk0MngzNjAjYw | |
| # and adds the filename onto the end (say the file was 'refinery_is_awesome.pdf') | |
| # /system/resources/BAhbB1sHOgZmIiMyMDEwLzA5LzAxL1NTQ19DbGllbnRfQ29uZi5qcGdbCDoGcDoKdGh1bWIiDjk0MngzNjAjYw/refinery_is_awesome.pdf |
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
| .flip-switch { | |
| position: relative; width: 68px; | |
| -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; | |
| } | |
| .flip-switch-checkbox { | |
| display: none; | |
| } | |
| .flip-switch-label { | |
| display: block; overflow: hidden; cursor: pointer; | |
| border: 2px solid #999999; border-radius: 20px; |
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
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # editorconfig.org | |
| root = true | |
| [*] | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import Ember from 'ember'; | |
| import AuthenticatedRoute from 'dashboard/routes/authenticated'; | |
| import DateRangedMixin from 'dashboard/routes/mixins/date-ranged'; | |
| import ChartMixin from 'dashboard/routes/mixins/chart'; | |
| export default AuthenticatedRoute.extend(DateRangedMixin, ChartMixin, { | |
| model: function(options) { | |
| var _this = this; | |
| return this.store.findQueryOne( |
OlderNewer