Skip to content

Instantly share code, notes, and snippets.

@clisamurai
clisamurai / Nucleus.md
Last active May 30, 2024 23:27
A simple text editor in a bookmarklet

Nucleus

Nucleus is a plain-text editor hidden in a bookmarklet. It is fully responsive and supports all HTML5-supporting browsers. Nucleus is ultra-lightweight - it doesn't support any formating at all and saves itself along with your files when you save it. You can save Nucleus documents in PDF format by utilising the print-to-PDF functionality of your browser. It is also fully customizable and open-source - simply change the source code.

Requirements

  • An HTML5 compliant web browser

Installation

@clisamurai
clisamurai / Bullseye.py
Last active January 12, 2016 21:24
Bullseye is a computerized creator of the puzzles variously known as word polygons, word targets and plenty of other names. Bullseye is a Python program which uses relies on Python 2.7 and was created by Mitchell Palmer as a learning project.
import random
import pprint
import textwrap
pp = pprint.PrettyPrinter(indent=4)
print "Welcome to the Bullseye Puzzle!"
print textwrap.wrap("Bullseye is a computerized creator of the puzzles variously known as word polygons, word targets and plenty of other names. Bullseye is a Python program which uses relies on Python 2.7 and was created by Mitchell Palmer as a learning project")
def shuffle_word(word):
word = list(word)
@siddMahen
siddMahen / prim.py
Created January 4, 2014 22:03
Prim's algorithm, in Python.
from sys import argv
import re
# open the file and get read to read data
file = open(argv[1], "r");
p = re.compile("\d+");
# initialize the graph
vertices, edges = map(int, p.findall(file.readline()))
graph = [[0]*vertices for _ in range(vertices)]