This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <engine/sprite.hh> | |
#include <string> | |
#include <SDL/SDL.h> | |
#include <SDL/SDL_image.h> | |
namespace mnts | |
{ | |
Sprite::Sprite(SDL_Surface * gameScreen, std::string texture, int x, int y) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <mruby.h> | |
#include <mruby/compile.h> | |
int main(int argc, char ** argv) | |
{ | |
mrb_state * mrb = mrb_open(); | |
char code[250]; | |
while (1) { | |
printf("[max:250]> "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/chris/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault | |
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.4.0] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/CrashReporter | |
* /Library/Logs/CrashReporter | |
* ~/Library/Logs/DiagnosticReports | |
* /Library/Logs/DiagnosticReports | |
the more detail of. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Python 2.7 | |
$ pyenv global system | |
# Use Homebrew to install | |
$ brew install gtk+3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From: http://itshouldbeuseful.wordpress.com/2011/11/07/passing-parameters-to-a-rake-task/ | |
def task_arg(var) | |
task var.to_sym {} | |
end | |
task :hello do | |
name = ARGV.last # Get last arg (ARGV.first is task name) | |
abort "I can't say hello to nobody. :(" if name.empty? | |
puts "Hello #{name}!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def f;m=%,He#{:ll}o #{?w+?o}rld\n,;s=(:a1[1].to_i)-0.5;;m.split(//) | |
.each{|c|print((->{%?#{c}?}.call));sleep(s)}; | |
puts((%Q%#{?t+?h}%+%?a?+%{t w#{"aa"[1]}s boring...}));;end;f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/chris/.rvm/gems/ruby-2.0.0-p247/gems/kgio-2.8.1/lib/kgio_ext.bundle: [BUG] Segmentation fault | |
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.4.0] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/CrashReporter | |
* /Library/Logs/CrashReporter | |
* ~/Library/Logs/DiagnosticReports | |
* /Library/Logs/DiagnosticReports | |
the more detail of. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lte IE 7]> | |
<p> | |
Oops! Looks like your browser is <strong>outdated</strong>. This means that | |
you may not be able to view certain sites correctly. Please download a later | |
version of the software you use to browse the internet for the best experience. | |
</p> | |
<![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run 'bundle' in the command line afterward | |
source 'https://rubygems.org' | |
gem 'guard' | |
gem 'guard-rake' | |
gem 'rake' | |
gem 'rainbow' | |
gem 'github-markdown' |