Skip to content

Instantly share code, notes, and snippets.

View TheBB's full-sized avatar
🏠
Working from home

Eivind Fonn TheBB

🏠
Working from home
View GitHub Profile
#!/usr/bin/perl
###########################################################
#-PRIVATE-SHIT--PRIVATE-SHIT--PRIVATE-SHIT--PRIVATE-SHIT--#
###########################################################
# Legend Bot [2011] DO NOT FUCKIN SHARE! #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# Commands: #
# !legend @system #
# !legend @rootable #
# !legend @cleanlogs #
w=0 x=1 y=8 z=9
w=0 x=5 y=33 z=3
w=0 x=8 y=8 z=8
w=0 x=12 y=33 z=2
w=0 x=15 y=8 z=7
w=0 x=19 y=33 z=1
w=0 x=22 y=8 z=6
w=0 x=26 y=33 z=0
w=0 x=29 y=8 z=5
w=0 x=36 y=8 z=4
total = 1904
wc = 3
xc = 25
yc = 38
zc = 175
# roots = []
for w in xrange(0, total/wc + 1):
for x in xrange(0, (total - wc*w)/xc + 1):
import random
import sys
from itertools import product
def random_monty(choices):
return random.choice(choices)
def deterministic_monty(choices):
return random.choice([c for c in choices if c != 0])
1. Snute (83)
2. Bly (80)
3. Tefel (68)
4. Scarlett (60)
5. Nerchio (58)
6. VortiX (52)
7. Jim (52)
8. MaNa (41)
9. Happy (38)
10. TLO (38)
1. Snute (207)
2. Bly (191)
3. Tefel (151)
4. Scarlett (135)
5. Nerchio (126)
6. Jim (119)
7. VortiX (98)
8. Happy (96)
9. HuK (95)
10. Bunny (94)
import re
from math import *
from operator import *
from itertools import *
def max(a, b):
return a if a > b else b
def max_of_three(a, b, c):
return max(a, max(b, c))
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load. If it is the symbol `all' instead
;; of a list then all discovered layers will be installed.
dotspacemacs-configuration-layers
'(
(push '("irc.gitter.im"
:user "TheBB"
:port "6667"
:password "blabla"
:encryption tls
:channels ("#syl20bnr/spacemacs"))
rcirc-server-alist)
@TheBB
TheBB / loading.org
Last active June 22, 2023 11:53
Loading in Spacemacs

Emacs packages, features, files, layers, extensions, auto-loading, require, provide, use-package… All these terms getting you confused? Let’s clear up a few things.

Files

Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.

One major problem is to ensure that all the correct files are loaded, and in the