Skip to content

Instantly share code, notes, and snippets.

View brianmichel's full-sized avatar
🎯
Focusing

Brian Michel brianmichel

🎯
Focusing
View GitHub Profile
$('#pictures').hover(function() {
$('div.overlay-background' & 'div.overlay').slideDown('slow', function() {
//Animation Complete
});
});
#!/usr/bin/ruby -w
require 'net/http'
require 'rexml/document'
url = "http://#{ARGV[0]}.tumblr.com/api/read"
xml_data = Net::HTTP.get_response(URI.parse(url)).body
if(xml_data)
doc = REXML::Document.new(xml_data)
a = doc.root.elements["posts/post/"].attributes["url"]
print a + "\n"
else
var video = document.getElementById('video');
var rewind = document.getElementById('rewind');
var playpause = document.getElementById('playpause');
video.addEventListener('play', playing, false);
video.addEventListener('pause', paused, false);
playpause.addEventListener('click', playPauseToggle, false);
function playPauseToggle(e) {
if (playpause.value == 'Play') {
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<video id="video">
<source src="debacle_720p.mp4">
Video Not Supported
<?php
//This will try to get all of the 4sq events for a given user
$url = "http://api.foursquare.com/v1/history?l=250";
$username = "your@4sqemail.here";
$password = "hahapasswordgoeshere";
//Add header for Basic AUTH SICK PLAINTEXT
$context = stream_context_create(array(
'http' => array(
#!/usr/local/bin/ruby
require 'net/http'
require 'rexml/document'
require 'uri'
include REXML
BASE_URL = 'api.foursquare.com'
@brianmichel
brianmichel / last_fm_ruby_weekly_albums.rb
Created November 11, 2010 05:05
Pull weekly top albums for a given user.
#!/usr/bin/ruby -w
require 'rubygems'
require 'net/http'
require 'rexml/document'
include REXML
API_KEY = 'KEY GOES HERE'
LASTFM_USER = 'USERNAME GOES HERE'
#index
%h1="Crash Log Symbolicator"
#step.one
%span.steplabel="Please Choose A Build."
%select.dsym
%option{:value => 0}="Please Make A Selection"
- dsyms.each do |dsym|
%option{:value => dsym}= dsym
#step.two
%span.steplabel="Upload Your Crash Log Below."
-(void)keyDown:(NSEvent *)theEvent{
[super keyDown:theEvent];
NSLog(@"DOWN: %i", theEvent.keyCode);
switch (theEvent.keyCode) {
case 13:
case 126:
[[MissileCommandCenter sharedCommandCenter] upTurret];
break;
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib/libxml2.dylib is a dynamic library, not added to the static library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib/libxml2.dylib is a dynamic library, not added to the static library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: for architecture armv6 object: /Users/bmiche200/Library/Developer/Xcode/DerivedData/XAny-gwmyneclgvjdhsbjwnjtotvidpwl/Build/Products/Debug-iphoneos/libOmnitureAppMeasurement.a(OMAppMeasurement.o) truncated or