Skip to content

Instantly share code, notes, and snippets.

<div data-subview="page-header" data-0="background-position:0 10px" data-end="background-position:0 300px;"></div>
<div id="content">
<div class="content">
<div data-subview="current-view" id="content"></div>
</div>
</div>
<div data-subview="page-footer" data-0="background-position:0 -300px" data-end="background-position:0 0px;"></div>
Game.select('games.*, SUM(CASE WHEN votes.weight > 0 THEN votes.weight ELSE 0 END) as positive, SUM(CASE WHEN votes.weight < 0 THEN votes.weight ELSE 0 END) as negative').joins(:votes).group('games.id')
<div style="position: fixed;width: 100px;background: #000;position: absolute;top: 0;bottom: 0;">
class GithubWebhooksController
def payload
case event
when 'push' then handle_push
when 'delete' then handle_delete
end
end
private
<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>
<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>
.favorites-mobile {
.contestant-list {
margin: 0;
padding: 0;
}
.contestant-item {
position: relative;
background: rgba(white, 0.6);
border-radius: 4px;
@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.")

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]
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