Skip to content

Instantly share code, notes, and snippets.

View baldore's full-sized avatar

Camilo Orrego baldore

  • Seso Labor
  • Medellín, Colombia
View GitHub Profile
@baldore
baldore / rwd.css
Created October 18, 2013 15:52 — forked from trey/rwd.css
/* 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) { ... }
@baldore
baldore / init.vim
Last active April 11, 2020 13:09
My .vimrc file (Neovim)
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'
@baldore
baldore / Javascript Random String
Created February 6, 2014 20:07
Random String generation in Javascript.
(Math.random() + 1).toString(36).substring(7);
@baldore
baldore / gist:6d439c29534c027076e7
Created July 21, 2014 21:27
IE javascript detection
if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
// MSIE
}
@baldore
baldore / build.js
Last active August 29, 2015 14:14 — forked from 0gust1/build.js
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;
@baldore
baldore / throttle.js
Created February 14, 2017 20:24
Throttle
/**
* 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,

Workflow, tools & tips

Topics

Terminal

Busquen como sacarle el máximo provecho a la terminal.

  1. 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.