Skip to content

Instantly share code, notes, and snippets.

🚀
Norminal

Olivier Louvignes mgcrea

🚀
Norminal
Block or report user

Report or block mgcrea

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3722374
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
----------
View gist:3533482
.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
View gist:3363043
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]];
View gist:2780710
$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());
View gist:2780524
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);
View gist:1620901
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) {
View gist:1584728
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 = [];
View gist:814321
/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:
View gist:720424
<?php
class MgHtmlHelper extends HtmlHelper {
var $helpers = array('Html', 'Form');
function __construct($paths = array()) {
$this->View =& ClassRegistry::getObject('view');
}
You can’t perform that action at this time.