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
@Test | |
public void testRef() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, | |
SecurityException, NoSuchMethodException { | |
RefTest instance = new RefTest(); | |
Class params[] = {}; | |
Method thisMethod = RefTest.class.getDeclaredMethod("getA", params); | |
String s = thisMethod.invoke(instance, new Object[0]).toString(); | |
Assert.assertEquals("b", s); | |
} |
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
Date dt = new Date(); | |
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd_HH-mm"); | |
setTest(df.format(dt)); |
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
@mixin clearfix { | |
*zoom: 1; | |
&:before, | |
&:after { | |
display: table; | |
content: ""; | |
} | |
&:after { | |
clear: both; | |
} |
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
"%g" % ("%0.2f" % 16.4555) |
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
@font-face { | |
font-family: "PlutoSansCondexLight"; | |
src: url("plutosanscondexlight.eot"); /* IE9 Compat Modes */ | |
src: url("plutosanscondexlight.eot?iefix") format("eot"), /* IE6-IE8 */ | |
url("plutosanscondexlight.woff") format("woff"), /* Modern Browsers */ | |
url("plutosanscondexlight.ttf") format("truetype"), /* Safari, Android, iOS */ | |
url("plutosanscondexlight.svg#PlutoSansCondexLight") format("svg"); /* Legacy iOS */ | |
font-weight: normal; | |
font-style: normal; | |
} |
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
@mixin center($width, $height) { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
height: $height; | |
width: $width; | |
margin-left: - $width / 2; | |
margin-top: - $height / 2; | |
} |
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 Jekyll | |
# Sass plugin to convert .scss to .css | |
# | |
# Note: This is configured to use the new css like syntax available in sass. | |
require 'sass' | |
class SassConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) |
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
# Put this file in '_plugins/' and write a YAML header to your .coffee files (i.e. "---\n---\n") | |
module Jekyll | |
require 'coffee-script' | |
class CoffeeScriptConverter < Converter | |
safe true | |
priority :normal | |
def matches(ext) | |
ext =~ /coffee/i | |
end |
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
.ir { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
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
nohup node app.js & | |
ps -ef | grep "app.js" |
OlderNewer