I hereby claim:
- I am wrenoud on github.
- I am wrenoud (https://keybase.io/wrenoud) on keybase.
- I have a public key ASBZHXulETM0k23_CXEIxe-irp1QZNxSvbRyUOEHZLc9ewo
To claim this, I am signing this object:
| from dataclasses import dataclass, astuple | |
| import numpy as np | |
| def dtypeclass(cls): | |
| cls = dataclass(cls) | |
| def frombuffer(cls, buffer, offset=0): | |
| values = np.frombuffer(buffer, cls._dtype, count=1, offset=offset) | |
| return cls(*values[0]) |
| infile = open("input.txt") | |
| outfile = open("output.txt", "w") | |
| count = 0 | |
| skip = 30 | |
| for line in infile: | |
| if count >= skip: | |
| outfile.write(line) | |
| count = 0 | |
| else: |
| import os | |
| import hashlib | |
| def getHashes(folder): | |
| hashes = {} | |
| for root, dirs, files in os.walk(folder): | |
| for file in files: | |
| filepath = os.path.join(root,file) | |
| hash_md5 = hashlib.md5() | |
| with open(filepath, "rb") as f: |
| The loneliest is a. | |
| (Abs function) | |
| (returns the absolute value of 'a thought') | |
| Abs takes a thought | |
| If a thought is greater than nothing | |
| Give back a thought | |
| Else |
| import xml.dom | |
| import xml.dom.minidom | |
| def childelements(parentnode): | |
| for node in parentnode.childNodes: | |
| if node.nodeType != xml.dom.Node.ELEMENT_NODE: | |
| continue | |
| yield node | |
| def childlayers(parentnode): |
I hereby claim:
To claim this, I am signing this object:
| # coding: utf-8 | |
| import os | |
| import requests | |
| import re | |
| import json | |
| # hdsa | |
| if not os.path.exists('hdsa.html'): | |
| req =requests.request('get','http://hdsa.org/about-hdsa/locate-resources/') | |
| f = open('hdsa.html','w') |
| # coding: utf-8 | |
| import struct | |
| def with_metaclass(meta, *bases): | |
| """Create a base class with a metaclass. For 2/3 compatibility.""" | |
| class metaclass(meta): | |
| __call__ = type.__call__ | |
| __init__ = type.__init__ | |
| def __new__(cls, name, this_bases, d): | |
| if this_bases is None: |
| # coding: utf-8 | |
| import math | |
| import sqlite3 | |
| from matplotlib import pylab as pl | |
| conn = sqlite3.connect('data.db') | |
| c = conn.cursor() | |
| c.execute('DROP TABLE BEAMS') |
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master qm-release qm-stable fm-release fm-stable) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |