Skip to content

Instantly share code, notes, and snippets.

View nimzco's full-sized avatar

Nima Izadi nimzco

View GitHub Profile
var Menu = new Class({
Implements: [Options, Events],
options: {
...
},
initialize: function(menuNames, paper, options){
this.setOptions(options);
draw: function() {
// Set new Height and Width of the browser's window
var windowHeight = window.innerHeight;
var windowWidth = window.innerWidth;
// Compute size of the Canvas again
var canvasHeight = windowHeight * .99; // 99% to prevent scrollbars
var canvasWidth = windowWidth * .99;
// Compute all sizes again
var menuSpacing = canvasHeight * this.options.menuSpacing;
➜ CoursAvenue git:(master) rake jobs:work --trace
** Invoke jobs:work (first_time)
** Invoke jobs:environment_options (first_time)
** Invoke environment (first_time)
** Execute environment
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
** Execute jobs:environment_options
** Execute jobs:work
[Worker(host:Nimas-MBP.local pid:2009)] Starting job worker
rake aborted!
# encoding: utf-8
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.0'
# Webserver
gem 'unicorn'
# Database
HireFire::Resource.configure do |config|
config.dyno(:worker) do
HireFire::Macro::Delayed::Job.queue('worker', mapper: :active_record)
end
end
@nimzco
nimzco / grid.html
Last active January 29, 2016 11:13
<div class="grid">
<div class="grid__item one-half">
</div><!--
--><div class="grid__item one-half">
</div>
</div>
.grid
.grid__item.one-half>
.grid__item.one-half>
<div class=”grid”>
<div class=”grid__item one-whole”>
THIS IS USELESS (I've seen this too many times...)
</div>
</div>