Skip to content

Instantly share code, notes, and snippets.

@tomekc
tomekc / ps-export-layers-to-png.jsx
Created June 7, 2012 22:21
Photoshop script that exports to PNG all layers and groups whose names end with ".png".
#target photoshop
// $.level = 2;
/*
* Script by Tomek Cejner (tomek (at) japko dot info)
* based on work of Damien van Holten:
* http://www.damienvanholten.com/blog/export-groups-to-files-photoshop/
*
* My version adds support of nested layer groups,
* and exports single layers in addition to groups.
@tomekc
tomekc / dabblet.css
Created July 23, 2012 09:44
Untitled
* {
font-family: arial;
}
.diw {
border-radius: 10px;
width: 200px;
margin: auto;
}
@tomekc
tomekc / crashlog.txt
Created September 6, 2012 22:09
Ingredients.app crash log
Process: Ingredients [63019]
Path: /Applications/Ingredients.app/Contents/MacOS/Ingredients
Identifier: net.fileability.ingredients
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: launchd [282]
User ID: 501
Date/Time: 2012-09-07 00:05:09.957 +0200
OS Version: Mac OS X 10.8.1 (12B19)
@tomekc
tomekc / pom.xml
Created November 7, 2012 08:53 — forked from codahale/pom.xml
Take this and save it as pom.xml in your project directory.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- none yet -->
@tomekc
tomekc / app.rb
Last active October 12, 2015 16:07
Sinatra kickstart boilerplate: HTML5 + Bootstrap + jQuery
require 'sinatra'
get '/' do
@name = ENV['USER']
erb :main
end
@tomekc
tomekc / pom.xml
Last active December 11, 2015 00:39
Dropwizard bootstrap POM.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.yammer.dropwizard</groupId>
@tomekc
tomekc / absurd_rest_service.js
Created July 4, 2013 21:59
Before running, install express by running npm install express and run with: node absurd_rest_service.js in this script's directory. Then: To submit calculation to curl -i -H "Content-Type: application/json" -d '{ "operation" : "+", "operands" : [ 2,3] }' http://localhost:3000/calculations To see results, use link from response: curl http://loca…
/*
Before running, install express by running
npm install express
and run with:
node absurd_rest_service.js
in this script's directory.
@tomekc
tomekc / .gitignore
Created November 24, 2013 23:18
.gitignore for Xcode and AppCode projects. Collected from internet's collective wisdom :]
# xcode noise
build/*
*.perspective
*.perspectivev3
*.pbxuser
*.xcworkspace
*.mode1
*.mode2v3
*.mode1v3
xcuserdata
@tomekc
tomekc / Game.h
Created December 13, 2013 22:31
Sparrow Framework 2.0 boilerplate
#import <Foundation/Foundation.h>
#import <Sparrow-Framework/Sparrow.h>
@interface Game : SPSprite
@end
@tomekc
tomekc / bmf.lua
Last active January 1, 2016 15:38
Bitmap font support in Corona SDK, compatible with Graphics 2.0
module( ..., package.seeall )
-- AngelCode bitmap font support
-- Updated for Graphics 2.0
-- Download sprite module from https://github.com/coronalabs/framework-sprite-legacy/raw/master/sprite.lua
local sprite = require( "sprite" )
-- Specify an Angelcode format bitmap font definition file (".FNT")
-- The spritesheet(s) that this file references need to be located in the resource directory.