2D, hand drawn (non-pixel) art
- Cuphead
- Hollow Knight
- Jotun
- The Little Acre
- Skullgirl
- Sundered
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: cgminer | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts cgminer | |
# Description: Start script for cgminer | |
### END INIT INFO |
2D, hand drawn (non-pixel) art
import org.lwjgl.input.Mouse; | |
import org.lwjgl.opengl.Display; | |
import com.badlogic.gdx.ApplicationListener; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.InputAdapter; | |
import com.badlogic.gdx.backends.lwjgl.LwjglApplication; | |
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; | |
import com.badlogic.gdx.graphics.GL10; | |
import com.badlogic.gdx.graphics.OrthographicCamera; |
import java.nio.IntBuffer; | |
import org.lwjgl.BufferUtils; | |
import org.lwjgl.LWJGLException; | |
import org.lwjgl.input.Mouse; | |
import com.badlogic.gdx.Application.ApplicationType; | |
import com.badlogic.gdx.ApplicationListener; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.Input.Keys; |
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New new -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
Taken from openframeworks/openFrameworks#1190
Resolution Independent Curve Rendering using Programmable Graphics Hardware
http://research.microsoft.com/en-us/um/people/cloop/loopblinn05.pdf
Resolution independent GPU accelerated Curve & Font rendering GPU based Resolution Independent Font & Curve Rendering – initial Release
http://jausoft.com/blog/2011/04/01/resolution-independent-gpu-accelerated-curve-font-rendering/
require 'benchmark' | |
n = 5_000_000 | |
find = 4 | |
array = [1,2,3,4] | |
Benchmark.bm do |x| | |
x.report { n.times { array.include?(4) } } | |
x.report { n.times { array.include?(5) } } | |
x.report { n.times { [1,2,3,4].include?(5) } } |