Skip to content

Instantly share code, notes, and snippets.

View elwarren's full-sized avatar

elwarren elwarren

  • this is fun stuff not work
View GitHub Profile
@elwarren
elwarren / avplayer.py
Created September 22, 2017 14:34 — forked from jsbain/avplayer.py
avplayer.py
'''
minimal avplayer example
'''
from objc_util import *
AVPlayerItem=ObjCClass('AVPlayerItem')
AVPlayer=ObjCClass('AVPlayer')
AVPlayerLayer=ObjCClass('AVPlayerLayer')
import photos
def pick_asset():
assets = photos.get_assets(media_type='video')
@elwarren
elwarren / snsToSlack.js
Created January 7, 2018 17:34 — forked from terranware/snsToSlack.js
AWS Lambda function to Slack Channel hookup
var https = require('https');
var util = require('util');
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);
var postData = {
"channel": "#aws-sns",
"username": "AWS SNS via Lamda :: DevQa Cloud",
@elwarren
elwarren / docker-compose.yml
Created February 21, 2018 05:45 — forked from cboettig/docker-compose.yml
debugging NGINX configuration for Jupyter
jupyter:
image: jupyter/datascience-notebook
environment:
- PASSWORD=${PASSWORD}
nginx:
image: nginx
links:
- jupyter
@elwarren
elwarren / keybase.md
Created July 20, 2019 00:10
keybase.md

Keybase proof

I hereby claim:

  • I am elwarren on github.
  • I am elwarren (https://keybase.io/elwarren) on keybase.
  • I have a public key ASCqKM57aJwzubdZQ3_QC_2YJQfv_Apf6hPBTZc1l2XaOAo

To claim this, I am signing this object: