Skip to content

Instantly share code, notes, and snippets.

View fredfortier's full-sized avatar

Frederic Fortier fredfortier

  • Enigma
  • United States
View GitHub Profile
@fredfortier
fredfortier / neo_trend.py
Created August 17, 2017 16:57
Correlating the Rise of NEO (crypto) with Google Trends Interest
from pytrends.request import TrendReq
import matplotlib.pyplot as plt
import pandas as pd
import urllib.request, json
from dateutil.relativedelta import relativedelta
USERNAME = ''
PASSWORD = ''
pytrend = TrendReq(USERNAME, PASSWORD, hl='en-US', tz=360,
custom_useragent=None)
@fredfortier
fredfortier / README.md
Last active September 2, 2015 18:17
Test sass.js with Rhino

This should help you test sass.js using Rhino.

Some notes:

  • I have included a sample pom.xml in case you would like to use Maven. The important part is that I am using Rhino 1.7 (latest version).
  • The TestRhino#main method initializes a Rhino context which loads the main.js module using CommonJs
  • Create a "modules" directory anywhere in the application classpath. If using Maven to create the project, "src/main/resources" will be in the classpath by convention.
  • Add main.js directly in the "modules" directory
  • Clone sass.js in the "modules" directory. Basically, you will be able to require modules relative to the "modules" directory. In my main.js example, I copied "sass.js/dist" to "modules/sass".

filereduce

test check-in