This file contains 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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Set ${1:property} | |
* | |
* @param ${2:type} \$$1 | |
* | |
* @return ${3:Type} | |
*/ | |
public function set${1/^([a-z])/\u$1/g}(\$$1) |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
<trans-unit> | |
<source>${1:Source}</source> | |
<target>${2:Target}</target> | |
</trans-unit> | |
]]></content> | |
<tabTrigger>transunit</tabTrigger> | |
<scope>text.xliff</scope> | |
</snippet> |
This file contains 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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: xvfbd | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: X Virtual Framebuffer | |
# Description: X Virtual Framebuffer | |
### END INIT INFO |
This file contains 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
--- | |
- name: install dependencies | |
apt: > | |
pkg={{ item }} | |
state=present | |
sudo: yes | |
with_items: | |
- libsqlite3-dev | |
- name: gem |
This file contains 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
var | |
path = require('path'), | |
_ = require('lodash'), | |
gulp = require('gulp'), | |
gulpUtil = require('gulp-util'), | |
log = gulpUtil.log, | |
colors = gulpUtil.colors, | |
glob = require('glob'), | |
fs = require('fs'), | |
gulpNotify = require('gulp-notify'), |
This file contains 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
#!/bin/sh | |
set -e | |
IP=`sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' ${1}` | |
HOST=$2 | |
[ -z "$HOST" ] && exit 1; | |
sudo sed -i "s/.*\s${HOST}$/${IP} ${HOST}/" /etc/hosts |
This file contains 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 | |
/** | |
* SiteMapXML | |
* | |
* A simple helper to make simple sitemap.xml with images | |
* | |
* Usage: | |
* // without images | |
* $sitemap = new SiteMapXML(); |
This file contains 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 | |
/** | |
* SiteMapIndexXML | |
* | |
* A simple helper to make simple sitemap.xml of index | |
* | |
* Usage: | |
* $sitemap = new SiteMapIndexXML(); | |
* $sitemap->addSiteMap('http://example.org/sitemap-products.xml'); |
This file contains 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 | |
class MyForm extends sfForm | |
{ | |
protected $robotProtectionFieldName = "_honeypot_robot"; | |
public function __construct($defaults = array(), $options = array(), $CSRFSecret = null) | |
{ | |
parent::__construct($defaults, $options, $CSRFSecret); | |
This file contains 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 | |
class npDriverJpegoptim extends npDriverBase | |
{ | |
public function doProcessFile($file, $replace = false) | |
{ | |
if (false === $replace) | |
{ | |
throw new LogicException('JPEG optimization only support file replacement atm'); | |
} |
OlderNewer