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
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
# 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
/** | |
* 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- @author Kumar Shwetabh, @version 1.0 --> | |
<!-- Based upon https://github.com/philmander/ant-jshint --> | |
<!-- Add reference to http://jslinterrors.com in the reports file --> | |
<project name="LintTasks" default="LintTasks" basedir="."> | |
<property name="FilesToLint" value="C:/LintFiles"/> | |
<property name="ReportFile" value="${basedir}/jshint/results.html"/> | |
<target name="LintTasks"> |
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
//Great online repo for more snippets: https://bgrins.github.io/devtools-snippets/ | |
/************************************************* | |
//Cache Buster | |
Overwrite all link and (optionally) script tags by adding Date.now() | |
at the end of href and src attributes, respectively. By default processing | |
scripts is not performed, you should change the variable process_scripts | |
to true to run these. | |
/*************************************************/ | |
(function (){ |
NewerOlder