Skip to content

Instantly share code, notes, and snippets.

View documentready.sublime-snippet
\$( '#button' ).click(function() {
View Default (OSX).sublime-keymap
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["f6"], "command": "lower_case" },
{ "keys": ["ctrl+b"], "command": "build" }
joliveras /
Created Jan 7, 2016
Copy files from terminal
rsync -avc --exclude '_assets' --exclude 'conf.php' /Library/WebServer/Documents/* /Volumes/OtherFolder/Clients/_dev/
# Apache
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
joliveras / SassMeister-input.scss
Created Dec 11, 2015
Generated by
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
$color: tomato;
@for $i from 1 through 10 {
.first-color#{$i} {
color: scale-lightness($color, #{$i}0%);
joliveras / gulpfile.js
Last active Jan 7, 2016
View gulpfile.js
var gulp = require('gulp'),
livereload = require('gulp-livereload');
gulp.task('php', function() {
gulp.task('watch', function() {
joliveras / jQuery placeholders
Last active Oct 22, 2015
Añadir placeholders mediante jQuery
View jQuery placeholders
$( "html:lang(es) #form_name" ).attr("placeholder", "Tu nombre");
$( "html:lang(en) #form_name" ).attr("placeholder", "Your name");
joliveras / bash alias show hide invisibles files
Last active Aug 29, 2015
bash alias show hide invisibles files
View bash alias show hide invisibles files
alias showFiles='defaults write AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/'
alias hideFiles='defaults write AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/'
joliveras / bash_profile crop fotos
Last active Jan 7, 2016
bash_profile crop fotos
View bash_profile crop fotos
alias cropphotos='
cd ~/Desktop/test-imagenes;
mkdir 300;
cp ~/Desktop/test-imagenes/*.jpg ~/Desktop/test-imagenes/300/;
cd 300;
sips -Z 300 *.jpg;
jpegoptim -m80 --strip-all *.jpg;
declare -i i; i=0; for file in *.jpg; do i=`expr $i+1`; mv "$file" $i-300.jpg; done'
joliveras / Gulp: package.json
Last active Aug 29, 2015
Gulp: package.json
View Gulp: package.json
"name": "ceroabsoluto",
"version": "0.92.0",
"description": "Wordpress Framework",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^3.8.11",
"gulp-autoprefixer": "^2.0.0",
"gulp-concat": "^2.4.2",
"gulp-jshint": "^1.9.2",
You can’t perform that action at this time.