I hereby claim:
- I am jjgrainger on github.
- I am jjgrainger (https://keybase.io/jjgrainger) on keybase.
- I have a public key ASC9scILu4ztrzC5CGV9pQe3kOVsxzs6eDqJgDsg9kccuQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Description: | |
| # Feeling down? Boost your mood with some Kitten Therapy! | |
| # | |
| # Dependencies: | |
| # None | |
| # | |
| # Configuration: | |
| # GIPHY_API_KEY - Your Giphy API key | |
| # | |
| # Commands: |
| var Vector = function(x, y) { | |
| this.x = x || 0; | |
| this.y = y || 0; | |
| }; | |
| // return the angle of the vector in radians | |
| Vector.prototype.getDirection = function() { | |
| return Math.atan2(this.y, this.x); | |
| }; |
| # all scripts are modules, a function which accepts the robot | |
| module.exports = (robot) -> | |
| # an array of random barks that bowie can make | |
| barks = [ | |
| 'bark!', | |
| 'wooof!', | |
| 'grrrrroowwwll', | |
| 'meow?' | |
| ] |
| # Attempt to load files from production if they're not in our local version | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule (.*) http://domain.com/wp-content/uploads/$1 | |
| </IfModule> |
| <?php | |
| /* | |
| Array insert | |
| @array the array to add an element to | |
| @element the element to add to the array | |
| @position the position in the array to add the element | |
| */ |