Skip to content

Instantly share code, notes, and snippets.

View shadda's full-sized avatar
💭
Freaking out in a moon-age daydream, oh yeah.

Matt Wilson shadda

💭
Freaking out in a moon-age daydream, oh yeah.
View GitHub Profile
(function (window) {
'use strict';
function ReferenceSelector(ReferenceSvc, $compile) {
var directive = {
restrict: 'A',
replace: false,
transclude: true,
require: '^?ngModel'
};
(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');
<?php
$foo = new stdClass;
$foo->bar = 1;
try
{
$f = function() use($foo)
{
var_dump($foo); //should be 1
<?php
trait Singleton
{
private static $_instance;
public static function getInstance()
{
if(!(self::$_instance instanceof self))
{
PerfDB.app.directive('collection', function ($compile)
{
return {
restrict: 'A',
replace: true,
require: '?ngModel',
scope: {
collection: '='
},
link: function($scope, $element, $attr, $ngModel)
Foo.app.directive('collection', function ($compile)
{
return {
restrict: 'A',
replace: true,
require: '?ngModel',
scope: {
collection: '='
},
link: function($scope, $element, $attr, $ngModel)
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
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
Science flowchart by ken ham:
Ask a question
|
Did the bible answer it?
|
Yes---------No
| |
Solved. |
Does new evidence contradict the bible?
Science flowchart by ken ham:
Ask a question
|
Did the bible answer it?
|
Yes---------No
| |
Solved. |
Does new evidence contradict the bible?