Skip to content

Instantly share code, notes, and snippets.

View hiltmon's full-sized avatar

Hilton Lipschitz hiltmon

View GitHub Profile
#!/usr/bin/env ruby
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.
@hiltmon
hiltmon / merge_asana_into_omnifocus.rb
Last active October 2, 2018 17:58
Updated Merge Asana into OmniFocus script
#!/usr/bin/env ruby -E utf-8
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.
@hiltmon
hiltmon / Noverse.css
Created July 10, 2013 12:17
CSS for Noverse Letterhead
body {
-webkit-font-smoothing:antialiased;
font:normal .8764em/1.5em HelveticaNeue-Light,Helvetica,Arial,sans-serif;
margin:0;
}
html > body {
font-size:1em;
padding:1em;
}
@hiltmon
hiltmon / development_profiler.rb
Created February 28, 2012 03:55
Simple class to wrap a profile run around some code
class DevelopmentProfiler
def self.prof(file_name)
RubyProf.start
yield
results = RubyProf.stop
# Print a flat profile to text
File.open "#{Rails.root}/tmp/performance/#{file_name}-graph.html", 'w' do |file|
@hiltmon
hiltmon / yahoofinancelogger.rb
Created December 1, 2012 21:30
Yahoo Finance Logger
=begin
Plugin: YahooFinanceLogger
Description: Logs a portfolio of prices from Yahoo finance
Author: [Hilton Lipschitz](http://www.hiltmon.com)
Configuration:
- tickers: an array of valid Yahoo tickers to log
- show_details: If true, adds day and 52 week high and low, volume, P/E and Market Cap
Notes:
- Does not run on weekends as the markets are closed (but does run on holidays)
- Runs in real time, so if run during the day, will get as at the run time values
@hiltmon
hiltmon / gist:d94ada6df376eef312e2d28c5c52e395
Created July 19, 2016 21:21
GAPI Old to New Certificate Based PHP
OLD:
define('ga_email','hiltmon@gmail.com');
define('ga_password','i_aint_sayin');
define('which_profile',0); // The first profile
define('days_to_report', 7); // No of days excluding today!
define('ga_title','Hiltmon.com Stats');
require 'gapi.class.php';
date_default_timezone_set('America/New_York');
$ga = new gapi(ga_email,ga_password);
@hiltmon
hiltmon / merge_asana_into_omnifocus.rb
Created November 3, 2013 22:49
Merge Asana Projects, Tasks and SubTasks into OmniFocus
#!/usr/bin/env ruby
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.
<?php
define('ga_email','hiltmon@gmail.com');
define('ga_password','i_aint_saying');
define('which_profile',0); // The first profile
define('days_to_report', 0); // No of days excluding today!
define('hours_to_report', 3);
define('ga_title','Top Pages 3 Hours');
require 'gapi.class.php';
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/ruby
# encoding: utf-8
#
# Retrieve an iOS app icon at the highest available resolution
# All arguments are combined to create an iTunes search
# The icon for the first result, if found, is written to a filename based on search terms
#
# example:
# $ macicon super monsters ate my condo