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
dojo.provide("widget.custom.MorphBox"); | |
dojo.require("dijit.form.ValidationTextBox"); | |
dojo.require("dijit.form.Textarea"); | |
dojo.declare( | |
"widget.custom.MorphBox", | |
dijit._Contained, | |
{ | |
// morphValidationTest : function |
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
// Author : PEM-FR (on github), PEM on #dojo on freenode, PEM_FR on dojofoundation | |
dojo.provide("widget.dnd.MultiAreaManager"); | |
dojo.require("dojox.mdnd.AreaManager"); | |
dojo.require("dojox.mdnd.DropIndicator"); | |
//Attention : for instance this code only work for OverDropMode :) | |
dojo.require("dojox.mdnd.dropMode.OverDropMode"); | |
dojo.declare( |
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
this.connect( | |
this.someGrid, | |
"onRowDblClick", | |
this, | |
function(e){ | |
var grid = this.someGrid; | |
var rowIndex = grid.selection.selectedIndex; | |
var myStoreItem = grid.getItem(rowIndex); | |
this.someCallbackFunction(myStoreItem); | |
} |
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
dojo.style( | |
zone, | |
"border", | |
"2px solid #" + ("00000"+(Math.random()*16777216<<0).toString(16)).substr(-6) | |
); |
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
// this, is the tabContainer | |
findAndSelectTab : function(currentWidget){ | |
var tabContainerId = this.get('id'); | |
var parent = null; | |
var tab = null; | |
if(undefined != currentWidget.getParent | |
&& undefined != typeof(currentWidget.getParent())){ | |
parent = currentWidget.getParent(); | |
}else{ |
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
styleRow : function (inRow){ | |
with(inRow){ | |
customStyles += " color: orange;"; | |
dojox.grid.DataGrid.prototype.onStyleRow.apply(this.grid, arguments); // here the function is called through a hitch, hence this.grid | |
} | |
}, | |
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
unCacheItem: function(item){ | |
// summary: | |
// deletes item and any references to that item from the store. | |
// No request will be issued serverside | |
// extend dojox.data.JRS, and put this function in | |
// item: | |
// item to delete | |
// | |
// If the desire is to delete only one reference, unsetAttribute or |
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 | |
$results = array(); | |
$wrongs = array(); | |
for ($i = 0; $i < 100000; $i++) { | |
$result[$i] = mt_rand(1,3); | |
$wrongs[$i][0] = ($result[$i] - 1 == 0) ? 3 : $result[$i] - 1; | |
$wrongs[$i][1] = 6 - $result[$i] - $wrongs[$i][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
protected $_serviceFactory; | |
/** | |
*You can inject a mock factory here for unit testing | |
* | |
*/ | |
public function setServiceFactory(ServiceFactory $serviceFactory) | |
{ | |
$this->_serviceFactory = $serviceFactory; | |
} |
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
#!/usr/bin/env python | |
""" | |
meeting_summary.py - Phenny meeting_summary Module | |
""" | |
import datetime as dt | |
from tools import deprecated | |
startTime = 0 | |
stopTime = 0 |
OlderNewer