Skip to content

Instantly share code, notes, and snippets.

View alex-jerez's full-sized avatar

Alex Jerez alex-jerez

View GitHub Profile
# Anagram puzzle
# Python 3.6
# October 18, 2018
# by Alex Jerez for Micky Loo (SinglePlatform)
def is_anagram(first_word, second_word):
leftover_letters = second_word
for letter in first_word:
if letter in leftover_letters:
@alex-jerez
alex-jerez / job_board_models.py
Created October 3, 2018 15:00
Sample code: "Job board" website models written in Django
from django.db import models
from django.urls import reverse
from django.utils import timezone
# Code example for a "job board" style django site
# Written by Alex Jerez (alexjerez@fastmail.fm)
# for Django 2.0/Python 3.6
JOB_CATEGORIES = (
#!/bin/bash
#title :linux-mint-14-shellshock.sh
#date :20140927
#notes :Install Vim and Emacs to use this script.
#bash_version :4.1.5(1)-release
#
# Linux Mint 14 MATE is no longer supported, but if you have no option to upgrade,
# this should upgrade bash and make your system safe from the
# 'Shellshock' vulnerability (CVE-2014-6271 and CVE-2014-7169).
# run as root.