Skip to content

Instantly share code, notes, and snippets.

View berkerpeksag's full-sized avatar

Berker Peksag berkerpeksag

  • Helsinki, Finland
View GitHub Profile
@jasonrudolph
jasonrudolph / about.md
Last active August 19, 2025 03:09
Programming Achievements: How to Level Up as a Developer
@coryalder
coryalder / blogpost.md
Created August 17, 2011 07:37
Extract html book files from the safari books online iPad app "Safari To Go" using php.

Save books out of Safari Books Online

From http://objectivesea.tumblr.com/post/9033067018/safaribooks

This is hard. I spent way too much time figuring this out, because I was annoyed that a book I bought (Addison-Wesley) was available online for free, except only for 45 days after which payment was required. So I made this hack... probably useful to no one else, but here it is.

Requirements:

  1. iPad.
  2. Safari To Go (the Safari Books Online iPad app).
@pamelafox
pamelafox / models.py
Created August 24, 2011 23:54
App Engine Photo Upload (with BlobStore)
from __future__ import with_statement
from google.appengine.ext import db, blobstore
from google.appengine.api import memcache, files, images
class Photo(db.Model):
created = db.DateTimeProperty(auto_now_add=True)
updated = db.DateTimeProperty(auto_now=True)
blob_key = blobstore.BlobReferenceProperty()
url = db.StringProperty()
thumbnail_url = db.StringProperty()
@pcardune
pcardune / .gitignore
Created September 5, 2011 04:55
Facebook command-line client helper
.fb_access_token
.fbconsole.py
@pcardune
pcardune / upload_photos.py
Created September 5, 2011 22:07
Script to upload a bunch of photos to facebook
#!/usr/bin/env python
import os
import os.path
import json
import re
from mimetypes import guess_type
from optparse import OptionParser
SUPPORTED_TYPES = ('image/gif','image/jpeg','image/png','image/bmp','image/tiff')
@banker
banker / mongodb-at-db-ruby.md
Created September 8, 2011 22:03
MongoDB for Rails at DC Ruby

MongoDB Pointers for Rubyists

Kyle Banker

DC Ruby | September, 2011

THE RAILS

1. Is MongoDB a good choice for your Rails project?

@siddhi
siddhi / pyconindia_dsl.py
Created September 16, 2011 06:33
Domain Specific Languages in Python - Pycon India - 17 Sep 2011
from pyparsing import *
# By default, PyParsing treats \n as whitespace and ignores it
# In our grammer, \n is significant, so tell PyParsing not to ignore it
ParserElement.setDefaultWhitespaceChars(" \t")
def parse(input_string):
def convert_prop_to_dict(tokens):
"""Convert a list of field property tokens to a dict"""
prop_dict = {}
@p01
p01 / LICENSE.txt
Last active May 23, 2024 13:46 — forked from 140bytes/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@diogobaeder
diogobaeder / frange.py
Created September 24, 2011 23:16
Floating-point range generator (IEEE-754-proof)
#!/usr/bin/env python
'''
This is an attempt of an alternative to
http://code.activestate.com/recipes/577068-floating-point-range/
but generating the expected floating-point elements in the range,
avoiding floating-point arithmetic problems.
Currently it works rather well, although without the original
validation steps (which seem to be overengineering to me), considering
@authorNari
authorNari / gist:1273387
Created October 9, 2011 06:53
rubyconf2011 note
OK, Let's begin. Hello, Everybody.
My name is Narihiro Nakamura.
Today, I'm talking about "Parallel worlds of CRuby's GC".
I'm very happy now, because I'm meeting attendee in rubyconf.
And, one of my dreams is to talk in rubyconf.
So, I'm very happy and exciting.
Today is my first presentation in English.
My English is not good.