This file contains 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
// Generated on 2013-10-11 using generator-angular 0.4.0 | |
'use strict'; | |
var LIVERELOAD_PORT = 35729; | |
var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; | |
// # Globbing |
This file contains 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
'use strict'; | |
angular.module('directiveExampleApp') | |
.directive('albums', function() { | |
return { | |
templateUrl: 'views/templates/albums.html', | |
restrict: 'E', | |
scope: { | |
title: '@title' | |
} |
This file contains 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
'use strict'; | |
angular.module('directiveExampleApp') | |
.directive('albums', function() { | |
return { | |
templateUrl: 'views/templates/albums.html', | |
restrict: 'E', | |
scope: {} | |
}; | |
}); |
This file contains 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
'use strict'; | |
describe('Directive: albums', function() { | |
beforeEach(module('directiveExampleApp')); | |
var element, scope; | |
beforeEach(module('views/templates/albums.html')); | |
beforeEach(inject(function($rootScope, $compile) { |
This file contains 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 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'nokogiri' | |
require 'aws/s3' | |
set :bucket, 'bucket-name' | |
set :s3_key, 'xxxxxx' | |
set :s3_secret, 'xxxxxx' |
This file contains 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 | |
################################################### | |
# | |
# Class to generate thumbnails for images in a dir | |
# stored in an Amazon S3 bucket. | |
# | |
# simon@newtriks.com - 10/2012 | |
# | |
################################################### |
This file contains 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
#https://github.com/EricR/image_sorcery | |
require 'image_sorcery' | |
image = ImageSorcery.new("example.pdf") | |
image.manipulate!(format: "jpg", :resize => '400x300', :quality => 100, :density => 150, :background => 'white', :alpha => 'Remove') |
This file contains 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 | |
# the version of the script | |
VERSION=1.0 | |
echo "------------------------------------------" | |
echo "Audio Specific Concat Script v$VERSION - A script to concatenate multiple audio files and encode to MP4." | |
echo "Based on FFmpeg - www.ffmpeg.org and http://goo.gl/eDFeM" | |
echo "------------------------------------------" |
This file contains 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
Show hidden characters
{ | |
"cmd": ["/usr/local/bin/rbenv", "exec", "buildr", "compile"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
This file contains 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
require "fileutils" | |
require "buildr/as3" # needs - gem install buildr-as3 -v "0.2.30.pre" | |
# Version number for this release will become dynamic | |
VERSION_NUMBER = "0.0.1" | |
# Group identifier for your projects | |
GROUP = "com.newtriks" | |
COPYRIGHT = "newtriks.com" |