Skip to content

Instantly share code, notes, and snippets.

@nelsonomuto
nelsonomuto / Isotope - packery layout mode.markdown
Created July 3, 2015 12:05
Isotope - packery layout mode
@nelsonomuto
nelsonomuto / Isotope - masonry layout mode.markdown
Created July 3, 2015 12:13
Isotope - masonry layout mode
@nelsonomuto
nelsonomuto / Material Design - Sidebar (Profile menu).markdown
Created April 8, 2016 15:22
Material Design - Sidebar (Profile menu)
@nelsonomuto
nelsonomuto / .js
Last active December 28, 2016 14:12
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserSync = require('browser-sync');
var notify = require('gulp-notify');
var less = require('gulp-less');
var autoprefix = require('gulp-autoprefixer');
var minifyCSS = require('gulp-minify-css');
var exec = require('child_process').exec;
@nelsonomuto
nelsonomuto / Angular Material Design Starter App.markdown
Created April 9, 2016 00:08
Angular Material Design Starter App
@nelsonomuto
nelsonomuto / .vimrc js
Last active November 7, 2017 21:49
html5 vimrc (js, less, scss, sass)
syntax on
" for command mode
" nnoremap <S-Tab> <<
" for insert mode
inoremap <S-Tab> <C-d>
set pastetoggle=<F3>
set expandtab ts=4 sw=4 ai
autocmd Filetype html setlocal ts=2 sw=2 expandtab
@nelsonomuto
nelsonomuto / README.md
Created November 17, 2017 20:11 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'p',
classNames: ['x-input'],
attributeBindings: ['dataFieldName:label']
});
@nelsonomuto
nelsonomuto / wip-commit.sh
Created January 22, 2018 16:02
wip-commit.sh
git add . && git commit -m '$1' && git push
(function flatten(arr, currentIndex = 0, flattened = []) {
let currItem;
if (currentIndex >= arr.length) {
return flattened;
}
currItem = arr[currentIndex++];
if (!Array.isArray(currItem)) {
flattened.push(currItem);