Skip to content

Instantly share code, notes, and snippets.

View pvinis's full-sized avatar
🔭
hello?

Pavlos Vinieratos pvinis

🔭
hello?
View GitHub Profile
#![feature(associated_types)]
extern crate time;
fn main() {
println!("hello :)");
//println!("{}", time::now());
}
@pvinis
pvinis / gist:f93b2e1c04664e78c493
Created May 15, 2015 08:42
opencl-device-detect
#include <stdio.h>
#include <stdlib.h>
#include <OpenCL/opencl.h>
int main(int argc, char* const argv[]) {
cl_uint num_devices, i;
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &num_devices);
cl_device_id* devices = calloc(sizeof(cl_device_id), num_devices);
//
// GridDemoViewController.m
// JNWCollectionViewDemo
//
// Created by Jonathan Willing on 4/15/13.
// Copyright (c) 2013 AppJon. All rights reserved.
//
#import "GridDemoViewController.h"
#import "GridCell.h"
" gist
let g:gist_clip_command='pbcopy'
let g:gist_detect_filetype=1
let g:gist_open_browser_after_post=1
id)
case id
when Gosu::KbUp
@selected = (@selected - 1) % @menu_items.size
when Gosu::KbDown
##sound
@selected = (@selected +
:bottom] = SIZE-WALL_THICKNESS
attr_reader :walls
def initialize(x, y, left, right, top,bottom)
@x,@y,@z = x,y,Z::GRID
@walls = {}
@walls[:le
ICKNESS
attr_reader :walls
def initialize(x, y, left, right
attr_reader :walls
def initialize(x, y, left, right, top,bottom)
@x,@y,@z = x,y,Z::GRID
@walls = {}
require 'gosu'
require './tile'
require './z'
module Visible
NO, YES, ON_HIT, STATES = *0..3
end
class Wall
THICKNESS = 8
"package_name_map": {
"soda-theme": "Theme - Soda"
}
}