This file contains hidden or 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
// taze: Set from //third_party/javascript/node_modules/typescript:es2015.collection | |
import * as fs from 'fs'; // from //third_party/javascript/typings/node | |
import * as ts from 'typescript'; | |
function load(fileName: string, names: Set<string>) { | |
const text = fs.readFileSync(fileName, 'utf8'); | |
const sf = ts.createSourceFile(fileName, text, ts.ScriptTarget.ES5, true); | |
sf.forEachChild((node) => { | |
switch (node.kind) { |
This file contains hidden or 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
go run gen.go cairo-preprocessed.h cairo/cairo.go | |
2015/06/11 10:23:04 skipped cairo_bool_t: mapped to bool | |
2015/06/11 10:23:04 TODO cairo_destroy_func_t: callbacks back into Go | |
2015/06/11 10:23:04 skipped cairo_user_data_key_t: type only used as a placeholder in C | |
2015/06/11 10:23:04 TODO cairo_write_func_t: callbacks back into Go | |
2015/06/11 10:23:04 TODO cairo_read_func_t: callbacks back into Go | |
2015/06/11 10:23:04 TODO cairo_rectangle_int_t: hard to wrap API | |
2015/06/11 10:23:04 skipped cairo_reference: Go uses GC instead of refcounting | |
2015/06/11 10:23:04 skipped cairo_destroy: Go uses GC instead of refcounting | |
2015/06/11 10:23:04 skipped cairo_get_reference_count: Go uses GC instead of refcounting |
This file contains hidden or 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
commit a9bddead99604b9fb7ee752e1cd4a87d6d52d2d9 | |
Author: Evan Martin <[email protected]> | |
Date: Tue May 14 09:12:07 2013 -0700 | |
make $0 embed a nul | |
diff --git a/src/lexer.cc b/src/lexer.cc | |
index 685fe81..0ba78b7 100644 | |
--- a/src/lexer.cc | |
+++ b/src/lexer.cc |
This file contains hidden or 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
{ | |
'target_defaults': { | |
'cflags': [ | |
'-g', '-Wall', '-Wextra', '-Werror', | |
'-Wno-deprecated', | |
'-Wno-unused-parameter', | |
'-fno-rtti', | |
'-fno-exceptions', | |
'-fvisibility=hidden', | |
'-pipe', |
This file contains hidden or 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/src/ninja.cc b/src/ninja.cc | |
index 6dc2766..cbe5ddc 100644 | |
--- a/src/ninja.cc | |
+++ b/src/ninja.cc | |
@@ -68,7 +68,9 @@ void Usage(const BuildConfig& config) { | |
" query show inputs/outputs for a path\n" | |
" targets list targets by their rule or depth in the DAG\n" | |
" rules list all rules\n" | |
-" clean clean built files\n", | |
+" clean clean built files\n" |
This file contains hidden or 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
(defun trybot (url) | |
"doc" | |
(interactive "sURL to stdout: ") | |
; Extract the body out of the URL. | |
; XXX how to clip HTTP headers? | |
(with-current-buffer (url-retrieve-synchronously url) | |
;(re-search-forward "^$") | |
(kill-region (point-min) (point-max))) |
This file contains hidden or 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
#!/usr/bin/python | |
import fileinput | |
import re | |
import sys | |
from pprint import pprint | |
def parse(input): | |
"""Parse a log of gcc -H runs. |
This file contains hidden or 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 | |
# Given a grep expression, create a graph of occurrences of that expression | |
# in your code's history. | |
set -e | |
expr="$1" | |
datafile=$(mktemp) |