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.
/* http://twitter.github.com/bootstrap/scaffolding.html#responsive */ | |
/* Landscape phones and down */ | |
@media (max-width: 480px) { ... } | |
/* Landscape phone to portrait tablet */ | |
@media (max-width: 768px) { ... } | |
/* Portrait tablet to landscape and desktop */ | |
@media (min-width: 768px) and (max-width: 940px) { ... } |
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') |
# 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' |
(Math.random() + 1).toString(36).substring(7); |
if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) { | |
// MSIE | |
} |
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'); | |
/** |
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; |
/** | |
* 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 | |
*/ |
export const values = { | |
sm: { | |
max: 599 | |
}, | |
md: { | |
min: 600, | |
max: 1023 | |
}, | |
lg: { | |
min: 1024, |