Skip to content

Instantly share code, notes, and snippets.

View elendiastarman's full-sized avatar

El'endia Bleem Starman elendiastarman

View GitHub Profile
import sys
import re
import webbrowser
MESSAGE = """
Thanks! :D
For my responses to birthday wishes this year, I'm using people's names to pick a random year and then from there, I pick an interesting fact to share. See here for more details: https://www.facebook.com/elendia.starman/posts/2225244637490115
Your year was {}! Link: {}
@elendiastarman
elendiastarman / cubeSymmetries.py
Last active April 16, 2018 00:02
Distinct line configurations on a cube
# If each face of a cube is marked with a diagonal line between opposing corners,
# how many distinct configurations are there considering rotations and reflections?
# Vertex labeling
# 2-----3
# |\ |\
# | \ | \
# | 0-----1
# | | | |
# 6--|--7 |
@elendiastarman
elendiastarman / README.md
Created July 11, 2017 15:28 — forked from drewkerrigan/README.md
Setting open files limit in OSX 10.11.3

Download this gist, and then run:

chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh

Restart the system, and then run:

import urllib.request as ur
import html.parser as hp
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
import datetime
from transcriptAnalyzer.models import *
class parser(hp.HTMLParser):
def __init__(self, *args, **kwargs):
import urllib.request as ur
import html.parser as hp
class parser(hp.HTMLParser):
def __init__(self, *args, **kwargs):
super().__init__()
self.numTags = 0
self.numText = 0
self.state = ""
self.names = {}
@elendiastarman
elendiastarman / PyAcidic Musings.md
Last active January 15, 2016 04:42
PyAcidic Musings

#PyAcidic Musings

[toc]

##Succinctness is Power

I like the idea of "succinctness is power", as discussed in this blog post. For me, what I picked up on was that succinctness doesn't necessarily mean brevity, but rather, how much can you say with a simple word or phrase. For example, the quadratic formula

$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$