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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "sum:astria.astria.api.count{$commit,$host,$environment,!respcode:200,!respcode:402,!respcode:422,!respcode:403} by {endpoint,respcode}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "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
# System-wide .bashrc file for interactive bash(1) shells. | |
if [ -z "$PS1" ]; then | |
return | |
fi | |
PS1='\u@\h:\w\$ ' | |
# Make bash check its window size after a process completes | |
shopt -s checkwinsize | |
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM" |
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
benchmark iterations time/iteration delta delta% | |
--------- ---------- -------------- ----- ------ | |
BenchmarkV1 50000 380653 ns/op | |
BenchmarkV2 100000 355788 ns/op -24865 -6.5% | |
BenchmarkV3 100000 357934 ns/op -22719 -5.9% |
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
assert.Equal(t, $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
func do(a int, b int) int { | |
return a + b | |
} |
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
amount := 12.34 | |
ID := int64(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
// Color is a custom type (enum) to improve my code readibility | |
type Color int64 |
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 | |
# ====================== | |
# Download the tools | |
# ====================== | |
go get code.google.com/p/go.tools/cmd/goimports | |
go get github.com/golang/lint/golint | |
# ====================== | |
# Clean the Code |
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 properties | |
project.group = 'org.sage42.sample' | |
project.version = '1.0.0' | |
// standard android plugin | |
apply plugin: 'android' | |
// plugin with signing (aka deploying) APKs | |
apply plugin: 'signing' |
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
/** | |
* Verify that clicking the button shows a toast with "Ouch" | |
*/ | |
public void testOnClickMe() | |
{ | |
final Solo solo = this.getSolo(); | |
// click the button | |
solo.clickOnButton(this.getContext().getString(R.string.main_click_me)); |
NewerOlder