Skip to content

Instantly share code, notes, and snippets.

# HG changeset patch
# Parent fde93adeda8d91c54211d002010c4476c27e8dcc
# Parent 04bb907f937cefc1a013ccdaa2e54569944b57a8
implement 'transparency' for Windows GUI
diff --git a/src/gui_w32.c b/src/gui_w32.c
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -50,6 +50,13 @@ static int gui_mswin_get_menu_height(int
# define gui_mswin_get_menu_height(fix_window) 0
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
#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){
@raa0121
raa0121 / gist:f8c9aaffa7e23facabb9
Created January 28, 2016 05:39
vim stacktrace
*** 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]
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
# 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
{
"name": "cocos2dx-clib-sample",
"version": "0.0.1",
"repo": "raa0121/cocos2dx-clib-sample",
"dependencies" : {
"cocos2d/cocos2d-x": "cocos2d-x-3.3"
},
"install": "make install"
}
(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"]
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(?:\/|:)/,"")
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