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 / SassMeister-input.scss
Created June 7, 2013 20:28
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
// Styling elements based on sibling count
// http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/
@mixin adjust-form-siblings-count($max: 10, $property: width) {
$i: 0;
@while ($i < $max) {
@MoOx
MoOx / SassMeister-input.scss
Created June 13, 2013 17:07
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
// Styling elements based on sibling count
// http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/
@mixin adjust-from-sibling-count($max: 10, $property: width) {
$i: 0;
@while ($i < $max) {
{
"theme": {
"default": {}
"foo": {
"parent": "default",
},
"local": {
"parent": "foo",
}
}
module.exports = function getThemeConfig(grunt, prop) {
"use strict";
var happyplan = grunt.config.getRaw('happyplan')
, theme = happyplan
, finalValue = grunt.util.namespace.get(theme, grunt.config.getPropString(prop))
, value
, stupidityLimit = 20
, stupidityChecker = 0
@MoOx
MoOx / plainCSS.css
Last active December 25, 2015 14:49
Does @at-root worth it?
.org-Component {
}
.org-Component-subChild {
}
.org-Component-subChild--modifier {
@MoOx
MoOx / logout-iframe.html
Created October 21, 2013 15:58
JQUERY WTF ?
<html>
<body>
<center>You are now logged out. Please close this window.</close>
<script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script>
<script>
window.close();
</script>
</body>
</html>
@MoOx
MoOx / SassMeister-input.scss
Created November 28, 2013 09:21
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function stricteq($a, $b) {
@if ($a == $b) {
@if (unit($a) == unit($b)) {
@return true;
}
@MoOx
MoOx / gist:8008064
Created December 17, 2013 16:43
pecl install pecl_http
❯ sudo pecl install pecl_http
Password:
downloading pecl_http-2.0.3.tgz ...
Starting to download pecl_http-2.0.3.tgz (152,156 bytes)
.................................done: 152,156 bytes
64 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
var obj = {
a: {
//
}
, b: null {
//
}
}
// ou
@MoOx
MoOx / gulpfile.js
Last active November 4, 2021 10:19
///
var pkg = require("./package.json")
, rimraf = require("rimraf")
, gulp = require("gulp")
, gutil = require("gulp-util")
, filter = require("gulp-filter")
, plumber = require("gulp-plumber")
, concat = require("gulp-concat")
gulp.task("clean", function() {