Skip to content

Instantly share code, notes, and snippets.

@myano
myano / pass_vars.py
Last active December 20, 2015 07:29
#!/usr/bin/env python
## source available at: http://git.io/MYVymw
def try_to_change_list_contents(the_list):
print 'got', the_list
the_list.append('four')
print 'changed to', the_list
@myano
myano / fake_data.py
Last active December 20, 2015 07:29
#!/usr/bin/env python
'''
This file contains fake data which may be useful in
demonstrating basic principles in Python.
'''
import random
colors = [
'red',
@myano
myano / scripts.md
Last active December 20, 2015 07:29

Python 101

Introduction

Welcome to Python 101 at PyOhio 2013!

Python 2.x or Python 3.x?

#!/usr/bin/env python
## https://en.wikipedia.org/wiki/Heat_index#Formula
c1 = -42.379
c2 = 2.04901523
c3 = 10.14333127
c4 = -0.22475541
c5 = -6.83783 * (10 ** (-3))
c6 = -5.481717 * (10 ** (-2))
#!/usr/bin/env python
"""
Checks to see if loggy.py is running
"""
import os
import time
from subprocess import *
i = 0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=UTF-8 :
import os
import socket
import string
from subprocess import *
import sys
import time
@myano
myano / religions.md
Last active December 19, 2015 10:59
List of 50 Religions covered in the book: "30-second Religion" by Russell Re Manning (ISBN: 9781435130036)
  • Indigenous Traditions

    • Yoruba
    • Aboriginal Dreaming
    • Animism
    • Native American Church
    • Mesoamerican Religion
    • Shenism
    • Zoroastrianism
  • Eastern Spirituality

My model for assessing trust with people.

  1. Random strangers
  2. Acquaintances
  3. Most friends that are more than acquaintances
  4. Close friends
  5. Only me
@myano
myano / gist:5844270
Last active December 18, 2015 20:59

Rules for ##uno on freenode

  • No additional bots in the channel. Only ChanServ and jenni are allowed.
  • No automated scripts. (eg: No automatic /me's or messages when you go "away")
  • No personal insults.
  • No cheating.
  • Do not highlight nicks unless you are conversing with said person or persons.
  • Do not spam the channel with non-relevant commands to the current game.
  • Do not beg/insist the ops ban somebody.