This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" |
NewerOlder