This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const interval = (callback, delay) => { | |
| const tick = now => { | |
| if (now - start >= delay) { | |
| start = now; | |
| callback(); | |
| } | |
| requestAnimationFrame(tick); | |
| }; | |
| let start = performance.now(); | |
| requestAnimationFrame(tick); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spinner = new Layer | |
| width: 100 | |
| height: 100 | |
| x: 100 | |
| y: 100 | |
| backgroundColor: "transparent" | |
| spinner.html = "<svg><path fill='#27AE60' d='M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50'></path></svg>" | |
| spinner.animate | |
| properties: {rotation: 360*10} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytumblr | |
| import os | |
| import code | |
| import oauth2 as oauth | |
| from pprint import pprint | |
| import json | |
| import urllib | |
| import codecs | |
| # Number of likes to fetch in one request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Your monthly notice to go through and disconnect unused applications across various services. | |
| Twitter: https://twitter.com/settings/applications | |
| Dropbox: https://www.dropbox.com/account/connected_apps | |
| Facebook: https://www.facebook.com/settings?tab=applications | |
| Google Apps: https://security.google.com/settings/security/permissions?pli=1 | |
| Google Ads: http://www.google.com/ads/preferences | |
| Google Account: https://security.google.com/settings/security/secureaccount | |
| Foursquare: https://foursquare.com/settings/connections | |
| Instagram: https://instagram.com/accounts/manage_access |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'tumblr_client' | |
| require 'mechanize' | |
| require 'date' | |
| require 'yaml' | |
| require 'uri' | |
| Tumblr.configure do |config| | |
| config.consumer_key = "consumer_key" | |
| config.consumer_secret = "consumer_secret" | |
| config.oauth_token = "oath_token" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # config.rb | |
| page "/sitemap.xml", :layout => false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
NewerOlder