Skip to content

Instantly share code, notes, and snippets.

View pebbie's full-sized avatar

Peb Ruswono Aryan pebbie

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pebbie on github.
  • I am pebaryan (https://keybase.io/pebaryan) on keybase.
  • I have a public key whose fingerprint is 4FC2 EC77 8E45 84A6 EABC E49A A5BA 8E20 F980 59A5

To claim this, I am signing this object:

@pebbie
pebbie / restbed-vs2017.md
Created December 11, 2018 16:31
Building restbed in Windows using Visual Studio 2017 (x64)

Building

  1. Install perl (strawberry) and NASM

  2. build openssl

    1. go to dependency\openssl directory
    2. perl Configure VC-WIN64A
    3. run nmake and libssl and libcrypto (lib & dll) will be generated at the dependency\openssl directory
  3. modify cmake\findOpenSsl.cmake and insert libssl.lib and libcrypto.lib

@pebbie
pebbie / proj4-win64-msvc-2017.md
Last active August 1, 2020 01:12
building proj6 on visual studio 2017 (windows)

Howto build PROJ6 on Windows (Visual Studio 2017-x64)

1. Download SQLITE3

  • build sqlite3.dll :cl sqlite3.c /LD

  • generate sqlite3.lib : lib sqlite3.obj

  • build sqlite3.exe : cl shell.c sqlite3.lib -o sqlite3.exe

@pebbie
pebbie / tiffdump.py
Created July 20, 2018 12:55
hopefully generic TIFF file format extraction tool (GeoTIFF, NEF, ARW)
"""
\description TIFF file format dump
\author paryan
"""
from __future__ import print_function
import argparse
from struct import *
import os
import os.path as path
@pebbie
pebbie / tif2kmz.py
Created May 23, 2018 11:38
convert georeferenced raster (GDAL known formats) into kml/kmz for display as ground overlay in google earth
# -*- coding: utf-8 -*-
"""
Produce raster ground overlay for Google Earth from GDAL raster file (color/gray interpretation)
\author paryan
\date 2018.05.17
"""
import argparse
import os
import os.path as path
@pebbie
pebbie / dataset-management.md
Created July 13, 2016 12:51 — forked from mheadd/dataset-management.md
Sample API calls for creating, updating and deleting things in CKAN via the CKAN API.

Get package list

curl http://test.civicdata.com/api/action/package_list

Get package details

curl http://test.civicdata.com/api/action/package_show?id={package_id}

Upload a file to storage

curl http://test.civicdata.com/api/storage/auth/form/testdata/test.csv -H "Authorization: <API-KEY>"
@pebbie
pebbie / bdg-bus-stop.geojson
Last active July 12, 2016 11:21
Lokasi Tempat berhenti angkot-bus di Bandung
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.
@pebbie
pebbie / glosarium.py
Created May 27, 2016 10:50
database glossarium.db unduh di https://goo.gl/rKb4EB
# -*- coding: utf-8 -*-
"""
Aplikasi Glosarium Bahasa Inggris - Bahasa Indonesia
ditulis ulang berdasarkan data dari aplikasi Glosarium versi Pusat Bahasa (Windows only) thn 2006
oleh Peb Ruswono Aryan (2016)
bergantung pada paket : PySide
"""
@pebbie
pebbie / metric.py
Last active February 9, 2023 15:22
H-DIBCO evaluation metric
"""
author : Peb Ruswono Aryan
metric for evaluating binarization algorithms
implemented :
* F-Measure
* pseudo F-Measure (as in H-DIBCO 2010 & 2012)
* Peak Signal to Noise Ratio (PSNR)
* Negative Rate Measure (NRM)