Skip to content

Instantly share code, notes, and snippets.

Avatar

Ivan Savov ivanistheone

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active Jan 12, 2022
Listen to your web pages
View plink-plonk.js
@andrew-nuwber
andrew-nuwber / README.md
Last active Nov 12, 2021
Namecheap DNS to zone file
View g_series_4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carld
carld / build.sh
Created Jul 15, 2017
The build script from my compiler blog article
View build.sh
chez --script c.scm > c.s
nasm -f macho c.s
ld c.o
./a.out
echo $?
@carld
carld / c.scm
Created Jul 15, 2017
The compiler from my blog article
View c.scm
(define emit printf)
(define (compile exp)
(cond
[(fixnum? exp) (emit "push ~a~%" exp)]
[(eq? '+ (car exp)) (begin
(compile (cadr exp))
(compile (caddr exp))
(emit "pop eax~%")
(emit "pop ebx~%")
@vitorfs
vitorfs / github_webhooks.py
Last active Sep 25, 2020
Handling GitHub Webhooks Using Django
View github_webhooks.py
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
yefim / Dockerfile
Last active Jul 27, 2021
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
View Dockerfile
# Example Dockerfile
FROM hello-world
@bishboria
bishboria / springer-free-maths-books.md
Last active Dec 31, 2021
Springer made a bunch of books available for free, these were the direct links
@kharrison
kharrison / String.swift
Last active Dec 16, 2021
Swift String Playground Examples
View String.swift
// Swift Standard Librray - String
// Keith Harrison http://useyourloaf.com
// Import Foundation if you want to bridge to NSString
import Foundation
// ====
// Initializing a String
// ====
@wchargin
wchargin / transforms.py
Created Aug 18, 2015
affine transforms on PIL images
View transforms.py
"""A library for describing and applying affine transforms to PIL images."""
import numpy as np
import PIL.Image
class RGBTransform(object):
"""A description of an affine transformation to an RGB image.
This class is immutable.