Skip to content

Instantly share code, notes, and snippets.

@kshwetabh
kshwetabh / InstallEmacs In WSL (Windows 10)
Created December 20, 2019 05:33
InstallEmacs In WSL (Windows 10)
## Copied from https://github.com/hubisan/emacs-wsl for duplication in case that repo is gone.
## install dependencies
sudo apt install -y build-essential texinfo libx11-dev libxpm-dev \
libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev \
libncurses-dev gnutls-dev libgtk-3-dev libgnutls28-dev
# some more from a stackoverflow, eww was not working before
@kshwetabh
kshwetabh / textToSpeech.py
Created March 2, 2020 10:00
This script speaks and converts text-to-speech (mp3) using python's pyttsx3 library. This code has been tested on Windows 10 system and requires pywin32 and pyttsx3 python packages to be installed.
import pyttsx3
text = "When you invest for five years or above, you can expect gains that comfortably beat the inflation rate and are also higher than fixed income options. But be prepared for ups and downs in your investment value along the way. Aggressive"\
" hybrid funds invest 65-80% of your money in equity shares and the rest in bonds and commodities. Their returns are slightly lower than pure equity funds which"
engine = pyttsx3.init();
engine.setProperty('volume', 1)
engine.setProperty('rate', 160)
engine.say(text)
@kshwetabh
kshwetabh / feeds.opml
Created January 24, 2023 06:23 — forked from stebennett/feeds.opml
The feeds I currently subscribe to.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Stephen subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Companies" title="Companies">
<outline type="rss" text="Trello" title="Trello" xmlUrl="https://trello.engineering/feed.xml" htmlUrl="http://tech.trello.com/"/>
<outline type="rss" text="IMVU" title="IMVU" xmlUrl="http://engineering.imvu.com/feed/" htmlUrl="https://engineering.imvu.com"/>