Skip to content

Instantly share code, notes, and snippets.

View sevki's full-sized avatar
🎸
noodling

Sevki sevki

🎸
noodling
View GitHub Profile
package main
func main() {
}
import sys, PIL.Image
img = PIL.Image.open(sys.argv[-1]).convert('L')
threshold = 128*[0] + 128*[255]
for y in range(img.size[1]):
for x in range(img.size[0]):
old = img.getpixel((x, y))

get the branch

git clone [email protected]:sevki/harvey.git sevki-harvey
cd sevki-harvey
git checkout build-files

Install build

build can be installed by go get sevki.org/build/cmd/build or

@sevki
sevki / default
Last active February 26, 2016 07:05
label harvey.32bit
kernel mboot.c32
append harvey.32bit service=cpu nobootprompt=tcp fs=192.168.1.46 auth=192.168.1.46 nvram=/boot/nvram nvrlen=512 nvroff=0
default harvey.32bit
Go 1.6 release party
YOUR MEETUP
17 Feb 2016
YOUR NAME
@YOURTWITTER
http://talks.godoc.org/github.com/davecheney/gosyd/go1.6.slide
* DRAFT
From f6f7d90961f65c52f3b127290ce62b4fbdc6b3bc Mon Sep 17 00:00:00 2001
From: Sevki <[email protected]>
Date: Thu, 7 Jan 2016 19:32:39 +0100
Subject: [PATCH] build: added new build files
kernel compiles and crashes because of missing apps which are;
fossil
ls
mount
@sevki
sevki / complex.graphql
Last active August 29, 2015 14:24
complexquery
# Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
query queryName($foo: ComplexType, $site: Site = MOBILE) @remote(addr: "https://facebook.com/graphql"), @ginclude(please: true), @bugerking {
whoever123is: node(id: [123, 456], name: "Cedi Osman") {
id ,
@sevki
sevki / keybase.md
Created March 28, 2015 03:45
keybase.md

Keybase proof

I hereby claim:

  • I am sevki on github.
  • I am sevki (https://keybase.io/sevki) on keybase.
  • I have a public key whose fingerprint is 7FCE 28E3 CD1B F94C AA41 58E8 9C2B FEF6 FB3B 22FB

To claim this, I am signing this object:

@sevki
sevki / oclint.rb
Created August 11, 2014 10:20 — forked from Palleas/oclint.rb
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.648e9af-x86_64-darwin-12.4.0.tar.gz'
version '0.9'
sha1 '233b4663332f0c68a07b911d7a2056fcdba573dc'
depends_on 'llvm'
@sevki
sevki / index.html
Last active January 10, 2016 13:11
{{ template "root" .}}
{{define "title"}}Pic index{{end}}
{{define "content"}}
{{ range . }}
<p class="bla">
<a href="{{ .url }}">{{.title}}</a>
</p>
{{ end }}
{{ end }}