Skip to content

Instantly share code, notes, and snippets.

Gerald Leenerts gwing33

Block or report user

Report or block gwing33

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ruby Flash Message Drop Down
<ul id="message-popdown">
<% flash.each_pair do |key, value| %>
<li class='<%= key %>'><%= value %></li>
<% end %>
</ul>
@gwing33
gwing33 / parallapser.js
Created Jan 20, 2011
Parallapser (v1.0) - on the targeted object, you can define how much it moves on scroll by percent. It's basically a Parallax engine.
View parallapser.js
(function( $ ){
var methods = {
init : function( options ) {
return this.each(function(){
var $this = $(this), data;
if ( ! $this.data('parallapse') ) {
@gwing33
gwing33 / Uploadosity.js
Created Mar 25, 2011
Drag and Drop Multiple Files from Desktop/Browser. Select Multiple files from File Input. Submit to a URL of your choosing with the params you need. Work in Progress. Uses Underscore for easy templates.
View Uploadosity.js
/*
* Uploadosity will take a container and turn it into a drag and drop BEAST.
* Give it a URL to send the data, any extra params.
* If you have an file input box you can specify that to add it to the list.
*/
(function( $ ){
var methods = {
uid: 0,
init : function( options ) {
var defaults = {
@gwing33
gwing33 / Crap .NET
Created Jul 5, 2011
So...because I couldn't create a form on a asp.net page I ended up creating on in the master file outside the usercontrol form then using javascript to write the form...crap on so many levels.
View Crap .NET
$('#adword_save').click(function() {
var el = $('#submit_form');
var form_html = '<input type="hidden" id="filename" name="filename" value="adwords.csv" />' +
'<input type="hidden" id="content" name="content" value="' + $('#copy_text').val() + '" />';
el.attr({method: 'post', action: '/some/api/location.aspx'});
el.html(form_html);
el.submit();
});
@gwing33
gwing33 / .bash_profile
Created Jan 21, 2012
My git shortcuts in my ~/.bash_profile
View .bash_profile
# Git Shortcuts
alias gs='git status'
alias gst='git status -sb'
alias ga='git add'
alias gau='git add -u' # Removes deleted files
alias gp='git pull'
alias gpu='git push'
alias gc='git commit -v'
alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment
alias gco='git checkout'
@gwing33
gwing33 / fibonacci_sequence.js
Created Mar 28, 2012
Wanted to find out the degrees within the fibonacci sequence...
View fibonacci_sequence.js
var fibonacci_sequence = [0,1],
degrees = [],
dup_degrees = [];
var fibonacci_total = 0,
prev_num = 0,
cur_num = 1;
var degree,
has_degree;
View Compass Shortcuts...
# Compass shortcuts
alias wat='compass watch'
@gwing33
gwing33 / modal_window.html
Created Jul 5, 2012
found the root javascript somewhere, not sure...but I've modified it a lot...
View modal_window.html
<div id="some_id" class="window">
<!-- Some Html here... -->
<a href="#" class="close">Cancel</a>
</div>
<div id="mask"></div>
View Desk Parts List.md

Wall Mounted Desk Parts List

  • Two 96 7/8" x 25 5/8" Logan Counter Tops
  • Eight 8" Corner Braces
  • One 3/4" Plain Steel Square Tube
  • Eight 1/4" x 5 1/2" Hex Bolts
  • Eight 1/4" Fender Washers
  • Eight Flush Screw in Bolts? (Couldn't find on HomeDepot website, but they are in the specialty hardware section…)
  • Lots of screws to fit the Corner Braces
  • 3 Packs of round Magnets
@gwing33
gwing33 / cli
Created Oct 12, 2012
casperjs script to change google search location
View cli
casperjs google_search_location.js pizza 'phoenix, az'
You can’t perform that action at this time.