Skip to content

Instantly share code, notes, and snippets.

View arlk's full-sized avatar
🏖️

Arun Lakshmanan arlk

🏖️
View GitHub Profile
@maximerischard
maximerischard / latex_substitutions.plist
Last active February 28, 2021 23:08
Unicode latex substitutions from julia as MacOS keyboard substitutions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>phrase</key>
<string>⅛</string>
<key>shortcut</key>
<string>\1/8</string>
</dict>
@jiahao
jiahao / savitzkygolay.jl
Last active April 26, 2024 12:03
An implementation of the Savitzky-Golay filter using generated functions. Accompanies https://medium.com/@acidflask/smoothing-data-with-julia-s-generated-functions-c80e240e05f3
"""
Savitzky-Golay filter of window half-width M and degree N
M is the number of points before and after to interpolate, i.e. the full width
of the window is 2M+1
"""
immutable SavitzkyGolayFilter{M,N} end
@generated function Base.call{M,N,T}(::Type{SavitzkyGolayFilter{M,N}},
data::AbstractVector{T})
@ali1234
ali1234 / bb8.py
Created October 17, 2015 15:47
Control Sphero BB-8 from Linux.
#!/usr/bin/env python
# BB-8 Python driver by Alistair Buxton <a.j.buxton@gmail.com>
from bluepy import btle
import time
class BB8(btle.DefaultDelegate):
def __init__(self, deviceAddress):