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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
/** | |
* 管理者のアカウントを取り扱うモジュール | |
*/ | |
trait AdminSecure { | |
import play.api.mvc.Results._ |
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
<project xmlns:ivy="antlib:org.apache.ivy.ant"> | |
<condition property="ivy.home" value="${env.IVY_HOME}"> | |
<isset property="env.IVY_HOME" /> | |
</condition> | |
<property name="ivy.home" value="${user.home}/.ivy2" /> | |
<property name="ivy.install.dir" value="${ivy.home}/lib" /> | |
<property name="ivy.install.dest" value="${ivy.install.dir}/ivy.jar" /> | |
<target name="-check-ivy-user-installed" description="check ivy jar file existence on user's ivy home"> | |
<available file="${ivy.install.dest}" property="ivy.install.dest.exisits" /> |
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
recording.sh 10 |
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
-I rc mms://a33.l12993146032.c129931.g.lm.akamaistream.net/D/33/129931/v0001/reflector:46032 :sout='#transcode{acodec=mp4a}:std{access=file,mux=mp4,dst=test.mp4} |
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
object LoanPatternLock { | |
import java.util.concurrent.locks.{Lock, ReadWriteLock} | |
def lockWith[A <% Lock, B](l: A)(e: => B) = { | |
l.lock() | |
try e finally l.unlock() | |
} | |
def readLockWith[A <% ReadWriteLock, B](l: A)(e: => B) = | |
lockWith(l.readLock)(e) |
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
import java.beans.{PropertyChangeListener, PropertyChangeSupport, PropertyChangeEvent} | |
trait PropertyChangePublisher { | |
private lazy val propertyChangeSupport = new PropertyChangeSupport(this) | |
def addPropertyChangeListener(listener: PropertyChangeListener) = | |
propertyChangeSupport.addPropertyChangeListener(listener) | |
def removePropertyChangeListener(listener: PropertyChangeListener) = | |
propertyChangeSupport.removePropertyChangeListener(listener) |
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
public class LimitValueTest { | |
@Test | |
public void limitOfInteger() { | |
assertEquals(2147483647, Integer.MAX_VALUE); | |
assertEquals(0x7fffffff, Integer.MAX_VALUE); | |
assertEquals(-2147483648, Integer.MIN_VALUE); | |
assertEquals(-0x80000000, Integer.MIN_VALUE); | |
} | |
@Test |
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
import javax.swing.JFrame; | |
public class ViewTest { | |
ViewTest craeteView() { | |
return new ViewTest(); | |
} | |
public static void main(String[] args) { | |
final ViewTest test = new ViewTest(); | |
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
import static org.junit.Assert.*; | |
import java.awt.Color; | |
import org.junit.Test; | |
public class AlphaDigitsHexNumberColorDecodingTest { | |
@Test | |
public void decodeHexStringToColor() { | |
Color color = Color.decode("#000000"); |
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
import static javax.swing.SpringLayout.*; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import javax.swing.BorderFactory; | |
import javax.swing.JLabel; | |
import javax.swing.JPanel; | |
import javax.swing.JScrollPane; | |
import javax.swing.JTable; |
NewerOlder