Skip to content

Instantly share code, notes, and snippets.

View ivanistheone's full-sized avatar

Ivan Savov ivanistheone

View GitHub Profile
rmcelreath / prior_likelihood_conflict.r
Created September 11, 2023 11:29
Demonstration of how normal and student-t distributions interact in Bayesian updating
# prior - likelihood conflict
yobs <- 0
mtt <- ulam(
y ~ dstudent(2,mu,1),
mu ~ dstudent(2,10,1)
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
andrew-nuwber /
Last active December 29, 2023 00:26
Namecheap DNS to zone file
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
carld /
Created July 15, 2017 00:22
The build script from my compiler blog article
chez --script c.scm > c.s
nasm -f macho c.s
ld c.o
echo $?
carld / c.scm
Created July 15, 2017 00:21
The compiler from my blog article
(define emit printf)
(define (compile exp)
[(fixnum? exp) (emit "push ~a~%" exp)]
[(eq? '+ (car exp)) (begin
(compile (cadr exp))
(compile (caddr exp))
(emit "pop eax~%")
(emit "pop ebx~%")
vitorfs /
Last active June 25, 2022 14:51
Handling GitHub Webhooks Using Django
import hmac
from hashlib import sha1
from django.conf import settings
from django.http import HttpResponse, HttpResponseForbidden, HttpResponseServerError
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from django.utils.encoding import force_bytes
import requests
yefim /
Last active April 7, 2023 16:11
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
"AWSEBDockerrunVersion": "1",
"Image": {
"Update": "true"
"Ports": [
"ContainerPort": "443"
bishboria /
Last active June 8, 2024 06:39
Springer made a bunch of books available for free, these were the direct links
kharrison / String.swift
Last active January 22, 2024 14:03
Swift String Playground Examples
// Swift Standard Librray - String
// Keith Harrison
// Import Foundation if you want to bridge to NSString
import Foundation
// ====
// Initializing a String
// ====