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 urllib import unquote | |
def magnet_uri(uri): | |
bits = uri.split("magnet:?") | |
if len(bits) != 2: | |
raise ValueError("Not a valid magnet URI.") | |
result = {} | |
params = bits[1].split("&") | |
for param in params: | |
# This'll bubble up an exception. |
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
def versions = [] | |
def f = new File('mock-version-tags.txt') | |
f.eachLine { versions << it } | |
def versionComparator = { a, b -> | |
def VALID_TOKENS = /._/ | |
a = a.tokenize(VALID_TOKENS) | |
b = b.tokenize(VALID_TOKENS) | |
for (i in 0..<Math.max(a.size(), b.size())) { |
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
package main | |
import ( | |
"fmt" | |
"flag" | |
) | |
func help(args []string) { | |
help := []string{ | |
"YO", |
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
zed at deku in ~/go/src/github.com/plausibility/gitsby on master? | |
± go build 14:11:23 | |
gitsby.go:7:2: cannot find package "github.com/hoisie/web" in any of: | |
/usr/lib/go/src/pkg/github.com/hoisie/web (from $GOROOT) | |
($GOPATH not set) | |
gitsby.go:9:2: cannot find package "github.com/plausibility/gitsby/server" in any of: | |
/usr/lib/go/src/pkg/github.com/plausibility/gitsby/server (from $GOROOT) | |
($GOPATH not set) | |
zed at deku in ~/go/src/github.com/plausibility/gitsby on master? | |
± echo $GOPATH 14:13:49 |
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
text = input() | |
def decrypt(text): | |
plaintext = [] | |
for word in text.split(): | |
w, w1 = [], [] | |
# Chunk letters | |
letters = word.split("$$$$") | |
for i, c in enumerate(letters): | |
if i%2: | |
if c == "$w@G": |
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 | |
print( | |
(lambda λ: (λ.translate))(input("λ "))( | |
((lambda Λ: | |
(lambda Γ: | |
(lambda ω, ϒ: | |
ω(ϒ, ϒ[2:] + ϒ[:2])) (Γ.maketrans, Λ))("Σ") | |
)((lambda π: | |
(lambda α, Ω: | |
getattr(α, Ω))(π, "ascii_lowercase") |
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
Only in /home/[redacted]/snapchat-4.1.01/out/com/snapchat/android: brief.diff | |
diff -r /home/[redacted]/snapchat-4.1.01/out/com/snapchat/android/camera/CameraPreviewFragment$10$1.smali android/camera/CameraPreviewFragment$10$1.smali | |
29c29 | |
< .line 486 | |
--- | |
> .line 487 | |
43c43 | |
< .line 488 | |
--- | |
> .line 489 |
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
/home/zed/.local/bin/wineprefix: line 24: [[: C:\osu\osu!.exe: syntax error in expression (error token is ":\osu\osu!.exe") | |
fixme:thread:SetThreadStackGuarantee (0x32fc58): stub | |
err:ole:CoGetContextToken apartment not initialised | |
fixme:shell:URL_ParseUrl failed to parse L"System" | |
fixme:process:FlushProcessWriteBuffers : stub | |
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources" | |
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources" | |
fixme:imm:ImmDisableIME (-1): stub | |
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads | |
fixme:thread:NtQueryInformationThread info class 9 not supported yet |
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
ircd@clarity:~/ircd/etc$ head ircd.motd | |
+------------------------------------------------+ | |
| _ _ | | |
| _ (/\ DONGCORP IRC /\) | | |
| /\) \ \ hub.dongcorp.org / / _ | | |
| / / (Y ) _ ( Y) (/\ | | |
| ( Y) "" /\) admin: zed "" \ \ | | |
| "" / / "the lone oper~" (Y ) | | |
| ( Y) "" | | |
| "" | |
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
def _markov_split(self, message, chain_length): | |
words = message.split() | |
if len(words) < chain_length: | |
return | |
words.append(self.stop_word) | |
for i in xrange(len(words) - chain_length): | |
yield words[i:i + chain_length + 1] | |
def _markov_add(self, ebooks, message, chain_length): | |
s = self.markov[ebooks] |
NewerOlder