% Title % Name % Date
List
<?php | |
// @rodneyrehm | |
// http://stackoverflow.com/a/7917979/99923 | |
class ParensParser | |
{ | |
// something to keep track of parens nesting | |
protected $stack = null; | |
// current level | |
protected $current = null; |
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ | |
var casper = require("casper").create(); |
<?xml version="1.0"?> | |
<project name="waferthin.com" description="Targets for maintaining and deploying the waferthin.com web site." default="deploy"> | |
<!-- See book here: http://www.packtpub.com/expert-php-5-tools/book --> | |
<!-- initialize timestamp that will be used in naming of various files & directories --> | |
<tstamp/> | |
<target name="deploy" depends="get-env,create-skeleton,svn-export,stamp-config,disp-maint,backup-db,deploy-db,publish-site" description="Deploy the site to the web server and perform necessary build and upgrade tasks."> | |
</target> | |
<target name="get-env" description="get the environment for an action"> |
# Makefile for a go project | |
# | |
# Author: Jon Eisen | |
# site: joneisen.me | |
# | |
# Targets: | |
# all: Builds the code | |
# build: Builds the code | |
# fmt: Formats the source files | |
# clean: cleans the code |
// Create index with mapping | |
curl -XPUT http://192.168.0.10:9200/geotest/ -d '{ | |
"settings" : { | |
"number_of_shards" : 1 | |
}, | |
"mappings" : { | |
"places" : { | |
"properties" : { | |
"name" : { "type" : "string" }, | |
"location" : { "type" : "geo_point", "lat_lon": true } |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
MongoDB upstart scripts for Ubuntu. | |
Run following commands after installing upstart scripts: | |
ln -s /lib/init/upstart-job /etc/init.d/mongoconf | |
ln -s /lib/init/upstart-job /etc/init.d/mongodb | |
ln -s /lib/init/upstart-job /etc/init.d/mongos | |
To start services use: |
<?xml version="1.0" encoding="UTF-8" ?> | |
<Data> | |
<Series> | |
<id>83462</id> | |
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors> | |
<Airs_DayOfWeek>Monday</Airs_DayOfWeek> | |
<Airs_Time>10:00 PM</Airs_Time> | |
<ContentRating>TV-PG</ContentRating> | |
<FirstAired>2009-03-09</FirstAired> | |
<Genre>|Drama|</Genre> |