Skip to content

Instantly share code, notes, and snippets.

@adamthebig
adamthebig / head.html
Created August 3, 2015 14:56
Standard HTML <head> with all the meta tags you should need.
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- DNS prefetching (Useful for Amazon S3 and Rackspace Files -->
<link rel="dns-prefetch" href="">
<!-- Facebook -->
<meta property="og:title" content="">
@adamthebig
adamthebig / tile-component-overlay.html
Last active September 22, 2015 15:22
Frunt: Tiles Component (With Overlay)
<ul class="c-tiles --thirds">
<li>
<a class="tile" href="#">
<img src="https://unsplash.it/500/300/?image=53">
<div class="overlay">
<div class="overlay-content">
...
</div>
</div>
@adamthebig
adamthebig / tiles-component.html
Last active September 22, 2015 15:23
Frunt: Tiles Component (Quarters, padded)
<ul class="c-tiles --quarters-padded">
<li><img src="https://unsplash.it/500/300/?image=719"></li>
<li><img src="https://unsplash.it/500/300/?image=534"></li>
<li><img src="https://unsplash.it/500/300/?image=667"></li>
<li><img src="https://unsplash.it/500/300/?image=50"></li>
<li><img src="https://unsplash.it/500/300/?image=643"></li>
<li><img src="https://unsplash.it/500/300/?image=63"></li>
</ul>
@adamthebig
adamthebig / tiles-component.html
Last active September 22, 2015 15:23
Frunt: Tiles Component (Quarters)
<ul class="c-tiles --quarters">
<li><img src="https://unsplash.it/500/300/?image=723"></li>
<li><img src="https://unsplash.it/500/300/?image=693"></li>
<li><img src="https://unsplash.it/500/300/?image=660"></li>
<li><img src="https://unsplash.it/500/300/?image=256"></li>
</ul>
@adamthebig
adamthebig / tiles-component.html
Last active August 29, 2015 14:24
Frunt: Tiles Component (Thirds)
<ul class="~tiles --thirds">
<li><img src="https://unsplash.it/500/300/?image=745"></li>
<li><img src="https://unsplash.it/500/300/?image=232"></li>
<li><img src="https://unsplash.it/500/300/?image=123"></li>
</ul>
@adamthebig
adamthebig / table-component.html
Last active September 22, 2015 15:23
Frunt: Table Component
<table class="c-table --bordered --striped --hover --compact">
<thead>
...
</thead>
<tbody>
...
</tbody>
</table>
@adamthebig
adamthebig / component-button.html
Last active September 22, 2015 15:28
Frunt: Button Component
<button class="c-button">Default</button>
<button class="c-button --primary">Primary</button>
<button class="c-button --success">Success</button>
<button class="c-button --info">Info</button>
<button class="c-button --warning">Warning</button>
<button class="c-button --danger">Danger</button>
@adamthebig
adamthebig / comodo.sh
Created July 7, 2015 21:11
Combine Comodo SSL certificates in the correct order
cat COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt AddTrustExternalCARoot.crt > domain_bundle.crt
#!/usr/bin/env python
'''
Harvest (www.getharvest.com) does not support setting monthly budgets for projects.
The recommended workaround is creating a new project every month. This script is
supposed to run on the first of every month and uses the Harvest API in order to
archive last month's projects and create new ones for the current month. Members
and tasks are automatically copied over to the new project.
Projects with monthly budgets need to fulfill two requirements:
1. They need to have a budget set
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/