Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am leroix on github.
  • I am leroix (https://keybase.io/leroix) on keybase.
  • I have a public key ASAmcf_jWx1J2fwo97dt4VDyf38vSgAyreUvSve-XUpaVwo

To claim this, I am signing this object:

Process: mksnapshot [32306]
Path: /Users/USER/*/mksnapshot
Identifier: mksnapshot
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [46428]
Responsible: Terminal [38984]
User ID: 501
Date/Time: 2017-12-19 23:44:43.869 -0700
Process: Electron Helper [46234]
Path: /Users/USER/*/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper
Identifier: Electron Helper
Version: 0
Code Type: X86-64 (Native)
Parent Process: Electron [46230]
Responsible: Terminal [546]
User ID: 501
Date/Time: 2017-12-13 18:09:01.987 -0700
Process: Atom Helper [22671]
Path: /Users/USER/*/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Identifier: Atom Helper
Version: 1.24.0-dev-44b568f (1.24.0-dev-44b568f)
Code Type: X86-64 (Native)
Parent Process: Atom [22667]
Responsible: Terminal [445]
User ID: 501
Date/Time: 2017-12-14 22:38:29.291 -0700
Process: Atom Helper [17321]
Path: /Users/USER/*/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Identifier: Atom Helper
Version: 1.24.0-dev-44b568f (1.24.0-dev-44b568f)
Code Type: X86-64 (Native)
Parent Process: Atom [17317]
Responsible: Terminal [754]
User ID: 501
Date/Time: 2017-12-08 17:54:06.872 -0700
This file has been truncated, but you can view the full file.
{
"entrant-id": "{{ issue.user.id }}"
, "entrant-name": "{{ issue.user.login }}"
, "entrant-display": "{{ issue.user.login }}"
, "entry": "{{ issue.url }}"
, "time": "{{ issue.created_at }}"
}
var combinators = require('fantasy-combinators')
var compose = combinators.compose
var identity = combinators.identity
var flip = combinators.flip
var add = function (a) {
return function (b) {
return b + a
}
var fs = require('fs')
var Either = require('fantasy-eithers')
var Option = require('fantasy-options')
var Promise = require('fantasy-promises')
var EitherT = Either.EitherT
var OptionT = Option.OptionT
var EitherPromise = EitherT(Promise)
@leroix
leroix / volume.py
Created May 4, 2015 21:59
Getting and setting the chromecast volume
#! /usr/bin/env python
import sys
import time
import pychromecast
requested_volume = float(sys.argv[1]) if len(sys.argv) > 1 else None
cast = pychromecast.get_chromecast()