Skip to content

Instantly share code, notes, and snippets.

View bomberstudios's full-sized avatar
🍊
Thinking

Ale Muñoz bomberstudios

🍊
Thinking
View GitHub Profile
13/10/15 23:46:03,067 Framer Studio Beta[48787]: -[NSWindow setTitleVisibility:]: unrecognized selector sent to instance 0x6080001ffc00
13/10/15 23:46:03,068 Framer Studio Beta[48787]: (
0 CoreFoundation 0x00007fff8882525c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff891cee75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8882812d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff88783272 ___forwarding___ + 1010
4 CoreFoundation 0x00007fff88782df8 _CF_forwarding_prep_0 + 120
5 Framer Studio Beta 0x000000010110af46 -[PDDocsWindowController windowDidLoad] + 163
6 AppKit 0x00007fff8caf73ac -[NSWindowController _windowDidLoad] + 450
7 AppKit 0x00007fff8caddfa6 -[NSWindowController window] + 110
@bomberstudios
bomberstudios / cms.md
Last active September 16, 2015 10:23 — forked from matallo/cms.md
list of CMS
@bomberstudios
bomberstudios / sketch-users-madrid-meetup-talk-ale.md
Last active October 24, 2016 10:14
The transcription of my Sketch Users Madrid Meetup talk

Supercharging Sketch

(The deck for this transcript is available at https://speakerdeck.com/bomberstudios/supercharging-sketch)

When Sketch 1 came out, 5 years ago, I remember spending a few minutes playing with it and thinking "this could totally replace Fireworks" (my weapon of choice at the time). I sent Pieter an email to tell him how excited I was about the app, and while writing it I thought "you know what? This thing would be awesome if it was scriptable"

This is the email I sent him:

screen shot 2015-09-15 at 08 23 09

@bomberstudios
bomberstudios / restore-colours.sh
Created August 11, 2015 11:34
Restore Sketch's default color swatches
mv ~/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application\ Support/com.bohemiancoding.sketch3/assets-55.sketchpreset ~/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application\ Support/com.bohemiancoding.sketch3/assets-55.sketchpreset.old
cp /Applications/Sketch.app/Contents/Resources/assets.sketchpreset ~/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application\ Support/com.bohemiancoding.sketch3/assets-55.sketchpreset
@bomberstudios
bomberstudios / svgmin.sh
Last active February 23, 2016 12:04
A script to minimize Sketch's exported SVG files safely, using SVGO
# Cleanup SVG files exported from Sketch
# Needs SVGO (install by running 'npm install -g svgo')
if [[ -d $1 ]]; then
svgo -f $1 --pretty --disable=convertShapeToPath --enable=removeTitle --enable=removeDesc --enable=removeDoctype --enable=removeEmptyAttrs --enable=removeUnknownsAndDefaults --enable=removeUnusedNS --enable=removeEditorsNSData
elif [[ -f $1 ]]; then
svgo -i $1 --pretty --disable=convertShapeToPath --enable=removeTitle --enable=removeDesc --enable=removeDoctype --enable=removeEmptyAttrs --enable=removeUnknownsAndDefaults --enable=removeUnusedNS --enable=removeEditorsNSData
else
echo "Usage: svgmin <file> or svgmin <folder>"
fi
@bomberstudios
bomberstudios / banh-mi.md
Last active August 29, 2015 14:25
Mi receta de bahn mi

Bahn Mi

El banh mi es un bocadillo típico de la cocina vietnamita. Como la tortilla de patatas, cada uno lo hace como quiere y no hay una receta canónica, aunque casi todas coinciden en 3 cosas imprescindibles: cilantro, encurtidos y salsa hoisin.

Ingredientes (para 4 bocadillos)

  • Dos barras de pan de baguette
  • Un solomillo de cerdo de unos 400gr
var s = context.selection
var v = context.document.currentView()
var r = v.totalRectForLayers(s)
var artboard = [[MSArtboardGroup alloc] initWithFrame:r];
var page = context.document.currentPage();
[page addLayers:[artboard]];
[artboard setGrid:[page grid]];
// Enable background for slice:
slice.setHasBackgroundColor(1)
// Set background color
var color = [MSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1]
slice.setBackgroundColor(color)
// Update inspector
context.document.reloadInspector()
@bomberstudios
bomberstudios / gist:f73c8acd39bda17d047a
Created June 19, 2015 10:43
Console.app output when launching Framer Studio Beta on 10.9
19/06/15 12:42:46,154 Framer Studio Beta[4357]: -[NSBitmapGraphicsContext CGContext]: unrecognized selector sent to instance 0x6080004617c0
19/06/15 12:42:46,154 Framer Studio Beta[4357]: Ignoring exception raised in void run_cocoa_block(void *): -[NSBitmapGraphicsContext CGContext]: unrecognized selector sent to instance 0x6080004617c0
19/06/15 12:42:46,155 Framer Studio Beta[4357]: Using Hockey: 3aee9c65e7180cd35917314928b3c141
19/06/15 12:42:46,195 Framer Studio Beta[4357]: Run: /usr/bin/python (
"/Applications/Framer Studio Beta.app/Contents/Resources/python/run.py"
)

UPDATE: This issue has been fixed in Sketch 3.3.3. Go download the beta version now, or wait for the final version to be released in a few days.

The following content is kept here for historical reasons :)


Sketch Stuttering? Let us help you!

We're currently investigating an issue where Sketch stops responding at regular intervals. Judging from our reports, it started about 10 days ago (June 1st) for no apparent reason that we can think of (our last Sketch update was released on May 11st). We have some hypothesis, but we need your help to fix it since we haven't been able to reproduce it on our test machines.

If you need a quick workaround, keep reading :)