Skip to content

Instantly share code, notes, and snippets.

@metowolf
metowolf / .vimrc
Last active August 14, 2018 15:34
vimrc for ACM-ICPC with C++
set cin nu ts=4 sw=4 sts=4 mouse=a
syn on
function! Compile()
:!g++ -std=gnu++11 -g % -o %<.exe
endfunction
function! Run()
:!time ./%<.exe
endfunction
@zchee
zchee / build-llvm.bash
Last active April 25, 2025 03:21
Build llvm for OS X
#!/bin/bash
set -e
# Building LLVM on OSX CMake setup script
#
# Required:
# - clang by Xcode6 or later
# - cmake
# - ninja
#
@jbenner-radham
jbenner-radham / Makefile
Last active February 23, 2016 01:54 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active April 3, 2025 00:26
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@ryin
ryin / tmux_local_install.sh
Last active May 3, 2025 02:56
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@laohyx
laohyx / LaoRenren.py
Created January 23, 2012 04:42
LaoRenren - Laohyx Renren simulation processor in Python
#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
LaoRenren 人人网模拟登录类 v0.1 2012/1/22 除夕夜
以LaoWeb.py封闭的人人网模拟登录、发状态、传照片等类。
支持保存状态,避免验证码
那些GPL就不废话了,转载修改请注明原作者。
[email protected]
By Laohyx.