Skip to content

Instantly share code, notes, and snippets.

View johnantoni's full-sized avatar

John Griffiths johnantoni

View GitHub Profile
@johnantoni
johnantoni / com.docker.boot2docker.plist
Last active March 30, 2017 08:11
run boot2docker on system startup - Mac OSX - Yosemite
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.boot2docker</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/boot2docker</string>
<string>up</string>
@johnantoni
johnantoni / how-to.md
Last active August 29, 2015 14:21
svg images
  1. load svginjector https://github.com/iconic/SVGInjector
  2. place your svg + png fallback files in [see 'file layout']
  3. make sure loadSVG() is run on page load / page ready.

Now when your browser can't use the svg file, it'll fallback to the png equivalent inside the 'fallback' directory.

Also here's the svg optimization tool which was mentioned, https://github.com/svg/svgo-gui

Enjoy.

@johnantoni
johnantoni / apple-watch.md
Created April 24, 2015 16:00
apple watch notes

the watch

  • iphone + iwatch talk over wifi or bluetooth, prefers wifi
  • once the phone + iwatch is linked, they're linked
  • the watchkit app is packaged as part of your app
  • install watchkitapp (goes to your watch) + watchkitextension (goes to your phone)
  • if communication is severed then your app is frozen
  • watchkitext - .swift / watchkitext - .storyboard
  • watchapp sends @IBAction, labelSoftText(...)
  • exension does not have access to your main app
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Zoocasa</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"><style id="jsbin-css">
/* NORMALIZE START */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.