Skip to content

Instantly share code, notes, and snippets.

View kakkoyun's full-sized avatar
🏠
Working from home

Kemal Akkoyun kakkoyun

🏠
Working from home
View GitHub Profile
@kakkoyun
kakkoyun / infixeval.cpp
Created December 8, 2015 09:24 — forked from haldun/infixeval.cpp
infix evaluator in c++
/*
* Infix evaluator in C++.
* Haldun Bayhantopcu <hb@haldun.me> 10976008
*
* Usage: echo <expr> | ./infixeval
* Example: echo "((8+9)*(4-6)^4)" | ./infixeval
* Output: 272
*/
#include <cmath>
#include <iostream>
@kakkoyun
kakkoyun / 0_reuse_code.js
Last active August 29, 2015 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
'''
adminreverse from here http://djangosnippets.org/snippets/2032/
changed for working with ForeignKeys
'''
'''
reverseadmin
============
Module that makes django admin handle OneToOneFields in a better way.
A common use case for one-to-one relationships is to "embed" a model
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'

Architectural Questions

  • Are responsibilities well defined?
  • Are the collaborations well defined?
  • Is coupling minimized?
  • Can you identify potential duplication?
  • Are interface definitions and constraints acceptable?
  • Can modules access needed data—when needed?