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 / 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 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
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 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 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:
@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
You can’t perform that action at this time.