Skip to content

Instantly share code, notes, and snippets.

Blaine Motsinger renderorange

Block or report user

Report or block renderorange

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
View gist:088bb6109069c8a9837e309dd23dfe3f
### Keybase proof
I hereby claim:
* I am renderorange on github.
* I am renderorange (https://keybase.io/renderorange) on keybase.
* I have a public key ASBLxJ15x3md42ou3JxrLUzHyLtWAkVXRNc4QwJYHuoH8wo
To claim this, I am signing this object:
@renderorange
renderorange / config
Last active Mar 27, 2019
ssh config for authentication with github
View config
Host github.com
IdentityFile ~/.ssh/id_rsa
User git
@renderorange
renderorange / getSenateBillsPassed.js
Last active Oct 16, 2018
propublica GET request via javascript
View getSenateBillsPassed.js
const request = require( 'request' );
let options = {
url: 'https://api.propublica.org/congress/v1/115/senate/bills/passed.json',
headers: {
'X-API-Key': 'apikeygoeshere'
},
json: true
};
View getInitials prototype
function Person( first, last ) {
this.firstName = first;
this.lastName = last;
}
Person.prototype.getInitials = function() {
let firstInitial = this.firstName.substring( 0, 1 ).toUpperCase();
let lastInitial = this.lastName.substring( 0 , 1 ).toUpperCase();
return firstInitial + lastInitial;
};
View csv_date_grepper.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
$|=1;
View read_csv.pl
#!/usr/bin/perl
use strict;
use warnings;
my ( $csv, $date_low, $date_high ) = @ARGV;
# my $counter = 0;
open( my $csv_fh, '<', $csv ) or die "open $csv: $!\n";
View change_this.php
<?php
class Auth extends TestCase
{
private $auth_token;
// verify API response if invalid credentials
function test_invalid_credentials()
{
$this->post('/authenticate', ['email' => 'false', 'password' => 'false'])
You can’t perform that action at this time.