Skip to content

Instantly share code, notes, and snippets.

@brentini
brentini / media-queries.txt
Created September 29, 2012 04:47 — forked from cod3cow/media-queries.css
CSS Media Queries - Solo and Bootstrap way
/* Solo Queries
*********************************************/
/* Phones (portrait and landscape) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {}
/* Phones (landscape) */
@media only screen and (min-width: 321px) {}
/* Phones (portrait) */
@brentini
brentini / html5-starter-template
Created October 12, 2012 20:10
Simple html5 boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title></title>
<link rel="icon" href="http://yourdomain/favicon.ico" type="image/x-icon" />
@brentini
brentini / css3tabs.html
Last active December 15, 2015 19:29 — forked from anonymous/index.html
CSS3 tabs without images
<div id="global">
<ul>
<li>tab</li>
<li>tab</li>
<li class="active">tab</li>
</ul>
</div>
@brentini
brentini / HTML5 Enabler
Last active March 23, 2018 21:31 — forked from benplum/HTML5 Enabler
testing #javascript
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();
@brentini
brentini / Auto-load scripts on PowerShell startup
Last active May 21, 2022 21:41
Auto-load scripts on PowerShell startup #wordpress
#Auto-load scripts on PowerShell startup
#Add this to C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# directory where my scripts are stored
$psdir="D:\Documents\Powershell\Scripts\autoload"
# load all 'autoload' scripts
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@brentini
brentini / Google Maps Get Directions Form
Created April 30, 2014 19:17
Google Maps Get Directions Form
<form action="http://maps.google.com/maps" method="get" target="_blank">
<label for="saddr">Enter your location</label>
<input type="text" name="saddr" />
<input type="hidden" name="daddr" value="350 5th Ave New York, NY 10018 (Empire State Building)" />
<input type="submit" value="Get directions" />
</form>
@brentini
brentini / 1x1 Spacer Gif
Created April 30, 2014 19:22
1x1 Spacer Gif
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">
@brentini
brentini / Valid flash embed Valid flash embed Valid flash embed Valid flash embed Valid Flash Embed
Created April 30, 2014 19:28
Valid flash embed Valid flash embed Valid flash embed Valid flash embed Valid Flash Embed
<object type="application/x-shockwave-flash"
data="your-flash-file.swf"
width="0" height="0">
<param name="movie" value="your-flash-file.swf" />
<param name="quality" value="high"/>
</object>
@brentini
brentini / HTML5 Video with Flash Fallback
Created April 30, 2014 19:36
HTML5 Video with Flash Fallback
<video width="640" height="360" controls>
<source src="__VIDEO__.MP4" type="video/mp4" />
<source src="__VIDEO__.OGV" type="video/ogg" />
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
<param name="movie" value="__FLASH__.SWF" />
<param name="flashvars" value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
title="No video playback capabilities, please download the video below" />
</object>
</video>