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
#!/bin/bash/ | |
# Shell wrapper for converting to mp4 with h264 codec with sensible defaults optimized for small file size. | |
while getopts ":h" opt; do | |
case $opt in | |
h) | |
echo "Usage: 'tomp4 INPUT OUTPUT SCALE_FACTOR'" >&2 | |
echo "Only INPUT is required, just hit enter for default values when prompted." >&2 |
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 to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="http://masonry.desandro.com/masonry.pkgd.min.js"></script> | |
<style> | |
.item { width: 150px;} | |
.item.w2 { width: 300px; } | |
img {width: 100%;} | |
</style> |
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
// app/helpers/dev.js | |
Object.defineProperty(window, 'ac', { | |
get: function () { | |
return window.container.lookup('controller:application'); | |
} | |
}); | |
// CurrentRoute - NOT WORKING (WHYYYYY?) | |
Object.defineProperty(window, 'currentRouteNotWorking', { |
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
// /Gruntfile.js | |
// task that is intended to be run by us | |
grunt.registerTask('server', "Run your server in development mode, auto-rebuilding when files change.", function(proxyMethod) { | |
... | |
grunt.task.run(['clean:debug', | |
'build:debug', | |
expressServerTask, | |
'watch' | |
]); |
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
# Gemfile | |
source 'https://rubygems.org' | |
ruby "2.0.0" | |
gem 'rails', '~> 4.0.0' | |
... | |
group :development do | |
gem 'better_errors' |
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
/// rooms.json | |
[{ | |
"request": { | |
"url": "/rooms/:id" | |
}, | |
"response": { | |
"data": { | |
"room": { | |
"id": 1, |
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
////// EXAMPLE | |
module.exports = function (server) { | |
// Create an API namespace, so that the root does not | |
// have to be repeated for each end point. | |
server.namespace('/api', function () { | |
// Return fixture data for '/api/posts/:id' | |
server.get('/posts/:id', function (req, res) { | |
var post = { |
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
expected json format: | |
GET /locations/ | |
{ locations: [ | |
{ | |
'id': 1, | |
'name': 'foo', | |
'postal': '123', |
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
notification :growl_notify | |
group :website do | |
guard 'remote-sync', | |
source: '1bog/website', | |
destination: 'public_html/buildtop', | |
user: 'ivans', | |
remote_address: '1bogtest.org', | |
exclude: "/website/init_personal.php", | |
exclude_from: '', |
NewerOlder