I hereby claim:
- I am kevinhughes27 on github.
- I am kevinhughes27 (https://keybase.io/kevinhughes27) on keybase.
- I have a public key whose fingerprint is B263 BCD7 178F 9223 124C 6776 4753 1019 ABDA FEE7
To claim this, I am signing this object:
| class Wat | |
| def initialize(thing) | |
| @thing = thing | |
| @foo = 'foo' | |
| end | |
| # this ends up creating an attr_reader for foo | |
| # but shouldn't it throw an error when it | |
| # sees `def` after a comma? | |
| attr_reader :thing, |
I hereby claim:
To claim this, I am signing this object:
| # | |
| # Himawari-8 Downloader | |
| # | |
| # | |
| # | |
| # This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
| # converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
| # | |
| # http://himawari8.nict.go.jp/himawari8-image.htm | |
| # |
| # first mount the samba share (use the gui) | |
| # then link the mounted smb share somewhere more convientent | |
| # sudo ln -s /run/user/1000/gvfs/smb-share:server=dlink-71f6dd,share=volume_1-1 /mnt/network | |
| # then run as usual | |
| # python avgEpisode.py /mnt/network/TV\ Shows/That\ \'70s\ Show/ output.avi | |
| import os | |
| import sys |
| #!/usr/bin/env bash | |
| # add to cron tab | |
| # crontab -e | |
| # then append: | |
| # */30 * * * * /home/kevin/coding-timer.sh | |
| # need to have: | |
| # xhost local:mpromber > /dev/null | |
| # in bashrc |
| import myfitnesspal # pip install myfitnesspal | |
| import ipdb | |
| print 'logging in ...' | |
| client = myfitnesspal.Client('username', 'password') | |
| days = [] | |
| for i in range(2, 18+1): | |
| print 'fetching 2015, 6,', i | |
| days.append( client.get_date(2015, 6, i) ) |
| // run by pasting the function into dev console then call it | |
| // can also use something like Custom JavaScript for websites: | |
| // https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
| // name and field are set by Zuluru | |
| function scrape() { | |
| data = "" | |
| fields.forEach(function(field){ |
| #!/usr/bin/env bash | |
| # sleepy-bash | |
| # kevin hughes | |
| # [email protected] | |
| # 2015 | |
| # on each run this script reads a var increments | |
| # it then sleeps for that long. |
| -- autostart hydra | |
| autolaunch.set(true) | |
| -- watch for changes | |
| pathwatcher.new(os.getenv("HOME") .. "/.hydra/", hydra.reload):start() | |
| -- notify on start | |
| hydra.alert("Hydra config loaded", 0.5) | |
| -- open a repl |
| require 'json' | |
| require 'octokit' | |
| Octokit.configure do |c| | |
| c.login = 'pickle27' | |
| c.password = '<github token>' | |
| end | |
| repo = ARGV[0] | |
| file = ARGV[1] |