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
Verifying that +gphil is my openname (Bitcoin username). https://onename.io/gphil |
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
(defn run-job | |
[] | |
(future sub-job-1) | |
(future sub-job-2) | |
(future sub-job-3) | |
(future sub-job-4)) | |
(run-job) |
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
SELECT icps.city, icps.state, icps.ice_cream_parlor | |
FROM ice_cream_parlors icps | |
INNER JOIN ( | |
SELECT city, state, count(ice_cream_parlor) icp_count | |
FROM ice_cream_parlors icps | |
GROUP by city, state | |
) sq | |
ON icps.city = sq.city and icps.state = sq.state | |
GROUP BY icps.city, icps.state, icps.ice_cream_parlor | |
WHERE sq.icp_count > 5; |
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
SELECT city, state, ice_cream_parlor | |
FROM ice_cream_parlors icps | |
GROUP BY city, state | |
HAVING count(ice_cream_parlor) > 5; |
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
[org.slf4j/slf4j-log4j12 "1.6.6"] |
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
[org.clojure/tools.logging "0.2.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
[log4j "1.2.15" :exclusions [javax.mail/mail | |
javax.jms/jms | |
com.sun.jdmk/jmxtools | |
com.sun.jmx/jmxri]] |
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
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. |
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
log4j.rootLogger=DEBUG, standard | |
log4j.appender.standard = org.apache.log4j.RollingFileAppender | |
log4j.appender.standard.File = logs/standard.log | |
log4j.appender.standard.MaxFileSize=1MB | |
log4j.appender.standard.MaxBackupIndex=1 | |
log4j.appender.standard.layout=org.apache.log4j.PatternLayout | |
log4j.appender.standard.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n |
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
def score(dice) | |
d = {} | |
dice.each do |i| | |
d[i] ||= 0 | |
d[i] += 1 | |
end | |
n = 0 | |
d.each do |k, v| | |
if v >= 3 | |
if k == 1 |