This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Parses a string representation of a nested object (of arbitrary depth) into | |
// a "proper" object. | |
function vivify(str) { | |
return str.split('.').reduceRight(function(a, b) { | |
var c = {}; | |
if (typeof a === 'string') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure the reverse-proxy on port 443 | |
server { | |
# general configs | |
keepalive_timeout 30; | |
listen 127.0.0.1:443 ssl; | |
server_name api.example.com; | |
# ssl configs | |
ssl_certificate /path/to/api.crt; | |
ssl_certificate_key /path/to/api.key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chrisallenlane.presentationtimerpro; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import org.apache.cordova.*; | |
// add the following import statements | |
import android.view.WindowManager; | |
import android.view.Window; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Make sandbox development a little easier */ | |
define('WP_HOME', "http://{$_SERVER['SERVER_NAME']}/"); | |
define('WP_SITEURL', "http://{$_SERVER['SERVER_NAME']}/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> From: [email protected] | |
> Date: Thursday, September 6, 2012 9:27:10 AM | |
> Subject: JTR-JAL Cargo Tracker Report | |
> | |
> | |
> <Acceptance Message> | |
> | |
> We can not accept your request because of following | |
> reason. Please try again. | |
> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submitted on 2012/06/19 at 12:32 am Hello, just wanted to mention, I enjoyed | |
this blog post. It was practical. Keep on posting! | |
What’s up, I just wanted to mention, you’re wrong. Your point doesn’t make any | |
sense. | |
Hello, how’s it going? Just shared this post with a colleague, we had a good | |
laugh. | |
Incredible points. Great arguments. Keep up the amazing effort. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
# specify key files | |
webroot = '/home/ubuntu/www' | |
srcroot = '/home/ubuntu/src' | |
# enumerate the LAMP domains | |
lamp_domains = { | |
:example1 => 'example-1.com', | |
:example2 => 'example-2.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Chris Allen Lane | |
* [email protected] | |
* twitter.com/chrisallenlane | |
* | |
* This gist is a snippet of companion code for the blog article posted here: | |
* http://chris-allen-lane.com/2012/05/a-heavy-handed-approach-to-sanitization-in-php/ | |
*/ |
NewerOlder