I hereby claim:
- I am Taiiwo on github.
- I am taiiwo (https://keybase.io/taiiwo) on keybase.
- I have a public key whose fingerprint is 829A FAFF 61F4 0039 61E9 8C22 3D96 3D35 C4DB DF56
To claim this, I am signing this object:
def compress(data): | |
# format data | |
data = data.replace(" ", "") | |
data = data.replace("\n", "") | |
# find an unused pattern | |
i = 0; | |
while i < len(data): | |
pattern = bin(i)[2:] | |
if pattern not in data and pattern[0] != '0': | |
break |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
You'll need to download a copy of the script.
You can download the script here: https://gist.github.com/Taiiwo/1cdf439c0cf46fe8add6/archive/044e6ac059ce37afbc132ef05eb3f6549ebe8381.zip
You're going to need a CSV file of just the first and last names, so just make a copy of the file, delete all of the other columns (Leaving First and last name as the first two collumns), and save the file as a .csv (Under "Download as" in Google Sheets).
import socket | |
import thread | |
import re | |
class IRCd: | |
debug = True | |
servername = socket.getfqdn("")[:140] | |
events = [] | |
handlers = {} | |
def __init__(self, host="127.0.0.1", port=6667): |
Goal | Proposals | Collaboration | Quest example |
---|---|---|---|
Music | Song ideas | Musicians | Write a drum track |
Being a better person | Methods | People | Do something kind |
Free wireless energy | Solutions | Engineers | Estimate the cost of X |
'use strict'; | |
/* | |
* main.js | |
* | |
* New Age Bullshit Generator | |
* © 2014-15 Seb Pearce (sebpearce.com) | |
* Licensed under the MIT License. | |
* | |
*/ |
I wrote this to help me to estimate the number of planks of wood I would need to build some furniture (The measurements of that furniture can still be found in the code). It has many uses. Obviously it can be used for splitting any material of a given length into an array of sizes in an efficient way, but it can also be used for other group sorting problems like fitting groups of people into, busses, or hotel rooms etc.
It's not the fastest solution, it just calculates all possible combinations, nor is it perfectly accurate as it just creates a list of the most efficient groups that can be made in order, but it's a pretty good solution for its application, which only needs to answer the question: How many planks of wood do I need?
A weechat script that catches you up to the chat using RSVP(Rapid serial visual presentation); a statistically proven way of scanning text with higher speeds and retention rate than regular reading.
There are many apps and services out there that let you read articles, text files, and other media using a method of RSVP, but none of them are really convenient for reading IRC messages. I found that if it takes me too long to
# decorators are just shorthand for passing functions as arguments to other functions | |
# They are called decorators as code can be run before and after the supplied | |
# function is run (if at all). A good use for decorator functions is adding | |
# callback hooks for your applications. The decorator functions take the | |
# supplied function and store it to be run at the right time | |
# There are two types of decorators: regular decorator and callable decorators | |
# regular decorators take the function it's decorating as an argument |