Skip to content

Instantly share code, notes, and snippets.

View freddyheppell's full-sized avatar

Freddy Heppell freddyheppell

View GitHub Profile
{
"attention_probs_dropout_prob": 0.1,
"finetuning_task": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,

Paste this into your LaTeX document, then label your appendices with \label{app:yourname}, and reference them with \Fref{app:yourname} or \fref{app:yourname}.

@freddyheppell
freddyheppell / DiscourseUsernameRule.php
Last active May 25, 2019 13:21
Laravel Rule for valid Discourse usernames
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
/**
* PHP implementation of
* https://github.com/discourse/discourse/blob/888e68a1637ca784a7bf51a6bbb524dcf7413b13/app/models/username_validator.rb
* @package App\Rules

Keybase proof

I hereby claim:

  • I am freddyheppell on github.
  • I am freddyheppell (https://keybase.io/freddyheppell) on keybase.
  • I have a public key ASCMaYEJO_oF-H1QHDWOUJqmXA7ul2YDqqYScy46TQHskgo

To claim this, I am signing this object:

@freddyheppell
freddyheppell / santa.py
Created November 8, 2018 20:42
Secret santa script with mailgun
import random
import requests
def message(recipient):
message = "Hello,\n You have been assigned:\n\n"+ recipient[0] + "\n\n" + "REMEMBER: Spending limit is £5!\n\n Thank you,\n Santa"
return message