I hereby claim:
- I am denmch on github.
- I am denmch (https://keybase.io/denmch) on keybase.
- I have a public key ASC-C8zRfY5hcNfTD6WCdtvuNKQuXQZi0KSzGzIU91j3YAo
To claim this, I am signing this object:
| # Define a word in the terminal via the Wordnik API with numbered output | |
| function def() { | |
| params="$@" | |
| params_encoded=${params/ /%20} | |
| curl --silent http://api.wordnik.com:80/v4/word.json/"$params_encoded"/definitions\?api_key\="$WORDNIK_KEY" \ | |
| | json --array text \ | |
| | cat -b | |
| } |
| /* Use with a browser add-on like Stylebot to modify Twitter's styles */ | |
| [data-suggestion-json*="suggestion_type"] { | |
| display: none; | |
| } |
| javascript:(function(){var loc=location.href; loc=loc.replace('upcoming.org/@','twitter.com/'); location.replace(loc);})() |
| /* Temporary fix for BigCommerce express checkout issue re: state dropdown menu */ | |
| $(document).ajaxComplete(function() { | |
| if ($('#uniform-FormField_12').hasClass('selector')) { | |
| $('#uniform-FormField_12'). | |
| removeClass('selector'). | |
| empty(). | |
| append('<input type="text" name="FormField[2][12]" id="FormField_12" aria-required="1" class="FormField JSHidden Field200 field-xlarge Textbox"></input>'); | |
| } | |
| /************************************************************************/ | |
| /* Change title & metatitle for SEO using a data attribute on blog */ | |
| /* posts in Bigcommerce. Embed the title within the post like this: */ | |
| /* <span id="meta-title" data-title="This is a good SEO title!"></span> */ | |
| /************************************************************************/ | |
| $(document).ready(function() { | |
| var newTitle = $('#meta-title').data('title'), | |
| noMetaTitle = $('meta[name="title"]').length === 0, | |
| hasDataTitle = newTitle !== undefined, | |
| notACollection = $('body').hasClass('BlogPost'), |
I hereby claim:
To claim this, I am signing this object:
| function end(str, target) { | |
| var ending = str.substring(str.length - target.length); | |
| return target === ending; | |
| } | |
| end("Bastian", "n"); |
| function bouncer(arr) { | |
| // Don't show a false ID to this bouncer. | |
| function falsy(value) { | |
| return Boolean(value); | |
| } | |
| return arr.filter(falsy); | |
| } | |
| bouncer([7, "ate", "", false, 9]); |
| // Callback to calculate the Greatest Common Divisor, | |
| // used within the scm callback. | |
| function gcd(a, b) { | |
| if (!b) { | |
| return a; | |
| } | |
| return gcd(b, a % b); | |
| } | |
| // Callback to calculate the Smallest Common Multiple, |
| function pair(str) { | |
| var tmp = str.split(''), // Make a copy without altering str | |
| match = { // An object to easily match pairs | |
| 'C': 'G', | |
| 'G': 'C', | |
| 'A': 'T', | |
| 'T': 'A' | |
| }, | |
| result = [], // Initialize some variables | |
| currentPair, |