Skip to content

Instantly share code, notes, and snippets.

View gwing33's full-sized avatar

Gerald Leenerts gwing33

  • Follow Up Boss
  • Scottsdale, AZ
View GitHub Profile
@gwing33
gwing33 / Compass Shortcuts...
Created April 26, 2012 15:25
.bash_profile
# Compass shortcuts
alias wat='compass watch'
@gwing33
gwing33 / fibonacci_sequence.js
Created March 28, 2012 05:50
Wanted to find out the degrees within the fibonacci sequence...
var fibonacci_sequence = [0,1],
degrees = [],
dup_degrees = [];
var fibonacci_total = 0,
prev_num = 0,
cur_num = 1;
var degree,
has_degree;
@gwing33
gwing33 / .bash_profile
Created January 21, 2012 02:22
My git shortcuts in my ~/.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 / Crap .NET
Created July 5, 2011 21:06
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.
$('#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 / Uploadosity.js
Created March 25, 2011 22:58
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.
/*
* 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 / parallapser.js
Created January 20, 2011 18:28
Parallapser (v1.0) - on the targeted object, you can define how much it moves on scroll by percent. It's basically a Parallax engine.
(function( $ ){
var methods = {
init : function( options ) {
return this.each(function(){
var $this = $(this), data;
if ( ! $this.data('parallapse') ) {
<ul id="message-popdown">
<% flash.each_pair do |key, value| %>
<li class='<%= key %>'><%= value %></li>
<% end %>
</ul>