Busquen como sacarle el máximo provecho a la terminal.
- Aliases y funciones: Sáquenle el jugo a esto. Dejen de estar escribiendo siempre lo mismo siempre. Si hay un comando que se está escribiendo mucho, de seguro lo pueden hacer mejor.
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| export const values = { | |
| sm: { | |
| max: 599 | |
| }, | |
| md: { | |
| min: 600, | |
| max: 1023 | |
| }, | |
| lg: { | |
| min: 1024, |
| /** | |
| * Creates and returns a new, throttled version of the passed function, | |
| * that, when invoked repeatedly, will only actually call the original | |
| * function at most once per every wait milliseconds. | |
| * | |
| * @param {function} func | |
| * @param {number} threshold | |
| * @param {object} [scope] custom this | |
| * @returns {function} throttled function | |
| */ |
| app.service('$customEvents', function () { | |
| /** | |
| * Calls a function when the user ends the resize of the window | |
| * | |
| * @param callback {function} Function to call on the end of the resize | |
| * @param _duration {number} Duration in milliseconds | |
| */ | |
| this.onEndResize = function (callback, _duration) { | |
| var time, | |
| duration = typeof _duration !== "undefined" ? _duration : 180; |
| var extname = require('path').extname; | |
| var Metalsmith = require('metalsmith'); | |
| var myth = require('myth'); | |
| var http = require('http'); | |
| var templates = require('metalsmith-templates'); | |
| var markdown = require('metalsmith-markdown'); | |
| var watch = require('metalsmith-watch'); | |
| /** |
| if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) { | |
| // MSIE | |
| } |
| (Math.random() + 1).toString(36).substring(7); |
| # Vim Folder | |
| alias cdvim="cd ~/Documentos/vim" | |
| # BASH ALIAS | |
| alias bashrc='sudo sublime-text ~/.bashrc' | |
| # PHP | |
| alias xampp:s='sudo /opt/lampp/xampp start' | |
| alias php='/opt/lampp/bin/php' |
| call plug#begin('~/.config/nvim/plugged') | |
| let nvimDir = '$HOME/.config/nvim' | |
| let cacheDir = expand(nvimDir . '/.cache') | |
| " Basic Functions {{{ | |
| function! CreateAndExpand(path) | |
| if !isdirectory(expand(a:path)) | |
| call mkdir(expand(a:path), 'p') |