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/python | |
# created by @hisham_hm | |
import random | |
silly_consonants=["p", "t", "fl", "g", "gl", "l", 'j', "b", "n", "m", "bl", "z"] | |
silly_vowels=["a", "e", "ee", "ii", "o", "oo", "u"] | |
print (random.choice(silly_consonants) + | |
random.choice(silly_vowels) + |
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
/** | |
* This comment was created with VIM. | |
* Notice the the lead comment is repeated and aligned. | |
* VIM automagically adds it. | |
* It also automagically removes the space if I type a "/" to finish the | |
* comment block. | |
*/ | |
/** | |
This is a comment create inside Gedit. |
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
#!/bin/bash | |
for file in *; do | |
# echo -n $file | |
new_file=$(echo $file|sed -e 's/[^A-Za-z0-9._-]/_/g') | |
if [ "$file" = "$new_file" ]; then | |
# echo " not messing..." | |
continue | |
fi | |
echo "$file => $new_file" |
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 python | |
# -*- encoding: utf-8 -*- | |
"""Beaker translator""" | |
def meep(word): | |
syllables = len(word) / 2 | |
return 'meep' * syllables | |
def meepmeep(phrase): |
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
#include "netinet/ether.h" | |
#include "net/ethernet.h" | |
#include "stdio.h" | |
#include <stdlib.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
struct ether_addr address; | |
char buffer[30]; |
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 collections import namedtuple | |
VerifyResult = namedtuple('VerifyResult', ['can_login', 'redirect_url']) | |
return VerifyResult(True, URL) | |
VerifyResult(can_login=True, redirect_url='URL') | |
result.can_login | |
result.redirect_url |
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 python | |
# -*- encoding: utf-8 -*- | |
"""Testing stuff.""" | |
class People(object): | |
"""A people!""" |
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
reorder = lambda eq: '+'.join(sorted(eq.split('+'), key=int)) | |
# (’3+2+1+1’), ’1+1+2+3’ | |
# (’1+2+3’), ’1+2+3’ | |
# (’2+2’), ’2+2’ | |
# (’1+3+2+3+2+1+3+2+3+1+2’), ’1+1+1+2+2+2+2+3+3+3+3’ |
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
# This is the "mockator": | |
def _mock_requests_method(responses, url, *dummy1, **dummy2): | |
"""Check the URL and return the expected response.""" | |
if url not in responses: | |
raise AssertionError('URL doesnt exist: {}', url) | |
(status, text) = responses[url] | |
response = Response() | |
response.status_code = status | |
response.raw = StringIO.StringIO(text) | |
return response |
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 __future__ import print_function | |
import random | |
import argparse | |
CONSONANTS = ['f', 'j', 'c', 'l', 'n'] | |
PASSPHRASE = '{}u{}am para as {}o{}i{}as' | |
OlderNewer