Skip to content

Instantly share code, notes, and snippets.

View snakazawa's full-sized avatar

snakazawa snakazawa

View GitHub Profile
@snakazawa
snakazawa / twitter_trend_spreadsheet.gs
Last active January 3, 2018 05:43
Fetch trends and popular tweets in twitter and display them on Google Spreadsheets
/**********
MIT License
Copyright (c) 2018 snakazawa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@snakazawa
snakazawa / pilemd-exporter.js
Last active July 20, 2017 14:35
Exporting PileMd directory to pure directory and markdown files (unofficially).
const fs = require('fs');
const path = require('path');
let _id = 0;
const usage = ` Usage:
node ${process.argv[1]} <src> <dist>
Example:
node ${process.argv[1]} . dist
@snakazawa
snakazawa / beer_monitor.py
Created June 28, 2017 06:56
Beer monitor script
# coding: utf-8
# python3
import smbus
import time
import requests
import json
SLACK_URL = "https://hooks.slack.com/services/********"
DURATION = 300 # 定期通知の間隔 (seconds)