Skip to content

Instantly share code, notes, and snippets.

View pta2002's full-sized avatar
💻
Aaaaaaaaaaa

Pedro Alves pta2002

💻
Aaaaaaaaaaa
View GitHub Profile
// ==UserScript==
// @name Robin Enhancement Suite
// @namespace com.pta2002.robines
// @description Enhances robin
// @include https://www.reddit.com/robin
// @include http://www.reddit.com/robin
// @include https://reddit.com/robin
// @include http://reddit.com/robin
// @include https://www.reddit.com/robin/
// @include http://www.reddit.com/robin/

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>«
<style>
* {
font-family: "Roboto";
padding: 0;
require "./sdl"
LibSDL.init(LibSDL::INIT_EVERYTHING)
window = LibSDL.create_window("It works!", LibSDL::WINDOWPOS_UNDEFINED, LibSDL::WINDOWPOS_UNDEFINED, 800, 600, 0)
surface = LibSDL.get_window_surface(window)
_format = surface.value.format
LibSDL.fill_rect(surface, nil, LibSDL.map_rgb(pointerof(_format), 0xFF, 0xFF, 0xFF))
@pta2002
pta2002 / ld38.json
Created May 1, 2017 20:01
Data scrapped from the LD38 jam
This file has been truncated, but you can view the full file.
{
"event": "ld38",
"games": [
{
"id": 16571,
"author": "orbitalblueprint",
"name": "A World In Her Eye",
"slug": "a-world-in-her-eye",
"body": "![FireAlpaca_2017-04-26_15-27-30.png](///raw/c48/2/z/2856.png)\n\nQora has lived as a wheat farmer on her own small planet for as long as she can remember. Her only light sources being a few lamps and a small star of sorts tied to her own planet and spending her days staring at the sky, her life is rather monotonous.\n\nBut occasionally other planets pass by her own. What will she find this time?\n\nA short point and click-style game without pointing and clicking.\n\n[UP, DOWN, LEFT, RIGHT] -> Move around\n\n[X] -> Interact/speed up dialogue [hold]\n\nWARNING: The game might run slow on some machines. The game is best experienced at ~60 FPS. I'm sorry if it doesn't run well on yours, I might get around to adding graphic optimization features!\n\n[Download](https://orbitalblueprint.itch.io/a-wo
#include <stdio.h>
#include <stdlib.h>
int main() {
int number = 30;
int cur_char = 0;
int size = sizeof(char);
char* string = (char*)malloc(size);
#include <stdio.h>
#include <stdlib.h>
int main() {
int number = 30;
int cur_char = 0;
int size = sizeof(char);
char* string = (char*)malloc(size);
L_nil = None
class LispType(object):
def get_val(self, env, vars={}):
return L_nil
class Lisp_Int(LispType):
def __init__(self, num):
self.val = num
def get_val(self, env, vars={}):
import $ from 'jquery'
let keys = {}
$(document).keydown((e) => {
keys[e.key] = true
})
$(document).keyup((e) => {
keys[e.key] = false
@pta2002
pta2002 / -
Created September 10, 2017 14:27
Linking hello ...
/usr/bin/ld: cannot find -lHSbase-4.9.1.0
/usr/bin/ld: cannot find -lHSinteger-gmp-1.0.0.1
/usr/bin/ld: cannot find -lHSghc-prim-0.5.0.0
/usr/bin/ld: cannot find -lHSrts
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)