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 "test.c" | |
.text | |
.type a, @function | |
a: | |
.LFB0: | |
.cfi_startproc | |
pushq %rbp | |
.cfi_def_cfa_offset 16 | |
movq %rsp, %rbp | |
.cfi_offset 6, -16 |
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 "test.c" | |
.text | |
.p2align 4,,15 | |
.globl my_test | |
.type my_test, @function | |
my_test: | |
.LFB11: | |
.cfi_startproc | |
subq $8, %rsp | |
.cfi_def_cfa_offset 16 |
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 "test.c" | |
.text | |
.p2align 4,,15 | |
.globl inline_value_proper | |
.type inline_value_proper, @function | |
inline_value_proper: | |
.LFB7: | |
.cfi_startproc | |
movl $5000, %eax | |
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
#include <assert.h> | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define BUF_SIZE 256 | |
/* source and destination buffers MUST NOT overlap */ | |
char * | |
prune_spaces(char * dst, size_t dst_len, const char * src) |
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
#!/usr/bin/env python | |
class Node(object): | |
def __init__(self, name, next=None): | |
self.next = next | |
self.name = name | |
self.l = 1 if next is None else next.l + 1 | |
def __iter__(self,): | |
cur = self |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
"unsafe" | |
) | |
type foo struct { |
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
(add-to-list 'load-path "~/.emacs.d/plugins") | |
;; cl-* functions and macros | |
(require 'cl) | |
(cl-defmacro if-exists ((var fname) &rest body) | |
`(let ((,var ,fname)) | |
(when (file-exists-p ,var) | |
,@body))) |
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
/tmp $ git clone -q github.com/unravelin/tomono | |
/tmp $ cat sub-repositories.txt | |
https://github.com/outr/scalarelational.git scalarelational | |
https://github.com/realph/gulp-zero.git zero | |
https://github.com/reaxis/mu µ | |
/tmp $ cat sub-repositories.txt | ./tomono/tomono.sh | |
… crunch crunch crunch | |
/tmp $ cd core | |
/tmp/core $ git branch | |
2.0.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
Object.defineProperty(Array.prototype, 'all', { | |
get: function () { | |
return new Proxy(this, { | |
get: function(target, name, receiver) { | |
return target.map(x => x[name]); | |
}, | |
set: function (target, name, value) { | |
target.forEach(x => x[name] = value); | |
}, | |
// ... call:, etc. |
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
package main | |
import ( | |
"encoding/json" | |
) | |
// PotentialJSON acts as a JSON encoding wrapper for []byte. The encoding is | |
// tentative: | |
// | |
// * if the contents already happen to be valid JSON, then it is represented |