I hereby claim:
- I am utdemir on github.
- I am utdemir (https://keybase.io/utdemir) on keybase.
- I have a public key ASAInLiBAn184Dj_EtkRZrSXt_iQk9eOkjy3b_ld_6stTwo
To claim this, I am signing this object:
{-# LANGUAGE OverloadedStrings #-} | |
import qualified Data.ByteString as B | |
import Control.Monad (forever, liftM) | |
import Control.Exception.Base | |
import Network.Socket hiding (recv, send) | |
import Network.Socket.ByteString (recv, send) | |
import Network.BSD |
#!/usr/bin/env python2 | |
# coding: utf-8 | |
COMMAND = 'fswebcam --save ~/Dropbox/images/unlock-{date}.jpeg' | |
import subprocess | |
from datetime import datetime | |
import gobject |
#!/usr/bin/env python3 | |
from math import sqrt, pi | |
def integrate(f, x, error_margin=0.0001, start_num_seg=10): | |
def p(num_seg): | |
width = x / num_seg | |
p = f(0) | |
p += sum(4*f(i*width) for i in range(1, num_seg, 2)) |
Title: Pyinstaller Kullanımı (Windows) | |
Date: 2010-07-01 12:49 | |
Category: Gezegen, Özgür Yazılım - Linux, Program Anlatımları, Programlama, Python | |
Tags: py2exe, pyinstaller, pyqt, python, windows | |
Bir önceki yazıda py2exe kullanımını anlatmıştım. Ancak o yazıya gelen | |
bir yorum sonrası, Pyinstaller'i keşfettim ve gerçekten de Py2Exe'den | |
daha başarılı bir program. En başta, oluşturulan dosyanın boyutu daha | |
küçük. Üstelik kullanımı daha kolay ve bir ekstra ayar yapmadan PyQt'yi | |
destekliyor. |
I hereby claim:
To claim this, I am signing this object:
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE DataKinds #-} | |
{- | |
This piece of code makes GHC never terminate. | |
$ ghc --version | |
The Glorious Glasgow Haskell Compilation System, version 8.0.2 | |
$ ghc-pkg list | grep servant | |
servant-0.11 |
Xft.dpi: 96 | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintfull | |
urxvt.scrollBar: false | |
urxvt.font : xft:Meslo LG M DZ:regular:size=9 | |
urxvt.boldfont: xft:Meslo LG M DZ:bold :size=9 |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
FULL_PATH=$(realpath "$1") | |
TMPDIR="$(mktemp -d)" | |
set -o xtrace |
#!/usr/bin/env python | |
import re | |
import sys | |
import argparse | |
from typing import * | |
from pprint import pprint | |
from multiprocessing import Pool | |
from datetime import datetime, timedelta |
import sys | |
import json | |
from pprint import pprint | |
from datetime import datetime | |
with open(sys.argv[1], "r") as f: | |
js = json.load(f) | |
items = js["items"] |