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
-- Skype Mute, Version 1.1 | |
-- Copyright (c) 2008 Chuck Burt. All rights reserved. | |
-- http://www.chuckburt.com/ | |
-- | |
-- This program is free software; you can redistribute it and/or modify | |
-- it under the terms of the GNU General Public License as published by | |
-- the Free Software Foundation; either version 2 of the License, or | |
-- (at your option) any later version. | |
-- | |
-- This program is distributed in the hope that it will be useful, |
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
{ | |
"description": "JSON and JSON SMILE encoding, fast.", | |
"group": "cheshire", | |
"name": "cheshire", | |
"namespaces": { | |
"cheshire.core": [ | |
{ | |
"arglists": [ | |
[ | |
"reader", |
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
∴ lein2 all test | |
Performing task 'test' with profile(s): 'dev,1.2' | |
Testing clj-http.test.client | |
Testing clj-http.test.cookies | |
Testing clj-http.test.core | |
Ran 47 tests containing 175 assertions. |
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
‹ ~/src/clj/cheshire master⚡ › ∴ echo $JAVA_OPTS | |
-Dfile.encoding=UTF-8 -Dslime.encoding=UTF-8 -Xmx512m -XX:+HeapDumpOnOutOfMemoryError | |
‹ ~/src/clj/cheshire master⚡ › ∴ lein repl | |
Error occurred during initialization of VM | |
java.nio.charset.IllegalCharsetNameException: UTF-8 -Dslime.encoding=UTF-8 -Xmx512m -XX:+HeapDumpOnOutOfMemoryError | |
at java.nio.charset.Charset.checkName(Charset.java:284) | |
at java.nio.charset.Charset.lookup2(Charset.java:458) | |
at java.nio.charset.Charset.lookup(Charset.java:437) | |
at java.nio.charset.Charset.defaultCharset(Charset.java:579) | |
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:37) |
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
[2011-10-25 16:55:48,055][DEBUG][action.search.type ] [Animus] [test-account-id-0][0], node[mN5HrUzxRYSOwzYjmxEUhQ], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@19b12fb] | |
org.elasticsearch.ElasticSearchParseException: failed to parse / load source | |
at org.elasticsearch.search.lookup.SourceLookup.loadSourceIfNeeded(SourceLookup.java:69) | |
at org.elasticsearch.search.lookup.SourceLookup.extractValue(SourceLookup.java:131) | |
at org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:186) | |
at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:308) | |
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:224) | |
at org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsy |
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
#!/usr/bin/env ruby | |
tests = 0 | |
assertions = 0 | |
failures = 0 | |
errors = 0 | |
args = ARGV.join(" ") | |
IO.popen("lein test #{args}").each_line do |line| |
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
;; Clojure 1.2.1 | |
user=> (float 3.14) | |
3.14 | |
;; Clojure 1.3.0-alpha6 | |
user=> (float 3.14) | |
3.140000104904175 |
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
‹ ~/src/clj/jsontest master› ∴ lein repl | |
REPL started; server listening on localhost:46243. | |
user=> (use 'jsontest.core) | |
nil | |
user=> (testit) | |
Clojure version: 1.2.1 | |
Num roundtrips: 100000 | |
Trail: 1 | |
cheshire 2.48 |
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
;; taken from src/subrosa/commands.clj | |
(defcommand privmsg [channel args] | |
(let [[recipient received-msg] (.split args " " 2) | |
msg (format ":%s PRIVMSG %s %s" | |
(format-client channel) recipient received-msg)] | |
(if (not (empty? recipient)) | |
(if (not (nil? received-msg)) | |
(if (room-for-name recipient) | |
(do |
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
;; extracted from src/subrosa/netty.clj | |
(defn upstream-stage [handler] | |
(reify ChannelUpstreamHandler | |
(handleUpstream [_ ctx evt] | |
(.sendUpstream ctx (or (handler evt) evt))))) | |
(defn downstream-stage [handler] | |
(reify ChannelDownstreamHandler | |
(handleDownstream [_ ctx evt] |