This file contains hidden or 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> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| adb shell sendevent /dev/input/event0 3 57 1189 | |
| adb shell sendevent /dev/input/event0 3 48 10 | |
| adb shell sendevent /dev/input/event0 3 58 34 | |
| adb shell sendevent /dev/input/event0 3 53 340 # x | |
| adb shell sendevent /dev/input/event0 3 54 1100 # y | |
| adb shell sendevent /dev/input/event0 0 0 0 | |
| adb shell sendevent /dev/input/event0 3 57 4294967295 | |
| adb shell sendevent /dev/input/event0 0 0 0 |
This file contains hidden or 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
| case landscapeLeft: return CGAffineTransformIdentity; | |
| case landscapeRight: return CGAffineTransformIdentity; |
This file contains hidden or 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
| gconftool-2 --set --type string /apps/gnome-terminal/profiles/Default/font "Ricty 11" | |
| gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false | |
| gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false | |
| gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3" | |
| gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636" | |
| gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#65657B7B8383" |