Skip to content

Instantly share code, notes, and snippets.

var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
SquerbWidgets.Utils.DragAndDrop.Draggable = (function() {
_.extend(Draggable.prototype, Backbone.Events);
function Draggable(options) {
this.onMouseLeave = __bind(this.onMouseLeave, this);
this.onMouseUp = __bind(this.onMouseUp, this);
this.onMouseDown = __bind(this.onMouseDown, this);
this.onMouseMove = __bind(this.onMouseMove, this);
@methyl
methyl / snippet.json
Created July 12, 2014 15:12
removed comment json
{
id: 151,
body: "It is #2 on imdb top list right now and it totally deserves it.",
created_at: "2013-02-28T12:34:21.532Z",
opinion: null,
parent_id: null,
mentions: null,
author: {
id: 38,
name: "ayana38",
class AssetsController < ApplicationController
def bookmarklet
redirect_to view_context.javascript_path('bookmarklet-bootstrap.js')
end
def reel_deal
respond_to do |format|
format.js { redirect_to view_context.javascript_path('reel_deal_application.js') }
format.css { redirect_to view_context.stylesheet_path('reel_deal_application.css') }
end

Donis WebPage Approximate Estimation

Approximate Requirements collected from wireframes: 130723_websitedraft and e-mail conversations.

Main parts of the webpage:

Map with projects

Backend

  • Grid DB model [1d]
  • Project DB model [1d]
  • Viewing project API [0.5d]
@methyl
methyl / rob.coffee
Created May 5, 2014 20:22
rob.coffee
construtor: ->
@api = GRG.api
getCardsFromChecklists: ->
@api.getCardChecklists @, @convertChecklistToCards
convertTasksChecklistToCards: (checklists) =>
# use underscore.js bitch!
unless list = _(checklists).findWhere(name: GRG.Trello.Checklist.tasks.name)
console.log("Tasks checklist not found.")
.favorites-mobile {
.contestant-list {
margin: 0;
padding: 0;
}
.contestant-item {
position: relative;
background: rgba(white, 0.6);
border-radius: 4px;
<div class="box center">
<img class="box-top" src="images/content-right-box-top2.png" alt=""/>
TRESC
<img class="box-bottom" src="images/content-right-box-bottom2.png" alt=""/>
</div>
<div class="box center">
<img class="box-top" src="images/content-right-box-top2.png" alt=""/>
<a style="display:block; padding-top:1px" href='http://www.siepomaga.pl/' onclick='window.open(this.href);return false'><img src='http://www.siepomaga.pl/b/zmieniaj_swiat/300x50.png' alt='300x50' /></a>
<img class="box-bottom" src="images/content-right-box-bottom2.png" alt=""/>
</div>
class GithubWebhooksController
def payload
case event
when 'push' then handle_push
when 'delete' then handle_delete
end
end
private
<div style="position: fixed;width: 100px;background: #000;position: absolute;top: 0;bottom: 0;">