Skip to content

Instantly share code, notes, and snippets.

@jvenator
jvenator / gist:9672772a631c117da151
Last active June 14, 2024 13:31
PDFtk Server Install Workaround for Mac OS X

Installing PDFtk Server edittion on your Mac

This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this homebrew-cask issue.
The following steps worked on Mac OS X 10.10.1 with a standard brew installation for the PDFtk Mac OS X server libary version 2.02.
All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

Download and extract the Mac OS X server install pacakge

@jvenator
jvenator / Brocfile.js
Last active August 29, 2015 14:13
register a custom ember easyForm form wrapper in Ember-CLI app
...
// ember-easyForm wrapper
app.import('vendor/form-wrapper-file.js');
...
@jvenator
jvenator / broccoli.js
Created July 14, 2014 17:24
Updated pickFiles path for including Bootstrap glyphicons with Ember-CLI
...
var bootstrapFonts = pickFiles('vendor/bootstrap-sass-official/assets/fonts/bootstrap', {
...
});
...
results: {
collection1: [
{ Monday: [
{
ClassName: "Cycling",
StartTime: "7:00 AM",
EndTime: "7:45 AM",
Location: "13th Street",
Instructor: "Colleen Richards"
},
results: {
collection1: [
{ Monday: [
{
ClassName: "Cycling",
ClassDetails: "7:00 AM - 7:45 AM 13th Street Colleen Richards"
},
{
ClassName: "Sole Power™",
ClassDetails: "9:15 AM - 10:00 AM 13th Street Taro Kawai"
App.Router.map(function() {
this.route('user-guide'),
this.resource('listings', function() {
// assumes scoping of listings (property, portfolio, mgr) occurs in index
this.resource('listing');
});
this.resource('application-packages', function() {
this.resource('application-package', function() {
// the index for applications sits in the application-packages route
this.resource('application');
@jvenator
jvenator / ember-cli-tutorial-spec.md
Created April 1, 2014 07:05
Spec of for updated Ember tutorial using Ember-CLI.

Overview

Complete a deployed version of an app similar to that demonstrated in CodeSchool's Ember course using Ember-CLI.

Features

  • Use ember-cli
  • Two resources w/ associations (products > reviews)
  • Three views/routes (home, products, product)
  • CSS Framework (Foundation or Bootstrap)
{
"total": 104,
"page": 3,
"crunchbase_url": "http://www.crunchbase.com/search?geo=los angeles ca\u0026range=5",
"results": [
{
"name": "Zone Ventures",
"permalink": "zone-ventures",
"crunchbase_url": "http://www.crunchbase.com/financial-organization/zone-ventures",
"namespace": "financial-organization",
@jvenator
jvenator / you_tube_scaper_basic.rb
Created November 18, 2012 19:39
YouTube Scraping
require 'nokogiri'
require 'open-uri'
puts "What YouTube URL do want information on?"
url = gets.chomp
doc = Nokogiri::HTML(open(url))
subscribers = doc.css('span.stat-value')[0].content
@jvenator
jvenator / hello_world.rb
Created November 18, 2012 18:35
Sample gist for Angelo
puts "hello world"