Skip to content

Instantly share code, notes, and snippets.

View oliverbaptiste's full-sized avatar

Oliver Baptiste oliverbaptiste

View GitHub Profile
@oliverbaptiste
oliverbaptiste / include-jquery.html
Last active December 17, 2015 15:18
jQuery 1.9.1 Google CDN with local fallback
<!-- Grab Google CDN jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>
<script>
$(document).ready(function(){
});
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
# https://groups.google.com/forum/?fromgroups=#!topic/bbedit/XU_sZWkHyrY
# ccs
# 2011-07-27 : 07:00
try
tell application "BBEdit"
tell front text window
set docFile to its file
if docFile ≠ missing value then
set docFile to docFile as alias
set AppleScript's text item delimiters to ":"
/**
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* contenteditable attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that are clearfixed.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.cf:before,
rm ~/Library/Application\ Support/Dock/*.db ; killall Dock
date "+%Y-%m-%d %H:%M"
@oliverbaptiste
oliverbaptiste / hide-file.sh
Created September 1, 2013 03:33
Hide a file from the Finder
chflags hidden /path/to/folder/
<!DOCTYPE html><!-- This is an HTML5 document. -->
<html lang="en"><!-- This page is in English. -->
<head><!-- Document metadata -->
<meta charset="utf-8" /><!-- Text encoded in UTF-8 (Unicode) character set. -->
<title>Hello, World!</title><!-- The title of this page. -->
</head>
<body><!-- Document content -->
<!-- Content goes here. -->
</body>
</html>
@oliverbaptiste
oliverbaptiste / js-worksheet.js
Last active December 29, 2015 09:09
JavaScript worksheet
console.clear();
console.log("Hello, World!");