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
#include <M5Atom.h> | |
#include <BLEDevice.h> | |
// Contact Tracing Bluetooth Specification (Apple/Google) | |
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf | |
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb"; | |
bool found = false; | |
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { | |
void onResult(BLEAdvertisedDevice advertisedDevice) { |
前は Apple Music 使ってましたが、家では Chromecast で聴きたいという理由で Google Play Music に変えました。 仕事中は歌詞が頭に入ってきちゃうので日本語詞の曲はあまり聴きません。 (仕事以外の時には聴きます)
- Repulsion / Horrified (Amazon) やけくそな感じが良い
- Extreme Noise Terror / A Holocaust In Your Head (Amazon) グシャバタで良い
- Heresy / Face Up To It (Amazon) とても速い
- Terrorizer / World Downfall (Amazon) 速い & 上手い
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
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
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
#!/bin/sh | |
DATE=`date '+%y%m%d%H%M%S'` | |
adb shell screencap -p /sdcard/screen-${DATE}.png | |
adb pull /sdcard/screen-${DATE}.png | |
adb shell rm /sdcard/screen-${DATE}.png |
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
# Sample setting gradle version | |
dependencies: | |
cache_directories: | |
- "~/gradle-1.9" | |
pre: | |
- "[[ -d ~/gradle-1.9 ]] || ( curl -L -o /tmp/gradle.zip 'http://services.gradle.org/distributions/gradle-1.9-bin.zip' && unzip -d ~ /tmp/gradle.zip )" | |
- echo 'export PATH=~/gradle-1.9/bin:$PATH' >> ~/.circlerc |
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
moved to https://github.com/quipper/github-url.el |
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
#!/bin/sh | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... | |
# 1. Copy the file into your repo at `.git/hooks/pre-push` | |
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style type="text/css"> | |
.selectedTarget { background-color: red} | |
#halo input { | |
background: #88ffff; | |
border-radius: 8px; | |
margin: 0; | |
width: 3em; |
NewerOlder