Skip to content

Instantly share code, notes, and snippets.

Avatar

Rubén Medellín chubas

View GitHub Profile
View tag-exists.sh
#! /usr/bin/env bash
# USAGE:
# Replace your dockerhub credentials on DOCKER_HUB_USERNAME and DOCKER_HUB_PASSWORD
# Invoke from the directory you want to check against
#
# e.g. [/home/skycatch/core]$ ../tools/tag-exists.sh
# > Tag exists: core/8d5b62
#
# Requires `jq` to be installed (brew install jq)
View keybase.md

Keybase proof

I hereby claim:

  • I am chubas on github.
  • I am chubas (https://keybase.io/chubas) on keybase.
  • I have a public key ASBeQOAuEdxrwZEgV_NgC5gT7SGjTumQKDNsAoVV8MDc6go

To claim this, I am signing this object:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chubas
chubas / cas-bot.md
Last active Dec 10, 2015
Cards Against Slack
View cas-bot.md

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)

@chubas
chubas / wordblender.md
Last active Feb 27, 2019
Word Blender
View wordblender.md

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

View .gitignore
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
# ===================================== #
View api-notation.md

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)
View prompt.sh
# 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=
@chubas
chubas / Chubascasts.xml
Created May 22, 2013
Theme configuration file for Rubymine (4.0). Derived from Railscasts
View Chubascasts.xml
<?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" />
@chubas
chubas / ruby_differences.rb
Created Oct 10, 2012
(Some) differences between ruby versions.
View ruby_differences.rb
#!/bin/env ruby
# encoding: utf-8
# Differences between Ruby versions
code = case ARGV[0]
when "1"
puts "- Local block variables"