#Christmas Tree
<?php
if($a) {
if($b) {
if($c) {
if($d) {
// This is what I really want to do
} else {
//Do something something else
#Christmas Tree
<?php
if($a) {
if($b) {
if($c) {
if($d) {
// This is what I really want to do
} else {
//Do something something else
For normal bash shell
sudo nano ~/.bashrc
For zsh
sudo nano ~/.zshrc
Add any aliases you want:
e.g.
Goto .git/info/exclude
Add files you want to ignore
If you already have unstaged changes you must then run:
git update-index --assume-unchanged [...]
<VirtualHost *:80> | |
ServerName www.youserver.com | |
ProxyPass / http://localhost:1337/ | |
ProxyPassReverse / http://localhost:1337/ | |
SetEnvIf Request_URI "\.gif$|\.jpg$|\.png$|\.js$|\.css$|\.ico$" is_static | |
ErrorLog /home/vnrs_test/game/error.log | |
CustomLog /home/vnrs_test/game/access.log common env=!is_static | |
</VirtualHost> |
http://stackoverflow.com/questions/24296212/php-nodejs-and-sessions#24303059 | |
You can use memcached as your session storage handler in PHP. Memcached is a simple key value store that can be accessed via TCP; there is a memcached module available for Node.js. | |
PHP stores the session in memcached by using the session id as the key. The session data (value) stored in memcached is a serialized PHP object, with a slight twist. You can read more about this unusual serialization at the SO question "Parse PHP Session in Javascript". Luckily though, there is already an NPM module out there: php-unserialize. | |
Now for the How-To. | |
Assumptions |
/* --------------------------------------------------------------------------- | |
Boilerplate CSS Media Queries | |
Encoding: UTF-8 | |
Author: PaulUnd (http://www.paulund.co.uk/boilerplate-css-media-queries) | |
--------------------------------------------------------------------------- */ | |
/* =Smartphones (portrait and landscape) | |
--------------------------------------------------------------------------- */ | |
@media only screen |
/** | |
* Returns true if key is not a key in object or object[key] has | |
* value undefined. If key is a dot-delimited string of key names, | |
* object and its sub-objects are checked recursively. | |
*/ | |
function isUndefinedKey(object, key) { | |
var keyChain = Array.isArray(key) ? key : key.split('.'), | |
objectHasKey = keyChain[0] in object, | |
keyHasValue = typeof object[keyChain[0]] !== 'undefined'; | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta http-equiv="Content-Style-Type" content="text/css" /> | |
<meta http-equiv="Content-Script-Type" content="text/javascript" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<link rel="canonical" href="" /> | |
<meta property="og:title" content="" /> |