Skip to content

Instantly share code, notes, and snippets.

View Reiot's full-sized avatar

Ray Yun Reiot

  • SOFTNYX
  • Seoul, Korea
View GitHub Profile
@Reiot
Reiot / gist:d787a4b319c4d54cbf325183cbe0f9e1
Last active November 2, 2022 12:33
fix cannot find c++ header in recent mac OS
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
../node_modules/nan/nan.h:50:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
# install command line tools
> xcode-select --install
> xcrun --show-sdk-path
@Reiot
Reiot / gist:3274251
Created August 6, 2012 12:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
GID_TABLE = {
'od6': 0,
'od7': 1,
'od4': 2,
'od5': 3,
'oda': 4,
'odb': 5,
'od8': 6,
'od9': 7,
'ocy': 8,
@Reiot
Reiot / wordpress2octopress.py
Created September 24, 2011 14:21
Wordpress.com xml ==> octopress markdown migration script
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
import os
import re
import yaml
import urllib
import codecs
from datetime import datetime
from BeautifulSoup import BeautifulStoneSoup, Comment
@Reiot
Reiot / gist:940224
Created April 25, 2011 06:13
Reverse List Iteration
l = [1,2,3,4,5]
for v in reversed(l):
print v
for v in l[::-1]:
print v
<?xml version="1.0"?>
<project name="moveit" default="build" basedir="./">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${basedir}/Documents/Works/warcloud/build/tools/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<target name="build">
<var name="file.default" value="idle"/>
<foreach param="file.name" target="moveit">