This file contains 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
; note: this iteration doesn't work properly. | |
; looks like i don't understand exactly how react.js works for settings dom element properties | |
(set! exports {}) | |
; react macros... | |
(defmacro hash-map-pairs | |
"make a hash map from its arguments. each argument is a tuple (key value)" |
This file contains 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
NSString *const kCBLocationAtStartupString = @"startup"; | |
// etc ... | |
typedef NS_ENUM(NSString *, CBLocation) { | |
CBLocationAtStartup = kCBLocationAtStartupString, | |
// etc. | |
}; | |
- (void)showInterstitial:(CBLocation)location { | |
NSString *locationString = (NSString *)location |
This file contains 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.c | |
// | |
// | |
// Created by Kenneth Ballenegger on 1/13/14. | |
// | |
// | |
#include <stdlib.h> | |
#include <stdio.h> |
This file contains 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
{ | |
NSView *emailFieldContainer = [[NSView alloc] initWithFrame:NSMakeRect(80.0/2, 150.0/2, 650.0/2, 60.0/2)]; | |
self->emailField = [[NSTextField alloc] initWithFrame:NSMakeRect(10.0/2, 10.0/2, 670.0/2, 40.0/2)]; | |
self->emailField.stringValue = @"kenneth@ballenegger.com"; | |
[self->emailField setFont:boldFont]; | |
[self->emailField setEditable:YES]; | |
self->emailField.drawsBackground = NO; | |
[self->emailField setBezeled:NO]; | |
self->emailField.textColor = [NSColor colorWithCalibratedRed:0.872 green:0.197 blue:0.228 alpha:1.000]; | |
[self->emailField setWantsLayer:YES]; |
This file contains 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> | |
<html> | |
<head> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css" /> | |
<title>My Photo Page</title> | |
</head> | |
<body> | |
<table> | |
<thead> | |
<tr> |
This file contains 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
<html> | |
<head> | |
<title>Box Pricing</title> | |
<style> | |
td:nth-child(2) { | |
border-left:1px solid black; | |
} | |
td { | |
padding: 5px; | |
} |
This file contains 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
# configure Kongo :) | |
Kongo::Collection.add_extension(:apps, Module.new do | |
def find_by_itunes_id(id) | |
find_many(itunes: id, live_notified: true) | |
end | |
self; end) | |
Apps = Kongo::Collection.new(:apps) |
This file contains 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
Modernizer.new do | |
request_version { @env[...] } | |
first do | |
add 'hello' { 'hardcoded' } | |
end | |
modernize '1.2.1' do | |
add 'foo' { "#{@body['hello']}-bar" } |
This file contains 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
#ifdef HAVE_CONFIG_H | |
#include "config.h" | |
#endif | |
#include "php.h" | |
#include "php_cb_pbkdf2.h" | |
#include <string.h> | |
#include "cb-pbkdf2.h" |