Skip to content

Instantly share code, notes, and snippets.

server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_webdav",
# "mod_compress",
# "mod_redirect",
# "mod_rewrite",
)
class BinaryHeap:
def __init__(self, N):
self.priorityList = [0]
self.loadList = [0]
self.size = 0
self.maxSize = N
def insert(self, priority , value):
if (self.maxSize - 1) >= self.size:
self.priorityList.append(priority)
#!/usr/bin/python
#-*- coding: utf-8 -*-
import os
import sys
from datetime import date
# bu betik kendi sistemime özeldir.
# Example Planet Venus configuration file
# Documenation: <file:///usr/share/doc/planet-venus>
# Examples: <file:///usr/share/planet-venus/example>
# Filters: <file:///usr/share/planet-venus/filter>
# Themes: <file:///usr/share/planet-venus/theme>
# Global configuration
[Planet]
<ul>
<TMPL_LOOP Items>
<TMPL_IF new_date>
</ul>
<h2 class=date><TMPL_VAR new_date></h2>
<ul>
</TMPL_IF>
<li<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>>
<TMPL_IF title>
<div class="post_header">
@ecylmz
ecylmz / gam.py
Created July 19, 2011 15:40
gam.py dosyası [python]
#!/usr/bin/env python
#
# Google Apps Manager
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Your thin servers go here
upstream rails.ecylmz.com {
server 0.0.0.0:3000;
server 0.0.0.0:3001;
server 0.0.0.0:3002;
}
# The usual server
server {
listen 80;
<html>
<head>
<style>
div.shadow {
width: 300px;
margin: 20px;
padding: 10px;
}
div.shadow:hover {
#!/body/brain
#-*- coding:wtf-8 -*-
# Relationship script
# Copyright ©, 2011 ecylmz
from life import *
def relationship(who):
boring = False
package main
import (
"big"
"fmt"
)
func fak(i int64) *big.Int {
if i < 0 {
return nil