Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- | |
-- 🍣-soku-enzan.hs | |
-- | |
(🍣) = (+) | |
(🍣🍣) = (-) | |
(🍣🍣🍣) = (*) | |
(🍣🍣🍣🍣) = (/) | |
main :: IO () |
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
require 'csv' | |
filename = "test.tsv" | |
# read original_records into hash | |
original_records = [] | |
headers = [] | |
CSV.read(filename, :col_sep => "\t", headers: false).each_with_index do |row, i| | |
if i == 0 then | |
headers = row | |
next |
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
import System.Random.MWC | |
np = 1000000 | |
tau = 1.0 -- cloud optical thickness | |
sal = 0.5 -- surface albedo | |
omg = 1.0 -- single scattering albedo | |
zu = tau -- atmosphere upper boundary | |
zb = 0.0 -- atmosphere lower boundary |
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
{-# LANGUAGE ExtendedDefaultRules, NoMonomorphismRestriction #-} | |
import Conduit | |
np = 10000 | |
tau = 1.0 -- cloud optical thickness | |
sal = 0.5 -- surface albedo | |
omg = 1.0 -- single scattering albedo | |
zu = tau -- atmosphere upper boundary | |
zb = 0.0 -- atmosphere lower boundary |
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
local cjson = require "cjson" | |
-- Basic account info | |
local client_id = "" | |
local client_secret = "" | |
local refresh_token = "" | |
local boundary = "--61141483716826" | |
local function checkWlanConnect() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>iterm_wpchange</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/sh</string> | |
<string>/Users/okamura/.iterm_wp/wpchange.sh</string> |
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 | |
CMDNAME=`basename $0` | |
BASE_DIR=$(cd $(dirname $0);pwd) | |
image_list=(${BASE_DIR}/*.jpg) | |
numimglist=${#image_list[@]} | |
rannum=$(( $RANDOM % ${numimglist})) | |
image_path=${image_list[$rannum]} |
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
local cjson = require "cjson" | |
-- Basic account info | |
local client_id = "" | |
local client_secret = "" | |
local refresh_token = "" | |
local boundary = "--61141483716826" | |
local function getAuth() |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# plot-3d-ipa.rb | |
# | |
# Author: | |
# Rintaro Okamura | |
# | |
# Requires ruby-netcdf |