Skip to content

Instantly share code, notes, and snippets.

View mbonaci's full-sized avatar

Marko Bonaći mbonaci

View GitHub Profile
@mbonaci
mbonaci / rotation.css
Created April 1, 2014 10:14
Rotation in 90deg increments using only CSS transitions
.rot90 {
-webkit-transform: translateY(-100%) rotate(90deg);
-moz-transform: translateY(-100%) rotate(90deg);
-ms-transform: translateY(-100%) rotate(90deg);
transform: translateY(-100%) rotate(90deg);
-webkit-transform-origin: left bottom;
-moz-transform-origin: left bottom;
-ms-transform-origin: left bottom;
transform-origin: left bottom;
@mbonaci
mbonaci / install-node-with-nave-Ubuntu-subshell
Created March 8, 2014 12:51
Install node&npm with nave on Ubuntu 13.04 (with subshell)
# isaacs's nave:
# this way is really handy if you want to test things
# in different versions of node and use stable release
# versions of things.
# make a folder where you want to keep this stuff.
mkdir ~/.nave
cd ~/.nave
@mbonaci
mbonaci / install-node-with-nave-Ubuntu
Created March 8, 2014 12:44
Install `node` on fresh Ubuntu 13.04 using `nave` (without a subshell)
# contains mkdirhier
sudo apt-get install xutils-dev
# surprisingly Ubuntu doesn't come with curl
sudo apt-get install curl
# isaacs's nave:
# prepare nave dir and download install script
mkdir ~/.nave
cd ~/.nave
var fs = require('fs');
var path = require('path');
var sweet = require('sweet.js');
module.exports = function(grunt) {
grunt.initConfig({
sweetjs: {
options: {
modules: ['es6-macros'],
sourceMap: true,
@mbonaci
mbonaci / flynn make error (precise_64)
Last active January 1, 2016 09:29
flynn make error (precise_64)
vagrant@packer-virtualbox:/vagrant$ sudo git clone https://github.com/flynn/flynn-dev.git
Cloning into 'flynn-dev'...
remote: Counting objects: 200, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 200 (delta 113), reused 188 (delta 102)
Receiving objects: 100% (200/200), 29.54 KiB, done.
Resolving deltas: 100% (113/113), done.
vagrant@packer-virtualbox:/vagrant$ ls
flynn-dev
vagrant@packer-virtualbox:/vagrant$ cd flynn-dev/
@mbonaci
mbonaci / storm_pom.xml
Last active December 19, 2015 18:08
Example of maven pom file for Twitter Storm
<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>my.friend.is.a.seal</groupId>
<artifactId>my-own-storm</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>my-own-storm</name>