This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test Page</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.thumbnail').bind("mouseenter", function(){ | |
$(this).append('<img class="play_button" src="http://www.hamptonbid.com/17BullRun.com/play-button_png_1058132788.png" />'); |
This file contains hidden or 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 'em-http-request' | |
require 'fiber' | |
require "ruby-debug" | |
class AsynUploader | |
@successes = [] | |
@failures = [] |
This file contains hidden or 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
# simply run rake jammit:package to compile your coffeescript and then package up all your assets | |
# including the newly compiled javascripts | |
namespace :jammit do | |
task :package do | |
Rake::Task["barista:brew"].invoke | |
Jammit.package! | |
end | |
end |
This file contains hidden or 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 'em-synchrony' | |
require 'em-synchrony/em-http' | |
require 'em-synchrony/em-jack' | |
require 'nokogiri' | |
module MendeleyScraper | |
class MasterScraper | |
# get all the necessary urls from the mendeley sitemap | |
# this opperation appear sync due to fibers |
This file contains hidden or 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
if has("gui_macvim") | |
" Fullscreen takes up entire screen | |
set fuoptions=maxhorz,maxvert | |
" Command-T for CommandT | |
macmenu &File.New\ Tab key=<D-T> | |
map <D-t> :CommandT<CR> | |
imap <D-t> <Esc>:CommandT<CR> | |
" Command-Return for fullscreen |
This file contains hidden or 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 'goliath' | |
require 'em-hiredis' | |
class EventGenerator < Goliath::API | |
def response(env) | |
redis = EM::Hiredis.connect | |
redis.subscribe(:one) |
- Download the latest version of the git source
curl -O http://git-core.googlecode.com/files/git-1.7.6.4.tar.gz
- unpack git source
tar -xzf git-1.7.6.4.tar.gz
This file contains hidden or 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
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script> | |
<div> | |
<a href="https://twitter.com/share" class="twitter-share-button" | |
data-url="https://dev.twitter.com/pages/tweet_button" | |
data-via="your_screen_name" | |
data-text="Checking out this page about Tweet Buttons" | |
data-related="anywhere:The Javascript API" | |
data-count="vertical">Tweet</a> | |
</div> |
This file contains hidden or 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
#configuration for my bash prompt | |
prompt_function() { | |
local BLACK='\[\033[0;30m\]' | |
local LIGHT_BLACK='\[\033[1;30m\]' | |
local RED='\[\033[0;31m\]' | |
local LIGHT_RED='\[\033[1;31m\]' | |
local GREEN='\[\033[0;32m\]' | |
local LIGHT_GREEN='\[\033[1;32m\]' | |
local YELLOW='\[\033[0;33m\]' | |
local LIGHT_YELLOW='\[\033[1;33m\]' |
OlderNewer