Skip to content

Instantly share code, notes, and snippets.

@kenkubiak
kenkubiak / svg_frames.js
Created September 29, 2012 21:53
Example of using jquery.svg.js to draw a quotation bubble around a tweet
$(function() {
/* draw custom frames around certain types of items */
doCustomFrames = function( $root ) {
/* ugly global -- need to encapsulate this and provide some kind of interface */
/* called when new content is loaded */
$root.find('.item > .twitter.message .frame').svg( twitterFrame );
$root.find('.tweet-module .tweet .frame' ).svg( twitterFrame );
};
@kenkubiak
kenkubiak / icon.less
Created September 4, 2012 23:25
Icon/Sprite Module (after SMACSS) in LESS
/**
* Icon module.
*
* Class: icon, Prefix: icn-.
*
* https://home.ninginc.com/display/ENG/Yoko+Styleguide#YokoStyleguide-Icon
*
*/
.icon {
@kenkubiak
kenkubiak / Sprite.php
Created September 4, 2012 22:56
Building an SVG Sprite from SVG icon assets ... in PHP
<?php
/**
* Create an SVG sprite as a DOMDocument.
*/
class Sprite {
/**
* The URI for the SVG namespace.
*
@kenkubiak
kenkubiak / color-theme-mnmlst.el
Created September 3, 2012 16:51
A "sublime" theme for emacs
(provide 'color-theme-mnmlst)
(defun color-theme-mnmlst ()
"a 'sublime' theme by mnmslt.me"
(interactive)
(color-theme-install
'(color-theme-tm
((background-color . "#282624")
(background-mode . dark)
(border-color . "#111")
(cursor-color . "yellow")