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 (window) { | |
| 'use strict'; | |
| function ReferenceSelector(ReferenceSvc, $compile) { | |
| var directive = { | |
| restrict: 'A', | |
| replace: false, | |
| transclude: true, | |
| require: '^?ngModel' | |
| }; |
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 (window) { | |
| 'use strict'; | |
| var User = $resource('/user/:userId', {userId:'@id'}); | |
| var user = User.get({userId:123}, function() { | |
| user.abc = true; | |
| user.$save(); | |
| }); | |
| var References = $resource('/api/references/:type'); | |
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 | |
| $foo = new stdClass; | |
| $foo->bar = 1; | |
| try | |
| { | |
| $f = function() use($foo) | |
| { | |
| var_dump($foo); //should be 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
| <?php | |
| trait Singleton | |
| { | |
| private static $_instance; | |
| public static function getInstance() | |
| { | |
| if(!(self::$_instance instanceof self)) | |
| { |
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
| PerfDB.app.directive('collection', function ($compile) | |
| { | |
| return { | |
| restrict: 'A', | |
| replace: true, | |
| require: '?ngModel', | |
| scope: { | |
| collection: '=' | |
| }, | |
| link: function($scope, $element, $attr, $ngModel) |
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
| Foo.app.directive('collection', function ($compile) | |
| { | |
| return { | |
| restrict: 'A', | |
| replace: true, | |
| require: '?ngModel', | |
| scope: { | |
| collection: '=' | |
| }, | |
| link: function($scope, $element, $attr, $ngModel) |
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
| mwilson@mattw-mbp:/www/$ brew update | |
| Error: undefined method `to_sym' for nil:NilClass | |
| Please report this bug: | |
| https://github.com/mxcl/homebrew/wiki/troubleshooting | |
| /usr/local/Library/Homebrew/cmd/update.rb:103:in `report' | |
| /usr/local/Library/Homebrew/cmd/update.rb:101:in `each_line' | |
| /usr/local/Library/Homebrew/cmd/update.rb:101:in `report' | |
| /usr/local/Library/Homebrew/cmd/update.rb:23:in `update' | |
| /usr/local/Library/brew.rb:95:in `send' | |
| /usr/local/Library/brew.rb:95 |
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
| Cloning into '/usr/local/Library/Taps/homebrew-versions'... | |
| remote: Reusing existing pack: 1654, done. | |
| remote: Counting objects: 7, done. | |
| remote: Compressing objects: 100% (7/7), done. | |
| remote: Total 1661 (delta 4), reused 0 (delta 0) | |
| Receiving objects: 100% (1661/1661), 544.38 KiB | 175.00 KiB/s, done. | |
| Resolving deltas: 100% (864/864), done. | |
| Checking connectivity... done | |
| Warning: Could not tap homebrew/versions/boost149 over mxcl/master/boost149 | |
| Tapped 130 formula |
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
| Science flowchart by ken ham: | |
| Ask a question | |
| | | |
| Did the bible answer it? | |
| | | |
| Yes---------No | |
| | | | |
| Solved. | | |
| Does new evidence contradict the bible? |
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
| Science flowchart by ken ham: | |
| Ask a question | |
| | | |
| Did the bible answer it? | |
| | | |
| Yes---------No | |
| | | | |
| Solved. | | |
| Does new evidence contradict the bible? |