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
Options +FollowSymlinks | |
RewriteEngine on | |
# No intersticial for direct reference and self-reference | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://box.leebyron.com/.*$ [NC] | |
# Add a line item for every website you don't need an intersticial for | |
# I've added my own website, gmail and facebook | |
RewriteCond %{HTTP_REFERER} !^http(s)?://([^\.]*.)?leebyron.com/.*$ [NC] | |
RewriteCond %{HTTP_REFERER} !^http(s)?://mail.google.com/.*$ [NC] |
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
String make = columns[0]; | |
int id = int(columns[4]); | |
String model = columns[1]; | |
int year = int(columns[2]); | |
String trim = columns[5]; | |
int trade_in_value_excellent = 0; | |
int trade_in_value_good = 0; | |
int trade_in_value_fair = 0; | |
int private_party_value_excellent = 0; |
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
/** | |
* A collection of functions responsible for performing translations between | |
* longitude/latitude coordinates and points on a 1/1 square | |
* (which you could then map to pixelspace) | |
* | |
* @author leebyron | |
*/ | |
/** | |
* lon double x coordinate in radians [-PI,PI) |
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
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification | |
{ | |
// check for future network connectivity changes | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(updateNetStatus:) | |
name:kNetConnectionChangeNotification | |
object:[NetConnection netConnection]]; | |
} | |
- (void)updateNetStatus:(NSNotification *)notif |
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
diff --git a/html/js/javelin/core/Event.js b/html/js/javelin/core/Event.js | |
index 94df448..0848521 100644 | |
--- a/html/js/javelin/core/Event.js | |
+++ b/html/js/javelin/core/Event.js | |
@@ -267,7 +267,12 @@ JX.install('Event', { | |
/** | |
* @task info | |
*/ | |
- nodes : {} | |
+ nodes : {}, |
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
<svg version="1.1" width="184px" height="166px" viewBox="0 0 184 166"> | |
<g transform="translate(92 83)"> | |
<circle fill="#fff" r="16" /> | |
<g fill="none" stroke="#fff" stroke-width="8"> | |
<ellipse rx="84" ry="32" /> | |
<ellipse rx="84" ry="32" transform="rotate(120)" /> | |
<ellipse rx="84" ry="32" transform="rotate(60)" /> | |
</g> | |
</g> | |
</svg> |
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
var Benchmark = require('benchmark'); | |
var t = require('transducers.js'); | |
var Immutable = require('immutable'); | |
var suite = Benchmark.Suite('transducers'); | |
function benchArray(n) { | |
var arr = new Immutable.Range(0, n).toVector(); | |
var transform = t.compose( | |
t.map(function(x) { return x + 10; }), |
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
var Benchmark = require('benchmark'); | |
var t = require('transducers.js'); | |
var Immutable = require('immutable'); | |
var suite = Benchmark.Suite('transducers'); | |
function benchArray(n) { | |
var arr = new Immutable.Range(0, n).toVector(); | |
suite | |
.add('Immutable map/filter (' + n + ')', function() { |
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
class Geocoder{ | |
// google maps api key | |
String apiKey; | |
Geocoder(String apiKey){ | |
this.apiKey = apiKey; | |
} | |
double[] locate(String 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
class Gradient2D{ | |
PImage source; | |
Gradient2D(String src){ | |
source = loadImage(src); | |
} | |
color get(float g1, float g2){ | |
int x = constrain( floor( g1*source.width ), 0, source.width-1); |
OlderNewer