Skip to content

Instantly share code, notes, and snippets.

@hgbrown
hgbrown / beans.xml
Created March 10, 2013 10:22
CDI:Empty CDI beans.xml configuration file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>
@hgbrown
hgbrown / angularjs_helloworld.html
Created February 28, 2013 04:26
ANGULARJS: Hello World Example
<!DOCTYPE html>
<html ng-app>
<head>
<title>Welcome to AngularJS</title>
<script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.js'></script>
<script>
function Clock($scope) {
$scope.currentTime = new Date();
}
</script>
@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>
@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 / 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 / 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 / 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 / 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 / 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 / gist:4701447
Created February 3, 2013 11:43
JavaScript: jquery ready handler - long version
$(document).ready(function() {
// Handler for .ready() called.
});