Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)

Max Thirouin MoOx

:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)
View GitHub Profile
@MoOx
MoOx / README.md
Created Feb 5, 2014
Récupérer la clé wifi d'un Freebox
View README.md

Trouver la clé wifi d'un freebox

http://mafreebox.free.fr/

Reset le mot de passe ici est très facile et instantané (action physique à effectuer)

  • double clic sur « Paramètres de la freebox », Onglet « Mode avancée »
  • double clic sur « Wi-Fi » , Onglet « Configuration »

La clé se trouve dans le champ « Clé Wi-Fi »

View indented-bem.css
:root {
var-ss-Deck-column-header: 2rem;
var-ss-Deck-column-margin: .6rem;
}
.ss-Deck-column {
position: relative;
display: inline-block;
overflow: hidden;
width: 19rem;
@MoOx
MoOx / gulpfile.js
Last active Aug 29, 2015
Gulp / Myth
View gulpfile.js
var gulp = require("gulp")
var gutil = require("gulp-util")
var plumber = require("gulp-plumber")
var myth = require("gulp-myth")
var csso = require("gulp-csso")
var watch = false
gulp.task("styles", function() {
return gulp.src("./src/css/*.css")
.pipe(watch ? plumber() : gutil.noop())
@MoOx
MoOx / stylesheet.js
Created May 2, 2014
Rework gulp task
View stylesheet.js
var gulp = require("gulp")
var opts = require("./options")
var util = require("gulp-util")
var plumber = require("gulp-plumber")
var rework = require("gulp-rework")
var reworkPlugins = {
imprt: require("rework-npm"),
// parent: require("rework-parent"),
// breakpoints: require("rework-breakpoints"),
vars: require("rework-vars"),
@MoOx
MoOx / storage.js
Created May 22, 2014
Simple localStorage abstraction
View storage.js
var prefix = "storage."
, storage = {
getAll: function() {
var data = {};
for (var key in localStorage){
if (key.indexOf(prefix) === 0) {
data[key.replace(prefix, "")] = storage.getFromLocalStorage(key);
}
}
View Gulfile.js
var gulp = require("gulp")
gulp.task("styles", require("./tasks/styles"))
// build
gulp.task("dist", [
"styles"
])
// dev tasks
@MoOx
MoOx / bem.css
Created Jun 17, 2014
my CSS indentation with BEM
View bem.css
.Block {
}
.Block--modifier {
}
.Block:state {
@MoOx
MoOx / input-clearable.js
Created Jul 29, 2014
React clearable input
View input-clearable.js
/**
* <InputClearable />
*
* @es6
* @jsx React.DOM
*/
module React from "react"
import IconSvg from "../iconsvg"
@MoOx
MoOx / README.md
Last active Aug 29, 2015
rework vs postcss benchmarks
View README.md

Rework vs Postcss

❯ node rework.js
rework: parsing/stringify done in 243.85ms (avg on 50 runs)

❯ node postcss.js
postcss: parsing/stringify done in 408.26ms (avg on 50 runs)
View replace-fn-call.js
replaceFunctionCall("blah TRUC(1) machin TRUC(2)", "TRUC", fn(body) {
// body === 1, then 2
/* your stuff on body */
// eg body += "truc"
return body
})
// => "blah 1truc machin 2truc"