This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
""" Calculate the probability of atleast one match after x tries""" | |
from __future__ import print_function | |
import argparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
co3325 | |
co3326 | |
co3354 | |
co3355 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
l_message varchar2(32767); | |
l_script_id varchar2(255); | |
c integer := 0; | |
l_inserts number := 0; | |
l_selects varchar2(1); | |
begin | |
eba_dbtools_design_schema_pub.init_collections; | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import platform | |
import subprocess | |
def ping(host): | |
""" Returns True if host (str) responds to a ping request. """ | |
if platform.system().lower() == 'windows': | |
param = '-n' | |
else: | |
param = '-c' | |
command = ['ping', param, '1', host] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using a dictionary to act as an adjacency list | |
graph = { | |
'A' : ['B','C'], | |
'B' : ['D', 'E'], | |
'C' : ['F'], | |
'D' : [], | |
'E' : ['F'], | |
'F' : [] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Comments lie." | |
- A cynical but smart and good looking programmer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Desirability -> Design -> Implement -> Test -> Review -> Commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sql | |
from settings import engine | |
sql.Table.engine = engine | |
class Blog(sql.Table): | |
id = sql.String(255) | |
title = sql.String(255) | |
body = sql.String(4096) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
nnsigmoid | |
~~~~~~~~~ | |
A simple neural network using the sigmoid | |
function in Python. | |
:copyright: Pancubs.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: -*- | |
""" | |
web | |
~~~ | |
A label for a merger between Flask and web.py's database API. | |
import flaskweb as web | |
app = web.app(__name__) |