I hereby claim:
- I am judges119 on github.
- I am adamjogrady (https://keybase.io/adamjogrady) on keybase.
- I have a public key whose fingerprint is 7FFF 2587 A9DB 6714 FDA7 CBDC AA53 068F 3125 2FF2
To claim this, I am signing this object:
from celery import Celery | |
from elasticsearch import Elasticsearch | |
import json | |
from lxml import html | |
import redis | |
import requests | |
import sys | |
from urllib.parse import urlparse, urlunparse | |
SITE = 'https://adamogrady.id.au/' |
var express = require('express'); | |
var multer = require('multer'); | |
var upload = multer({ dest: 'uploads/' }); | |
var app = express(); | |
// View engine | |
app.set('views', __dirname); | |
app.set('view engine', 'pug'); | |
// Routes |
import json | |
with open('file.json') as data_file: | |
data = json.load(data_file) | |
for key in data: | |
f = open(''.join([key, '.json']), 'w') | |
d = {key:data[key]} | |
f.write(json.dumps(d)) | |
f.close() |
# in vcl_backend_response | |
if (beresp.http.content-type ~ "^(image/svg|image/svg\+xml|image/svg+xml)$") | |
{ | |
set beresp.do_gzip = true; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title> | |
<link rel="shortcut icon" href="{Favicon}"> | |
<link rel="alternate" type="application/rss+xml" href="{RSS}"> | |
{block:Description} | |
<meta name="description" content="{MetaDescription}" /> | |
{/block:Description} |
I hereby claim:
To claim this, I am signing this object:
Friendly reminder to check you’re not holding tension in your body.
Much better.
/* | |
Hampel Filter implemented in JavaScript by Adam O'Grady | |
AN: Very basic (ie: improve before using in production) function I needed for some work stuff, used for detecting and removing outliers in a moving window via Median Absolute Deviation (MAD) | |
PARAMS: | |
data - Array of numbers to be examined | |
half_window: Integer representing half the moving window size to use | |
threshold: Integer for the maximum multiple of the Median Absolute Deviation before it's considered an outlier and replaced with the median | |
RETURNS: | |
object: | |
data: updated, smoothed array |