Skip to content

Instantly share code, notes, and snippets.

View johncf's full-sized avatar

John Charankattu johncf

View GitHub Profile
@johncf
johncf / Java.md
Last active October 19, 2017 15:32
Introduction to Programming through Java

Java Tutorial

Terminology Note

A program may refer to something that can be readily run/executed (such as an application software), or it may refer to the entire "source code" that the application is generated from. Source Code refers to the human-readable form of the program that is written in a programming language such as Java. "Source code" is often shortened to just "code", although "code" often refers to smaller parts of the complete source code.

In short, "program", "source code" and "code" are very related terms, and for our purposes, we might use them interchangeably.

First Program

@johncf
johncf / csv2json.py
Created July 3, 2017 08:23
Backblaze CSV data to JSON format using SMART names
#!/bin/python
import csv
import json
import sys
def key_proc(key):
return {
'smart_1_raw': '001R_read_err_rate',
'smart_1_normalized': '001N_read_err_rate',
The end result is the same. :: DH AH _ EH N D _ R IH Z AH L T _ IH Z _ DH AH _ S EY M .