This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"strconv" | |
"strings" | |
"github.com/Robert-Wett/AdventOfCode2017/helpers" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
"container/ring" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useSystemClipboard": true, | |
"vim.useCtrlKeys": true, | |
"vim.foldFix": true, | |
"vim.hlsearch": true, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './App.css' | |
import { h, Component, cloneElement } from 'preact' | |
export default class App extends Component { | |
render() { | |
return ( | |
<KonamiZone> | |
<HelloWorld /> | |
</KonamiZone> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fn = function even( n ) { | |
if ( n === 0 ) { | |
return true; | |
} | |
else { | |
return !even( n - 1 ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 ) { |
NewerOlder