Skip to content

Instantly share code, notes, and snippets.

@thomd
thomd / semantic-layout.html
Last active Apr 6, 2021
Standard HTML5 Semantic Layout
View semantic-layout.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Title</title>
<link href="stylesheets/main.css" rel="stylesheet" />
</head>
<body>
<header>
<hgroup>
@thomd
thomd / LC_COLORS.md
Last active Mar 28, 2021
LSCOLORS & LS_COLORS
View LC_COLORS.md

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a     black
@thomd
thomd / apis.md
Last active Mar 28, 2021
A list of public REST and GraphQL APIs #list #api #rest #graphql
View apis.md
@thomd
thomd / summernote.html
Last active Jan 27, 2021
summernote example
View summernote.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" href="components/summernote/dist/summernote.css" />
</head>
<body>
@thomd
thomd / java-snippets.md
Last active Jan 4, 2021
Java code snippets
View java-snippets.md

Java Snippets

Converting Strings to int and int to String

String a = String.valueOf(2); 
int i = Integer.parseInt(a);  

Convert String to Date