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/env python | |
from __future__ import print_function | |
import dis | |
def assign_no_paren_const(a, b): | |
x = 1, 2 | |
def assign_w_paren_const(a, b): | |
x = (1, 2) |
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
$ python3 once.py | |
Module(body=[Expr(value=Call(func=Name(id='print', ctx=Load()), args=[Str(s='foo')], keywords=[], starargs=None, kwargs=None))]) | |
$ python3 --version | |
Python 3.4.3+ |
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
all: foo | |
foo: foo.o bar.o | |
.PHONY: clean all | |
clean: | |
$(RM) foo foo.o bar.o |
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
all: foo | |
CXXFLAGS+= -std=c++11 -Wall | |
LDLIBS+=-lstdc++ $(shell pkg-config --libs uuid) | |
foo: foo.o bar.o | |
.PHONY: clean all |
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
# ABRIDGED EXCERPT | |
splay: file format elf64-x86-64 | splay_no_landing: file format elf64-x86-64 | |
Disassembly of section .init: Disassembly of section .init: | |
0000000000007220 <_init>: 0000000000007220 <_init>: | |
7220: 48 83 ec 08 sub $0x8,%rsp 7220: 48 83 ec 08 sub $0x8,%rsp | |
7224: e8 13 05 00 00 callq 773c <call_gmon_start> 7224: e8 13 05 00 00 callq 773c <call_gmon_start> | |
7229: e8 b2 05 00 00 callq 77e0 <frame_dummy> 7229: e8 b2 05 00 00 callq 77e0 <frame_dummy> |
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/sh -ex | |
apt-get update && apt-get install -y \ | |
vim-gtk \ | |
indent \ | |
git \ | |
mercurial \ | |
subversion \ | |
ruby-dev \ | |
python \ |
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 -ex | |
CC="clang" | |
CXX="clang++" | |
SRCTOP=$(readlink -f ${PWD}) | |
INSTALL=${SRCTOP}/install | |
if [[ ! -d ${SRCTOP}/llvm ]]; then | |
echo Expected to find the source in ${SRCTOP}/llvm but it is missing | |
exit 3 |
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 -ex | |
CC="clang" | |
CXX="clang++" | |
SRCTOP=$(readlink -f ${PWD}) | |
INSTALL=${SRCTOP}/install | |
if [[ ! -d ${SRCTOP}/llvm ]]; then | |
echo Expected to find the source in ${SRCTOP}/llvm but it is missing | |
exit 3 |
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 -ex | |
CC="clang" | |
CXX="clang++" | |
export PATH=/local/mnt/workspace/install/binutils-2.27/bin:${PATH} | |
SRCTOP=$(readlink -f ${PWD}) | |
INSTALL=${1-${SRCTOP}/install} | |
if [[ ! -d ${SRCTOP}/llvm ]]; then | |
echo Expected to find the source in ${SRCTOP}/llvm but it is missing |
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/env python | |
"""mergelog | |
This is a custom merge driver for git for the libcxx repo. It should be called from git | |
with a stanza in .git.config like this: | |
[merge "mergecxx"] | |
name = A custom merge driver for libcxx | |
driver = ~/src/merge_cxx %O %A %B %P |
OlderNewer