(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#define WIDTH 800 | |
#define HEIGHT 600 | |
#define IMG_PATH "exit.png" | |
int main (int argc, char *argv[]) { |
source :rubygems | |
gem 'json', '= 1.5.4' # knife/chef 11.0 and 11.20 is broken with json 1.5.5/1.7.7 | |
gem 'vagrant' | |
gem 'vagrant-hostmaster' |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
import sqlalchemy | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, String, ForeignKey | |
from sqlalchemy.orm import sessionmaker, relationship | |
engine = sqlalchemy.create_engine('sqlite:///:memory:') | |
Base = declarative_base() | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Must have already entered dev mode to use this shell script from a crosh shell. | |
wget -O ~/Downloads/crouton http://goo.gl/fd3zc | |
sudo sh -e ~/Downloads/crouton -t x11,audio,keyboard,extension -n i3precise | |
# This takes 15-20 minutes. | |
sudo enter-chroot -n i3precise |
Picking the right architecture = Picking the right battles + Managing trade-offs
#include <stdio.h> | |
#include <fcntl.h> | |
#if defined(__unix__) || defined (__CYGWIN__) | |
#include <unistd.h> | |
#else | |
#include <io.h> | |
#endif | |
#ifndef O_BINARY |
;; Get package installation ready | |
(require 'package) | |
(setq package-enable-at-startup nil) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/")) | |
(package-initialize) | |
;; Theme | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") | |
(load-theme 'zenburn t) |
Before you continue, if you don't know what IMGUI is don't bother reading this post, just ignore it, don't write anything in comments section, etc. If you're curious about IMGUI see bottom of this post, otherwise continue whatever you were doing, this post it's not for you. Thanks!
If you know what IMGUI is, for context read following presentations and blog posts: