Skip to content

Instantly share code, notes, and snippets.

View oneplus.py
#!/usr/bin/env python
# 1+ interpreter in Python
# Parcly Taxel / Jeremy Tan, 2014
# Licence is CC BY-SA 4.0 / FAL 1.3 / GNU GPLv3
import sys
from collections import deque
s, sd = deque(), {}
def oneplus(srt = None):
View helloWorldVim.txt
20:
iHelLo wOr<C-v>108d!<Esc>Vu~
19:
ilo WORLD!<C-o>VuHe<C-v>180
18:
2il<Esc>Ao WORLD!<C-o>VuHe
2grlAo WORLD!<C-o>VuHe
View Challenges without downvotes
Closed:
https://codegolf.stackexchange.com/questions/74423/what-is-the-ant-difficulty-of-this-string
https://codegolf.stackexchange.com/questions/45700/rock-paper-scissors-with-a-twist
Not Closed:
https://codegolf.stackexchange.com/questions/111938/happy-birthday-v
https://codegolf.stackexchange.com/questions/133174/make-your-language-mostly-unusable-cops-thread
https://codegolf.stackexchange.com/questions/94961/dennis-numbers-2-0
https://codegolf.stackexchange.com/questions/142655/draw-my-downslashes
https://codegolf.stackexchange.com/questions/77138/are-the-brackets-fully-matched
View weirdness.cpp
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <functional>
class Table
{
public:
Table() : table_() {}
View javascript_cops_answer.txt
[][(![]+[]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[]+[])[+[]]+(!!!![]+[]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(
View Dr Langeskov
It’s the hottest summer on record, and all across Europe, valuable objects are disappearing.
Museum curators unlock cabinets and find precious artefacts stolen. Wealthy mansion owners wake up to see their priceless paintings have vanished from the walls.
One thing’s clear: a master thief is touring the continent and the police are left scratching their heads.
In this 15 minute game by Crows Crows Crows, a team led by William Pugh (The Stanley Parable), slip into the soft-soled shoes of the mastermind responsible…
… silently cross the darkened lawn of the mansion…
View bounty_combos.py
import itertools as it
a = ["ais532", "Anders Kaseorg", "Dennis", "DJMcMayhem", "Martin Ender", "udioica", "Primo", "Martin Ender"]
b = ["Martin Ender", "Dennis", "Luis Mendo", "DJMcMayhem", "Nimi", "AdmBorkBork", "Mego", "Nathan Merrill"]
combos = list(list(zip(x, b)) for x in it.permutations(a, len(b)))
print(len(combos))
good_combos = []
for combo in combos:
View vimsum.txt
ylPr:prpprupr=prrpraprnprgprepr($pr)dd@"{JqqJr+@qq@q0":PdT=x0Pr:dd@"
"ay$yl$pr*pr("appr+pr1pr)pr/pr20Pr:prpprupr=dd@"
YPJr*ylpr($pr+pr1pr)pr/pr20Pr:prpprupr=dd@"
View bf_brackets.txt
#While true
{
(
################
# 40
################
<
#Duplicate
(({}))
View BinaryTree
8:
/\
/ \
/ \
/ \
/ \
/ \
/ \
You can’t perform that action at this time.