This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Reminder script for GMail: A simple Google Apps Script to create a Google Calendar event (reminder) for any mail (with a | |
* specific label). You can then setup ("timed") triggers in Apps Script (hourly, etc) to monitor your Inbox. | |
* How to Use: | |
* 1. Log into Google Drive account and create a Google Script. | |
* 2. Copy and paste the below snippet into the gs file. | |
* 3. Make sure to update the 'reminderLabel', 'calendarName' and 'reminderDuration' as per your preference. | |
* 4. Test the script to make sure it is working properly. | |
* 5. Setup a time-driven Project Trigger (hourly, etc) to automatically run this script and create calendar events. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import cv2 | |
import numpy as np | |
# Online code reference: https://www.youtube.com/watch?v=-mJXEzSD1Ic | |
# Image URL being streamed from IPWebCam app (I used the one written by Pavel Khlebovich). | |
# Make sure that the android device and the machine running opencv are on the same network and | |
# you can access the streaming URL from that machine | |
url = 'http://192.168.43.236:8080/shot.jpg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code borrowed from: https://github.com/aws-samples/amazon-kinesis-video-streams-media-viewer | |
function configureLogging() { | |
console._error = console.error; | |
console.error = function(messages) { | |
log('ERROR', Array.prototype.slice.call(arguments)); | |
console._error.apply(this, arguments); | |
} | |
console._log = console.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Services combined together: | |
* ~Yahoo Pipes~, Gmail, Google App Script, GDrive, Google Charts | |
* | |
* This is a Google App Script Web App that draws a Column Graph highlighting the current and historical exchange rate trend of | |
* Xoom Money Transfer. Created this simple app to keep an eye on the $ to Rupee up/down trend. | |
* Has a related excel sheet also. | |
* | |
* Output (snapshot): https://plus.google.com/photos/108969069990423509081/albums/6115274347350257297?authkey=CKOFv9-t77O4kAE | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List unique values in a DataFrame column | |
# h/t @makmanalp for the updated syntax! | |
df['Column Name'].unique() | |
# Convert Series datatype to numeric (will error if column has non-numeric values) | |
# h/t @makmanalp | |
pd.to_numeric(df['Column Name']) | |
# Convert Series datatype to numeric, changing non-numeric values to NaN | |
# h/t @makmanalp for the updated syntax! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
conn = psycopg2.connect("host='localhost' port='5432' dbname='stocks' user='xxxxxx' password='xxxxxx'") | |
cur = conn.cursor() | |
SQL_STATEMENT = """ | |
COPY %s FROM STDIN WITH | |
CSV | |
HEADER | |
DELIMITER AS ',' | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pywapi | |
import string | |
''' | |
CurrentWeatherWall | |
Set you desektop wallpaper as per the current weather condition | |
OS: Ubuntu {I have tested on Ubuntu 11.10} | |
See the import statements for Python module dependencies |
NewerOlder