Skip to content

Instantly share code, notes, and snippets.

in your codebase

Alper Cugun alper

View GitHub Profile
View skipping_codable.swift
// Models.swift
// strw
// Created by Alper Cugun on 23/8/18.
// Copyright © 2018 alper. All rights reserved.
import Foundation
alper /
Created Jan 30, 2018
Relevant commands for cmpcodesize that still need to work
export SWIFT_OLD_BUILDDIR="/Users/alper/Documents/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64"
export SWIFT_NEW_BUILDDIR="/Users/alper/Documents/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64"
./ -a
./ -a -p > out_a.csv
./ -c
./ -c -p > out_c.csv
View gist:5189046

How to set up a fresh project (on OS X)

  1. Install homebrew, by getting the commandline tools: and then do the install homebrew here:
  2. Open
  3. Check python is installed by typing python
  4. Install pip if you don't have it sudo easy_install pip
  5. Use pip to install virtualenv (don't ask me why): sudo pip install virtualenv
  6. Find a fresh place to checkout the project: use the Mac client:
  7. In the terminal cd to where you just checked out the project, for instance: cd ~/Documents/projects/sake/victorycheckout
  8. Create a virtual environment if you don't have one yet: virtualenv venv --distribute
View index.html
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="jquery.tipsy.js"></script>
<link href="tipsy.css" rel="stylesheet" type="text/css" />
<div id="chart"></div>
alper / Example output.txt
Created Nov 29, 2012
A* routing for a connection graph of Yorckstraße
View Example output.txt
neighbors of S1NordS ['GG', 'S1NordN', 'U7S']
path from GG to U7S
['GG', 'S1NordS', 'U7S']
path from GG to S25
['GG', 'S1NordS', 'U7S', 'S25']
[Finished in 0.1s]
GG = Großgörchenstraße
S1NordS = S1 North Exit South of the road
S1NordN = S1 North Exit North of the road
from suds.client import Client
from import ImportDoctor, Import
wsdlURL = ''
imp = Import('')
doctor = ImportDoctor(imp)
alper / gist:3749030
Created Sep 19, 2012 — forked from gnunicorn/gist:3748738
Git for Beginners: Call for Coaches
View gist:3749030

The OpenTechSchool has set up and hosted a few tech workshops and meetups here in Berlin now. Aside from the monthly Beginners Meetup and hosting the Udacity Global Meetup we hosted workshops for program beginners in Python and Javascript on our own and on the premise of CampusParty.

One thing that was extraordinary popular on CampusParty was the Workshop on Git for beginners. And we decided to do it again, this time with a closer focus on version control as a major benefit in code sharing (by using git and github) for beginners - free of charge.

So if you are interested in

alper /
Created Aug 10, 2012
Simplified zeromq PUSH/PULL example
import sys
import time
import zmq
context = zmq.Context()
# Socket to receive messages on
receiver = context.socket(zmq.PULL)
You can’t perform that action at this time.