I hereby claim:
- I am vilhalmer on github.
- I am vilhalmer (https://keybase.io/vilhalmer) on keybase.
- I have a public key ASCFa936SL7xvlDDmKQQsOS2b22vRkVQPDwGT2c0N-FrGgo
To claim this, I am signing this object:
this.quine = function () | |
{ | |
console.log("this.quine = " + this.quine.toString() + ";\nquine();"); | |
}; | |
quine(); |
(function() | |
{ | |
var q = String.fromCharCode(34); | |
var quine = [ | |
"(function()", | |
"{", | |
" var q = String.fromCharCode(34);", | |
" var quine = [", | |
" ", | |
" ];", |
class Eva < Zebra | |
include MongoMapper::Document | |
include Vegan::Powers | |
include MongoMapperExt::Taggable | |
include MongoMapper::Tweetable | |
## Keys | |
key :scarves_count, Integer, :default => 20 | |
key :compliments_count, Integer, :default => 100 | |
key :hivemind_response_count, Integer, :default => 500 |
// | |
// NSObject+TryMethod.h | |
// SUPER HAX | |
// | |
// Created by Bill Doyle on 2014-05-06. | |
// | |
#import <Foundation/Foundation.h> | |
NSVisualEffectMaterial constants, and the undocumented materials they coorespond to in various modes: | |
+----------------------+-------+----------+------+---------+ | |
| MATERIAL # | LIGHT | LIGHT EM | DARK | DARK EM | | |
+----------------------+-------+----------+------+---------+ | |
| | | | | | | |
| 0 - Appearance Based | 3 | 3 | 5 | 5 | | |
| | | | | | | |
| 1 - Light | 3 | 3 | 3 | 3 | | |
| | | | | | | |
| 2 - Dark | 4 | 4 | 4 | 4 | |
// NSCoder+KeyedSubscripting.h: | |
@interface NSCoder (KeyedSubscripting) | |
- (id)objectForKeyedSubscript:(id <NSCopying>)key; | |
- (void)setObject:(id)object forKeyedSubscript:(id <NSCopying>)key; | |
@end | |
#import <Cocoa/Cocoa.h> | |
#define k_NSArrayTupleAssignment @"THISISAMAGICVALUELOL" | |
#define _(...) [NSArray arrayOfPointerValues:(void *)__VA_ARGS__, NULL][k_NSArrayTupleAssignment] | |
@interface NSArray (TupleAssignment) | |
+ (instancetype)arrayOfPointerValues:(void *)pointer1, ...; |
#!/usr/bin/env ruby | |
# watch.rb by Brett Terpstra, 2011 <http://brettterpstra.com> | |
# with credit to Carlo Zottmann <https://github.com/carlo/haml-sass-file-watcher> | |
# modified for Chrome by vil, 2015-05-16 | |
trap("SIGINT") { exit } | |
if ARGV.length < 2 | |
puts "Usage: #{$0} watch_folder keyword" | |
puts "Example: #{$0} . mywebproject" |
typedef BOOL (^ FilterBlock)(id _); | |
@implementation NSArray (Bifurcate) | |
- (void)bifurcate:(FilterBlock)test passing:(out NSArray **)passing failing:(out NSArray **)failing | |
{ | |
NSMutableArray * passed = [NSMutableArray array]; | |
NSMutableArray * failed = [NSMutableArray array]; | |
for (id thing in self) { |
I hereby claim:
To claim this, I am signing this object: