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
# -*- mode: sh; -*- | |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bash/bashrc ]; then | |
. /etc/bash/bashrc | |
fi | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
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
### Keybase proof | |
I hereby claim: | |
* I am bpowers on github. | |
* I am bpowers (https://keybase.io/bpowers) on keybase. | |
* I have a public key whose fingerprint is 00F0 2435 8508 CF36 111E 6DA5 838C C388 4D59 7EEA | |
To claim this, I am signing this object: |
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 draw(cairo_t* cr) | |
{ | |
// ... do some vector drawing | |
cairo_surface_t* surface = cairo_get_target(cr); | |
cairo_surface_flush(surface); | |
CGContextRef cgctx = cairo_quartz_surface_get_cg_context(surface); | |
// use Apple's CoreText API | |
cairo_surface_mark_dirty(surface); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" | |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<!-- Generated by graphviz version 2.30.1 (20130423.2036) | |
--> | |
<!-- Title: ./z_prof; 5028 samples Pages: 1 --> | |
<svg width="100%" height="100%" | |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<script type="text/ecmascript"><![CDATA[ | |
// SVGPan |
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
if age_max[0] != '[': | |
if age_min == 'NULL': | |
age_min = 13 | |
if age_max == 'NULL': | |
age_max = 65 | |
tages = range(int(age_min),int(age_max)+1) | |
delta = len(tages) | |
if not gender in gender_dict: | |
continue | |
gdot = gender_dict[gender] |
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
#!/bin/bash | |
CANON=/tmp/canon.json | |
cat >$CANON <<EOF | |
#!/usr/bin/env python | |
import json | |
import os | |
import sys |
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
#include "runtime.h" | |
void | |
main·pidList(Slice ret, Eface err) | |
{ | |
ret.array = nil; | |
ret.len = 0; | |
ret.cap = 0; | |
FLUSH(&ret); |
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
server { | |
root /usr/share/nginx/www; | |
index index.html index.htm; | |
server_name localhost; | |
location ~ ^/proxy/([0-9a-z]*)/$ { | |
error_page 404 = @try_slow_path; | |
proxy_intercept_errors on; | |
proxy_pass http://localhost:8000; |
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
@import <Foundation/CPObject.j> | |
@import <AppKit/CPToolbar.j> | |
@import <AppKit/CPToolbarItem.j> | |
var LogoToolbarItemIdentifier = "LogoToolbarItemIdentifier"; | |
@implementation AppController : CPObject { | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification { |