First thing first, import the pandas module and read the csv file So, we have a simple data frame like this… …and we want to calculate the amount of time between the start and the end. The main problems is that the dates are read as string (when read from a file), and therefore there […]
This is an amazing tutorial on how to install and configure Apache, MySQL, and PHP on a Mac. https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew
I’ll have more time to post now. :)
A simple reminder of how to use pandoc to turn a latex file to docx. -f from format -t to format -o output file –bibliography where the bib link goes although you don’t have to include the from and to format options. So a simpler version would look like this. Simple
This short script will help you create a range of dates that look like this 201203,201205,201306….
One of the problems of IRCs, as well as other forms of synchronous forms of communications, is that you can sometimes log into an empty room and find yourself a very lonely individual. After monitoring CyanogenMod’s IRC for a few weeks, I’ve figured out which days are and which times see the most activity. First, […]
One of the best ways to convert a Latex file to a word document is to first convert it to html using latex2html and then open the html file using word. Although there are other programs (such as latex2rtf) that can do the same job, I find that latex2html is slightly better at keeping most […]
This code uses Reddit’s own API, praw, to download all the post titles, karma counts, position, and reddit id of each post within a sub reddit. This example collects all the info from the top 100 posts in r/technology at on hour intervals and then saves it to a file.