Archive for January, 2007
I wrote this pastie up today to allow me to chain events in Bernie’s Better Animation Class (animator.js sounds so much nicer though) without causing the flicker that everyone’s seen sometime, where a toggle will start only from the endpoints. Without any more time wasted, here’s the code.
Filed under: Uncategorized | Leave a Comment
:set ft=css
just for me….nothing to see here
UPDATE: From #vim, someone else chimed in way later:
<WebDragon> jadams: you can also use the vim comment trick
<WebDragon> in your css file at the bottom just add /* vim600 : set filetype=css syntax=css : */
* WebDragon goes one step further
<WebDragon> since all my css files are wrapped in @media [...]
Filed under: Uncategorized | Leave a Comment
JS FSM FTW
var StateMachine = Class.create();
StateMachine.prototype = {
initialize: function(){
return this;
},
cur_state: ‘rest’,
states: {
rest: {
to: ['animating'],
from: []
},
animating: {
to: ['rest', 'finished'],
from: ['rest', 'finished']
},
finished: {
to: ['animating'],
from: ['animating']
[...]
Filed under: Uncategorized | Leave a Comment
Just a css file…
/* Programmer: Josh Adams
* Date: 1-9-2007
*/
<%
sans = ‘Bitstream Vera Sans, Trebuchet, Verdana, Arial, sans-serif’
serif = ‘Georgia, serif’
-%>
/* === BASE STRUCTURE === */
body{background: <%= palette(‘body_bg’)-%>;font-family: <%= sans -%>;}
#container{width: <%=800.px.to_em-%>; margin: 0 auto;}
#content{background-color: <%=palette(‘content_bg’)-%>;min-height: <%=200.px.to_em-%>;margin-top: <%=40.px.to_em-%>;}
#header{background: <%=gradient(:colors => palette(‘header_gradient’), :size => 72)-%>; height: <%=80.px.to_em-%>;}
#header .primary_box{margin-left: 2em;width: <%=194.px.to_em-%>;height: <%=80.px.to_em-%>;float:left;}
#header .primary_box h1{font-size: 1.5em;color:white;font-weight: [...]
Filed under: Uncategorized | Leave a Comment
Had a discussion today in which I brought up how I chafe at being told I’m ‘overnormalizing’ on a project. This complaint would come up back at InLine when I wanted to create an entirely different table for phone numbers and link the phone numbers from a given user (basically, a polymorphic phone number model). [...]
Filed under: Uncategorized | Leave a Comment
Search
-
You are currently browsing the dew wheat weblog archives for the month January, 2007.