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 | |
class MgHtmlHelper extends HtmlHelper { | |
var $helpers = array('Html', 'Form'); | |
function __construct($paths = array()) { | |
$this->View =& ClassRegistry::getObject('view'); | |
} |
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/python "/cygdrive/d/Projects/Coding/vendors/node/tools/scons/scons.py" | |
-j 1 -C "/cygdrive/d/Projects/Coding/vendors/node/build/default/" -Y "/cygdrive/ | |
d/Projects/Coding/vendors/node/deps/v8" visibility=default mode=release arch=ia3 | |
2 library=static snapshot=on | |
scons: Reading SConscript files ... | |
KeyError: 'os': | |
File "/cygdrive/d/Projects/Coding/vendors/node/deps/v8/SConstruct", line 1200: | |
Build() | |
File "/cygdrive/d/Projects/Coding/vendors/node/deps/v8/SConstruct", line 1156: |
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
var options = new ContactFindOptions(); | |
options.filter = operation.filter || ''; | |
options.multiple = true; | |
//d&&console.log('navigator.contacts.find', [self.deviceFields, options]); | |
navigator.contacts.find(self.deviceFields, | |
function(deviceContacts) { | |
// Loop over deviceContacts and create Contact model instances | |
var contacts = []; |
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
var url = 'http://www.google.fr'; | |
Ext.Ajax.request({ | |
url: url, | |
method: 'get', | |
scope: this, | |
complete: function(response, options) { | |
console.warn('complete', response, options); | |
}, | |
success: function(response, options) { |
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
public static function __init() { | |
parent::__init(); | |
static::applyFilter('find', function($self, $params, $chain){ | |
Logger::info(json_encode(array('Model::find()' => $params))); | |
return $chain->next($self, $params, $chain); |
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
$admins = Users::all(array('conditions' => array('email' => array('$in' => array('a@gmail.com', 'b@gmail.com'))), 'fields' => array('_id', 'email', 'isAdmin'))); | |
d($admins->data()); | |
$admins->each(function($admin) { | |
$admin->isAdmin = true; | |
$admin->save(); | |
}); | |
dd($admins->data()); |
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
UIBezierPath *buttonPath = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:self.layer.cornerRadius]; | |
CAShapeLayer* shadowLayer = [CAShapeLayer layer]; | |
//shadowLayer.cornerRadius = 8.0f; | |
[shadowLayer setOpacity:1]; | |
[shadowLayer setBackgroundColor:UIColor.redColor.CGColor]; | |
// Standard shadow stuff | |
[shadowLayer setShadowOpacity:1.0f]; | |
[shadowLayer setShadowColor:[[UIColor colorWithWhite:1 alpha:1] CGColor]]; |
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
.directive('uiPopover', ['$compile', '$http', function($compile, $http) { | |
return { | |
restrict: 'A', | |
scope: { | |
hide: '&hide' // did not understand what is this | |
}, | |
link: function postLink(scope, element, attr, ctrl) { | |
console.warn('postLink', arguments, this); | |
// scope is the anchor scope |
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
Available Android targets: | |
---------- | |
id: 1 or "android-7" | |
Name: Android 2.1 | |
Type: Platform | |
API level: 7 | |
Revision: 3 | |
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 | |
ABIs : armeabi | |
---------- |
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
29/03/2010-16:24:00;4372386.99875 |
OlderNewer