Skip to content

Instantly share code, notes, and snippets.

View jupegarnica's full-sized avatar
🔍

Garn jupegarnica

🔍
View GitHub Profile
@jupegarnica
jupegarnica / dabblet.css
Created September 4, 2013 12:10 — forked from aral/dabblet.css
Sticker
/* Sticker */
.sticker {
position: relative;
width: 3.5em;
height: 3.5em;
padding: 1em .5em 0;
margin: 100px;
background: slategray;
color: white;
@jupegarnica
jupegarnica / dabblet.css
Created September 4, 2013 12:17 — forked from dstorey/dabblet.css
set the size of the boxes and any decoration
.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);
@jupegarnica
jupegarnica / dabblet.css
Created September 4, 2013 12:21 — forked from vasilisvg/dabblet.css
Visually correct vertical centering with Flexbox + margin fallback
/**
* 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 */
import json
import urllib
import urllib2
import time
""" Nike plus activity log
https://developer.nike.com
Output:
-- May --
@jupegarnica
jupegarnica / gist:8542441
Last active January 4, 2016 00:29 — forked from lonekorean/gist:7759870
Button Hover effect. nice one!
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 {
/**
* 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();
/**
* @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
*/
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");
}
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"
git fetch --all
git reset --hard origin/master
git pull origin master