Skip to content

Instantly share code, notes, and snippets.

@Lumaio
Lumaio / main.cpp
Created September 13, 2014 17:29
ImgurDownloader
#include <iostream>
#include <algorithm>
#include <curl/curl.h>
#include <curl/easy.h>
#include <curl/curlbuild.h>
#include <sys/stat.h>
#include <SFML/Graphics.hpp>
#include <Thor/Input.hpp>
using namespace std;
@Lumaio
Lumaio / main.c
Created September 13, 2014 01:09
#include <curl/curl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) {
size_t written = fwrite(ptr, size, nmemb, stream);
return written;
}
@Lumaio
Lumaio / OUTPUT
Last active August 29, 2015 14:06
Shit yes nigga
World Created.
This is some info
This is some MORE info
#include "inc.hh"
#ifndef BASE_H
#define BASE_H
class BaseState
{
private:
public:
BaseState();
@Lumaio
Lumaio / Player.cpp
Created June 25, 2014 23:01
This is rather interesting
#include "Player.h"
#include <iostream>
Player::Player(int x, int y, std::string name)
{
this->setX(x);
this->setY(y);
this->setName(name);
}
@Lumaio
Lumaio / engine.cpp
Created June 15, 2014 15:08
Fuck you c++
#include "SFML/Graphics.hpp"
#include "engine.h"
#include "stdio.h"
using namespace sf;
Engine::Engine (string title) {
//Fuck you c++
}
Engine::Engine (void) {}
#include "SFML/Graphics.hpp"
#include "stdio.h"
using namespace sf;
void Engine::init() {
window.create(sf::VideoMode(640,480), "SFML Test", Style::Close);
window.setFramerateLimit(60);
tex.loadFromFile("assets/logo.png");
package com.loom.sa.objects;
public class Config {
public static final int SIZE = 16;
public static final int START_X = 3;
public static final int START_Y = 3;
}