Skip to content

Instantly share code, notes, and snippets.

View kjunichi's full-sized avatar

Junichi Kajiwara kjunichi

View GitHub Profile
@kjunichi
kjunichi / TheReasonWhy.md
Created September 11, 2012 07:54
俺が最近MacBook Pro Retinaを使っているワケ

http://kjunichi.cocolog-nifty.com/misc/

Appleが特別好きというよりは、最近は嫌いかも。

どんなところが嫌いか

たいしたことないのに、偉そうな宣伝文句 初代MacBook AirのKernel Task問題に悩まされたこと。

Windows機でLinux入れて最新環境を突き進むには歳取りすぎた。

@kjunichi
kjunichi / file0.txt
Created September 13, 2012 00:11
Three.js CanvasRendererだと。。 ref: http://qiita.com/items/742bfeb3051925e64858
wireframe:false
<!-- Place this tag in your head or just before your close body tag. -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'ja'}
</script>
<!-- Place this tag where you want the badge to render. -->
<div class="g-plus" data-width="138" data-href="//plus.google.com/104714357616333459383" data-rel="author"></div>
@kjunichi
kjunichi / genFishEyePicture.js
Created September 14, 2012 06:20
魚眼レンズ風に画像変換する
function genFishEyePicture(srcImageData) {
//
var width = srcImageData.width;
var height = srcImageData.height;
var kk=width*0.5;
var ll=height*0.5;
var destImageData = ctx.createImageData(width,height);
console.log(destImageData.width+","+destImageData.height);
@kjunichi
kjunichi / gist:3736959
Created September 17, 2012 12:12
Symbol not found: _g_arg_info_get_closure
DYLD_LIBRARY_PATH=/System/Library/Frameworks/ImageIO.framework/Resources:/usr/local/lib:/usr/local/Cellar/gobject-introspection/1.32.1/lib/
$ python3 pygtest.py
Traceback (most recent call last):
File "pygtest.py", line 2, in <module>
from gi.repository import Gtk
File "/usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/__init__.py", line 23, in <module>
from ._gi import _API, Repository
ImportError: dlopen(/usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/_gi.so, 2): Symbol not found: _g_arg_info_get_closure
Referenced from: /usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/_gi.so
@kjunichi
kjunichi / LsystemWithJs.md
Created September 20, 2012 00:46
LSystem Fractal Plant demo
@kjunichi
kjunichi / file0.txt
Created September 20, 2012 04:13
Google App Engine上でRingoJSを動かしている時の備忘録 ref: http://qiita.com/items/6a5c376fd04130edb4ec
importPackage(Packages.com.google.appengine.api.datastore);
@kjunichi
kjunichi / Viva_iOS6.js
Created September 20, 2012 07:44
Picture Upload Serer side javascript source for RingoJS runnning on Google App Engine
// forked from kjunichi's "Jsdo.itでサーバサイドJavaScript テンプレート" http://jsdo.it/kjunichi/ipadt
function convertArray(type, arr) {
var jArr = java.lang.reflect.Array.newInstance(type, arr.length);
for (var i = 0; i < arr.length; i++) {
if(arr[i]<0){
jArr[i]=0;
} else {
if(arr[i] > 127) {
jArr[i]= arr[i]-256;
} else {
@kjunichi
kjunichi / error.log
Created September 20, 2012 15:53
Pro:gobject-introspection-1.33.14
I'm using HomeBrew
checking for /usr/local/bin/python3 script directory... ${prefix}/lib/python3.2/site-packages
checking for /usr/local/bin/python3 extension module directory... ${exec_prefix}/lib/python3.2/site-packages
checking for headers required to compile python extensions... not found
configure: error: Python headers not found
cd /usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/include
ln -s python3.2m python3.2
@kjunichi
kjunichi / road2ninix.md
Created September 21, 2012 00:17
gobject-introspection on Python3

gobject-introspectionの最新版と思われるソースを

./configure

すると、

print sys...