Skip to content

Instantly share code, notes, and snippets.

View tkanmae's full-sized avatar

Takeshi Kanmae tkanmae

View GitHub Profile
#
input: "data"
input_dim: 1
input_dim: 3
input_dim: 473
input_dim: 473
layer {
name: "conv1_1_3x3_s2"
type: "Convolution"
@tkanmae
tkanmae / Approximate_Truncated_Normal_Distribution.ipynb
Last active September 12, 2018 03:12
Approximate_Truncated_Normal_Distribution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkanmae
tkanmae / aws-ec2-g2-instances-setup.md
Last active May 16, 2017 22:10
AWS EC2 g2 Instances setup
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo reboot

NVIDIA Driver

@tkanmae
tkanmae / geodetic_horizontal.cpp
Last active August 29, 2015 14:25
Test data for transformation between geodetic coordinates and local horizontal ones.
//
// This program produces test data for transformation between geodetic
// coordinates and local horizontal coordinates.
//
// $ cland geodetic_horizontal.cpp -o geodetic_horizontal -lGeographic
//
#include <iostream>
#include <exception>
#include <cmath>
@tkanmae
tkanmae / geodetic_geocentric.cpp
Created July 15, 2015 11:23
Test data for transformation between geodetic coordinates to geocentric ones
//
// This program produces test data for tranformation between geodetic
// coordinates to geocentric ones.
//
// $ clang++ geodetic_geocentric.cpp -o geodetic_geocentric -lGeographic
//
#include <iostream>
#include <exception>
#include <cmath>
@tkanmae
tkanmae / install-pyqt4.sh
Last active December 26, 2018 09:41
Script for installing SIP and PyQt4 on Mac OS X.
#!/usr/bin/env bash
#
# Script for installing SIP and PyQt4 on Mac OS X.
#
SIP_VERSION="4.16.6"
PYQT_VERSION="4.11.3"
DOWNLOAD_CACHE_DIR="$HOME/Library/Caches/pip"
[[ -d "$DOWNLOAD_CACHE_DIR" ]] || mkdir -p "$DOWNLOAD_CACHE_DIR"
def difference_in_wavenumbers(delta_cm, at_nm):
"""
Parameters
----------
delta_cm : float
Difference in wavenumbers (cm-1)
at_nm : float
Wavelength (nm) at which `delta_cm` is evaluated.
Returns
@tkanmae
tkanmae / create_ground_control_points.py
Last active August 29, 2015 14:04
Create ground control points (GCPs) from a navigation file of the GOES images
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This script creates ground control points (GCPs) from naviigation files for
the GOES images.
The navigation files can be obtained from a web site hosted by the NASA Goddard
Flight Center (GSFC):
http://goes.gsfc.nasa.gov/goeswest/ or
http://goes.gsfc.nasa.gov/goeseast/
@tkanmae
tkanmae / 00-add_git_root_dir.py
Last active August 29, 2015 14:01
IPython startup scripts
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Add the top directory of a git-managed project to `sys.path`."""
import os
import shlex
import subprocess
import sys
cmd = 'git rev-parse --show-toplevel'