Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
ALTER TABLE assemblage_component
delete primary key (assemblage_id, component_id);
ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES addresses (address) MATCH FULL;
create TABLE "assemblage" (
"assemblage_id" bigserial not null default nextval('nx.assemblages_assemblage_id_seq'::regclass),
" component_id" bigserial not null default nextval('nx."assemblages_ component_id_seq"'::regclass),
PRIMARY KEY ("assemblage_id")
);
create TABLE "assemblage_component" (
"assemblage_id" int8 not null,
"component_id" int8 not null,
FOREIGN KEY ("assemblage_id") REFERENCES "assemblage" ("assemblage_id"),
sudo apt-get install qt5-default
sudo apt-get install qt5-image-formats-plugins

Add one of the following lines to your /etc/apt/sources.list (according to your distribution):

deb http://packages.erlang-solutions.com/ubuntu trusty contrib
sudo apt-get update
sudo apt-get install elixir nodejs erlang-dev erlang-eunit 
mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v0.14.0/phoenix_new-0.14.0.ez
<%= version %>
?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
[====================== 100 % =====================]
[sort ispc]: [90322.421] million cycles
[====================== 100 % =====================]
[sort ispc + tasks]: [31999.193] million cycles
[====================== 100 % =====================]
[sort serial]: [30535.641] million cycles
(0.34x speedup from ISPC, 0.95x speedup from ISPC + tasks)
@fire
fire / gist:6c4f116eac719692dfd5
Last active November 27, 2015 05:00
how to minify stuff
npm install inliner -g
# IGNORE # grep -nr SEARCH_TERM .
inliner -vnm menu.html > final-menu.html
npm install html-minifier -g
html-minifier --minify-js --minify-css --minify-urls final-menu.html -o m.html
One use only
Break It
Lose abilities as you progress
Control the enviroment
Growing
One massive enemy
Generations
Death is not the end
You are many
Only 3 Rules
$ sudo add-apt-repository ppa:elementary-os/daily
$ sudo add-apt-repository ppa:elementary-os/os-patches
$ sudo apt-get update
$ sudo apt-get install elementary-desktop
$ sudo apt-get install upgrade