Both the POST data and the expected response data are application/json
If a user posts one of the following in the channel:
# works | |
# func({a: 1, b: 2}) | |
func | |
a: 1 | |
b: 2 | |
# doesn't work | |
# func(1, 2) | |
func | |
1 |
Emoji: { | |
'sunny': '2600', | |
'zap': '26a1', | |
'leaves': '1f343', | |
'lipstick': '1f483', | |
'cop': '1f46c', | |
'wheelchair': '267f', | |
'fish': '1f413', | |
'hammer': '1f52c', | |
'moneybag': '1f4b0', |
$ npm install thrift --loglevel info | |
npm info it worked if it ends with ok | |
npm info using npm@1.0.6 | |
npm info using node@v0.4.7 | |
npm info addNamed [ 'thrift', '' ] | |
npm info into /Users/wade/sandbox/ttest thrift@0.6.0-1 | |
npm info installOne thrift@0.6.0-1 | |
npm info unbuild /Users/wade/sandbox/ttest/node_modules/thrift | |
npm info preinstall thrift@0.6.0-1 | |
npm info build /Users/wade/sandbox/ttest/node_modules/thrift |
Emoji: { | |
'sunny': '2600', | |
'zap': '26a1', | |
'leaves': '1f343', | |
'lipstick': '1f483', | |
'cop': '1f46c', | |
'wheelchair': '267f', | |
'fish': '1f413', | |
'hammer': '1f52c', | |
'moneybag': '1f4b0', |
// log4j | |
private static final Logger log = LogManager.getLogger($CLASS_NAME$.class); |
from record_location import Base, engine | |
msg = 'Warning! This will drop your database. Please confirm:' | |
shall = True if raw_input("%s (y/N) " % msg).lower() == 'y' else False | |
if not shall: | |
print "Cancelled database drop and creation..." | |
else: | |
print "Dropping and creating the database..." | |
Base.metadata.drop_all(engine) |
FORMAT: 1A | |
## Data Structures | |
### A | |
### B | |
### C |
GO=$(firstword $(subst :, ,$(GOPATH))) | |
GOCOV=$(GO)/bin/gocov | |
GOCOVXML=$(GO)/bin/gocov-xml | |
# List of pkgs for the project | |
PKGS=$(shell go list ./...) | |
# Coverage output: coverage/$PKG/coverage.out | |
COVPKGS=$(addsuffix /coverage.out,$(addprefix coverage/,$(PKGS))) |
#!/usr/bin/env bash | |
set -u -e -o pipefail | |
go list -u -m -json all \ | |
| jq -r 'if (.Indirect | not) and .Update then "\(.Path)\t\(.Version)\t\(.Update.Version)" else "" end' \ | |
| sed -E 's/v[0-9]\.0\.0-[0-9]+-//g' \ | |
| sed -E 's/golang.org\/x\//github.com\/golang\//g' \ | |
| while read -r NAME A B | |
do |