Skip to content

Instantly share code, notes, and snippets.

View MrOrz's full-sized avatar
💤
Sleepy everyday

Johnson Liang MrOrz

💤
Sleepy everyday
View GitHub Profile
@MrOrz
MrOrz / gist:1014868
Created June 8, 2011 17:24
Code::Blocks compiler info
C:\Program Files (x86)\CodeBlocks\MinGW\bin>"g++.exe" -v
Using built-in specs.
Target: mingw32
Configured with: ../../gcc-4.4.1/configure --prefix=/mingw --build=mingw32 --ena
ble-languages=c,ada,c++,fortran,objc,obj-c++ --disable-nls --disable-win32-regis
try --enable-libgomp --enable-cxx-flags='-fno-function-sections -fno-data-sectio
ns' --disable-werror --enable-threads --disable-symvers --enable-version-specifi
c-runtime-libs --enable-fully-dynamic-string --with-pkgversion='TDM-2 mingw32' -
-enable-sjlj-exceptions --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php
Thread model: win32
@MrOrz
MrOrz / hexHighlight.vim
Created August 12, 2011 11:26
hexHighlight.vim supporting #AAA syntax
"gvim plugin for highlighting hex codes to help with tweaking colors
"Last Change: 2010 Jan 21
"Maintainer: Yuri Feldman <feldman.yuri1@gmail.com>
"License: WTFPL - Do What The Fuck You Want To Public License.
"Email me if you'd like.
let s:HexColored = 0
let s:HexColors = []
map <Leader><F2> :call HexHighlight()<Return>
function! HexHighlight()
@MrOrz
MrOrz / bitmap.h
Created September 7, 2011 06:16
bitmap.h for windows
#ifndef __BITMAP__
#define __BITMAP__
#include <string>
#include <cstdio>
#include <windows.h>
#include <wingdi.h>
using namespace std;
@MrOrz
MrOrz / spec.md
Created March 8, 2012 07:16
vebdew SPEC

vebdew SPEC

Head elements

:title :description :author :email

@MrOrz
MrOrz / Sample input
Created March 8, 2012 07:47
Sample output
:description 不囉唆學 CSS。以 reveal.js 製作的 HTML / CSS / JS 投影片。
:author MrOrz
:email johnsonliang7@gmail.com
:stylesheet_link_tag css/main.css, css/style.css, css/sample.css, css/jquery-ui.css
:stylesheet_link_tag css/ruler.css, css/zenburn.css
:javascript_include_tag js/jquery.min.js
:javascript_include_tag https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
:javascript_include_tag js/reveal.js, lib/highlight.js, js/ruler.js, js/sample.js
@MrOrz
MrOrz / fbidinject.js
Created April 18, 2012 11:36
This bookmart script adds fbid of each post in facebook into the selector button on the top-right of each post.
(function(){
var elems = document.querySelectorAll('.uiUnifiedStory.uiStreamStory.genericStreamStory');
for(var i = 0; i < elems.length; ++i){
var el = elems[i], a = el.querySelector('.uiSelectorButton.highlightSelectorButton');
if(!a){continue;}
a.href = JSON.parse(el.dataset.ft).fbid;
}
return false;
}())
@MrOrz
MrOrz / gist:2565556
Created May 1, 2012 06:19 — forked from andrewytliu/gist:1946506
2012 CCSP schedule
3/1
HTML, CSS, Layout
3/8
HTML, CSS, Layout
Project teams
HW1: CSS
DUE 3/20
*.mat
*.eps
@MrOrz
MrOrz / .gdbinit
Created October 13, 2012 09:37
Simple GDB Macros writen by Dan Marinescu (H-PhD)
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file