Skip to content

Instantly share code, notes, and snippets.

View take-cheeze's full-sized avatar
💤

Takeshi Watanabe take-cheeze

💤
View GitHub Profile
(add-to-list 'load-path "~/Dropbox/config/emacs/site-lisp")
;; sync clipboard
(setq x-select-enable-clipboard t)
;; backspace and C-h problem
(define-key key-translation-map [?\C-h] [?\C-?])
(global-set-key [(hyper h)] 'help-command)
;; indent setting
@take-cheeze
take-cheeze / main.js
Created September 13, 2012 11:47
Twitter APIからRSSを生成してみた
#!/usr/bin/env node
var
$ = require('jquery')
, express = require('express')
, fs = require('fs')
, querystring = require('querystring')
, request = require('request')
, RSS = require('rss')
, Twit = require('twit')
class A {
v = 0
function bar() { v++; }
}
function setTimeout(func, delay, this_ = getroottable() {
delayFunc(delay)
return func.bindenv(this_)()
}
diff --git a/src/reader_util.cpp b/src/reader_util.cpp
index 9ae7087..e5194de 100644
--- a/src/reader_util.cpp
+++ b/src/reader_util.cpp
@@ -30,10 +30,14 @@
#include <cstdlib>
#include <cstring>
#include <sstream>
+#include <vector>
;; git core.whitespace
(add-hook
'c-mode-common-hook
(lambda()
(let (core-whitespace)
(setq core-whitespace
(shell-command-to-string
(concat "git --exec-path="
(file-name-directory (buffer-file-name))
#include <iostream>
#include <cstdlib>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
namespace fs = boost::filesystem;
bool is_rpg2k_project(fs::path const& p)
{
#ifndef EASYRPG_TINY_READER
#define EASYRPG_TINY_READER
#include <istream>
#include <vector>
#include <string>
#include <boost/cstdint.hpp>
#include <boost/container/flat_map.hpp>
#include <boost/detail/endian.hpp>
#include "tiny_reader.hxx"
#include "picojson.hxx"
#include <iconv.h>
namespace LCF {
namespace detail {
template<class F>
#ifndef EASYRPG_TINY_READER_FWD
#define EASYRPG_TINY_READER_FWD
#include <boost/shared_ptr.hpp>
#include <boost/container/vector.hpp>
class picojson;
namespace LCF {