Skip to content

Instantly share code, notes, and snippets.

View rajadain's full-sized avatar

Terence Tuhinanshu rajadain

View GitHub Profile
@rajadain
rajadain / README.md
Last active September 4, 2018 17:52
subbasin-diff

Diff in Subbasin results of "South Branch Rancocas Creek, HUC-10 Watershed ID 0204020202" between baseline (production) and post-land use change in WikiWatershed/model-my-watershed#2944

@rajadain
rajadain / haskellbook-chapter-22-exercises.hs
Last active December 20, 2017 22:31
Notes and exercises for Haskell Book Chapter 22: Reader
module ExerciseChapter22 where
import Control.Applicative
import Data.Maybe
x = [1, 2, 3]
y = [4, 5, 6]
z = [7, 8, 9]
xs :: Maybe Integer
@rajadain
rajadain / mmw-cli.py
Created November 14, 2017 17:53
MapShed CLI Test Query
from __future__ import print_function
import time
import requests
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / bigcz-cocorahs-fail.ipynb
Created October 29, 2017 19:20
Demo of ULMO failure when fetching data for CoCoRAHS service
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / bigcz-differing-dates.ipynb
Last active September 28, 2017 14:02
Notebook showing differing dates from CUAHSI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / haskellbook-chapter-13-hangman.hs
Created September 19, 2017 01:44
Haskell Book Chapter 13
module Main where
import Control.Monad (forever)
import Data.Char (toLower)
import Data.Maybe (isJust)
import Data.List (intersperse, nub)
import System.Exit (exitSuccess)
import System.Random (randomRIO)
import System.IO
@rajadain
rajadain / 11-exercise-phone.hs
Created September 5, 2017 20:10
Haskell Book Chapter 11 Exercise: Phone
-- 11-exercise-phone.hs
module ExercisePhone where
import Data.Char
import Data.List
import Data.Maybe
type Key = Char
type Presses = Int
@rajadain
rajadain / haskellbook-chapter-10-notes.md
Created August 22, 2017 07:39
Haskell Book Chapter 10 Notes and Exercises

Notes and Exercises from Chapter 10 of Haskell Book

Undefined Spine vs Undefined Item

[1, 2, 3] ++ undefined
 :
@rajadain
rajadain / README.md
Last active August 9, 2017 20:44
PNG to GeoTrellis ColorMap

Requirements

Demo

$ ./convert.sh ppt_colorbar.png
+ gm convert ppt_colorbar.png txt:-