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:ede1981fa52dd33b2c6b
### 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 9D05 3F58 760B 6219 7D65 61F2 FED3 7FAB 771E BA2D
To claim this, I am signing this object:
View gist:5881666f7c71280b758c
$ gulp build
2015-02-19T00:34:00.560Z - break: [ 'options',
'{"src":{"scripts":"{scripts,modules}/**/*.js","views":"{,modules/*/}{views,scripts,modules}/**/*.{jade,html}"},"type":"application"}' ]
2015-02-19T00:34:00.562Z - break: [ 'defaults',
'{"src":{"cwd":"app","dest":"dist","tmp":".tmp","test":"{,*/}*{.spec,Spec}.js","index":"index.{html,jade}","views":"{views,modules/*}/**/*.{html,jade}","scripts":"{scripts,modules/*}/**/*.{js,es6,es}","styles":"{styles,modules/*}/{**/*.css,*.less,*.sass,*.scss}","images":"{images,modules/*}/{,*/}*.{jpg,png,svg}","fonts":"{fonts,modules/*}/{,*/}*.{otf,eot,svg,ttf,woff}","data":"data/{,*/}*.json","config":"config/*.json"},"sourcemaps":"dev","test":{"cwd":"test","dest":"test","tmp":".tmp","unit":"karma.conf.js","coverage":"coverage","tests":"{,*/}*{.spec,Spec}.js"}}' ]
View gist:523ef0ea0b37ee9b330b
$ gulp build
2015-02-19T00:30:38.039Z - break: [ 'options',
{ src:
{ scripts: '{scripts,modules}/**/*.js',
views: '{,modules/*/}{views,scripts,modules}/**/*.{jade,html}' },
type: 'application' } ]
2015-02-19T00:30:38.041Z - break: [ 'defaults',
{ src:
{ cwd: 'app',
dest: 'dist',
View teensy.diff
diff --git a/Teensy.mk b/Teensy.mk
index 8a441e7..39ff771 100644
--- a/Teensy.mk
+++ b/Teensy.mk
@@ -34,8 +34,8 @@ endif
include $(ARDMK_DIR)/Common.mk
VENDOR = teensy
-ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/cores/teensy3
-BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(VENDOR)/boards.txt
View arduino.diff
diff --git a/Arduino.mk b/Arduino.mk
index 9045888..cf38545 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -988,19 +988,32 @@ else
$(call show_config_variable,MCU_FLAG_NAME,[USER])
endif
+ifndef CPPFLAGS
+ CPPFLAGS = -Wall -ffunction-sections -fdata-sections
@mgcrea
mgcrea / filter.es
Last active Aug 29, 2015
Angular2 FilterPipe
View filter.es
import {Pipe, PipeFactory, NullPipeFactory} from 'angular2/angular2';
import {Pipes} from 'angular2/change_detection';
export class FilterPipe implements Pipe {
supports(array) {
return Array.isArray(array);
}
onDestroy() {}
transform(values, args = []) {
View gist:720424
<?php
class MgHtmlHelper extends HtmlHelper {
var $helpers = array('Html', 'Form');
function __construct($paths = array()) {
$this->View =& ClassRegistry::getObject('view');
}
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: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: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.