Skip to content

Instantly share code, notes, and snippets.

@danielpost
danielpost / main.css
Last active October 28, 2018 20:01
Reduce motion on your website if it's enabled by the user (https://css-tricks.com/introduction-reduced-motion-media-query/)
.some-component {
:not(.reduced-motion) & {
animation: animation-name 3s linear infinite;
}
}
@jeffehobbs
jeffehobbs / simpletwitterweatherbot.py
Last active July 1, 2021 00:03
Simple Python Twitter Weather Bot
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tweepy, time, sys, urllib, json
# enter the corresponding information from your Twitter application/Forecast.io API KEY/lat and long:
CONSUMER_KEY = 'YOUR_CONSUMER_KEY'
CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET'
ACCESS_KEY = 'YOUR_ACCESS_KEY'
ACCESS_SECRET = 'YOUR_ACCESS_SECRET'