This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Create() | |
{ | |
float x = 512.0f; | |
float y = 341.0f; | |
Mesh mesh = (Mesh)AssetDatabase.LoadAssetAtPath("Assets/UI/SimpleMesh.asset", typeof(Mesh)); | |
if( mesh == null) | |
{ | |
mesh = new Mesh(); | |
mesh.name = "SimpleMesh"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ::Capistrano | |
class Configuration | |
module Actions | |
module Rsync | |
def self.included(base) | |
base.send(:alias_method, :old_upload, :upload) | |
base.send(:alias_method, :upload, :new_upload) | |
end | |
def new_upload(from, to) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rds-modify-db-parameter-group {param-group-name} \ | |
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \ | |
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \ | |
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \ | |
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \ | |
--parameters="name=query_cache_type, value=1, method=pending-reboot" \ | |
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \ | |
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \ | |
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \ | |
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
PROJECT_DIR = File.dirname __FILE__ | |
UNITY_APP_PATH = "/Applications/Unity/Unity.app/Contents/MacOS/Unity" | |
UNITY_EDITOR_LOG_PATH = "~/Library/Logs/Unity/Editor.log" | |
Dir.glob('lib/tasks/**/*.rake').each{ |r| load r } | |
namespace "asset_bundle" do | |
desc "build asset bundle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); | |
audioManager.requestAudioFocus(new AudioService(), AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<receiver android:name="me.seiji.AudioReceiver" > | |
<intent-filter> | |
<action android:name="android.media.AUDIO_BECOMING_NOISY" /> | |
<action android:name="android.media.RINGER_MODE_CHANGED" /> | |
</intent-filter> | |
</receiver> |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一般的にはデフォルトの設定である | |
"Don't Create Position Independent Executables"NO | |
"Generate Position-Dependent Code", NO | |
であればPIE Binaryでビルドされるようです。 | |
またiOS Deployment TargetiOS4.3未満(Xcode4.5未満)にした場合は上記の設定が効かない | |
> otool -vh test.app/Test | |
http://stackoverflow.com/questions/16455416/non-pie-binary-the-executable-project-name-is-not-a-position-independent-e/16457732#16457732 |