This file contains hidden or 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
//object | |
namespace something | |
{ | |
public class SomeObj | |
{ | |
public string SomeStr; | |
} | |
} | |
//view with a form that posts to SomePostedAction |
This file contains hidden or 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 container = domConstruct.create("div", {'id':'TreeEditContainer'}, win.body()); | |
var form = new Form().placeAt(container); | |
var langSelect = new Select({ | |
name: "LanguageSelect", | |
options: [ | |
{ label: "en_gb", value: "en_gb" } | |
] | |
}); | |
var label = new Label({'widget':langSelect,'container':form, 'label':'Some label'}); | |
label.makelabel(); |
This file contains hidden or 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
define(["dojo/_base/declare", "dojo/_base/lang", "dojo/dom-construct", "dijit/_WidgetBase"], | |
function(declare, lang, domConstruct, _WidgetBase){ | |
return declare("Fieldset", [_WidgetBase], { | |
container: null, | |
legend: '', | |
fieldsetTag: 'fieldset', | |
legendTag: 'legend', | |
buildRendering: function(){ | |
this.domNode = domConstruct.create(this.fieldsetTag, {id: this.id}); | |
domConstruct.create(this.legendTag, {'innerHTML': this.legend}, this.domNode); |
This file contains hidden or 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
[gabriel@RedDwarf ZendSkeletonApplication]$ git reset --hard zsa/master | |
HEAD is now at a6cb03e Merge pull request #124 from wshafer/master | |
[gabriel@RedDwarf ZendSkeletonApplication]$ git push origin | |
Everything up-to-date | |
[gabriel@RedDwarf ZendSkeletonApplication]$ |
This file contains hidden or 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
define(["dojo/_base/declare", "dojo/_base/lang", "gmk/library/utilities/string"], | |
function(declare, lang, strUtil){ | |
return declare([ ], { | |
get: function(varName) { | |
var retVal = null; | |
if ( "function" == typeof lang.getObject("get"+strUtil.ucfirst(varName), false, this) ) { | |
retVal = lang.getObject("get"+strUtil.ucfirst(varName), false, this)(); | |
} else { | |
retVal = lang.getObject(varName, false, this); | |
} |
This file contains hidden or 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
class DifferenceDatabaseFactory implements FactoryInterface { | |
public createService(ServiceManager $sm) { | |
$tableman = $sm->get('tableManager'); | |
$table = $tableman->get('differencetable'); | |
$diffdb = new DifferenceDatabase($table); | |
return $diffdb; | |
} | |
} |
This file contains hidden or 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
$output = fopen("php://output",'w') or die("Can't open php://output"); | |
header("Content-Type:application/csv"); | |
header("Content-Disposition:attachment;filename=pressurecsv.csv"); | |
fputcsv($output, ['email','status','created on', 'end date', 'last logged in', 'sales email']); | |
foreach($contentArray as $content) { | |
fputcsv($output, $content); | |
} | |
fclose($output) or die("Can't close php://output"); | |
exit; |
This file contains hidden or 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
$sharedEvents = $e->getTarget()->getServiceManager()->get('SharedEventManager'); | |
$sharedEvents->attach('Zend\Mvc\Application', 'dispatch.error', function ($event){ | |
//do magic | |
}); |
This file contains hidden or 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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb | |
sudo dpkg -i elasticsearch-0.90.0.deb |
This file contains hidden or 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
input { | |
stdin { | |
type => "stdin-type" | |
} | |
} | |
output { | |
elasticsearch { | |
embedded => false | |
host => "localhost" | |
} |
OlderNewer