I hereby claim:
- I am toomanybees on github.
- I am bees (https://keybase.io/bees) on keybase.
- I have a public key ASBUuPLrOEN71rkSt0hc7uKUwqEQn-kN4YG5vU404NEdNAo
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# My instance doesn't support full text searching of posts, but I always | |
# want to know whether or not I've already published the post I'm about | |
# to make, and have to scroll through my own timeline just to double | |
# check. Well no more! | |
# You must use the --url argument to select the instance and user to search. | |
# You must also use the --access-token argument if that server only accepts | |
# authenticated requests. (Get an access token from the server's Development |
#include "ofApp.h" | |
void lineThroughPoint(const glm::vec2 &i, float slope, glm::vec2 &p1, glm::vec2 &p2) { | |
float x1 = i.x - i.y / slope; | |
float x2 = i.x + (ofGetHeight() - i.y) / slope; | |
p1.x = x1; p1.y = 0; | |
p2.x = x2; p2.y = ofGetHeight(); | |
} | |
void drawRandomLine(const glm::vec2 &focus) { |
// Commonly used web colors | |
$success-green: #79bd9a; // Padua | |
$error-red: #df405a; // Cerise | |
$warning-red: #ff5050; // Sunset Orange | |
$gold-star: #00B59B; // Toggled favorite/boost icons - #ca8f04 | |
// Variables for defaults in UI | |
$base-shadow-color: #000; | |
$base-overlay-background: #000; | |
$base-border-color: #fff; |
use std::mem; | |
use std::io::{self, Read}; | |
#[derive(Debug, PartialEq, Eq)] | |
enum Token { | |
Paren, | |
Keyword(String), | |
Expression(Vec<Token>), | |
} |
[package] | |
name = "binary" | |
[lib] | |
crate-type = ["cdylib"] | |
[dependencies] | |
procedural-macro = { path = "../procedural-macro" } | |
library = { path = "../library" } # not using the codegen feature here |
I hereby claim:
To claim this, I am signing this object:
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
PImage glitchBuffer; | |
void setup() { | |
size(640, 480); | |
context = new SimpleOpenNI(this); |
# Include this in ApplicationHelper, or another view helper module | |
module DumpAssetHelper | |
# Helper for inlining compiled assets | |
# `dump_asset("lib/like_button.js")` | |
# `dump_asset("components/avatar.css", :once)` | |
def dump_asset name, option=nil | |
unless option == :once && dumped_assets.include?(name) | |
dumped_assets << name | |
asset = find_asset(name) |
# I hate the fact that Rails.application.routes.url_helpers.whatever | |
# is so damn slow. | |
# | |
# def tt n | |
# start = Time.now | |
# n.times { yield } | |
# Time.now - start | |
# end | |
# | |
# tt(100) { Rails.application.routes.url_helpers.entry_path(edition_id: 'us', id: 12345) } |
<div class="entry columns $col_classes bN" data-beacon="{'p':{'mpid':'$i'}}"> | |
<div class="panel"> | |
<a href="clickable" href="$entry_path"></a> | |
<div class="bN $img_size-img" data-beacon="{'p':{'lnid':'img'}}"> | |
<div class="image-container" data-img-path="$img_path"></div> | |
</div> | |
<div class="panel-text"> | |
<h5 class="cf bN" data-beacon="{'p':{'lnid':'hldn'}}">$headline</h5> | |
</div> | |
</div> |