Skip to content

Instantly share code, notes, and snippets.

View enobufs's full-sized avatar

Yutaka Takeda enobufs

  • Twitch Interactive, Inc.
  • Vacaville, CA
  • 23:56 (UTC -07:00)
View GitHub Profile

How to obtain Imanagent Dataset

Settings

Install kaggle CLI.

pip install kaggle

Then make sure that you have kaggle.json obtained from kaggle.com under $HOME/.kaggle/.

Download

@enobufs
enobufs / donkeycar-operation-notes.md
Last active October 28, 2018 03:13
Donkey Car: Operation notes

WiFi connection

Adding WiFi access point

  1. Hook monitor and keyboard via HDMI and USB cables.
  2. Login with username, "pi", and its password.
  3. sudo vi /etc/wpa_supplicant/wpa_supplicant.conf, then add network={} with your SSID and password (you can have more than one network section).
  4. sudo wpa_cli -i wlan0 reconfigure
  5. Note the MAC address for wlan0. (Later used to identify IP address from your laptop)

Find the IP address from your laptop

  1. Use ifconfig to learn your subnet broadcast address (e.g. 10.0.0.255)
@enobufs
enobufs / softmax.js
Created July 28, 2018 03:02
Softmax in JS using ndarray
const ndarray = require("ndarray");
const ops = require("ndarray-ops");
// Softmax in-place
const softmax = (() => {
function denom(arr, C) {
const tmp = ndarray(new Float32Array(arr.size));
ops.assign(tmp, arr);
ops.addseq(tmp, -C);
ops.expeq(tmp);
@enobufs
enobufs / export_1.js
Created August 19, 2016 19:03
Sample code for googleapis issue #618
// Copyright 2016, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.