Skip to content

Instantly share code, notes, and snippets.

View steoo's full-sized avatar
🤔
Thinking

Stefano steoo

🤔
Thinking
View GitHub Profile
var target = this.$el[0],
test = new RegExp("(font-(.*))+|line-(.*)+"),
that = this,
observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
//console.log(mutation);
/* Rimuove gli styling che applica il browser */
var length = mutation.addedNodes.length;
if (mutation.type === "attributes" && test.test(mutation.oldValue)) {
console.log("You shall not pass");
$names: (
Ultra_Light: 100,
Light: 200,
Regular: 400,
Medium: 500,
Bold: 600,
ExtraBold: 700,
Black: 400
);
@steoo
steoo / gulpfile.js
Created February 6, 2016 11:24 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
// Compile with $ gcc -o lmutracker lmu.m -framework IOKit -framework CoreFoundation -framework Foundation
// Usage: ./lmu [now]
// Prints out the value from the ambient light sensor and the back light LED every 1/10 of a second. Optionally print just one value.
// Inspired by the code found at
// http://google-mac-qtz-patches.googlecode.com/svn-history/r5/trunk/AmbientLightSensor
// and http://osxbook.com/book/bonus/chapter10/light/
// and http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/Archives/Computing/2010_February_10#Mac_OS_X_keyboard_backlight_drivers
// http://forums.macrumors.com/showthread.php?t=1133446
#include <stdio.h>