Skip to content

Instantly share code, notes, and snippets.

# for Emacs: -*- coding: utf-8 -*-
#
# User-defined key sequences for WinCompose
# by Sam Hocevar <sam@hocevar.net>
#
# Key sequences have the following form:
#
# <Multi_key> <key>… : "resulting text"
#
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Sublime" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Sublime" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Sublime\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Sublime" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@MerlinSmiles
MerlinSmiles / Gestures_2-3TapClick.reg
Last active June 13, 2019 02:44 — forked from dpower-lv/Gestures_2TapMiddleClick.reg
Dell ALPS - Registry hack to add right-click as a 2 finger tap and middle-click as a 3 finger tap gesture
Windows Registry Editor Version 5.00
; 2-tap right click and 3-tap middle click
; current user
[HKEY_CURRENT_USER\SOFTWARE\Alps\Apoint\Gesture]
"2TapSupport"=dword:00000003
"2TapShow"=dword:00000009
"Enable2Tap"=dword:00000001
"2TapFunc"=dword:0000000d
import numpy as np
from math import pi, log
import pylab
from scipy import fft, ifft
from scipy.optimize import curve_fit
i = 10000
x = np.linspace(0, 3.5 * pi, i)
y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 *
np.random.randn(i))