Skip to content

Instantly share code, notes, and snippets.

// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$base-path: "assets/" !default;
/**
* Asset handler
*
@fightingtheboss
fightingtheboss / configuration.yml
Last active September 15, 2023 07:29
An Amazon Elastic Beanstalk configuration file for a Meteor project. This file needs to be saved in the .ebconfiguration/ directory at the root of your project. Deployed with `git aws.push`. Replace MONGO_URL with the URL to your MongoDB instance (I use MongoHQ).
packages:
yum:
git: []
files:
/opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh:
mode: "000755"
user: root
group: root
encoding: plain
@jakejscott
jakejscott / worker.js
Created March 5, 2013 22:23
IronWorker node.js script to download data from http://sidebar.io/api and import into Parse.com rest api
var _ = require('underscore');
var request = require('request');
var async = require('async');
var Parse = require('kaiseki');
var settings = require('./settings.json');
var parse = new Parse(settings.parseAppId, settings.parseRestApiKey);
request('http://sidebar.io/api', function (error, response, body) {
if (error) {
@meltingice
meltingice / gist:5053848
Created February 28, 2013 03:04
Function to check the existence of a deeply nested object property
function hasProperty() {
var args = Array.prototype.slice.call(arguments, 0);
var obj = args.shift();
var ref = obj;
for (var i = 0, _len = args.length; i < _len; i++) {
if (!ref[args[i]]) return false;
ref = ref[args[i]];
}
@dariocravero
dariocravero / README.md
Created October 20, 2012 05:25
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.

@twosixcode
twosixcode / gist:1988097
Created March 6, 2012 18:40
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@necolas
necolas / snippet.js
Created June 14, 2011 20:36
Optimised async loading of cross-domain scripts
/*
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/
* Better handling of scripts without supplied ids.
*
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function.
*/
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],