Skip to content

Instantly share code, notes, and snippets.

@float-mode
float-mode / reinstall-osx.md
Created April 22, 2016 07:47 — forked from esturcke/reinstall-osx.md
Reinstalling OS X

Reinstalling OS X

Before reinstalling

  • Make full backup
    • Reboot and hold down ⌘R
    • Use disk utility to create bootable image
  • Make second backup of data including
    • /Library/Fonts
  • ~/Documents
@float-mode
float-mode / markdown-here.css
Last active March 26, 2016 09:47
Custom CSS used with the "Markdown Here" extension for Chrome (For gmail email composing using markdown)
/*
* NOTE:
* - The use of browser-specific styles (-moz-, -webkit-) should be avoided.
* If used, they may not render correctly for people reading the email in
* a different browser than the one from which the email was sent.
* - The use of state-dependent styles (like a:hover) don't work because they
* don't match at the time the styles are made explicit. (In email, styles
* must be explicitly applied to all elements -- stylesheets get stripped.)
*/
@float-mode
float-mode / gist:7f761b33bb58f4d5112e
Created January 30, 2016 01:21 — forked from boucher/gist:1750368
Stripe sample checkout form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Sample Form</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<script type="text/javascript">
@float-mode
float-mode / workflowy-with-image.js
Last active January 22, 2016 00:16 — forked from drosenstark/workflowy-with-image.js
workflowy-with-image.js
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://workflowy.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@float-mode
float-mode / kirbytext.extended.php
Last active September 6, 2015 09:04 — forked from bastianallgeier/kirbytext.extended.php
A template to extend the kirbytext class
<?php
class kirbytextExtended extends kirbytext {
function __construct($text, $markdown=true) {
parent::__construct($text, $markdown);
/*