Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<Exports>
<Panels>
<PanelSettings>
<SortPriority>0</SortPriority>
<IsChecked>false</IsChecked>
<IsExpanded>true</IsExpanded>
<Enabled>true</Enabled>
<PanelName>シナジースキル効果時間表示</PanelName>
<ID>6b194dc1-e53b-488f-8c56-ccb945bc6e14</ID>
# -*- coding: utf-8 -*-
require 'eventmachine'
EM.run {
puts "Main thread => #{Thread.current}"
EM.add_periodic_timer(5.0){
puts "#{Thread.current} - main thread add_periodic_timer"
}
@curi1119
curi1119 / result
Last active August 29, 2015 14:08
どれぐらい正確に時を刻むか
----1------------------------
1414464532.262281
1414464532.414477
1414464532.565821
1414464532.718029
1414464532.870191
1414464533.021643
1414464533.173451
1414464533.325511
1414464533.476955
@curi1119
curi1119 / cubewatch.rb
Last active August 29, 2015 14:02
cubewatch.rb
# -*- coding: utf-8 -*-
def cmd(target, pane, remote_command)
command = "tmux send-keys -t:#{target}.#{pane} #{remote_command} C-m"
system command
end
def window(window_name)
system "tmux new-window -a -n #{window_name}"
end
@curi1119
curi1119 / sample_slide_flex4.as
Created March 23, 2012 17:37
AS Sample slide(Flex4.6 with tweener)
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="180" height="400"
clipAndEnableScrolling="true" creationComplete="init()">
<fx:Declarations>
<!-- 非ビジュアルエレメント (サービス、値オブジェクトなど) をここに配置 -->
</fx:Declarations>
<fx:Script>