Skip to content

Instantly share code, notes, and snippets.

View mgcrea's full-sized avatar
🚀
Norminal

Olivier Louvignes mgcrea

🚀
Norminal
  • Freelance
  • Paris, France
View GitHub Profile
### 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:
$ 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',
$ 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"}}' ]
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
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 August 29, 2015 14:26
Angular2 FilterPipe
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 = []) {
<?php
class MgHtmlHelper extends HtmlHelper {
var $helpers = array('Html', 'Form');
function __construct($paths = array()) {
$this->View =& ClassRegistry::getObject('view');
}
/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:
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 = [];
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) {