| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class BellmanFord | |
| { | |
| public static long dist[]; | |
| public static long prev[]; | |
| public static LinkedList<DirectedEdge> edgesList = new LinkedList<DirectedEdge>(); | |
| public static class DirectedEdge{ | |
| protected int v; | |
| protected int w; // edge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fetch from the default remote, origin | |
| git fetch | |
| # reset your current branch (master) to origin's master | |
| git reset --hard origin/master | |
| ### Ours Merging Method | |
| # fetch from the default remote, origin | |
| git fetch | |
| # create a branch at your current master |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status list which (unstaged) files have changed
-
Single-line comments are started with
//. Multi-line comments are started with/*and ended with*/. -
C# uses braces (
{and}) instead of indentation to organize code into blocks. If a block is a single line, the braces can be omitted. For example,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % -------------------------------------------------------------- | |
| % This is all preamble stuff that you don't have to worry about. | |
| % Head down to where it says "Start here" | |
| % -------------------------------------------------------------- | |
| \documentclass[12pt]{article} | |
| \usepackage[margin=1in]{geometry} | |
| \usepackage{amsmath,amsthm,amssymb} | |
NewerOlder
