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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="description" content="Meta description example" /> | |
<meta name="author" content="Coca" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
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
/** | |
* Add specific meta field under each entry in the gallery | |
* | |
* styling can be done using: | |
* .reason { | |
* ... | |
* } | |
* | |
* Replace `meta.waarom` with something else to use another meta key | |
*/ |
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 | |
logger="logger -t bbbx-boot" | |
install() | |
{ | |
apt-get update | |
DEBIAN_FRONTEND=noninteractive apt-get -y \ | |
-o DPkg::Options::=--force-confdef \ | |
-o DPkg::Options::=--force-confold \ | |
install $@ |
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
<fileset id="src.php.custom" dir="${base.dir}src/application/"> | |
<include name="controllers/**/*.php" /> | |
<include name="core/**/*.php" /> | |
<include name="models/**/*.php" /> | |
<include name="modules/**/*.php" /> | |
<include name="helpers/**/*.php" /> | |
<exclude name="**/libraries/**/*.php" /> | |
</fileset> | |
<target name="fileset-list"> |
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
## Install ## | |
* nodejs: http://nodejs.org/download/ (how to guide for win if needed: http://dailyjs.com/2012/05/03/windows-and-node-1/) | |
* pear | |
* phpunit: | |
* pear channel-discover pear.phpunit.de | |
* pear install phpunit/PHPUnit | |
* jshint: npm install jshint | |
## Sublime config ## | |
https://github.com/Sitebase/sublime-config |
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
list($field1, $field2, $field3) = array_pad(explode('.', $params, 3), 3, NULL); |
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
public function unique($value, $params) | |
{ | |
$CI =& get_instance(); | |
list($table, $field, $exclude_field, $exclude_value) = array_pad(explode('.', $params, 4), 4, NULL); | |
$CI->form_validation->set_message('unique', 'The %s that you requested is unavailable.'); | |
$CI->db->select('COUNT(*) AS dupe')->from($table)->where($field, $value)->limit(1); | |
if($exclude_field AND $exclude_value) | |
{ |
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
javascript:(function(){var api="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=" + encodeURIComponent(document.location.href) + "&chld=H|0";document.write('<img src="' + api + '" width="200" height="200" />');})() |
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
FLEX="/Applications/Adobe Flash Builder 4/sdks/4.0.0" | |
FLEXBIN=${FLEX}/bin | |
MXMLC=${FLEXBIN}/mxmlc | |
OPTIMIZER=${FLEXBIN}/optimizer | |
debug: | |
${MXMLC} -debug=true -incremental=true -benchmark=false -static-link-runtime-shared-libraries=true -o bin-debug/WebcamRecorderApp.swf src/WebcamRecorderApp.mxml | |
final: | |
${MXMLC} -optimize=true -static-link-runtime-shared-libraries=true -o bin-final/WebcamRecorderApp.tmp.swf src/WebcamRecorderApp.mxml |
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
require.config({ | |
urlArgs: "bust=" + (new Date()).getTime() | |
}); |