Skip to content

Instantly share code, notes, and snippets.

View chubas's full-sized avatar

Rubén Medellín chubas

View GitHub Profile
@chubas
chubas / neon_test.js
Created June 25, 2012 01:19
Neon test
if(typeof require !== 'undefined') { // We are in Node, need to require the file
console.log("Requiring neon from file");
var Neon = require('../neon.js');
console.log(Neon);
// In Coffeescript, the following construct is recommended
// { Class, Module, Interface } = require('neon')
var Class = Neon.Class;
Cuiki = function() {
this.makeChoice = function() {
setTimeout(function() {
return Chameleon.Color.random();
}, 5 * 60 * 1000);
}
return this;
}
@chubas
chubas / Gemfile
Created September 28, 2012 15:27 — forked from ivanacostarubio/Gemfile
ICANHAZTYPOS
source :rubygems
gem 'levenshtein-ffi', :require => 'levenshtein'
gem "rspec"
@chubas
chubas / ruby_differences.rb
Created October 10, 2012 02:01
(Some) differences between ruby versions.
#!/bin/env ruby
# encoding: utf-8
# Differences between Ruby versions
code = case ARGV[0]
when "1"
puts "- Local block variables"
@chubas
chubas / Chubascasts.xml
Created May 22, 2013 16:10
Theme configuration file for Rubymine (4.0). Derived from Railscasts
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Chubascasts" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="0.85" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="CONSOLE_FONT_NAME" value="Monaco" />
<option name="CONSOLE_LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ANNOTATIONS_COLOR" value="3399" />
<option name="ANNOTATIONS_MERGED_COLOR" value="6666" />
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=

The following document attempts to define a legend for easy specification of APIs for components. Any suggestions to improve are welcome.

Class Members
   + class property
   - instance property
  ~> listened events (socket)
  +> listened events (class/module)
  -> listened events (instance)
  <~ dispatched events (socket)
@chubas
chubas / .gitignore
Last active August 31, 2015 19:40 — forked from kleber-swf/.gitignore
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
# ===================================== #
@chubas
chubas / wordblender.md
Last active February 27, 2019 19:06
Word Blender

GDLJS Monthly Challenge #1 - Word Blender

This is an adaptation for the RubyQuiz #108 Word Blender, lots of spoilers there so best to look after!

Word Blender

The task for this month is to build a game based on the popular game TextTwist (and many other variations there are). It can be built as sophisticaded as you want, ranging from a command line game to a full featured GUI game if you want.

Rules

@chubas
chubas / cas-bot.md
Last active December 10, 2015 19:02
Cards Against Slack

GDLJS Monthly Challende #2 - Cards Against Slack

CAH

The task for this month is to create a simple Hubot script to play Cards Against Humanity on Slack. Yay productivity!

Rules

The rules for the challenge will be the minimum set of rules of the game (full rules), only using the house rule of public voting (God is Dead rule)