Skip to content

Instantly share code, notes, and snippets.

Jose Oliveras joliveras

Block or report user

Report or block joliveras

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View documentready.sublime-snippet
<snippet>
<content><![CDATA[
\$(document).ready(function(){
\$( '#button' ).click(function() {
\$(this).toggleClass("show");
});
});
]]></content>
<tabTrigger>documentready</tabTrigger>
</snippet>
View Default (OSX).sublime-keymap
[
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["f6"], "command": "lower_case" },
{ "keys": ["ctrl+b"], "command": "build" }
]
@joliveras
joliveras / copy.sh
Created Jan 7, 2016
Copy files from terminal
View copy.sh
rsync -avc --exclude '_assets' --exclude 'conf.php' /Library/WebServer/Documents/* /Volumes/OtherFolder/Clients/_dev/
View apache.sh
# Apache
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
@joliveras
joliveras / SassMeister-input.scss
Created Dec 11, 2015
Generated by SassMeister.com.
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
joliveras / gulpfile.js
Last active Jan 7, 2016
testLivereload
View gulpfile.js
var gulp = require('gulp'),
livereload = require('gulp-livereload');
gulp.task('php', function() {
gulp.src('./*.php')
.pipe(livereload());
});
gulp.task('watch', function() {
@joliveras
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
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 com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
@joliveras
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
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.