Skip to content

Instantly share code, notes, and snippets.

View chrisjacob's full-sized avatar

Chris Jacob chrisjacob

View GitHub Profile
@chrisjacob
chrisjacob / index.php
Created July 13, 2011 07:41
Date Of Birth (DOB) Validation - PHP & JS pulled from a project - these snippets have not been tested on their own.
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="/js/jquery.validate.additional.js"></script>
<style>
li.error, label.error, p.error{color:#F00;}
#entryForm ol{list-style-type:none;}
#entryForm label{display:block; margin-top:6px;}
#entryForm label.error{margin-top:0px;}
</style>
{
"0": {
"link": "https:\/\/www.facebook.com\/Cavanbah\/",
"id": "128923005880",
"name": "Byron Bay",
"location": {
"city": "Byron Bay",
"country": "Australia",
"latitude": -28.642760546087,
@chrisjacob
chrisjacob / application.html.erb
Created August 11, 2013 13:18
Rails pretty print Request.env in your view template Thx: https://www.ruby-forum.com/topic/129732
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<%= yield %>
<%= debug(PP.pp(request.env, "")) if Rails.env.development? %>
</body>
</html>
@chrisjacob
chrisjacob / index.coffeescript
Created June 27, 2012 12:35
A web page created at CodePen.io
console.log document.getElementById "test"
@chrisjacob
chrisjacob / index.coffeescript
Created June 27, 2012 12:33
A web page created at CodePen.io
console.log(document.getElementById("test"));
@chrisjacob
chrisjacob / index.html
Created June 27, 2012 00:08
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Minimal Circular 3D Buttons &middot; CodePen</title>
<style>
@chrisjacob
chrisjacob / dabblet.css
Created May 3, 2012 04:04
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #006;
background: linear-gradient(45deg, #fff, yellow);
min-height: 100%;
asd
@chrisjacob
chrisjacob / gist:2555875
Created April 30, 2012 06:00 — forked from schacon/gist:1
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
...
2555871