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
| var FieldMixin = { | |
| value: function() { | |
| return 'default value'; | |
| } | |
| }; |
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
| [color] | |
| ui = auto | |
| [user] | |
| # Commented out | |
| [alias] | |
| rom = !git fetch && git rebase origin/master | |
| rod = !git fetch && git rebase origin/develop | |
| co = checkout | |
| st = status | |
| cod = checkout develop |
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
| cat ~/.profile | |
| export PATH="/usr/local/php5/bin:/usr/local/bin:$PATH" | |
| if [ -f `brew --prefix`/etc/bash_completion ]; then | |
| . `brew --prefix`/etc/bash_completion | |
| fi | |
| GIT_PS1_SHOWDIRTYSTATE="false" | |
| GIT_PS1_SHOWUPSTREAM="false" |
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
| angular | |
| .module('app.controllers.project', [ | |
| 'app.models.project' | |
| ]) | |
| .controller('app.controllers.project', [ | |
| '$routeParams', | |
| '$scope', | |
| 'project', | |
| function($params, $scope, project) { | |
| $scope.project = project; |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Technology & Frontend Framework Trends</title> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=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
Show hidden characters
| { | |
| "auto_complete": true, | |
| "color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "folder_exclude_patterns": | |
| [ | |
| ".svn", | |
| ".git", | |
| ".hg", | |
| "CVS", |
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
| <!-- | |
| File is located at: | |
| /Users/Eric/Sites/MyApp/src/MyApp/Bundle/BlogBundle/Entity/Blog/Post.php | |
| Problem: | |
| No way to double-substitute or chain filters |
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
| # We need to get an AUTH TOKEN first | |
| curl -X GET -D - \ | |
| -H "X-Auth-User: $USER" \ | |
| -H "X-Auth-Key: $API_KEY" \ | |
| https://auth.api.rackspacecloud.com/v1.0 \ | |
| # HTTP/1.1 204 No Content | |
| # Server: Apache/2.2.3 (Red Hat) | |
| # vary: X-Auth-Token,X-Auth-Key,X-Storage-User,X-Storage-Pass | |
| # X-Storage-Url: https://storage101.ord1.clouddrive.com/v1/MossoCloud-something-something |
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 | |
| // This is the revised `web/app.php` (click the previous edit of this gist to see the original) | |
| // | |
| // For those of us that deploy along-side Zend Framework apps, whose convention has been to pivot configuration | |
| // around APPLICATION_ENV, `web/app.php` and `web/app_dev.php` is redundant. | |
| require_once __DIR__.'/../app/bootstrap.php.cache'; | |
| require_once __DIR__.'/../app/AppKernel.php'; | |
| //require_once __DIR__.'/../app/bootstrap_cache.php.cache'; |
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
| // README: https://github.com/ericclemmons/de-pagify | |
| // | |
| // Step 0 - Visit http://news.ycombinator.com/ | |
| // Step 1 - Inject jQuery (http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet) | |
| // Step 2 - Inject De-Pagify (https://github.com/ericclemmons/de-pagify/raw/master/bookmarklet.jquery.min.js) | |
| // Step 3 - Run the following in the console: | |
| jQuery('td > table:eq(1)').depagify('td.title:last a', { | |
| filter: 'tr', | |
| threshold: 'td.title:last a', |