Skip to content

Instantly share code, notes, and snippets.

Tomek Cejner tomekc

Block or report user

Report or block tomekc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomekc
tomekc / ps-export-layers-to-png.jsx
Created Jun 7, 2012
Photoshop script that exports to PNG all layers and groups whose names end with ".png".
View ps-export-layers-to-png.jsx
#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.
View dabblet.css
* {
font-family: arial;
}
.diw {
border-radius: 10px;
width: 200px;
margin: auto;
}
@tomekc
tomekc / crashlog.txt
Created Sep 6, 2012
Ingredients.app crash log
View crashlog.txt
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 Nov 7, 2012 — forked from codahale/pom.xml
Take this and save it as pom.xml in your project directory.
View pom.xml
<?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 Oct 12, 2015
Sinatra kickstart boilerplate: HTML5 + Bootstrap + jQuery
View app.rb
require 'sinatra'
get '/' do
@name = ENV['USER']
erb :main
end
@tomekc
tomekc / pom.xml
Last active Dec 11, 2015
Dropwizard bootstrap POM.
View pom.xml
<?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 Jul 4, 2013
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…
View absurd_rest_service.js
/*
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 Nov 24, 2013
.gitignore for Xcode and AppCode projects. Collected from internet's collective wisdom :]
View .gitignore
# xcode noise
build/*
*.perspective
*.perspectivev3
*.pbxuser
*.xcworkspace
*.mode1
*.mode2v3
*.mode1v3
xcuserdata
@tomekc
tomekc / Game.h
Created Dec 13, 2013
Sparrow Framework 2.0 boilerplate
View Game.h
#import <Foundation/Foundation.h>
#import <Sparrow-Framework/Sparrow.h>
@interface Game : SPSprite
@end
@tomekc
tomekc / bmf.lua
Last active Jan 1, 2016
Bitmap font support in Corona SDK, compatible with Graphics 2.0
View bmf.lua
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.
You can’t perform that action at this time.