Skip to content

Instantly share code, notes, and snippets.

@b3sam
b3sam / gist:4716730
Last active December 12, 2015 04:48
<html>
<head>
<style>
html, body { height: 100%; margin: 0; padding: 0; }
.left, .right { float: left; height: 100%; }
.left { width: 20%; background: black; }
.right { width: 80%; background: grey; }
</style>
<div class="left"></div>
<div class="right"></div>
<?php
class Super {
public static $foo;
}
class One extends Super {
public static $foo = 'One';
@b3sam
b3sam / gist:3940886
Created October 23, 2012 19:04
:awe:
class WeatherTypes
{
const NOT_AVAILABLE = 'NA';
const CLEAR_NIGHT = 0;
const SUNNY_DAY = 1;
const PARTLY_CLOUDY_NIGHT = 2;
const PARTLY_CLOUDY_DAY = 3;
const NOT_USED = 4;
const MIST = 5;
const FOG = 6;
# Weather types
NA Not available
0 Clear night
1 Sunny day
2 Partly cloudy (night)
3 Partly cloudy (day)
4 Not used
5 Mist
6 Fog
7 Cloudy
<html>
<head>
<title>This is fancy</title>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<body onload="prettyPrint()">
<code class="prettyprint">
print "OH HAI I AM SOME PYTHON"
</code>
{
"cmd": ["yuicompressor", "$file", "-o", "${file_base_name}.min.${file_extension}", "--charset", "utf-8"],
"selector": "source.js"
}