Skip to content

Instantly share code, notes, and snippets.

View beta-decay's full-sized avatar

Beta Decay beta-decay

View GitHub Profile
@beta-decay
beta-decay / voyager.php
Created August 4, 2016 17:37
PHP script which gets data from Voyager
<?php
$url = 'http://voyager.gsfc.nasa.gov/cgi-bin/heliopause_all';
$parameters_str = '';
$parameters = array(
'average'=>'6hour',
'syear'=>'9999',
'smonth'=>'9999',
'sday'=>'9999',
'eyear'=>'9999',
@beta-decay
beta-decay / voyager.php
Last active August 4, 2016 18:02
PHP script which gets data from Voyager
<?php
$url = 'http://voyager.gsfc.nasa.gov/cgi-bin/heliopause_all';
$parameters_str = '';
$parameters = array(
'average'=>'6hour',
'syear'=>'9999',
'smonth'=>'9999',
'sday'=>'9999',
'eyear'=>'9999',
from PIL import Image
fname = input()
image = Image.open(fname)
pix = image.load()
npixels = image.size[0]*image.size[1]
ncloud = 0
import tweepy
import nltk
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import matplotlib.pyplot as plt
# Consumer keys and access tokens, used for OAuth
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
import tweepy
import nltk
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import matplotlib.pyplot as plt
# Consumer keys and access tokens, used for OAuth
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
import tweepy
from os import path
from scipy.misc import imread
import matplotlib.pyplot as plt
import random
import re
from wordcloud import WordCloud, STOPWORDS
import numpy as np
from PIL import Image
from os import path
from scipy.misc import imread
import matplotlib.pyplot as plt
import random
import re
from wordcloud import WordCloud, STOPWORDS
import numpy as np
from PIL import Image
with open("combined.txt","r") as f:
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
import csv, math
import numpy as np
mag = []
bprp = []
with open('files/combined2.csv', 'r') as f:
table = csv.reader(f)
fnums <- c(1, 1)
x <- 1:30
phi <- c()
pdiff <- c()
actual = 0.5 * (1 + 5^0.5)
for (i in x) {
next_fibo = fnums[i] + fnums[i+1]
fnums <- c(fnums, next_fibo)
00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR
00000010: 0000 00f0 0000 00f0 0802 0000 00b1 377e ..............7~
00000020: c500 0000 0662 4b47 4400 ff00 ff00 ffa0 .....bKGD.......
00000030: bda7 9300 000d 3049 4441 5478 9ced dd7b ......0IDATx...{
00000040: 9057 651d c7f1 f78f e5a2 48bb 5e06 1594 .We.......H.^...
00000050: cbca 5a26 7823 cb6b 4278 0935 a7b0 d451 ..Z&x#.kBx.5...Q
00000060: 0c53 494d d318 1da1 f20f 67b2 c6bc 8c30 .SIM......g....0
00000070: 8ea4 a30e 656a a539 9af7 e416 4488 5a99 ....ej.9....D.Z.
00000080: 63b0 a272 0b07 96f0 061b 820b 0bbf fef8 c..r............
00000090: c5b6 cab2 fcf6 3cd7 f39c cf6b 98fd 8779 ......<....k...y