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
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
margin: 0; padding: 0 2px 0 2px; | |
white-space: nowrap; | |
font-family: "Lucida Grande"; | |
font-size: 10.5pt; | |
line-height: 22px; | |
} |
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
$.fn.peity.register('alarmline', $.extend({},$.fn.peity.defaults.line,{ | |
alarmColour: '#a00' | |
}), function (opts) { | |
$.fn.peity.graphers.line.apply(this, [opts]); | |
var values = this.values(); | |
if (values.length == 1) values.push(values[0]); | |
var min = Math.min.apply(Math, values.concat([opts.min])); | |
var max = Math.max.apply(Math, values.concat([opts.max])); |
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
Feature: Activity Feed | |
Scenario: Single user likes single photo | |
Given there are users A, B and C | |
And user A follows user B | |
And user C posted a photo P1 | |
When user B likes P1 | |
And after 10 minutes have passed | |
Then user A should see the following activities: |
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 := NewGrammar("Math", func(g GrammarInit) { | |
Digit := Accept("0123456789") | |
tNumber := NewLexItemType("Num") | |
Number := OneOrMore(Digit).CaptureAsWithConversion(tNumber, func(str string) interface{} { | |
val, _ := strconv.ParseInt(str, 10, 64) | |
return val | |
}) | |
tPlus := NewLexItemType("Plus") |
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
#!/bin/bash | |
EIP="$1" # "50.16.123.123" | |
ASG="$2" # "www" | |
if [ -z "$EIP" ] || [ -z "$ASG" ]; then | |
echo "Usage: $(basename $0) EIP ASG" | |
echo "Example: $(basename $0) 50.16.123.123 www" | |
exit 1; | |
fi |
Input (sample.en.yml
)
---
sample:
plural-key:
# This is a sample pluralisation key.
zero: "There are no monkeys"
one: "There is one monkey"
two: "There are two monkeys"
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
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>LOGITECH</vendorname> | |
<vendorid>0x046d</vendorid> | |
</devicevendordef> | |
<item> | |
<name>For Logitech Devices</name> | |
<item> | |
<name>Flip Scroll Wheel Vertical for Logitech Devices</name> |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template", | |
"Parameters" : { | |
"InstanceType" : { | |
"Description" : "WebServer EC2 instance type", | |
"Type" : "String", | |
"Default" : "m1.small", |
OlderNewer