Skip to content

Instantly share code, notes, and snippets.

View artero's full-sized avatar

Juan Artero artero

  • marsbased
  • Barcelona
View GitHub Profile
@artero
artero / Google Closure.sublime-build
Created May 14, 2012 05:50 — forked from insin/Google Closure.sublime-build (Linux)
Google Closure Compiler build for Sublime Text 2
{
"cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", "$file", "--js_output_file", "/dev/null", "--compilation_level", "WHITESPACE_ONLY"],
"file_regex": "^(.*):([0-9]+):() ERROR - (.*)",
"selector": "source.js"
}
@artero
artero / Plugins.md
Created April 9, 2012 08:54
Wordpress cookbook

Plugins

Qtranslate

Pasoso para activa: 1 - Descargar los archivos de idiomas del repositorio de WP 2 - Copiar los archivos de lenguage en wp-content/languages

@artero
artero / comandos.md
Created February 16, 2012 10:51 — forked from trico/comandos.md
Comandos git

####Crear una rama y directamente hacer checkout en ella git checkout -b myfeature develop

####Merge especial git merge --no-ff myfeature

####Eliminar una rama git branch -d myfeature

####Crear tag

@artero
artero / compatibilidad.html
Created December 21, 2011 22:32
Hacer compatibles Infernal Explorer 7 y 8 con HTML5
<!-- Sacado del artículo: https://developer.mozilla.org/es/Secciones_y_esquema_de_un_documento_HTML_5 -->
section, article, aside, footer, header, nav, hgroup {
display: block;
}
<!--[ If IE]>
<script>
document.createElement("header" );
document.createElement("footer" );
@artero
artero / launch_sublime_from_terminal.markdown
Last active January 25, 2024 16:57 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@artero
artero / comandos.markdown
Created August 1, 2011 11:51 — forked from trico/comandos.md
Comandos git

##Tanto para nuevas features como para bugfixes o releases:

$ git checkout -b myfeature develop Switched to a new branch "myfeature" $ git checkout develop Switched to branch 'develop' $ git merge --no-ff myfeature Updating ea1b82a..05e9557 (Summary of changes) $ git branch -d myfeature

@artero
artero / gist:1118001
Created August 1, 2011 11:50 — forked from trico/gist:1050747
Extraer todas las urls de una cadena
var re = /http([^"'\s]+)/g,
text = 'href="%interes%&i=SoyUnInteres&u=http://google.es/?%moglaA2%20 texto sobre el texto de textos a mas textos %Q /ht href="%interes%&i=OtroInteres&u=http://popplers.com"',
encontrados = text.match(re);
console.log(encontrados);