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
| /* Sticker */ | |
| .sticker { | |
| position: relative; | |
| width: 3.5em; | |
| height: 3.5em; | |
| padding: 1em .5em 0; | |
| margin: 100px; | |
| background: slategray; | |
| color: white; |
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
| .slider { | |
| /* set initial width */ | |
| width: 520px; | |
| /* hide the content that overflows (to allow second box to show through) */ | |
| overflow: hidden; | |
| display: inline-block; | |
| /* skew container so that it has angled edge, and set up transition */ | |
| transform: skewX(-20deg); |
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
| /** | |
| * Visually correct vertical centering with Flexbox + margin fallback | |
| * Lea Verou & David Storey | |
| * Slight adjustment by Vasilis van Gemert | |
| */ | |
| html, body { height: 100%; } | |
| body { | |
| width: 100%; /* needed for FF */ |
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 json | |
| import urllib | |
| import urllib2 | |
| import time | |
| """ Nike plus activity log | |
| https://developer.nike.com | |
| Output: | |
| -- May -- |
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
| button { | |
| background-image: linear-gradient(#5187c4, #1c2f45); | |
| background-size: auto 200%; | |
| background-position: 0 100%; | |
| transition: background-position 0.5s; | |
| /* ...and various other button styles */ | |
| } | |
| button:hover { |
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
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
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
| /** | |
| * @fileoverview A simple Google App Script to monitor Twitter followers | |
| * @version 1.0 | |
| * @author Twitter: @olaf_k | Github: olaf-k | |
| */ | |
| /** | |
| * Twitter screen name (without @) to monitor | |
| * @constant | |
| */ |
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
| function oAuthConfig() { | |
| var oAuthConfig = UrlFetchApp.addOAuthService("twitter"); | |
| oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token"); | |
| oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token"); | |
| oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize"); | |
| // Register an app at https://dev.twitter.com/apps/new to get the following key and secret | |
| oAuthConfig.setConsumerKey("PUT CONSUMER KEY HERE"); | |
| oAuthConfig.setConsumerSecret("PUT CONSUMER SECRET HERE"); | |
| } |
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
| function youtube(){ | |
| // Setup OAuthServiceConfig | |
| var oAuthConfig = UrlFetchApp.addOAuthService("youtube"); | |
| oAuthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); | |
| oAuthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope=http%3A%2F%2Fgdata.youtube.com%2F"); | |
| oAuthConfig.setAuthorizationUrl("https://www.google.com/accounts/OAuthAuthorizeToken"); | |
| oAuthConfig.setConsumerKey("anonymous"); | |
| oAuthConfig.setConsumerSecret("anonymous"); | |
| // Setup optional parameters to point request at OAuthConfigService. The "twitter" |
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
| git fetch --all | |
| git reset --hard origin/master | |
| git pull origin master |