Skip to content

Instantly share code, notes, and snippets.

@christophergregory
christophergregory / gist:3900778
Created October 16, 2012 17:39
CSS: Inputs as same height
span, input {
margin: 0;
padding: 0;
}
span {
display: inline-block;
border: 1px solid black;
height: 25px;
overflow: hidden;
}
@christophergregory
christophergregory / callback.js
Created October 16, 2012 17:15
Callback function example
function callCallbackFunction (callback) {
callback(); // all this does is call the function that is passed in as a parameter
};
callCallbackFunction(function(){
alert('this is inside the callback function');
});
// Here is another way to do basically the same thing