Skip to content

Instantly share code, notes, and snippets.

View kivutar's full-sized avatar

Jean-André Santoni kivutar

View GitHub Profile
#include "terrain.h"
#include "sprites.h"
#include "images.h"
#include "entity.h"
#include "global.h"
#include "bgm.h"
#include "camera.h"
Terrain* load_map_deepforest1(s32 x, s32 y)
{
#include "terrain.h"
#include "sprites.h"
#include "images.h"
#include "entity.h"
#include "global.h"
#include "bgm.h"
#include "camera.h"
Terrain* load_map_deepforest1(s32 x, s32 y)
{
@kivutar
kivutar / match.pl
Last active June 29, 2017 22:44
MATCH card game in perl
#!/usr/bin/perl
use strict;
use warnings;
#use Data::Dumper;
use List::Util qw(shuffle);
$| = 1;
my @suits = ('A','B','C','D');
my @values = 1..13;
@kivutar
kivutar / gist:6847165
Created October 5, 2013 23:07
my kernel config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.11.2-1 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
<style>
ul li { list-style-type: none; }
ul ul li { list-style-type: disc; }
</style>
<ul>
<li> Foo
<ul>
<li>Bar</li>
<li>Bar</li>
@kivutar
kivutar / kivutar.xml
Created November 9, 2011 15:24
My Gedit Theme
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of GtkSourceView
Copyright (C) 2007 GtkSourceView team
Author: Jean-André Santoni <jean.andre.santoni@gmail.com>
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
import direct.directbase.DirectStart
from direct.gui.DirectGui import *
from pandac.PandaModules import *
class Grid():
def __init__(self, size=(0, 0, 100, -100), pos=(0, 0, 0)):
bordersize = 16
@kivutar
kivutar / OPML2nrss
Created November 28, 2010 20:58
Converting OPML file to nrss config
cat Téléchargements/google-reader-subscriptions.xml | perl -MXML::Simple -MData::Dumper=Dumper -E 'my $xml = XMLin \*STDIN; say "add \"$$_{xmlUrl}\" \"$$_{text}\"" for @{ $$xml{body}{outline} };' >> .nrss/config
@kivutar
kivutar / .vimrc
Created November 28, 2010 20:00
My .vimrc
"set nocompatible "Explicitly get out of vi-compatible mode
syntax on
filetype plugin on
colorscheme kivutar
set number
set autowrite "Automatically save before commands like :next and :make
set showmatch "Show matching bracets when text indicator is over them
"set hidden  "You can change buffers without saving
"set clipboard+=unnamed "Share windows clipboard
@kivutar
kivutar / kivutar.theme
Created November 28, 2010 19:59
My irssi theme
replaces = { "[]=" = "$0-%n"; };
abstracts = {
line_start = "%K> ";
timestamp = "%K$0-%n";
hilight = "%K$0-%K";
error = "%R{$0-}%n";
channel = "$0-";
nick = "$0-";