Skip to content

Instantly share code, notes, and snippets.

<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
@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",
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);
{
"name": "flare",
"children": [
{
"name": "analytics",
"children": [
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},
@methyl
methyl / squerb.sh
Created November 6, 2014 12:49
Squerb Foundation helper functions
## squerb
update_foundation () {
git stash save -q 'tmp_sqrb_foundation_stash'
bundle update squerb_foundation && git add Gemfile.lock && git commit -m 'update squerb_foundation'
RESULT=`git stash list | grep tmp_sqrb_foundation_stash`
if [ -n "$RESULT" ]; then
git stash pop
fi
}
local_foundation () { sed -i.bak "s/github: 'squerb\/squerb_foundation'/path: '..\/squerb_foundation'/g" Gemfile && rm Gemfile.bak && bundle && restart }
function spiral(n) {
var array = [];
for (var i = 0; i < n; i++) {
array[i] = [];
for (var j = 0; j < n; j++) {
array[i][j] = 0;
}
}
function stroke(ary, start, last){