git checkout -- < file >
> git reset HEAD < file >
var mySingleton = (function () { | |
// Instance stores a reference to the Singleton | |
var instance; | |
function init() { | |
// Singleton | |
// Private methods and variables |
<div class="col-12"> | |
<h1>Header</h1> | |
</div> | |
<div class="col-3"> | |
<ul> | |
<li>Menu 1</li> | |
<li>Menu 2</li> | |
<li>Menu 3</li> | |
<li>Menu 4</li> |
/** | |
* Sample class file for above unit tests | |
*/ | |
public class QueryBoard { | |
int[] nums; | |
QueryBoard() { | |
nums = new int[10]; | |
} | |
Table of Contents
Script:
# Read table data from csv file
data <- read.table("data.csv", header=T, sep=",")
# Start PDF device driver to save output to skills.pdf
pdf(file="skills.pdf", height=3.5, width=5)
# Draw bar chart
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. Originally forked from Tristan Siegel's Gist.
###Array ####Definition:
public static void ConvertSec2DaysHoursMinsSecs(int timeDiff) { | |
int days = (int) Math.floor(timeDiff / 86400); | |
int hour = (int) Math.floor((timeDiff % 86400) / 3600); | |
int min = (int) Math.floor((timeDiff % 3600) / 60); | |
int sec = (int) (timeDiff % 60); | |
System.out.println("(" + days + " " + hour + " " + min + " " + sec + ")"); | |
} |
# PythonUnitTest.py
import unittest
class Sort(unittest.TestCase):
def setUp(self):