Skip to content

Instantly share code, notes, and snippets.

View note35's full-sized avatar

Kir note35

View GitHub Profile
@note35
note35 / naive_sets.py
Created July 2, 2018 12:39 — forked from startling/naive_sets.py
russell's paradox in python
class Set(object):
"""Sets can contain anything, including themselves. This leads to
paradoxical behavior: given R, the set of all sets that don't contain
themselves, does R contain R? Here this becomes an infinite recursion.
"""
def __init__(self, predicate):
self.predicate = predicate
def __contains__(self, obj):
return self.predicate(obj)
@note35
note35 / httpdctl.sh
Last active January 19, 2018 09:16
Cygwin
# Document: https://cygwin.rafaelhart.com/daemons/web-server-apache/
# Updated: 2016/01/28
# Install: cygrunsrv, httpd
#
# Please, run `cygserver-config` before run this script
usage ()
{
echo 'Usage : httpdctl <start|restart|stop>'
exit
@note35
note35 / p1.cpp
Last active August 29, 2015 14:12
enkoi
/*
https://www.ptt.cc/bbs/C_Chat/M.1417696853.A.E8F.html
https://paiza.jp/poh/enkoi
提出言語:C++
 得点:100 点
 結果:
 テストケース1:success 0.01秒
 テストケース2:success 0.01秒
 テストケース3:success 0.01秒