Skip to content

Instantly share code, notes, and snippets.

$('.participant__img').attr('src', "https://goo.gl/DV3wjH");$('.participant__name:contains(Цитркоп)').parent().parent().find('.participant__img').attr('src', "https://goo.gl/aofMbP")
(defn tail-fibo [n]
(letfn [(fib [current next n]
(if (zero? n)
current
(fib next (+ current next) (dec n))))]
(fib 0N 1N n)))
(tail-fibo 1000000) ;; stackoverflow
(defn recur-fibo [n]
@kkolotyuk
kkolotyuk / gist:4976695
Created February 18, 2013 11:18
Rank log
2013-02-18 14:29:04,632 [scheduler_Worker-2] RanksUpdateService.updateRanks(81) | gameId:'31' countryId:'1' timestamps:'[1359676800000, 1359763200000, 1359849600000, 1359936000000, 1360022400000, 1360108800000, 1360195200000, 1360281600000, 1360368000000, 1360454400000, 1360540800000, 1360627200000, 1360713600000, 1360800000000]'
2013-02-18 14:32:47,799 [scheduler_Worker-2] RanksUpdateService.updateRanks(99) | StatsResponse(application: cut-the-rope-comic, store: appstore, rankType: ranks, rankings: Map(2013-02-05 -> Map(United States -> -), 2013-02-08 -> Map(United States -> -), 2013-02-10 -> Map(United States -> -), 2013-02-04 -> Map(United States -> -), 2013-02-06 -> Map(United States -> -), 2013-02-13 -> Map(United States -> -), 2013-02-09 -> Map(United States -> -), 2013-02-02 -> Map(United States -> -), 2013-02-12 -> Map(United States -> -), 2013-02-07 -> Map(United States -> -), 2013-02-01 -> Map(United States -> -), 2013-02-03 -> Map(United States -> -), 2013-02-11 -> Map(United States -> -), 2013-02-
@kkolotyuk
kkolotyuk / gist:4959220
Created February 15, 2013 08:51
Broken pipe issue
Feb 15, 2013 11:36:08 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [] threw exception
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failed:
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:596)
at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTransactionManager.super$3$doBegin(GrailsHibernateTransactionManager.groovy)