Skip to content

Instantly share code, notes, and snippets.

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@daitomanabe
daitomanabe / neural-style-gpu-in-ec2.markdown
Last active June 1, 2016 00:57
easy set up for neural-stlye with Cuda7.5 + cuDNN5 in EC2

#neural-style with Cuda7.5 + cuDNN5 in EC2

  • if you want to skip installing nvidia driver and cuda7.5, use this Ubuntu 14 AMI.
    https://aws.amazon.com/marketplace/pp/B01EYKBEQ0
    (Nvidia Drivers, Cuda 7.5 Toolkit, cuDNN pre-installed with Nvidia Drivers, Cuda 7.5 Toolkit, cuDNN 4, TensorFlow, and Jupyter to leverage Nvidia GRID instances)
    g2.2xlarge or better (GPU instance)
    Don't forget to make your root partition size bigger.

  • In case you want to install everything by yourself

@gbaman
gbaman / HowToOTGFast.md
Last active May 1, 2024 08:26
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH i

@jduck
jduck / nexus-ota-updates-2016-05-01.md
Last active September 18, 2016 09:32
May 2016 Nexus OTA Updates - Security Level 2016-05-01

DockerでROSを動かす Tutorials

roscoreを起動する

docker run -h master -it --rm --name master --env ROS_HOSTNAME=master osrf/ros:jade-desktop-full roscore

talkerを起動する

@ruffsl
ruffsl / Dockerfile
Last active February 28, 2024 23:49
Small ROS Network Example
FROM ros:indigo-ros-base
# install ros tutorials packages
RUN apt-get update && apt-get install -y \
ros-indigo-ros-tutorials \
ros-indigo-common-tutorials \
&& rm -rf /var/lib/apt/lists/
@t2psyto
t2psyto / show_0sim_usage.py
Created January 27, 2016 14:53
so-net 0SIM のユーザーページから データ使用量速報値 と 当月請求明細 を取得
# -*- coding: utf-8 -*-
_0SIM_PHONECODE = "080XXXXXXXX"
_0SIM_PASSWORD = "NNNNNNNN"
import mechanicalsoup
import re
def show_0sim_usage(account, password):
br = mechanicalsoup.Browser(soup_config = {"features":'html.parser'})
@hamajyotan
hamajyotan / 0sim
Last active September 30, 2016 13:53
So-net 0sim
#!/usr/bin/env ruby
require 'bundler'
Bundler.require
Capybara.run_server = false
Capybara::Session.new(:poltergeist).tap do |page|
page.visit 'https://www.so-net.ne.jp/retail/w/'
page.within 'form[name=Login]' do
page.find('input[name=IDToken1]').set ENV['ZEROSIM_ID']
@hashrock
hashrock / diag.md
Last active February 26, 2024 05:51
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@xavriley
xavriley / README.md
Last active September 4, 2017 13:48
Converting music XML to Sonic PI

Convert a MusicXML file to Sonic Pi instruction.

Very basic - proof of concept so far