Skip to content

Instantly share code, notes, and snippets.

View ksvendsen's full-sized avatar

Kasper Brøgger Svendsen ksvendsen

View GitHub Profile
@ksvendsen
ksvendsen / gist:0281ad2c7734a6943f7e4074bc7c390a
Created June 5, 2016 13:27 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@ksvendsen
ksvendsen / git.md
Created April 22, 2015 06:56
Cheatsheet

View changes in a single commit

git diff SHA1^!

@ksvendsen
ksvendsen / ios-no-zoom.css
Last active August 29, 2015 14:16
Prevent IOS from zoom
// Prevent Zoom on IOS safari
select,select:focus, textarea, textarea:focus, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]
{ font-size: 16px; }

Keybase proof

I hereby claim:

  • I am ksvendsen on github.
  • I am ksvendsen (https://keybase.io/ksvendsen) on keybase.
  • I have a public key whose fingerprint is A335 F07E F0DD 89F5 AFD8 0D59 951D 10E8 B01F 7485

To claim this, I am signing this object:

Handlebars is a semantic web template system, started by Yehuda Katz in 2010.
Handlebars.js is a superset of Mustache, and can render Mustache templates in addition to Handlebars templates.
More: http://handlebarsjs.com/
1. Expressions.
1.1 Basic usage.
<?php
// Determine ENV
define('APPLICATION_ENV', getenv('APPLICATION_ENV') == 'development' || PHP_SAPI == 'cli' ? 'development' : 'production');
// Load the appropriate config file
return
APPLICATION_ENV == 'development' ?
require __DIR__.'/application.development.config.php' :
require __DIR__.'/application.production.config.php'
;