Install needed node packages:
npm install -g cylon-ble
npm install cylon cylon-ollie
First scan for your BB8 (the device name should contain BB in it):
> sudo cylon-ble-scan
[...]
| import os | |
| import requests | |
| PLAYLIST_URI = os.environ['PLAYLIST_URI'] | |
| SPOTIFY_TOKEN = os.environ['SPOTIFY_TOKEN'] # from default api login or more easily from chrome network inspecting calls directed to api.spotify.com | |
| url = "https://api.spotify.com/v1/playlists/{}".format(PLAYLIST_URI) | |
| querystring = {"type": "track,episode", "market": "from_token"} | |
| headers = { |
| #!/usr/bin/env ruby | |
| begin | |
| require "parallel" | |
| PARALLEL = true | |
| rescue LoadError | |
| PARALLEL = false | |
| end | |
| def each collection, &block |
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |
| trait MyActor | |
| case class InMemoryActor() extends MyActor | |
| case class ProductionActor(connection: DBConnection) extends MyActor | |
| case class MyService(actor: MyActor) | |
| object MyService { | |
| def fromConfig(config: Config): ConfigError Xor MyActor = |
| import cats.Show | |
| import shapeless._ | |
| import shapeless.ops.record._ | |
| import shapeless.ops.hlist._ | |
| import scala.collection.immutable | |
| trait Tablifier[A] { | |
| def head: List[String] |
Install needed node packages:
npm install -g cylon-ble
npm install cylon cylon-ollie
First scan for your BB8 (the device name should contain BB in it):
> sudo cylon-ble-scan
[...]
| # Install QEMU OSX port with ARM support | |
| sudo port install qemu +target_arm | |
| export QEMU=$(which qemu-system-arm) | |
| # Dowload kernel and export location | |
| curl -OL \ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
| export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
| # Download filesystem and export location |
| #!/usr/bin/env python | |
| # BB-8 Python driver by Alistair Buxton <[email protected]> | |
| from bluepy import btle | |
| import time | |
| class BB8(btle.DefaultDelegate): | |
| def __init__(self, deviceAddress): |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| pip install networkx distance pattern | |
| In Flipboard's article[1], they kindly divulge their interpretation | |
| of the summarization technique called LexRank[2]. |
| import logging | |
| import uuid | |
| import time | |
| from mesos.interface import Scheduler | |
| from mesos.native import MesosSchedulerDriver | |
| from mesos.interface import mesos_pb2 | |
| logging.basicConfig(level=logging.INFO) |