Skip to content

Instantly share code, notes, and snippets.

View karthickarun19's full-sized avatar

Karthick karthickarun19

  • San francisco,CA
View GitHub Profile
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@karthickarun19
karthickarun19 / myscript.sh
Created October 28, 2018 16:53 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@karthickarun19
karthickarun19 / CSV.java
Created September 20, 2018 16:00 — forked from timothyshort/CSV.java
Read a CSV file and return a List of arrays
// This method will read a CSV file and return a List of String[]
public static List<String[]> get(String filename) {
List<String[]> data = new ArrayList<String[]>();
String testRow;
try {
// Open and read the file
BufferedReader br = new BufferedReader(new FileReader(filename));
// Read data as long as it's not empty
// Parse the data by comma using .split() method
// Place into a temporary array, then add to List
@karthickarun19
karthickarun19 / README.md
Created August 1, 2018 21:37 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@karthickarun19
karthickarun19 / webdev_online_resources.md
Created July 17, 2018 14:43 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
import java.util.LinkedList;
public class Graph {
int vertex;
LinkedList<Integer> list[];
public Graph(int vertex) {
this.vertex = vertex;
list = new LinkedList[vertex];
for (int i = 0; i <vertex ; i++) {