A simple example of using Markdown mark-up language.
This file contains 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
/** | |
* An implementation of a {@link Rule} overriding {@link TestWatcher} methods. | |
* A class only to be used for logging test cases activities. | |
* | |
* @author Kranthi Lakum | |
* | |
*/ | |
public class TestWatch extends TestWatcher | |
{ | |
// SLF4J Logger instance for this class. |
This file contains 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
/** | |
* A class to illustrate the use of Apache Commens Net FTP connection. | |
* | |
* @author Kranthi Lakum | |
*/ | |
public class FileTransfer | |
{ | |
private static FTPClient theFtpClient = new FTPClient(); | |
private static int theCode; | |
private static Logger myLogger = LoggerFactory.getLogger(FileTransfer.class); |
Clone existing repository
git clone <link to repository>
Changes in working directory
git status -s
package com.java.difference;
import java.math.BigInteger;
import java.util.Random;
import java.util.Scanner;
/**
* Difference between large random numbers.
*/
This file contains 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
#!/bin/sh | |
####################################################### | |
# UNIX TREE # | |
# Version: 2.3 # | |
# File: ~/apps/tree/tree.sh # | |
# # | |
# Displays Structure of Directory Hierarchy # | |
# ------------------------------------------------- # | |
# This tiny script uses "ls", "grep", and "sed" # | |
# in a single command to show the nesting of # |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function today() | |
{ | |
var day = new Date(); | |
var dayNames = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", | |
"Thursday", "Friday", "Saturday"); | |
var x = document.getElementById("myDay"); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Round-Cornered Square</title> | |
<style type="text/css"> | |
.polygon { | |
margin: 5px 0 5px 20px; | |
width: 150px; | |
height: 150px; |
This file contains 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class ReadInput { | |
public static void main(String[] args)throws IOException { | |
int age = 0; | |
boolean married = false; | |
String gender = null; |
This file contains 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
# !/bin/bash | |
# author: Robert Mark Bram | |
# link: http://robertmarkbramprogrammer.blogspot.se/2007/06/cygwin-bash-script-open-windows.html | |
usage () | |
{ | |
echo "Open Windows Explorer" | |
echo "Usage: $0 [-help] [path]" | |
echo " [path]: folder at which to open Windows Explorer, will" | |
echo " default to current dir if not supplied." |
OlderNewer