Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initNavigation()
{
$this->bootstrap('View');
// $view = $this->getResource('View');
<style>
a:link,
a:visited
{
color: #0398CA;
}
span#zf-name
{
color: #91BE3F;
// when i do
Y.delegate('click',function(e){},Y.one('body'),Y.one('form'));
// It stops in Substitute.replace()
replace: function(newNode) { // newNode = /[|:,]/g
var node = this._node; // this._node = form
node.parentNode.replaceChild(newNode, node); // fails! "Node cannot be inserted at the specified point in the hierarchy" code: "3"
return this;
},
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Lister</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css"/>
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
<script>
YUI({
filter : 'raw',
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Timer Example</title>
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
<script>
YUI({
'filter' : 'raw',
_timerException : function(msg) {
var error = new Error(msg);
if(!error.message) {
error.message = msg;
}
error.name = EXCEPTIONS.NAME; // TIMER_EXCEPTION
return error;
}
console.log('Body script');
YAHOO.util.Event.onDOMReady(function(o) {
console.log('DOM Ready');
var handleSuccess = function(o) {
alert('Success');
};
var handleFailure = function(o) {
alert('Failure');
};
var callback = {
initializer : function(config){
timerCallback = Y.bind(this._timer,this);
this.publish(EVENTS.START , { defaultFn : function(){ this.set('status',STATUS.RUNNING); this._makeTimer(); } });
},
Global setup:
Download and install Git
git config --global user.name "Your Name"
git config --global user.email [email protected]
Add your public key
Next steps:
mkdir Echofin
cd Echofin
git init
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoloader()
{
$loader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Default_',
'basePath' => dirname(__FILE__)
));