Both the POST data and the expected response data are application/json
If a user posts one of the following in the channel:
Emoji: { | |
'sunny': '2600', | |
'zap': '26a1', | |
'leaves': '1f343', | |
'lipstick': '1f483', | |
'cop': '1f46c', | |
'wheelchair': '267f', | |
'fish': '1f413', | |
'hammer': '1f52c', | |
'moneybag': '1f4b0', |
# Usage: | |
# source iterm2.zsh | |
# iTerm2 tab color commands | |
# https://iterm2.com/documentation-escape-codes.html | |
if [[ -n "$ITERM_SESSION_ID" ]]; then | |
tab-color() { | |
echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
echo -ne "\033]6;1;bg;green;brightness;$2\a" |
// 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) |
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))) |
I hereby claim:
To claim this, I am signing this object:
import java.io.File; | |
import java.io.IOException; | |
import java.io.RandomAccessFile; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.FileChannel; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** |
import time | |
import json | |
from twitter import TwitterStream, OAuth | |
import requests | |
import settings | |
twitter_stream = TwitterStream( | |
auth=OAuth( |
#!/bin/zsh | |
typeset -A DONE | |
_dep() { | |
go list -f "{{if not .Standard}}{{printf \"\t%q -> %q;\n\" \"$1\" .ImportPath}}{{end}}" "$2" | |
} | |
_graph() { | |
if [ -z ${DONE[$1]} ] |