Skip to content

Instantly share code, notes, and snippets.


Senthil Seveelavanan chendy

View GitHub Profile
View google docs script: printWordsBetweenAngleBrackets()
function printWordsBetweenAngleBrackets(){
let doc = DocumentApp.getActiveDocument();
let body = doc.getBody();
let text = body.editAsText();
// all the documents text as a long string AFAIK
let textString = text.getText();
let startToken = false;
let tokens = [];
# Map an unused modifier's keysym to the spacebar's keycode and make it a
# shift modifier. It needs to be an existing key so that emacs won't
# spazz out when you press it. Hyper_L is a good candidate.
xmodmap -e "keycode 65 = $spare_modifier"
xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
#xmodmap -e "add Control = $spare_modifier"
xmodmap -e "add Shift = $spare_modifier"
chendy / pulse-38khz-uno.ino
Last active Jul 4, 2020
Arduino code to create a 38.4 Khz (or other frequency) square wave (or other pwm) signal
View pulse-38khz-uno.ino
/* Code to pulse pin 3 with a (38.4 Khz) modulated signal
* Tested on Arduino Uno
* Mike Cook Nov 2011 - Released under the Open Source licence
* modifications by Senthil Seveelavanan 2015
volatile byte pulse = 0;
/* Interrupt service routine to pulse the modulated pin 3