The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
'use strict'; | |
/** | |
* Module dependencies | |
*/ | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var lr = require('tiny-lr'); |
// browserify | |
var browserify = require('browserify'); | |
var es6ify = require('es6ify'); | |
// gulp stuff | |
var gulp = require('gulp'); | |
var livereload = require('gulp-livereload'); | |
var source = require('vinyl-source-stream'); | |
var jshint = require('gulp-jshint'); | |
var livereload = require('gulp-livereload'); | |
var watch = require('gulp-watch'); |
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
.spaVoucher { | |
font-size: 12px; | |
&__heading { | |
font-size: 16px; | |
&--blue { |
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
.spaVoucher .spaVoucher { | |
font-size: 14px; | |
color: black; | |
&__bodytext { | |
font-size: 12px; |
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
.my-class { | |
font-size: 14px; | |
color: black; | |
&__bodytext { | |
font-size: 12px; |
[http://www.meetup.com/React-Berlin/events/221080348/](React Berlin - Meetup #1 - React Berlin)
Peter Magenheimer (@peterjmag)
I'm a front end developer at ResearchGate. And yes, we're hiring.
require 'RMagick' | |
class ArticleSet < ActiveRecord::Base | |
validates_presence_of :name | |
validates_length_of :name, :minimum => 3 | |
# creator | |
belongs_to :user | |
# this doesn't throw error, but now file gets uploaded, nothing stored in the blog_image string field (that's my mounted uploader where carrierwave should store the image identifier in) | |
img_path = "#{RAILS_ROOT}/tmp/sets/" | |
img_name = "set_#{self.id}_#{Time.now.to_i}.png" | |
# save composite image to PNG | |
template.write(img_path + img_name) # this works, it generates the desired PNG | |
#save and upload to s3 | |
tmp_image = File.open(img_path + img_name) |
# category.rb | |
class Category < ActiveRecord::Base | |
acts_as_nested_set | |
attr_accessible :name, :description, :lft, :rgt, :parent_id | |
has_many :categorizations | |
has_many :products, :through => :categorizations | |