Skip to content

Instantly share code, notes, and snippets.

extern crate image;
use image::GenericImage;
fn main() {
for x in 1..5 {
println!("Loading image.");
let image1 = image::open(&std::path::Path::new(&format!("bin/{}_1.png", x))).unwrap();
let mut imgbuf = image::ImageBuffer::new(image1.width(), image1.height() * 2);
let image2 = image::open(&std::path::Path::new(&format!("bin/{}_2.png", x))).unwrap();
@user6553591
user6553591 / v8-1.patch
Created January 17, 2017 08:10
stockfish-v8-1
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Tue Jan 5 17:24:24 UTC 2016
+# Tue Jan 17 07:44:25 UTC 2017
pkgbase = stockfish
pkgdesc = A strong chess engine written by Tord Romstad, Marco Costalba, Joona Kiiski
- pkgver = 7
+ pkgver = 8
pkgrel = 1
@user6553591
user6553591 / main.py
Last active December 14, 2016 01:28
ballistic calculation
#!/usr/bin/env python
# coding=utf-8
"""
Do a ballistic calculation.
"""
import json
import math
import vector