Skip to content

Instantly share code, notes, and snippets.

#include<stdlib.h>
#include<errno.h>
#include<memory.h>
int main()
{
int f;
size_t s = 1024L*1024L*1024L*3L;
int* a = malloc(s);
memset(a, 3, s);
@vogre
vogre / theme.lua
Created January 25, 2013 17:10
awesome 3.5 theme
---------------------------
-- Adwaita awesome theme --
---------------------------
theme = {}
theme.font = "Ubuntu Light 9"
theme.bg_normal = "#ededed"
theme.bg_focus = "#4a90d0"
@vogre
vogre / Matrix.scala
Created February 28, 2012 18:17
Matrix problem
package com.livejournal.neatfires
import scala.math._
trait Matrix[T] {
// returns the element at i,j
def at(i:Int, j:Int): T
// returns the number of rows and columns in this matrix