This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $body = $('body'); | |
| var children = $body.children(); | |
| var newDiv = $('<div>'); | |
| newDiv.append(children); | |
| $body.append(newDiv); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION=$(shell git rev-parse --short HEAD) | |
| DESC=$(shell git log -1 --pretty=%B) | |
| BUCKET_NAME="my-bucket" | |
| PROJECT_NAME="my-project" | |
| REGION="us-east-1" | |
| ENV_NAME="elasticbeanstalk-environment-name" | |
| archive: | |
| git archive --format=zip -o $(VERSION).zip HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mqtt = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| (function (process,global){ | |
| 'use strict'; | |
| /** | |
| * Module dependencies | |
| */ | |
| /*global setImmediate:true*/ | |
| var events = require('events'), | |
| Store = require('./store'), | |
| eos = require |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Location < ActiveRecord::Base | |
| # fields: name, street1, city, state, zip | |
| end | |
| class DateStep < ActiveRecord::Base | |
| # fields: start_time | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change Compass configuration | |
| # compass_config do |config| | |
| # config.output_style = :compact | |
| # end | |
| ### | |
| # Page options, layouts, aliases and proxies | |
| ### | |
| # Per-page layout changes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'json' | |
| app_name = 'APP_NAME' | |
| opsworks_app_id = 'APPID' | |
| config = `heroku config -s --app #{app_name}`.strip | |
| json = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'json' | |
| # This is the json output of the old zone, fetched using the AWS CLI. | |
| zone = JSON.parse(File.read('DOMAIN.zone.json'))['ResourceRecordSets'] | |
| new_zone_id = 'NEW_ZONE_ID' | |
| # We don't want to migrate the SOA and NS records from the old zone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "steps": { | |
| "original": { | |
| "use": ":original", | |
| "robot": "/image/resize" | |
| }, | |
| "pdf": { | |
| "use": ":original", | |
| "robot": "/document/thumbs", | |
| "page": 1 |