Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Dave Rogers daverogers

🏠
Working from home
Block or report user

Report or block daverogers

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
@daverogers
daverogers / Copy As JIRA Table
Created Oct 5, 2016
Copies Sequel Pro result into JIRA's table format. Save with the Bundle Editor (as new Copy bundle).
View Copy As JIRA Table
#!/usr/bin/php
<?php
/*
* COPY AS JIRA TABLE by @daverogers
* Copies Sequel Pro result into JIRA's table format. Save with the Bundle Editor (as new Copy bundle).
*
* Thanks to @jakob-stoeck for his example Gist!
*/
View keybase.md

Keybase proof

I hereby claim:

  • I am daverogers on github.
  • I am daverogers (https://keybase.io/daverogers) on keybase.
  • I have a public key whose fingerprint is 3E60 69FA 897B 97EF 1C7C 4949 0400 4D9C 54CB 0F66

To claim this, I am signing this object:

@daverogers
daverogers / Coinbase_api.php
Created Oct 23, 2013
Maybe I'm OCD, but when I add a library to my Codeigniter project, I like it to work with how Codeigniter does things if only for consistency. Not all libraries are written to be compatible with Codeigniter, as was the case with Coinbase - a bitcoin payment gateway. Their API (https://github.com/coinbase/coinbase-php) requires the API key when y…
View Coinbase_api.php
<?php if( !defined('BASEPATH') ) exit( 'No direct script access allowed' );
// application/libraries/Coinbase_api.php
class Coinbase_api
{
public function __construct()
{
require_once(dirname(__FILE__) . '/Coinbase/Exception.php');
require_once(dirname(__FILE__) . '/Coinbase/ApiException.php');
require_once(dirname(__FILE__) . '/Coinbase/ConnectionException.php');
@daverogers
daverogers / .htaccess
Last active Dec 21, 2015
A client of mine needed a link shortener for her affiliate links and my suggestion is that it's much better to use your URL for such things not only so you and your clients can remember them, but for the built-in advertising (always remind people about your brand is when appropriate) and ultimately the control as you never know if a third-party …
View .htaccess
# forward requests to index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
@daverogers
daverogers / footer.js
Created Apr 12, 2013
Assign "active" class to navbar item based on current page URL with jQuery
View footer.js
@daverogers
daverogers / jquery.capitalize.js
Created Mar 11, 2013
Extends jQuery via prototype to capitalize the first letter of each word in a sentence ('all'), just the first word in a sentence (default), or title text ('title' - capitalizes each word in the sentence minus words like "the", "and", "or", "but" etc. Usage included under code.
View jquery.capitalize.js
String.prototype.capitalize = function(type) {
// if type = all, capitalize first letter of each word
if(type === 'all'){
array = this.split(' '); // split on spaces
capitalized = '';
$.each(array, function( index, value ) {
capitalized += value.charAt(0).toUpperCase() + value.slice(1);
@daverogers
daverogers / coffeescript-homebrew
Last active Dec 14, 2015 — forked from Frobitz/coffeescript-homebrew
Installing CoffeeScript through Homebrew in Terminal.
View coffeescript-homebrew
1) Install Homebrew
'ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)'
2) Install Node (also installs NPM)
'brew install node'
3) Set up the PATH to include NPM module executables
You can’t perform that action at this time.