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 / createElement.js
Last active June 18, 2024 10:23
A tiny helper for document.createElement.
module.exports = function(options) {
var el
, a
, i
if (!options.tagName) {
el = document.createDocumentFragment()
}
else {
el = document.createElement(options.tagName)
if (options.className) {
@MoOx
MoOx / gulpfile.js
Last active January 4, 2016 00:39
My current gulfile- CSS with rework- JS with Browserify & lots of transfo (mainly jadeify)- HTML with jade- & some static files workingInclude a static server with livereload.
///
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() {
@MoOx
MoOx / css_resources.md
Created January 20, 2014 15:07 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@MoOx
MoOx / javascript_resources.md
Created January 20, 2014 15:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
#!/bin/zsh
source $DIR_DOTFILES/backpack/functions.sh
echo_title_installupdate "Ruby Gems"
#source gemu
DIR_RUBYGEMS=/Library/Ruby/Gems/2.0.0/gems
typeset -A PACKAGES
PACKAGES=(
@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() {
var obj = {
a: {
//
}
, b: null {
//
}
}
// ou
@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
@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 / 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>