Skip to content

Instantly share code, notes, and snippets.

@jorgeatorres
jorgeatorres / trello.rb
Created October 19, 2020 23:46
Read Trello cards using Ruby (based on my "Videogames" board)
require 'trello'
require 'json'
require 'base64'
require 'open-uri'
Trello.configure do |config|
config.developer_public_key = 'KEY'
config.member_token = 'TOKEN'
end
@jorgeatorres
jorgeatorres / gaim-text-reverse.c
Created June 17, 2010 13:16
gaim plugin to reverse/l337 chats before sending them
/*
* This Gaim plugin reverses/1337s text before sending it.
*/
#include <glib.h>
#include "internal.h"
#include "debug.h"
#include "conversation.h"
#include "notify.h"
#include "signals.h"
@jorgeatorres
jorgeatorres / monty-hall.c
Created June 17, 2010 13:15
Monty Hall problem simulator
/*
* Monty Hall problem.
* http://en.wikipedia.org/wiki/Monty_Hall_problem
*/
#include <stdio.h>
#ifdef DEBUG
#define verbose printf
#else
@jorgeatorres
jorgeatorres / HelloWorld.java
Created June 17, 2010 13:13
obfuscated HelloWorld java program
public class HelloWorld {public static void main(String[] args){
int[][] t = new int[][]{{202,1026,1100,396,324,1080,192,609,555,888,72,432},
{3,9,8,5},{2,2,5,9},{4,6,1,9,2,11},{4,6,1,9,3,2,11,7,0,5,10},{2,1,5,9},{1,9,2,5},{0,2,10,5,1,6,3,11,8,4},{10,4,2,6},
{1,10,2,3,5,9,7,4,11,6},{7,0,3,6},{2,9,10,1},{7,1,10,6},{12,0,-0}};do{while(t[13][1]+1<t[t[13][0]].length){
t[13][2]=t[0][t[t[13][0]][t[13][1]]];t[0][t[t[13][0]][t[13][1]]]=t[0][t[t[13][0]][++t[13][1]]];t[0][t[t[13][0]][t[13][1]++]]=t[13][2];}
}while(!(--t[13][0]<=(int)Math.sin(Math.PI))&&((t[13][1]=0)<1));
while(t[4][2]<=t[9][5]+3)System.out.print((char)(t[0][t[4][2]-1]/t[4][2]++));}}