Skip to content

Instantly share code, notes, and snippets.

@Taiiwo
Taiiwo / BullShit.js
Last active May 17, 2016 12:46
A JS library that creates paragraphs of bullshit.
'use strict';
/*
* main.js
*
* New Age Bullshit Generator
* © 2014-15 Seb Pearce (sebpearce.com)
* Licensed under the MIT License.
*
*/
@Taiiwo
Taiiwo / GPOL_table.md
Created January 22, 2016 13:16
A table of possible uses for the proposed method of abstracting GPOL.
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
@Taiiwo
Taiiwo / ircd.py
Created December 1, 2015 02:20
A library for creating IRC interfaces to messaging services, allowing them to be used via IRC clients.
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):

Keybase proof

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 F262 4E11 C62A 9E1B B315 7888 4BC6 0BA2 A36B 6172

To claim this, I am signing this object:

Keybase proof

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:

@Taiiwo
Taiiwo / tz.py
Last active August 29, 2015 14:25
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
@Taiiwo
Taiiwo / AI.md
Last active May 26, 2023 18:42
The Basis of an Artificial Intelligence

The Basis of an Artificial Intelligence

So the general concept behind an artificial intelligence is quite simple. It's basically just a replication of what we see in other sentient beings. It has been abstracted to mean things like speech, the ability to play a game well, to guess a person's motives and intentions, and to use that against them in order to win. The reason this seems like a form of intelligence to us, a being with sentience, is because as humans, we see anything with an understanding of anything to be sentient. Almost, anyway. An understanding is a very important part, but where it really hits

@Taiiwo
Taiiwo / gist:0a718f09d894553f2be2
Created July 19, 2015 18:01
A python class for verifying login details for any website
import mechanize
import cookielib
import re
class Login:
def __init__(self):
# set a bunch of properties as default settings
self.url = False
self.formIndex = 0
@Taiiwo
Taiiwo / designer.html
Last active August 29, 2015 14:20
designer
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<link href="../paper-icon-button/paper-icon-button.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<link href="../core-pages/core-pages.html" rel="import">
<polymer-element name="my-element">