Skip to content

Instantly share code, notes, and snippets.

View BinaryMuse's full-sized avatar
🏳️‍🌈
Just gayin' up the place the best I can

Michelle Tilley BinaryMuse

🏳️‍🌈
Just gayin' up the place the best I can
View GitHub Profile
@BinaryMuse
BinaryMuse / README.md
Created July 9, 2010 16:42
GWT-Wizard Sample Code

Sample code from a page of the Fresno Pacific University Vehicle Reservation Wizard.

RequesterInfoPage.java defines the business logic for the page, as well as the Display interface for the UI; RequesterInfoPageView.java implements the Display interface. Notice that the view extends LazyComposite to lazily create the view on demand (the first time the page is shown).

#!/bin/bash
# fpu-mount
# parameter one should be the share
# paramater two should be the mountpoint
# the mountpoint will be created if it doesn't exist
SHARE=$1
MOUNTPOINT=$2
@BinaryMuse
BinaryMuse / Curl.php
Created August 2, 2010 17:00
PHP cURL wrapper
<?php
/**
* Wrapper class that creates Curl_Workers to do
* the heavy lifting for cURL requests.
*/
class Curl {
/**
* Creates and returns a new Curl_Worker
@BinaryMuse
BinaryMuse / rvm.sh
Created August 8, 2010 02:40
DND (blog): install RVM, Ruby 1.9.2 RC and Rails 3 RC.sh
#!/bin/bash
# Install RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# Modify ~/.bash_profile as necessary and source it to bring in changes
echo "[[ -s \"\$HOME/.rvm/scripts/rvm\" ]] && source \"\$HOME/.rvm/scripts/rvm\"" >> ~/.bash_profile
source ~/.bash_profile
# Install and use Ruby 1.9.2
rvm install ruby-1.9.2-rc2 && rvm use 1.9.2
# Create a gemset for and install Rails 3 RC
rvm gemset create rails3rc && rvm use 1.9.2@rails3rc
~/src/youtube/vids
require 'coderay'
codeToHighlight = `pbpaste`
highlightedCode = CodeRay.scan(codeToHighlight, :ruby).div
IO.popen("pbcopy", mode='w') do |io|
io.write highlightedCode
end
<html>
<head>
<title>Test Page</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>
<body>
<p>Pretend the domain is http://binarymuse.net/.</p>
<p><a href="http://google.com/">Go to Google</a></p>
package edu.fresno.gwt.vehiclereservation.shared;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* <dl>
* <dt><b>Title: </b><dd>SimpleDateFormat</dd>
@BinaryMuse
BinaryMuse / one_million_records.rb
Created September 14, 2010 03:14
Quick and ugly script to generate 1,000,000 fake accounts in MongoDB
#!/usr/bin/env ruby
require 'mongo'
require 'faker'
require 'pp'
require 'benchmark'
include Mongo
class Exception
(do not use) 09/GFA-MBA-710-OLA1
-MTH-726-FRC1
2010 Stacy Hammons Dev
ADM-742-Construction
AIMS Circles
App Tools
Art & Lit ECE
ART 300 D
BIB 720 Church and God's Mission - Geddert
BIB 752 Biblical Theology II - Geddert