Skip to content

Instantly share code, notes, and snippets.

@hgbrown
hgbrown / TextFileReader.java
Last active July 8, 2018 22:25
Java: TextFileReader
import java.io.IOException;
import java.util.Iterator;
import java.io.FileReader;
import java.io.BufferedReader;
/**
* Abstraction for reading the context of a text file into a String. Implements the
* Iterator pattern to read the content of a text file a single line at a time.
*
* @author <a href='mailto:henry.g.brown@gmail.com'>henry.g.brown@gmail.com</a>
@hgbrown
hgbrown / gist:4701415
Created February 3, 2013 11:35
JavaScript: Jquery ready handler - short version
$(function() {
// Handler for .ready() called.
});
@hgbrown
hgbrown / gist:4701447
Created February 3, 2013 11:43
JavaScript: jquery ready handler - long version
$(document).ready(function() {
// Handler for .ready() called.
});
@hgbrown
hgbrown / index.html
Last active December 12, 2015 02:58
HTML: Twitter Bootstrap Starter Template
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<h1>Hello, world!</h1>
<script src="http://code.jquery.com/jquery-latest.js"></script>
@hgbrown
hgbrown / signin.html
Created February 3, 2013 17:00
HTML: Twitter BootStrap Sign in Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sign in &middot; Twitter Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@hgbrown
hgbrown / starter-template.html
Created February 3, 2013 17:02
HTML: Twitter BootStrap Starter Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
@hgbrown
hgbrown / hero.html
Last active December 12, 2015 02:58
HTML: Twitter BootStrap Basic Marketing Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@hgbrown
hgbrown / HTML: Bootstrap Template
Created February 20, 2013 18:05
HTML: Bootstrap Template
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<h1>Hello, world!</h1>
@hgbrown
hgbrown / signup.html
Created February 20, 2013 22:13
HTML: Twitter Bootstrap Signup Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sign in &middot; Twitter Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
@hgbrown
hgbrown / angularjs_template.html
Created February 28, 2013 04:22
ANGULARJS:Basic Template
<!DOCTYPE html>
<html>
<head>
<title>Welcome to AngularJS</title>
<script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.js'></script>
</head>
<body>
<h1>Hello, World.</h1>
</body>
</html>