Skip to content

Instantly share code, notes, and snippets.

View alekpopovic's full-sized avatar
🏠
Working from home

Aleksandar Popovic alekpopovic

🏠
Working from home
View GitHub Profile
@alekpopovic
alekpopovic / object-watch.js
Last active August 29, 2015 14:27 — forked from eligrey/object-watch.js
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@alekpopovic
alekpopovic / sublime-text-3-build-3065-license.md
Last active August 29, 2015 14:27
Sublime Text 3 (build 3065+) - VALID License

SublimeText3 Valid License without cracking! Just download/install then use this license.

Notice that it may not work on dev builds, but still works on 3083 build!

----- BEGIN LICENSE -----

Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
@alekpopovic
alekpopovic / install.sh
Last active September 1, 2015 23:36 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@alekpopovic
alekpopovic / Install Clojure on Ubuntu.md
Created October 22, 2015 13:30 — forked from hawkup/Install Clojure on Ubuntu.md
Install Clojure on Ubuntu 14.04

Prerequisite

  • Java

Installation

  • download clojure
wget http://repo1.maven.org/maven2/org/clojure/clojure/1.6.0/clojure-1.6.0.zip
@alekpopovic
alekpopovic / ubuntu-maven-3
Created October 23, 2015 10:58 — forked from stephanetimmermans/ubuntu-maven-3
Install Maven3 on Unbuntu 14.04
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
#If you encounter this:
#The program 'mvn' can be found in the following packages:
# * maven
# * maven2
@alekpopovic
alekpopovic / *.bat
Created November 15, 2015 19:26 — forked from michfield/*.bat
Install Gems without documentation #ruby #windows
:: Make --no-ri --no-rdoc default gem install options (without documentation)
:: Possible variations:
:: For every user:
:: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc"
:: Only for you
:: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc"
::
:: Note: In Windows, %PROGRAMDATA% is /etc on Linux
::
:: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985
@alekpopovic
alekpopovic / fb_share_modal.js
Created November 18, 2015 09:24 — forked from orhanveli/fb_share_modal.js
Facebook share modal dialog (inline not pop-up) with custom title, description and image
var FbShareWindow = function (url, title, description, img, reftext) {
if (typeof title !== "string") {
title = $("title").text();
}
if (typeof description !== "string") {
description = $("meta[name='description']").attr("content");
}
FB.ui(
@alekpopovic
alekpopovic / User.rb
Created November 22, 2015 21:38 — forked from stakes/User.rb
Feature Flags / Rails + Mongoid
class User
include Mongoid::Document
# herein might appear a metric shitton of fields
# but what you need to know for feature flags follows
field :feature_flags, :type => Hash, :default => {}
# likewise, this is only what you need for
@alekpopovic
alekpopovic / gist:251438123c66e17ddc4e
Created November 30, 2015 14:50 — forked from ShepBook/gist:5713899
Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Remove Existing OpenJDK

Generally, I'd recommend running Oracle's Java, if you're doing Clojure development. Seeing how Clojure is built around the standard JVM from Oracle, it seems like it would be best to use that. First, let's remove the existing OpenJDK from our OS.

Search for OpenJDK

$ dpkg --get-selections | grep jdk
@alekpopovic
alekpopovic / ember-rails-scaffold.md
Created December 20, 2015 18:24 — forked from pixelhandler/ember-rails-scaffold.md
Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Journal App

This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js

See source code on GitHub: pixelhandler/journal.