Skip to content

Instantly share code, notes, and snippets.

View minitech's full-sized avatar

Ryan O’Hara minitech

  • British Columbia, Canada
View GitHub Profile
@minitech
minitech / music-thing.rs
Created August 26, 2013 02:33
First Rust program (apart from Hello, world) to actually learn something, since there appear to be no books yet and the thing keeps changing anyways
use std::io::{stdin, stdout};
use std::run;
use std::libc;
use std::libc::c_int;
static SIGCONT: c_int = 18;
static SIGSTOP: c_int = 19;
trait ProcessSignal {
fn kill(&self, signal: c_int);
i=gets.split
s=i[0].to_i
(i[1]<?3?s.downto(1):1..s).map{|x|t=?x*x
puts /2|4/=~i[1]?t.rjust(s):t}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Mapstraction Bug Test</title>
<style type="text/css">
#map {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minitech
minitech / dabblet.css
Created July 15, 2013 17:37 — forked from bhargav2785/dabblet.css
Pure CSS wave effect *
/** Pure CSS wave effect **/
div.wave{
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
div.wave > span{
display: inline-block;
width: 10%;
"use strict";
var operatorPrecedence = {
"+": 1,
"*": 2,
"**": 3
};
function Tree() {
}
@minitech
minitech / blog.c
Last active December 19, 2015 17:39
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
@minitech
minitech / gist:5845281
Created June 23, 2013 14:47
Or can you?

You can always be sure where you’re going with a http://pkfm.net/ link.

Or can you?

<!DOCTYPE html>
<html>
<head>
<title>Simple tabbed menu</title>
<link rel="stylesheet" type="text/css" href="tabs.css">
</head>
<body>
<h1>Simple tabbed menu</h1>
(function a() {
/* (function(package) {
* (function(a) {
* "use strict";
* var a\u005f = package;
* with(a_)
* this && a();
* })(a);
* })();
*/