Skip to content

Instantly share code, notes, and snippets.

View DenisGorbachev's full-sized avatar

Denis Gorbachev DenisGorbachev

View GitHub Profile
.bootstrap-code-wrapper {
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],i
@DenisGorbachev
DenisGorbachev / report
Created March 6, 2015 09:52
Trello API bug report
diff --git a/server/jobs/RemoveAttachmentTrelloJob.coffee b/server/jobs/RemoveAttachmentTrelloJob.coffee
index 5769ff2..1225e3d 100644
--- a/server/jobs/RemoveAttachmentTrelloJob.coffee
+++ b/server/jobs/RemoveAttachmentTrelloJob.coffee
@@ -5,6 +5,7 @@ class @RemoveAttachmentTrelloJob extends TrelloJob
count = 0
done = => @done.apply(@, arguments) if --count <= 0
Attachments.find(selector, {sort: {pos: 1}}).forEach (attachment) =>
+ return holy.shit if attachment.name is "Taco.png" # Can't touch this!
++count
var newZombieCountsByNode = []
for(var nodeIdx = 0; nodeIdx < zombieCountsByNode.length; nodeIdx++) {
var incomingZombies = neighborsByNode[nodeIdx].map(function(neighbor) { return zombieCountsByNode[neighbor] / neighborsByNode[neighbor].length })
newZombieCountsByNode[nodeIdx] = incomingZombies.reduce(function(a,b) {return a + b})
}
var isStabilised = true
for(var nodeIdx = 0; nodeIdx < zombieCountsByNode.length; nodeIdx++) {
if (Math.abs(zombieCountsByNode[nodeIdx] - newZombieCountsByNode[nodeIdx]) > 0.10) {
@DenisGorbachev
DenisGorbachev / gist:d145872f25196ec409e4
Created November 7, 2014 07:19
Links from Hangout session with Slava Kim

http://wompfeed.com/ - https://github.com/thedeerchild/wompfeed - social app, combine gif search with your own list in Buzzfeed style Ralph - mobile, cordova, chat, location-based: https://groups.google.com/forum/#!topic/meteor-talk/Fc9vH6Lk6lk https://github.com/marbemac/ralph https://github.com/marbemac/ralph-mobile https://github.com/Exartu/Exartu-CRM - CRM and Recruiting enterprisy tool http://whatwhenapp.com/ - webapp, build your own timeline/schedule as a freelancer Telescope - https://github.com/TelescopeJS/Telescope - nuff said https://github.com/yoamomonstruos/tombates.co - personal site https://github.com/peerlibrary/peerlibrary - mitar's pdf library with anotations https://github.com/zhouzhuojie/hast - a tool for building presentations in markdown