- Open Automator
- Create a new Service
- Add a
Run Shell Script
action - Set input to Service receives selected
files or folders
inany application
- Set the script action to
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@
- Set Pass input to
as arguments
- Save as
Open in Sublime Text
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
// HTML: | |
<div class="display-type"></div> | |
// CSS: | |
// set the content of an element depending on the media query |
def timer | |
start_time = Time.now | |
1_000_000.times do | |
yield | |
end | |
Time.now - start_time | |
end | |
time_a = timer do | |
x = "this this this this this this this this this this this this this this this " + |
//spam message the chats with thirugram.js | |
//open up telegram web and go to the chat you want to spam | |
//open console ( Ctrl + Shift + J ) | |
//execute the code | |
var message = ""; //spam message | |
var interval = 1 ; // in seconds | |
var count = 10 ; //number of times to send | |
var notifyInterval = 5 ; //notify | |
var i = 0 ; | |
var timer = setInterval(function(){ |
#!/usr/bin/env bash | |
deploy_to_production() { | |
read -p "Are you sure? " -r | |
if [[ $REPLY =~ ^(yes|y|Y)$ ]]; then | |
git push production master && heroku run rake db:migrate -a app-production | |
fi | |
} | |
deploy_to_staging() { |
$(document).ready(function(){ | |
$.getJSON("http://jsonip.com/?callback=?", function (ipData) { | |
$.getJSON("https://freegeoip.net/json/" + ipData.ip, function (geoData) { | |
console.log(geoData.city); | |
}); | |
}); | |
}); |
¡Hoy finalizo mi primera semana en BeBanjo! Pues sí, imagino que esto será algo inesperado para muchos de los que leáis estas líneas… Después de 8 años trabajando por mi cuenta —junto con mi socio Jesús— esta semana he abierto una nueva etapa. Pocas personas, tan sólo los más allegados y, por supuesto, nuestros clientes, sabían de este cambio; no ha sido una decisión fácil, por eso me gustaría compartir aquí los principales motivos que nos han llevado —hablo en plural porque tanto Jesús como yo dejamos Delirium Coder para pasar a formar parte de BeBanjo— a abandonar nuestra propia empresa, siendo rentable económicamente y en pleno crecimiento, para volver a trabajar por cuenta ajena.
No me voy a dilatar mucho explicando la historia de Delirium Coder, imagino que será bastante similar a la de todos aquellos que buscando un lugar donde d