Skip to content

Instantly share code, notes, and snippets.

View gist:2810e43552b3c36a6187
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index 9bb26aa..e5c9933 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -444,7 +444,11 @@ endif
endif
ifdef LUA
+ifeq (yes, $(LUAJIT))
+CFLAGS += -I$(LUA)/include/$(LUAJIT_VER) -DFEAT_LUA
View fib.cpp
#include <iostream>
#include <string>
#include <gmpxx.h>
enum { BASE = 10 };
mpz_class fib(mpz_class n) {
if (0 == n) {
return 0;
} else if(1 == n){
View gist:f8c9aaffa7e23facabb9
*** glibc detected *** vim: munmap_chunk(): invalid pointer: 0x0000000002686e60 ***
======= Backtrace: =========
vim(screenclear+0x12)[0x53e732]
vim(set_shellsize+0xb7)[0x582f57]
vim[0x50b968]
vim[0x50d6e4]
vim(mch_inchar+0xa3)[0x50f873]
vim(ui_inchar+0xc5)[0x5873c5]
vim(inchar+0x1d6)[0x4a7266]
vim[0x4a9122]
View url.coffee
Spooky = require 'spooky'
module.exports = (robot) ->
robot.hear /(https?:\/\/.*)$/i, (msg) ->
url = RegExp.$1
spooky = new Spooky
child:
command: './node_modules/.bin/casperjs'
casper:
logLevel: 'debug',
verbose: true
View redis.rb
# encoding: utf-8
require 'java'
require 'singleton'
import 'redis.clients.jedis.Jedis'
import 'redis.clients.jedis.JedisPool'
import 'redis.clients.jedis.JedisPoolConfig'
module Rukkit
class Redis
View package.json
{
"name": "cocos2dx-clib-sample",
"version": "0.0.1",
"repo": "raa0121/cocos2dx-clib-sample",
"dependencies" : {
"cocos2d/cocos2d-x": "cocos2d-x-3.3"
},
"install": "make install"
}
View project.clj
(defproject TestGame "1.0.0-SNAPSHOT"
:description "libGDX TestGame Ploject"
:dependencies [com.badlogicgames.gdx/gdx "1.5.0"]
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:repositories ["org.sonatype.snapshot" {:url "https://oss.sonatype.org/content/repositories/snapshots/"}
"org.sonatype.releases" {:url "https://oss.sonatype.org/content/repositories/releases/"}]
:javac-target "1.8"
:javac-source "1.8"
:javac-options ["-d" "classes/" "-Xlint:all"]
View hoge.rb
require 'open-uri'
require 'json'
hoge = {}
urls = []
urls << JSON.parse(open("http://vim-jp.org/reading-vimrc/json/archives.json").read).map{|j|j["vimrc"].map{|v| v["raw_url"] }}
urls.flatten.uniq.map{|url|
begin
file = open(url).read.encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "").split("\n")
file.select{|i|
j = i.sub(/git:\/\/github\.com(?:\/|:)/,"")
View plugin_ranking.txt
67 : Shougo/unite.vim
60 : Shougo/vimproc
58 : thinca/vim-quickrun
56 : tpope/vim-fugitive
53 : Shougo/neobundle.vim
48 : tpope/vim-surround
45 : Shougo/vimfiler
44 : mattn/webapi-vim
43 : thinca/vim-ref
42 : Shougo/neocomplcache
View plugin_ranking.txt
46 : Shougo/unite.vim
42 : Shougo/vimproc
40 : thinca/vim-quickrun
38 : tpope/vim-fugitive
33 : thinca/vim-ref
32 : mattn/webapi-vim
31 : tpope/vim-surround
29 : Shougo/neocomplcache
27 : tyru/open-browser.vim
26 : Shougo/vimshell
You can’t perform that action at this time.