Skip to content

Instantly share code, notes, and snippets.

View hkrn's full-sized avatar

hkrn hkrn

  • Japan
  • 06:30 (UTC +09:00)
View GitHub Profile
@hkrn
hkrn / glslopt.qbs
Created March 2, 2014 11:54
QBS port of cmake file of GLSLOptimizer
/**
Copyright (c) 2010-2014 hkrn
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
@hkrn
hkrn / CMakeLists.txt
Created December 29, 2010 16:47
Library_MMDFiles の POSIX (といっても実作業の環境上 MacOSX と Linux での確認だけど) で共有ライブラリを作成できるようにするためのパッチです。64bit にも対応します。ライセンスは MMDAgent と同じく修正 BSD ライセンスです。
#
# build libGLee (OpenGL easy extension)
#
cmake_minimum_required(VERSION 2.6)
project(GLee)
add_library(GLee SHARED GLee.c GLee.h)
# link against Foundation.framework
@hkrn
hkrn / gist:802926
Created January 30, 2011 15:09
CMake のための alias
# cmake が生成したファイルを削除する
alias cmake_clean='rm -rf build Makefile CMakeCache.txt CMakeFiles CMakeScripts install_manifest.txt *.a *.lib *.dll* *.dylib* *.so*'
# cmake で Xcode 用のプロジェクトファイルを生成する
alias cmake_xcode='cmake -G "Xcode"'
# Bullet のデバッグビルドを生成するときの cmake のエイリアス
alias bullet_osx_lib_dev='cmake -DCMAKE_BUILD_TYPE:STRING=DEBUG -DBUILD_DEMOS:BOOL=OFF -DBUILD_EXTRAS:BOOL=OFF -DBUILD_MINICL_OPENCL_DEMOS:BOOL=OFF -DBUILD_CPU_DEMOS:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_OSX_ARCHITECTURES="i386;x86_64"'
# libMMDME / libMMDAI のデバッグビルドを生成するときの cmake のエイリアス
alias mmdai_osx_lib_dev='cmake -DFIND_BULLET_BY_PKGCONFIG:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=DEBUG -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_OSX_ARCHITECTURES="i386;x86_64"'
# libMMDME / libMMDAI のデバッグビルドを生成するときのビルドするときの cmake のエイリアス
@hkrn
hkrn / translate_english_oekakiko.js
Created August 11, 2012 12:33
お絵カキコの UI を英語に翻訳するためのヘルパー...だったはずのもの
// ==UserScript==
// @name translate_english_oekakiko.js
// @namespace https://github.com/hkrn/
// @description The helper of translating Oekakiko to english
// @include http://dic.nicovideo.jp/p/oekaki/*
// ==/UserScript==
// code from http://stackoverflow.com/questions/2246901/how-can-i-use-jquery-in-greasemonkey-scripts-in-google-chrome
function addjQuery(callback) {
var script = document.createElement("script");
@hkrn
hkrn / build_devil.sh
Created August 14, 2012 13:28
ビルド設定用
#!/bin/sh
#
# based on devil-1.7.8
#
export LIBJPEG_PATH=`pwd`/../jpeg-8d/x86_64
export LIBPNG_PATH=`pwd`/../libpng-1.5.12/x86_64
export CFLAGS="-I$LIBJPEG_PATH/include -L$LIBJPEG_PATH/lib -I$LIBPNG_PATH/include -L$LIBPNG_PATH/lib -arch i386"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-L$LIBJPEG_PATH/lib -L$LIBPNG_PATH/lib"
@hkrn
hkrn / MMD.json.md
Created March 24, 2013 11:40
MikuMikuDance Manifest Declaration a.k.a MMD.json の仕様書のドラフトです

※注意

まだ正式版として発行する前のドラフトです

MMD.json

MikuMikuDance Manifest Declaration Format Specification

これは MikuMikuDance Manifest Declaration (以下 MD) の仕様書です。

@hkrn
hkrn / AntTweakBar.qbs
Last active January 1, 2016 23:39
QBS file for AntTweakBar
/**
Copyright (c) 2010-2013 hkrn
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
@hkrn
hkrn / README.md
Last active February 8, 2019 04:40
nanoem のマニュアル

nanoem

2017/8/5 付で readthedocs に移動しました

This document has been moved to readthedocs since 8/5/2017

- key: nanoem.gui.unimplemented
phrase:
en_US: Currently Unavailable due to unimplemented
ja_JP: 未実装のため現在利用不可
- key: nanoem.gui.camera
phrase:
en_US: Camera
ja_JP: カメラ
- key: nanoem.gui.keyframe.copy
phrase: