[BASH][1] script to build a [texture atlas][2] for games. Requires [ImageMagick][3].
Just run
| # set this to your Torchlight directory | |
| TORCHLIGHTDIR=$HOME/games/Torchlight | |
| hg clone http://hg.libsdl.org/SDL | |
| # check out the revision before the one that introduces the bug as advised here: http://forums.runicgames.com/viewtopic.php?f=24&t=33360&start=60#p474739 | |
| hg up 4de584a3a027 --clean | |
| # Fix X11 compilation issues with another changeset | |
| hg export 6caad66a4966 > patch | |
| hg import patch |
For a tmux status line as seen in the example image for the wemux project:
The session on the left in the example screen shot uses a patched font from the vim-powerline project. Inconsolata-dz, you beautiful creature.
To duplicate the left status line add the following lines to your ~/tmux.conf
set -g status-left-length 32
set -g status-right-length 150
| import os, subprocess, base64 | |
| import tornado.ioloop | |
| import tornado.web | |
| from tornado.options import define, options, parse_command_line | |
| define("port",default=8888,type=int) | |
| define("branch",default="master") | |
| define("access",type=str,multiple=True) | |
| class MainHandler(tornado.web.RequestHandler): |
| -- | |
| -- qt-support.lua | |
| -- Support for Qt Framework for Premake | |
| -- Copyright (c) 2011 Konstantin Tokarev | |
| -- | |
| -- Known limitations: | |
| -- don't support static Qt builds yet (private links, lib order, plugins) | |
| -- no support for Qt debug libs (Mac, Win) | |
| -- only gmake | |
| -- no Windows support yet |
| # rubygems DNS is temporarily down, if you're using ghost to manage local DNS | |
| # munging, run the following: | |
| ghost add rubygems.org 72.4.120.124 | |
| ghost add production.s3.rubygems.org 207.171.181.231 | |
| ghost add production.cf.rubygems.org 216.137.45.24 | |
| # Don't forget to clear them out afterwards with: | |
| # ghost delete_matching rubygems.org |
| # Simple and Stupid Ruby API for Coderwall.com | |
| # Vivien Didelot <[email protected]> | |
| require "open-uri" | |
| require "json" | |
| module CoderWall | |
| class Achievement | |
| attr_reader :name, :badge, :description |
| /* | |
| * | |
| * coderwall.js | |
| * | |
| * Code to display coderwall.com badges | |
| * | |
| */ | |
| var coderwallJSONurl ="http://www.coderwall.com/hermanjunge.json?callback=?"; | |
| var height = 75; |
| In response to all the responses to: | |
| http://twitter.com/rtomayko/status/1155906157 | |
| You should never do this in a source file included with your library, | |
| app, or tests: | |
| require 'rubygems' | |
| The system I use to manage my $LOAD_PATH is not your library/app/tests |