Skip to content

Instantly share code, notes, and snippets.

View rdougan's full-sized avatar

Robert Dougan rdougan

View GitHub Profile
private
def get_details
#get the title + thumbnail if it is vimeo
if self.site == "Vimeo"
logger.info "==============================="
v = Vimeo::Simple::Clip.info(self.reference_id)
#self.title = v.first["title"] if v.first
#self.thumbnail = v.first["thumbnail_medium"] if v.first
end
Loading development environment (Rails 2.3.0)
/usr/local/lib/ruby/gems/1.8/gems/json-1.1.6/lib/json/common.rb:60: warning: already initialized constant State
/usr/local/lib/ruby/gems/1.8/gems/json-1.1.6/lib/json/pure.rb:76: warning: already initialized constant JSON_LOADED
>> Vimeo::Simple::Clip.info(2024837)
=> [{"duration"=>"363", "stats_number_of_plays"=>"190", "user_thumbnail_large"=>"http://images.vimeo.com/85/68/83/85688323/85688323_100.jpg", "thumbnail_small"=>"http://images.vimeo.com/16/67/94/166794314/166794314_100.jpg", "clip_id"=>"2024837", "user_thumbnail_small"=>"http://images.vimeo.com/85/68/83/85688323/85688323_30.jpg", "title"=>"El Paso Hot Button & El Ten Eleven", "stats_number_of_likes"=>"1", "upload_date"=>"2008-10-21 03:57:03", "url"=>"http://vimeo.com/2024837", "tags"=>"El Paso Hot Button, El Ten Eleven", "user_url"=>"http://vimeo.com/robothouse", "stats_number_of_comments"=>0, "caption"=>"@ Monte Vista Lounge October 18th", "height"=>"284", "user_thumbnail_huge"=>"http://images.vimeo.com
#! /usr/bin/env ruby
require 'rubygems'
require 'mechanize'
# Enter your username and password
login = ''
password = ''
# Enter your sortcode and account number.
# this appears on the first page when you login, it should be a link and should look like this:
new Ext.Panel({
fullscreen: true,
layout : 'card',
style: 'background:red',
defaults: {xtype:'panel'},
items: [
{
@rdougan
rdougan / .profile
Created April 1, 2011 09:06
My .profile file
# Paths
export PATH=/Applications/TextMate.app/Contents/Resources:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
export PATH=/opt/apache/bin:$PATH
export PATH=/opt/php5/bin:$PATH
export PATH=/usr/local/mysql/bin:$PATH
export PATH=/usr/local/pgsql/bin:$PATH
export PATH=/Users/Robert/github/ivy/bin:$PATH
@if not $supports-gradients or $compile-all {
.#{$prefix}nlg {
@if $grid-header-background-gradient != null {
.#{$prefix}grid-header-ct,
.#{$prefix}column-header {
background: repeat-x 0 top;
background-image: theme-background-image($theme-name, 'grid/column-header-bg.gif');
}
}
rob in ~/github/sencha/sdk/extjs
± |touch-2.0.0 ✗| → compass compile resources/sass/ --force --time
overwrite resources/sass/../css/ext-all-access.css (3.041s)
overwrite resources/sass/../css/ext-all-gray.css (2.927s)
overwrite resources/sass/../css/ext-all-scoped.css (3.619s)
overwrite resources/sass/../css/ext-all.css (3.916s)
overwrite resources/sass/../css/ext-ie-scoped.css (3.293s)
overwrite resources/sass/../css/ext-ie.css (3.304s)
overwrite resources/sass/../css/ext-sandbox.css (3.999s)
overwrite resources/sass/../css/ext-standard-scoped.css (2.387s)
sudo gem uninstall compass (remove all)
sudo gem uninstall sass (remove all)
sudo gem install compass -v 0.11.4
sudo gem uninstall sass
git clone https://github.com/nex3/sass.git "sass-clone"
cd sass-clone
git checkout stable
git submodule init
git submodule update
sudo rake install
/*jshint eqeqeq: false */
/*global Ext: false */
@rdougan
rdougan / response.json
Created December 31, 2011 15:16
Example response of rob_halifax - https://github.com/rdougan/rob_halifax
{
"accounts": [
{
"figures": [
{
"Balance": 5046.0
},
{
"Money available": 5024.3
},