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 <iostream> | |
#include <memory> | |
#include <stack> | |
#include <string> | |
#include <utility> | |
#include <vector> | |
template <typename T> | |
class Node : public std::enable_shared_from_this<Node<T>> { | |
const T data; |
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
class A: | |
x = 1 | |
a = A() | |
b = A() | |
a.x += 1 | |
print (a.x, b.x) # 1 2 | |
class B: | |
x = [] |
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 | |
CDIR="/tmp/chromium-cache-anon-proxy-${USER}" | |
DDIR="${HOME}/.config/chromium-anon-proxy" | |
mkdir -p ${CDIR} ${DDIR} | |
chromium --incognito --proxy-server=socks5://127.0.0.1:9050 --disk-cache-dir=${CDIR} --user-data-dir=${DDIR} $@ |
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 | |
TARGET='android-18' | |
NAME='android' | |
RECREATE=1 | |
APATH=$ANDROID_SDK/tools/android | |
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ANDROID_SDK}/tools/lib64" | |
[ ${RECREATE} = 1 ] && ( |
This file has been truncated, but you can view the full file.
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
./support/android/apk/libs/armeabi/libmain.so: file format elf32-littlearm | |
DYNAMIC SYMBOL TABLE: | |
00000000 DF *UND* 00000000 __cxa_finalize | |
00000000 DF *UND* 00000000 __cxa_atexit | |
00000000 DF *UND* 00000000 ALooper_pollAll | |
03dfc930 g DF .text 00000024 _Unwind_Resume | |
04674618 g DO .data.rel.ro 00000008 _ZN101_$LT$compositor..IOCompositor$LT$Window$GT$$u20$as$u20$compositor_thread..CompositorEventListener$GT$20title_for_main_frame15__STATIC_FMTSTR17h299a6ec8b3595ebaE | |
04674604 g DO .data.rel.ro 00000014 _ZN101_$LT$compositor..IOCompositor$LT$Window$GT$$u20$as$u20$compositor_thread..CompositorEventListener$GT$20title_for_main_frame4_LOC17hac2ebc7a1797d0c1E |
This file has been truncated, but you can view the full file.
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
./support/android/apk/libs/armeabi/libmain.so: file format elf32-littlearm | |
DYNAMIC SYMBOL TABLE: | |
00000000 DF *UND* 00000000 __cxa_finalize | |
00000000 DF *UND* 00000000 __cxa_atexit | |
021ddfa4 g DF .text 00000024 _Unwind_Resume | |
028228ac g DO .data.rel.ro 00000008 _ZN101_$LT$compositor..IOCompositor$LT$Window$GT$$u20$as$u20$compositor_thread..CompositorEventListener$GT$20title_for_main_frame15__STATIC_FMTSTR17h1f3abecc80102320E | |
02822898 g DO .data.rel.ro 00000014 _ZN101_$LT$compositor..IOCompositor$LT$Window$GT$$u20$as$u20$compositor_thread..CompositorEventListener$GT$20title_for_main_frame4_LOC17h35f08431fe492b2bE | |
00ab5bc8 g DF .text 000015c4 _ZN10env_logger4init17h49b0d5078ddf2a01E |
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
// cc -std=c99 -g -O0 -Wall remove_all_spaces.c -o remove_all_spaces && gdb -ex r -ex q ./remove_all_spaces | |
// cc -DENABLE_BENCHMARK -std=c99 -O3 -Wall remove_all_spaces.c -o remove_all_spaces && ./remove_all_spaces | gnuplot -p - | |
#include <assert.h> | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
var colors = {}; | |
var elementsPerLine = 8; | |
function createSpanElement (color, text) { | |
var element = document.createElement('span'); | |
element.setAttribute('style', 'color:' + color); |
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
warning: file found to be present in multiple build targets: /tmp/quickcheck/quickcheck_macros/examples/attribute.rswarning: file found to be present in multiple build targets: /tmp/quickcheck/quickcheck_macros/examples/attribute.rs | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Compiling regex-syntax v0.3.4 | |
Compiling regex-syntax v0.3.4 | |
Compiling winapi Compiling winapi v0.2.8 v0.2.8 | |
Compiling Compiling log v0.log v0.3.3.6 | |
6 |
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
set height 0 | |
set pagination off | |
set disassembly-flavor intel | |
# Don't wrap line or the coloring regexp won't work. | |
set width 0 | |
# Create a named pipe to get outputs from gdb | |
shell test -e /tmp/coloutPipe && rm /tmp/coloutPipe | |
shell mkfifo /tmp/coloutPipe |