Skip to content

Instantly share code, notes, and snippets.

View MoOx's full-sized avatar
:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)

Max MoOx

:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)
View GitHub Profile
@MoOx
MoOx / class.js
Last active August 29, 2015 14:10
bind an api
createClass({
commonApi: {
method: function() {
// this will be the instance
}
},
getInitialState() {
this.api = {}
Object.keys(this.commonApi).forEach(function(method) {
this.api[method] = this.commonApi[method].bind(this)
@MoOx
MoOx / gist:3c9b19bfe6af4874dcee
Created November 10, 2014 08:23
Ideas of logo for cssnext
{css:next}
{cssnext}
cssnext{}
.cssnext{}
.cssnext
#cssnext
{#cssnext}
@cssnext
#!/usr/bin/env zsh
echo $1
echo $@
@MoOx
MoOx / a.js
Last active August 29, 2015 14:08
require("event")
@MoOx
MoOx / custom.css
Created October 9, 2014 08:33
putainde-tab custom scripts/styles example
.putainde-Tab body { background: red }
.putainde-Tab body::after {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
content: "I'm a custom style";
}
<Player>
<video>
<div className="control">
<Button>
...
</div>
</Player>

Keybase proof

I hereby claim:

  • I am moox on github.
  • I am moox (https://keybase.io/moox) on keybase.
  • I have a public key whose fingerprint is 9AB7 B020 7796 868F 8754 5C91 59CB 5F52 988F 2A32

To claim this, I am signing this object:

@MoOx
MoOx / input.css
Last active August 29, 2015 14:06
postcss-custom-properties test for full support. Is this correct ?
:root,
.light {
--color: black;
}
.dark,
.light--inverted {
--color: white;
}
@MoOx
MoOx / clean.js
Last active August 29, 2015 14:06
gulp task to clean dist/ folder except the config.json
var glob = require("glob")
var rimraf = require("rimraf")
module.exports = function(cb) {
glob.sync("./dist/!(config)*").forEach(function(path) {
rimraf.sync(path)
})
cb()
}
@MoOx
MoOx / input.css
Created September 23, 2014 07:26
postcss-custom-properties injections for media queries
@media screen and (min-width: 320px) {
:root {
--size: 1em;
}
@media (min-height: 320px) {
:root {
--size: 0.5em;
}
}