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
Vidéo and song here : https://www.youtube.com/watch?v=wEZ-KUNV-z8 | |
Lyrics : | |
Dans la solitude, | |
De ta chambre moche, | |
Un jour on viendra, pour chanter... | |
Ce s'ra peut-être, | |
ton jour... de chance, |
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 |
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
<?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
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
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
// 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
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.connect( | |
this.someGrid, | |
"onRowDblClick", | |
this, | |
function(e){ | |
var grid = this.someGrid; | |
var rowIndex = grid.selection.selectedIndex; | |
var myStoreItem = grid.getItem(rowIndex); | |
this.someCallbackFunction(myStoreItem); | |
} |
NewerOlder