I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
// Require the SendGrid Cloud Module | |
var sendgrid = require("sendgrid"); | |
sendgrid.initialize("[email protected]", "your_password"); | |
// Run this Cloud Function every time a new Activity (such as a comment) | |
// is saved | |
Parse.Cloud.afterSave("Activity", function(request, response) { | |
// Check if the activity type is a comment | |
var activity = request.object; | |
if (activity.get("type") === "comment") { |
@mixin circle($width, $color) { | |
width: $width; | |
height: $width; | |
background: $color; | |
-webkit-border-radius: $width/2; | |
-moz-border-radius: $width/2; | |
border-radius: $width/2; | |
} | |
.circle { |
I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
(* | |
Speed up Mail.app by vacuuming the Envelope Index | |
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/ | |
Originally by "pmbuko" with modifications by Romulo | |
Updated by Brett Terpstra 2012 | |
Updated by Mathias Törnblom 2015 to support V3 in El Capitan and still keep backwards compability | |
Updated by @lbutlr for V5 and Container folder in High Sierra and use du | |
*) | |
tell application "Mail" to quit |
##References
##Use the latest ruby and setup gemset
module ApplicationHelper | |
# ==== Examples | |
# glyph(:share_alt) | |
# # => <i class="icon-share-alt"></i> | |
# glyph(:lock, :white) | |
# # => <i class="icon-lock icon-white"></i> | |
def glyph(*names) | |
content_tag :i, nil, class: names.map{|name| "icon-#{name.to_s.gsub('_','-')}" } | |
end |
yepnope([ | |
{ | |
test : categorizr.isMobile, | |
, yep : ['mobile-specific.js', 'mobile-specific.css'] | |
} | |
, { | |
test : categorizr.isTablet, | |
, yep : ['tablet-specific.js', 'tablet-specifc.css'] | |
} | |
, { |
import sublime | |
import sublime_plugin | |
import re | |
class CompactExpandCssCommand(sublime_plugin.TextCommand): | |
def run(self, edit, action='compact'): | |
rule_starts = self.view.find_all('\{') | |
rule_ends = self.view.find_all('\}') |
$ bundle install | |
Fetching gem metadata from http://rubygems.org/....... | |
Fetching gem metadata from http://rubygems.org/.. | |
Using rake (0.9.2.2) | |
Using SystemTimer (1.2.3) | |
Using multi_json (1.0.3) | |
Using activesupport (3.1.1) | |
Using builder (3.0.0) | |
Using i18n (0.6.0) | |
Using activemodel (3.1.1) |
#!/bin/bash | |
# copy this file to /usr/sbin | |
# if you have other hosts entries that you would not like to lose, make sure they get added to the hosts.mamp.bak file | |
cat /etc/hosts.mamp.bak > /etc/hosts | |
echo 'clean!' |