Skip to content

Instantly share code, notes, and snippets.

View chendy's full-sized avatar

Senthil Seveelavanan chendy

View GitHub Profile
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 = [];
@chendy
chendy / pulse-38khz-uno.ino
Last active July 4, 2020 12:53
Arduino code to create a 38.4 Khz (or other frequency) square wave (or other pwm) signal
/* 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
*/