Skip to content

Instantly share code, notes, and snippets.

View magadanskiuchen's full-sized avatar

Georgi Popov magadanskiuchen

View GitHub Profile
@magadanskiuchen
magadanskiuchen / gist:4081085
Created November 15, 2012 20:33
Basic HTML5 Structure (styling)
@charset "utf-8";
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body { width: auto; height: auto; }
body { background: #E0E0E0; color: #202020; font: normal 12px Arial, Helvetica, sans-serif; }
h1, h2, h3, h4, h5, h6 { font: small-caps bold 100%/120% Georgia, "Times New Roman", Times, serif; }
h1 { font-size: 300%; }
h2 { font-size: 240%; }
@magadanskiuchen
magadanskiuchen / gist:4081026
Created November 15, 2012 20:24
Basic HTML5 Structure
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML 5 Backwards Compatibility Test</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="wrapper">
<header>
@magadanskiuchen
magadanskiuchen / gist:4071744
Created November 14, 2012 11:59
Custom Pin-It button showing all images inline on page
<a href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='http://www.brandaiddesignco.com/blog/PinIt.png'/></a>
(function () {
var slider = $('.stories-slider');
var list = slider.find('#carousel');
var items = list.find('> .slide');
var thumbs = slider.find('.thumb');
var duration = 500;
var current = 0;
list.css({ width: items.length * 100 + '%' });
@magadanskiuchen
magadanskiuchen / gist:3189045
Created July 27, 2012 16:38
Get All Photos for a Facebook Page
<?php
// make sure you have enough time to download all pictures
ini_set('max_execution_time', 6000);
ini_set('memory_limit', '64M');
// include the Facebook PHP SDK - https://github.com/facebook/php-sdk/
require 'facebook.php';
// enter your App ID and App Secret
// register an FB App at https://developers.facebook.com/apps/