This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update repos.sh | |
# | |
# | |
# Created by Spencer Alves on 9/16/10. | |
# Copyright 2012 Spencer Alves. All rights reserved. | |
CVSUP="cvs update" | |
SVNUP="svn update" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymclevel, sys, numpy | |
MCEDIT = False | |
if sys.version_info[0] < 3: | |
input = raw_input | |
def info(format, *args, **kwargs): | |
sys.stdout.write(format.format(*args, **kwargs)+"\n") | |
def warning(format, *args, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Spencer Alves <> | |
# Contributor: Jorge Araya Navarro <> | |
# Contributor: Cristian Porras <> | |
# Contributor: Matthew Bentley <> | |
pkgname=godot | |
pkgver=1.1 | |
pkgrel=3 | |
pkgdesc="An advanced, feature packed, multi-platform 2D and 3D game engine" | |
url="http://www.godotengine.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ᅟᅠ ㅤ | |
!ǃ! | |
"″" | |
$$ | |
%% | |
&& | |
'' | |
(﹝( | |
)﹞) | |
*⁎* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re, random, sys, os | |
def randrepl(matchobj): | |
if "matrix" in s[matchobj.start()-30:matchobj.start()]: return matchobj.group(0) | |
v = float(matchobj.group(2)) | |
v = random.gauss(v, 0.1) | |
return matchobj.group(1)+"%.3f"%v | |
pat = re.compile("([, (])(-?[0-9]+(\.[0-9]+)?)") | |
s = open(sys.argv[1]).read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from arithmetic import * | |
@arithmetic | |
def foo(thing): | |
print(greeting, thing, "!") | |
foo() | |
foo("world") | |
foo.greeting = "Hello" | |
foo.greeting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from mastodon import Mastodon | |
from bs4 import BeautifulSoup | |
import urllib | |
myinstance = "somewhere.social" | |
m = Mastodon(client_id="…", client_secret="…", access_token="…", api_base_url="https://"+myinstance) | |
myid = m.account_verify_credentials()['id'] | |
admins = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xml.dom import minidom | |
import sys | |
from xml.sax.saxutils import quoteattr, escape | |
import math, numpy | |
class Scanner: | |
def __init__(self, data): | |
self.data = data | |
self.pos = 0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/dariusk/corpora/blob/master/data/words/strange_words.json | |
cubersome | |
dingleberry | |
doodlesack | |
expat | |
flabergasted | |
floccinaucinihilipilification | |
jentacular | |
kardashian | |
macrosmatic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dis, inspect, typing | |
import math, sys | |
from operator import or_ | |
from functools import reduce | |
#def putchar(n: int) -> int: pass | |
def fact(n: int) -> int: | |
if n <= 1: return 1 | |
else: return n*fact(n-1) |
OlderNewer