=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Import the random module | |
# for array shuffle | |
import random | |
# This is an array of available | |
# random words. | |
words = [ | |
"dog", "cat", "fish", "giraffe", | |
"moo", "spider", "lion", "apple", |
#!/usr/bin/env python3 | |
# Don't edit this. | |
all_insults = [ | |
b"Just what do you think you're doing Dave?", | |
b"It can only be attributed to human error.", | |
b"That's something I cannot allow to happen.", | |
b"My mind is going. I can feel it.", | |
b"Sorry about this I know it's a bit silly.", | |
b"Take a stress pill and think things over.", |
from itertools import count as crash | |
list(crash(0)) |
/* Not the nicest code we ever wrote... */ | |
<?php | |
require_once 'HTTP/Request.php'; | |
require_once 'Text/Wiki/Mediawiki.php'; | |
class Wikipedia | |
{ |
references = {} | |
dictionary = [] | |
def randomized(x, y): | |
from random import randint | |
return randint(x, y) | |
def cracker_per_digit(x): |
""" | |
Password brute-force algorithm. | |
List of most probable passwords and english names can be found, respectively, at: | |
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt | |
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt | |
Author: Raphael Vallat | |
Date: May 2018 | |
Python 3 |
#include <iostream> | |
#include <map> | |
#include <set> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
#define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++) |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
#ifndef __ANSI_COLOR_CODES_H_ | |
#define __ANSI_COLOR_CODES_H_ | |
//Regular text |