Skip to content

Instantly share code, notes, and snippets.

View Robert-Wett's full-sized avatar
🙌

Rob Wettlaufer Robert-Wett

🙌
  • Los Angeles, CA
  • 14:58 (UTC -07:00)
View GitHub Profile
@Robert-Wett
Robert-Wett / payload.json
Created February 28, 2020 17:21
interview thing
{
"status": "ok",
"payload": {
"data": [
{
"id": "36961987056",
"title": "SEASON 2 CONSPIRACY THEORIES - @SypherPK on all Socials - !Respawn !MVMT",
"thumbnailUrl": "https://static-cdn.jtvnw.net/previews-ttv/live_user_sypherpk-320x180.jpg",
"publishedDate": "2020-02-18T15:26:00Z",
"viewerCount": 9551,
@Robert-Wett
Robert-Wett / main.go
Created December 16, 2017 00:06
day13
package main
import (
"fmt"
"math"
"strconv"
"strings"
"github.com/Robert-Wett/AdventOfCode2017/helpers"
)
@Robert-Wett
Robert-Wett / day1.go
Last active December 1, 2017 17:57
AoC2017
package main
import (
"fmt"
"strconv"
"strings"
"container/ring"
)
func main() {
@Robert-Wett
Robert-Wett / settings.json
Last active August 16, 2018 21:19
VS Code settings
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.foldFix": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": [
import './App.css'
import { h, Component, cloneElement } from 'preact'
export default class App extends Component {
render() {
return (
<KonamiZone>
<HelloWorld />
</KonamiZone>
@Robert-Wett
Robert-Wett / index.js
Created November 24, 2015 19:54
POC lambda func to strip exif from jpegs; needs to use two different bucket sources though
var path = require( 'path' );
var aws = require( 'aws-sdk' );
var exec = require( 'child_process' ).exec;
var cmd = "exiftool -Orientation='' ";
var promise = require( 'bluebird' );
var fs = require( 'fs' );
var s3 = new aws.S3({apiVersion: '2006-03-01'});
function handler( event, context ) {
@Robert-Wett
Robert-Wett / .vimrc
Last active December 10, 2015 21:21
.vimrc
execute pathogen#infect()
set nu
set numberwidth=2
set incsearch
set ignorecase
set tabstop=2
set shiftwidth=2
set expandtab
" Based on the current language set, any time you insert, it'll auto format
" for you
@Robert-Wett
Robert-Wett / main.js
Created May 29, 2015 00:30
Explain this!
var fn = function even( n ) {
if ( n === 0 ) {
return true;
}
else {
return !even( n - 1 );
}
}
@Robert-Wett
Robert-Wett / README.md
Last active August 29, 2015 14:19
Simple TODO logger in node

hi

@Robert-Wett
Robert-Wett / Challenge.js
Created February 3, 2015 03:13
Repeated Characters in a String
/**
* Return the number of characters that are repeated in a given word/sentence
*/
// mine, with no big bells and whistles. Split the text and increase the count
// for each instance of the character. Tally everything above count of 1 and return.
function duplicateText( text ) {
var counts = {};
var numDups = 0;
text.split('').map(function( c ) {