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
foo="1.jar:2.jar:3.jar" | |
echo ${foo[@]//.jar} | |
# => 1:2:3 |
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
def ears | |
yield self | |
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
module SetChain | |
NONDESTRUCTIVE = false | |
# Usage: | |
# foo.set_chain [:transaction, :response, :result, :score], [Transaction.new, ResponseType.new, Result.new, "42"] | |
# foo.transaction.response.result.score # => "42" | |
def set_chain(fields, values, destructive = true) | |
fields.zip(values).inject(self) do |member, (field, value)| | |
setter = "#{field}=" | |
if destructive |
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
// In each testcase script assertion: | |
// | |
import FileCompare | |
FileCompare.compareWithExpected(context, messageExchange) | |
// In our Script Library: | |
// | |
package filecompare | |
class FileCompare { |
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
def clever_girl | |
pending <<-EOVR | |
__ ______ | |
,^.__.>--"~~'_.--~_)~^. | |
_L^~ ~ (~ _.-~ \\. |\\ | |
CLEVER GIRL.... ,-~ __ __,^"/\\_A_/ /' \\ | |
/ ,-" "~~" _) \\ ~_,^ /\\ | |
// / ,-~\\ x~" \\._"-~ ~ _Y | |
Y' Y. (__.// / " , "\\_r ' ] | |
J-._l_>---r{ ~ \\__/ \\ _/ |
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
private static readonly Brush screenBrush_ = new SolidColorBrush(Color.FromArgb(0x7f, 0x7f, 0x7f, 0x7f)); | |
protected override void OnRender(DrawingContext drawingContext) | |
{ | |
drawingContext.DrawRectangle(screenBrush_, null, WindowRect()); | |
base.OnRender(drawingContext); | |
} | |
protected override Geometry GetLayoutClip(Size layoutSlotSize) | |
{ |
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
var el=document.getElementById('hplogo').children[0]; | |
setInterval(function() { | |
var evt = document.createEvent("KeyboardEvent"); | |
evt.initKeyEvent("keydown", true, true, null, false, false, false, false, 37, 0); | |
el.dispatchEvent(evt); | |
el.click(); | |
evt.initKeyEvent("keypress", true, true, null, false, false, false, false, 37, 0); | |
el.dispatchEvent(evt); | |
el.click(); | |
evt.initKeyEvent("keyup", true, true, null, false, false, false, false, 37, 0); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<style type="text/css"> | |
.chart { | |
width: 350px; | |
} | |
</style> | |
</head> |
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
{"description":"Another Inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.35552325581395344,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false} |
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
<div style="float:right"> | |
<input id="metric" value="week_billable"/> | |
<input id="h" type="range" min="0" max="120"/> | |
</div> | |
<div class="header"></div> |
OlderNewer