Skip to content

Instantly share code, notes, and snippets.

View SeanPlusPlus's full-sized avatar

Sean Stephenson SeanPlusPlus

View GitHub Profile
var arr = [
'James Harden, PG',
'Anthony Davis, PF',
'LeBron James, SF',
'Damian Lillard, PG',
'Giannis Antetokounmpo, PF',
'Kevin Durant, SF',
'Russell Westbrook, PG',
'Kyrie Irving, PG',
'LaMarcus Aldridge, C',
@SeanPlusPlus
SeanPlusPlus / 2018-masters-start-list.txt
Created April 3, 2018 21:29
2018 Masters Start List
Kiradech Aphibarnrat
Daniel Berger
Wesley Bryan
Angel Cabrera
Rafael Cabrera-Bello
Patrick Cantlay
Paul Casey
Kevin Chappell
Austin Cook
Fred Couples
const request = require('request')
const moment = require('moment-timezone')
exports.handler = function(event, context, callback) {
const SLACK_CHANNEL = process.env.SLACK_CHANNEL
const channel = SLACK_CHANNEL
const icon_emoji = ':robot_face:'
const username = 'stokebot'
const fallback = 'Required plain-text summary!'
const color = '#36a64f'
@SeanPlusPlus
SeanPlusPlus / scrambler.js
Created June 9, 2017 19:41
The Scrambler
import request from 'request'
import money from 'money-math'
// This:
// const b64string = 'R3Vlc3MgeW91IHJlYWxseSBhcmUgdXAgZm9yIGEgY2hhbGxlbmdlLiBHZXQgdGhlIGNvbWJpbmVkIHRvdGFsIGNvc3Qgb2YgdGhlIHR3byBtb3N0IGV4cGVuc2l2ZSBwcm9kdWN0cyBhbmQgdGhlIHR3byBsZWFzdCBleHBlbnNpdmUgcHJvZHVjdHMgYXQgdGhpcyBlbmRwb2ludCwgYW5kIHRoZXJlJ3MgeW91ciBhbnN3ZXI6IGh0dHA6Ly93d3cuY29kZXdpdGh0YXJnZXQuY29tL2Fzc2V0cy9kYXRhL3RoZS1zY3JhbWJsZXIuanNvbg=='
// const buf = Buffer.from(b64string, 'base64')
// console.log(buf.toString())
// Produces this:
// Get the combined total cost of the two most expensive products
@SeanPlusPlus
SeanPlusPlus / update.js
Last active June 9, 2017 06:27
update nested property using Object.assign
const state = {
meta: {
attrs: [ 'dude' ],
data: {
foo: 'bar',
stuff: [
'x',
'y',
]
},
@SeanPlusPlus
SeanPlusPlus / sms_loadfile.cpp
Created April 10, 2017 16:29
first program I ever wrote professionally
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ifstream input_file_counter("input_file.txt");
int temp;
int NUMBER_OF_DOCUMENTS = 0;
{
"name": "startingOffPoint",
"version": "1.0.0",
"main": "app.js",
"license": "MIT",
"scripts": {
"start": "nodemon app.js --exec babel-node --presets latest"
},
"dependencies": {
"console-emoji": "^0.0.2",
@SeanPlusPlus
SeanPlusPlus / binary_search.py
Created March 9, 2017 22:26
binary search in python
#!/usr/bin/env python
import time
from bisect import bisect_left
def binary_search(a, x):
# implement binary_search
return
def main():
a1 = [12, 16, 24, 37, 102, 109]

Keybase proof

I hereby claim:

  • I am seanplusplus on github.
  • I am seanplusplus (https://keybase.io/seanplusplus) on keybase.
  • I have a public key whose fingerprint is C953 9F4B 686A F7C3 D4B7 4CDA D3D4 4B72 3E5A CC7B

To claim this, I am signing this object:

import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, bindActionCreators } from 'redux';
import Navigation from './navigation';
import { reducers, logger } from './reducers';
const middleware = applyMiddleware(logger);
const store = createStore(
reducers,
{ greeting: '(Roll over me) '},