Skip to content

Instantly share code, notes, and snippets.

View bomberstudios's full-sized avatar
🍊
Thinking

Ale Muñoz bomberstudios

🍊
Thinking
View GitHub Profile
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@bomberstudios
bomberstudios / DNI-Electronico-en-Mac.md
Last active October 30, 2023 10:38
Instrucciones para instalar el DNI Electrónico en un Mac en 2021

DNI Electrónico en Mac

El lector que voy a usar es el SVEON SCT011M, que es el mas barato que encontré en tienda física y tiene un precio razonable en Amazon: https://www.amazon.es/dp/B072LTLZW3/

Estos son los pasos que he seguido:

  1. Descargar Firefox (he probado con la ultima version, 86.0.1)
  2. Enchufar el lector, sin el DNI (no se si es importante hacerlo aquí o se puede hacer luego, pero mejor no nos arriesgamos, yo lo hice aquí y me ha funcionado)
  3. Descargar libpkcs11 para Intel o para Apple Silicon. Estos enlaces estan en la web oficial del DNI Electrónico por si quieres ver si hay alguna versión más reciente.
  4. Instalar el paquete (los ficheros se copiaran en /Library/Libpkcs11-dnie, y en esa misma carpeta se instalara una app para desinstalarlo en e
@bomberstudios
bomberstudios / keeps_in_europe.md
Created October 4, 2020 14:27
Keyboard Shops in Europe
@bomberstudios
bomberstudios / spanish-tortilla.md
Last active May 16, 2023 20:23
My recipe of Spanish Tortilla

Spanish Tortilla

Ingredients (for 2 adults, and two 3 y.o. and 10 y.o. girls :)

  • 2 medium/large sized potatoes
  • 6 eggs
  • a small/medium sized onion (there are two kinds of people: the ones that like their tortilla with onion, and the unlucky rest)
  • salt, olive oil and sugar (yes, you read that right)
  • a 25 cl beer bottle (we call them "un quinto" :)

Preparation

@bomberstudios
bomberstudios / convert.rb
Created November 20, 2012 10:37
Converts PSD files in a folder to PNG
Dir.glob("*.psd").each do |file|
system("sips -s format png #{file} --out #{File.basename(file,'.psd')}.png")
end
@bomberstudios
bomberstudios / Change Font.sketchplugin
Last active May 7, 2022 17:50
Change font family for all text layers in Sketch
// Change font (ctrl a)
var doc = context.document,
selection = context.selection,
font_name = [doc askForUserInput:"Font name:" initialValue:"Arial"];
function check_layer(layer){
log(layer)
var className = layer.className()
log("Checking layer " + layer + " of klass: " + className)
if (className == "MSTextLayer") {

Sketch Image Compressor (Beta)

A Plugin for Sketch that compresses your bitmap assets, to keep filesize to a minimum.

Please note that the compression is lossless, so no pixels will be harmed by running this Plugin : )

Installation

  • Download Sketch Image Compressor & unzip it.
  • Double click Sketch Image Compressor.sketchplugin to install the Plugin.
@bomberstudios
bomberstudios / README.md
Last active February 16, 2022 03:13
Loading a Cocoa Framework in a Sketch Plugin

This is what Craft does:

function loadFramework(pluginRoot) {
  if (NSClassFromString('PanelsManager') == null) {
    var mocha = [Mocha sharedRuntime];
    return [mocha loadFrameworkWithName:'Panels' inDirectory:pluginRoot];
  } else {
    return true;
 }
@bomberstudios
bomberstudios / top_100_anime_movies.md
Last active December 25, 2021 18:09
Top 100 Anime Movies Of All Time (from http://imgur.com/a/k2vwE)
  1. Colorful (2010) [T]

    Probably not the title that most people expected to see in the #1 slot. I urge everyone to give it a shot though. No other film has ever brought me through a greater spectrum of emotions. It's a supernatural film, but the characters are so well fleshed out and developed that they feel real. I've probably seen a hundred films since, but none have compared.

  2. Time of Eve (2010) [T]

Director: Yasuhiro Yoshiura - "Sometime in future Japan, androids have been involved in every aspect of peoples lives. One day, upon checking his android's behavioral log, Rikuo, a student, noticed his android's returning times have been odd recently. With his friend Masaki, they found out the place where his android, Sammy, have been visiting: a small cafe called Eve no Jikan where an

@bomberstudios
bomberstudios / sinatra_sample_app.rb
Created September 29, 2008 10:07
the simplest sinatra app
# Sinatra sample app.
#
# Usage:
# $ sudo gem install sinatra
# $ ruby this_file.rb
# $ open http://0.0.0.0:4567/
require "rubygems"
require "sinatra"