View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Herald</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
View nanotime.rb
class Nanotime
def in_seconds(now = ::Time.current)
now.strftime("%s000000000")
end
def in_milliseconds(now = ::Time.current)
now.strftime("%s%3N000000")
end
def in_microseconds(now = ::Time.current)
View sublime-bindings.json
[
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } }
]
View sublime-settings.json
{
"font_size": 11,
"open_files_in_new_window": true,
"remember_full_screen": true,
"rulers":
[
80
],
"tab_size": 4,
"translate_tabs_to_spaces": false
View PostgreSql.php
<?php
/**
* Helper class.
*
* This class provides some static methods that are helpful with
* postgres like manually manipulating sequences and dropping
* tables cascaded.
*
* It also provides the ability to create a batch insert (COPY)
View datetime.php
<?php
/**
* Generate datetime with timezone support and microsend precision.
*
* Example:
* ```
* $now = Datetime::now(); // generates YYYY-MM-DDTHH:MM:SS.MMMMMM
* ```
*
View nextId.sql
-----------------------------------------------------------------
-- PostgreSQL
--
SELECT last_value, is_called
FROM :sequence
-- If is_called is false, last_value is 1 and the next ID also 1.
-- If is_called is true, the next ID is last_value + 1
View angular-index.html
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>Page Title</title>
<!-- Bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<!-- FontAwsome -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
View Enum.php
<?php
/**
* Enumeration base class.
*
* Clients can implement this to create commonly used enum
* structs with the use of CONSTs.
*
* Example:
* <pre>
View ext.js
/**
* Given an Object it returns its length.
* Much like returning the size of an
* associative array.
*
* Usage:
* ```js
* var size = Object.size(myObject);
* ```
*