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 | |
use Symfony\Component\HttpFoundation\File\File; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
/** | |
* @Entity | |
*/ | |
class Document | |
{ |
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
$audience = new Zend_Form_Element_MultiCheckbox('audience', array( | |
'label' => 'Target Audience', | |
'required' => true, | |
'multiOptions' => array( | |
'students' => 'Students', | |
'faculty' => 'Faculty', | |
'staff' => 'Staff', | |
'stustaf' => 'Student Employees', | |
'retiree' => 'Emeritus/Retiree'), | |
'validators' => array( |
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
alias ack='ack-grep --type-set twig=.twig' |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<project name="Webads"> | |
<!--This target runs the phpcs--> | |
<target name="phpcs"> | |
<!--unix--> | |
<exec dir="${basedir}" executable="phpcs" failonerror="false" osfamily="unix"> | |
<arg line="--standard=Cake --extensions=php,module,inc ${basedir}"/> | |
</exec> | |
</target> |
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
<? | |
// VIN API decoder for PHP 4.x+ | |
define('ELEMENT_CONTENT_ONLY', true); | |
define('ELEMENT_PRESERVE_TAGS', false); | |
function getXML($vin) { | |
$curl = curl_init(); | |
curl_setopt ($curl, CURLOPT_URL, 'http://vinapi.skizmo.com/vins/'. $vin.'.xml'); | |
curl_setopt ($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/xml', 'X-VinApiKey: #YOURAPIKEYGOESHERE#')); //use your API key here |
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
# How to echobot with XMPP, BOSH, and Strophe | |
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local | |
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this | |
#/etc/hosts | |
127.0.0.1 localhost.local | |
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server. | |
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-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
# 2009 Copyright Susan Potter <me at susanpotter dot net> | |
# You can read her software development rants at: http://geek.susanpotter.net | |
# Released under CreativeCommons-attribution-noncommercial-sharealike license: | |
# http://creativecommons.org/licenses/by-nc-sa/1.0/ | |
namespace :git do | |
namespace :submodule do | |
desc "Initializes submodules" | |
task :init, :roles => :app do | |
invoke_command "cd #{current_path} && git submodule init", :via => run_method | |
end |
NewerOlder