Skip to content

Instantly share code, notes, and snippets.

View didxga's full-sized avatar

Carter Chen didxga

View GitHub Profile
/*
---
license: MIT-style
authors: [Christopher Pitt]
...
*/
(function(){
var template =
'<div class="item">'+
function t(s,d){
for(var p in d)
s=s.replace(new RegExp('{'+p+'}','g'),typeof d[p][1]=='f'?d[p]():d[p]);
return s;
}
@didxga
didxga / 0readme.md
Created August 22, 2011 13:23 — forked from paulirish/0readme.md
For converting adium logs to decently sexy HTML

adium log export to HTML

this shit is for exporting this weirdass xml out into some sane HTML.

  • run rename.sh to kill the whitespaces in your xml filenames
    • alternatively fix my htmlify.sh to not break on whitespace'd filenames
  • run htmlify.sh
    • htmlify has a hardcoded destination directory.
    • htmlify also expects the format-html.* files to be up one folder from it.
  • enjoy a bigass directory of all your logs all together with ugly filenames but at least they have nice styles and happy markup.
@didxga
didxga / javascript_will_listen.md
Created November 11, 2011 18:10 — forked from joemccann/javascript_will_listen.md
JavaScript Will Listen - By Bella Morningstar

I wouldn't be so alone

If my Github followers lived in my home

Alex Russell would send a pull request

But I'd be too busy

Return to San Francisco by nine

@didxga
didxga / dabblet.css
Created March 5, 2012 03:53
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@didxga
didxga / dabblet.css
Created March 6, 2012 05:37 — forked from LeaVerou/dabblet.css
Typing animation with pure CSS
/**
* Typing animation with pure CSS
* Revised. Browser support (as of Feb 2012): Firefox, IE10
*/
@keyframes typing { from { width: 0; } }
@keyframes blink-caret { 50% { border-color: transparent; } }
h1 {
font: bold 200% Consolas, Monaco, monospace;
@didxga
didxga / dabblet.css
Created March 29, 2012 08:04 — forked from JoelBesada/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@didxga
didxga / dabblet.css
Created April 9, 2012 03:24
Untitled
.dish_block{
width:800px;
height:40px;
border:solid 1px #fbeed5;
background-color:#fcf8e3;
border-radius:3px 2px;
}
@didxga
didxga / dabblet.css
Created April 9, 2012 07:22
----------- My Form -----------
body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
/* ----------- My Form ----------- */
.myform{
@didxga
didxga / dabblet.css
Created April 10, 2012 07:25
----------- My Form -----------
body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
/* ----------- My Form ----------- */
.myform{