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
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 / Crap .NET
Created Jul 5, 2011
So...because I couldn't create a form on a 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'});
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 / 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 ( ! $'parallapse') ) {
View Ruby Flash Message Drop Down
<ul id="message-popdown">
<% flash.each_pair do |key, value| %>
<li class='<%= key %>'><%= value %></li>
<% end %>
You can’t perform that action at this time.