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 keybase.md

Keybase proof

I hereby claim:

  • I am mgcrea on github.
  • I am olouvignes (https://keybase.io/olouvignes) on keybase.
  • I have a public key whose fingerprint is FEDD 0527 8938 C582 C135 5C64 EE5C E46C 36AC 3F2F

To claim this, I am signing this object:

@mgcrea
mgcrea / gist:5912036
Created Jul 2, 2013
npm list --json --global
View gist:5912036
{
"problems": [
"invalid: async@0.1.22 /usr/lib/node_modules/bower/node_modules/async",
"invalid: watch@0.5.1 /usr/lib/node_modules/forever/node_modules/watch"
],
"dependencies": {
"bower": {
"version": "0.9.2",
"from": "bower@",
"problems": [
View gist:5758509
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/opt/local/bin/npm', 'install', 'express' ]
2 info using npm@1.2.28
3 info using node@v0.10.10
4 verbose read json /Users/olivier/package.json
5 verbose read json /Users/olivier/node_modules/express/package.json
6 verbose read json /Users/olivier/node_modules/grunt/package.json
7 verbose read json /Users/olivier/node_modules/jasmine-node/package.json
8 verbose read json /Users/olivier/node_modules/karma/package.json
9 verbose read json /Users/olivier/node_modules/nodeunit/package.json
View gist:3900086
29/03/2010-16:24:00;4372386.99875
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) {
You can’t perform that action at this time.