Skip to content

Instantly share code, notes, and snippets.

View L422Y's full-sized avatar
🤓

Larry Williamson L422Y

🤓
View GitHub Profile
@L422Y
L422Y / osx_versions.js
Last active August 29, 2015 14:12
Javascript Map object: OSX Release IDs to OSX Versions
// use the major version from data.kern.osversion in sysctl output
var osxversions = {
"14": "Yosemite",
"13": "Mavericks",
"12": "Mountain Lion",
"11": "Lion",
"10": "Snow Leopard",
"9": "Leopard",
"8": "Tiger",
@L422Y
L422Y / index.html
Created November 21, 2012 12:18
A CodePen by Larry Williamson.
<div>
<span class="span1">
<img src="http://blog.codepen.io/wp-content/uploads/2012/06/Button-Black-Small.png" width=20 id="galaxy" />
</span>
<span class="span1">1232</span>
<span class="span2">Cell Phone</span>
<span class="span1">3500</span>
<a href="#" class="pull-right"><i class="icon-plus" id="btnid">+</i></a>
</div>
<hr>
@L422Y
L422Y / notes.md
Created December 2, 2015 22:25 — forked from JedWatson/notes.md
Notes on how to create a new field type for Keystone

Creating new Field Types for KeystoneJS

We're currently working on making it easier to add new field types to KeystoneJS as plugins.

In the meantime, if you'd like to work on your own field type, hopefully this guide will point you in the right direction.

Keystone fields require the following:

  • a {fieldType}.js file in ./lib/fieldTypes that controls the field and encapsulates options support, underscore functions, validation and updating
  • the {fieldType}.js file needs to be included by ./lib/fieldTypes/index.js
@L422Y
L422Y / index.html
Created February 25, 2013 20:58
A CodePen by Larry Williamson. Template fill w/ split() - Uses String.split() to break up a template using a RegEx wrap match. Then iterates odd items, replacing the template variable name with the value if there is a matching definition
<div>This {!template!} has {!variables!} in it.</div>
<button id='fill'>Fill Template</button>
@L422Y
L422Y / gist:6416624
Last active December 22, 2015 04:19 — forked from fredkelly/gist:3655228
homebrew install of ffmpeg w/ web video encoders
brew install ffmpeg --with-theora --with-libogg --with-libvorbis --with-libvpx
@L422Y
L422Y / enformer.md
Last active December 24, 2015 03:39
a test form for enformer, a framework for easily building forms and plugging results into an api

screenshot

@L422Y
L422Y / vhosts.conf
Created October 3, 2013 03:08
boxen / brew nginx development configuration w/ fastcgi php-fpm
server {
set $work_folder /work;
listen 80;
index index.php index.html index.htm;
server_name ~^(.*)\.dev$;
if (-d /work/$1/) {
set $path $work_folder/$1;
}
@L422Y
L422Y / asana__project__colors.md
Last active December 25, 2015 07:49
Asana Project color enhancements for Chrome

Chrome: Asana Project Colors -- Colorize your "My Tasks" view in Asana based on the project colors, only works when sorted by Project.

This is a Tampermonkey userscript.

@L422Y
L422Y / index.html
Created November 18, 2012 21:40
CSS3/jQuery 3D Carousel
<style>
@-webkit-keyframes rotator {
0% { -webkit-transform: rotateY(0deg); }
50% { -webkit-transform: rotateY(180deg); }
100% { -webkit-transform: rotateY(359deg); }
}
@L422Y
L422Y / index.html
Created November 20, 2012 12:57
A CodePen by Larry Williamson. image rotator / css3
<style>
</style>
<div id="main">
<div id="container"></div>
</div>