Skip to content

Instantly share code, notes, and snippets.

@dominikkukacka
dominikkukacka / titanium_smooth_drag.js
Created January 11, 2012 09:17
Titanium Smooth Drag
var win = Titanium.UI.createWindow({
title:'Window',
left:0,
top:0,
backgroundColor:'#FFF',
name:'win1'
});
var circleSize = 100;
var circleX = 145;
<?php
namespace XXXX\MediaToolBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="faqs")
@dominikkukacka
dominikkukacka / basic_setup
Last active August 29, 2015 14:01
server_setup
sudo aptitude update
sudo aptitude install git htop vim zsh
useradd -m -G sudo -s /usr/bin/zsh dominik && passwd dominik
curl -L http://install.ohmyz.sh | sh
cd ~/.oh-my-zsh/themes
cp robbyrussell.zsh-theme mytheme.zsh-theme
PROMPT="PROMPT='%{\$fg_bold[white]%}%M %{\$fg_bold[red]%}➜ %{\$fg_bold[green]%}%p %{\$fg[cyan]%}%c %{\$fg_bold[blue]%}\$(git_prompt_info)%{\$fg_bold[blue]%} % %{$reset_color%}'"
sed -i "2s/.*/$PROMPT/" mytheme.zsh-theme
@dominikkukacka
dominikkukacka / Build Error
Created May 20, 2014 12:36
Building PHP 5.4 Container On Docker
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
/tmp/php-build/source/5.4.22/ext/curl/interface.c: In function ‘_php_curl_setopt.isra.10’:
/tmp/php-build/source/5.4.22/ext/curl/interface.c:1879:14: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
/tmp/php-build/source/5.4.22/ext/curl/interface.c:2014:4: warning: call to ‘_curl_easy_setopt_err_progress_cb’ declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option [enabled by default]
#!/bin/bash
# prevents direct commits to develop and master branch
forbidden_branches=('develop' 'master')
function current_branch() {
echo `git rev-parse --abbrev-ref=strict HEAD | sed -n 1,1p`
}
image: bradrydzewski/php:5.4
services:
- mysql:5.5
# - redis
notify:
email:
recipients:
- dominik@creativebrains.net
@dominikkukacka
dominikkukacka / rules.md
Last active September 19, 2017 11:50
Table Soccer Rules (JUMIO Style)

Official Rules

1. No spinning

Spinning of the rods is illegal.

Spinning is defined as the rotation of any soccer figure more than 360 degrees before or more than 360° after striking the ball. In calculating the 360° you do not add the degrees spun prior to striking the ball to the degrees spun after striking the ball.

@dominikkukacka
dominikkukacka / countries.js
Last active December 26, 2016 22:25
pelias countries
[
'Socialist Republic of Vietnam',
'Republic of Mozambique',
'Slovak Republic',
'Saint Lucia',
'Montenegro',
'Union of Burma',
'Kingdom of Bhutan',
'Bhutan',
'Panama',

Keybase proof

I hereby claim:

  • I am dominikkukacka on github.
  • I am dominikkukacka (https://keybase.io/dominikkukacka) on keybase.
  • I have a public key ASCzycmN4VaOTUUq4cqzn_mrpUgxuHVjXfiINY625p311Qo

To claim this, I am signing this object: