Skip to content

Instantly share code, notes, and snippets.

View casouri's full-sized avatar
💭
I may be slow to respond.

Yuan Fu casouri

💭
I may be slow to respond.
View GitHub Profile
@casouri
casouri / rain-warning.py
Created October 10, 2017 22:42
rain-warning
#! /Users/yuan/p/morning/env/bin/python3
from twilio.rest import Client
from pyowm import OWM
import requests
import json
accountSID = 'AC4101e654b8cb7e5f9a22a4676ad65bf8'
authToken = '5ac4db2c7bd0a020cff1cf92d28af926'
destinationNumbers = ['+12675910741']
@casouri
casouri / budget-process
Created September 30, 2017 21:13
create csv budget file from a list of records
# -*- coding: utf-8 -*-
'''
copy data into datain file under root folder
every record are separate by newling
first line is title
a csv file will be ceated
'''
import re
from csv import DictWriter
@casouri
casouri / National Geographic Picture-Of-The-Day Wallpaper Script
Last active February 22, 2021 13:16 — forked from JoshSchreuder/National Geographic Picture-Of-The-Day Wallpaper Script
A BASH script to download National Geographic's picture of the day (http://photography.nationalgeographic.com/photography/photo-of-the-day) saving and setting as wallpaper automatically.
#!/bin/bash
# Copyright (c) 2011 Josh Schreuder
# http://www.postteenageliving.com
#
# 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
# furnished to do so, subject to the following conditions: