<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
(defn md5-sum | |
"Compute the hex MD5 sum of a string." | |
[#^String input] | |
(let [alg (doto (MessageDigest/getInstance "MD5") | |
(.update (.getBytes input))) | |
hash (.toString (new BigInteger 1 (.digest alg)) 16) | |
length (.length hash)] | |
(if (> 32 length) | |
;; 0x065 => 65, leading zero is dropped by BigInteger | |
(apply str (concat (repeat (- 32 length) \0) hash)) |
(doseq [[k v] db] (prn k v)) |
(exec-raw ["select count(*) alg from av_content where caseid = ?" [case-id]] :results) |
find src/java -name "*.java" | xargs javac -Xlint:unchecked -encoding utf8 -cp "classes:lib/*:src/" -d classes -sourcepath src/java/ |
Map map = new HashMap(); | |
Iterator iter = map.entrySet().iterator(); | |
while (iter.hasNext()) { | |
Map.Entry entry = (Map.Entry) iter.next(); | |
Object key = entry.getKey(); | |
Object val = entry.getValue(); | |
} |
var QueryString = function () { | |
// This function is anonymous, is executed immediately and | |
// the return value is assigned to QueryString! | |
var query_string = {}; | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
// If first entry with this name | |
if (typeof query_string[pair[0]] === "undefined") { |
#!/bin/bash | |
# Sync Homebrew installations between Macs via Dropbox | |
# | |
BREW="/usr/local/bin/brew" | |
# first get local settings | |
echo "Reading local settings ..." | |
rm -f /tmp/brew-sync.* |
sudo apt-get install ghostscript
iapi.h
etc) which are required but don't come with the default Ghostscript package: sudo apt-get install libgs-dev
sudo apt-get install gs-esp
sudo apt-get --purge remove imagemagick
cd ImageMagick-xx
./configure --with-gslib=yes
[and what else you need]gslib yes yes
and not gslib yes no
make
make install
convert -list configure | grep DELEGATES
=> DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib
// borrowed from http://stackoverflow.com/questions/4006324/how-to-atomically-delete-keys-matching-a-pattern-using-redis | |
EVAL "return redis.call('del', unpack(redis.call('keys', ARGV[1])))" 0 bearyboard:* | |
redis-cli KEYS "prefix:*" | xargs redis-cli DEL |