Skip to content

Instantly share code, notes, and snippets.

@dazld
dazld / dabblet.css
Created May 2, 2012 11:58 — forked from anonymous/dabblet.css
Untitled
body {
width: 580px;
margin: 0 auto;
font-family: sans-serif;
font-size: 12px;
color: #666;
}
.fan {
position: relative;
width: 120px;
@dazld
dazld / dabblet.css
Created May 2, 2012 12:44 — forked from anonymous/dabblet.css
these rules only apply to first fan
body {
width: 580px;
margin: 0 auto;
font-family: sans-serif;
font-size: 12px;
color: #666;
}
.fan {
position: relative;
width: 120px;
@dazld
dazld / dabblet.css
Created May 19, 2012 12:16
these rules only apply to first fan
body {
width: 580px;
margin: 0 auto;
font-family: sans-serif;
font-size: 12px;
color: #666;
}
.fan {
position: relative;
width: 120px;
@dazld
dazld / dt.js
Created July 1, 2012 19:31
dailytasks
getDailyTasks: function(dayObject,project,user,area,include_someday){
if (area === undefined) {
area = '*';
};
var related_tasks = [];
var my_tasks = [];
@dazld
dazld / gist:3053525
Created July 5, 2012 12:54
cloud animation
@-webkit-keyframes clouds {
0% { background-position: 0 0;}
50% { background-position: 100% 100%;}
100%{ background-position: 0 0;}
}
#clouds {
position: absolute;
top: 0;
left: 0;
@dazld
dazld / LICENSE.txt
Created July 6, 2012 10:09 — forked from tsaniel/LICENSE.txt
Konami Code easter egg
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// bind to the dialog open event
$("#overlay").bind('open_dialog.custom',function(){
// preselect first value in drop down, or current playlist, if we're playing something
if (app.current_playlist) {
$(".dialog select").val(app.current_playlist.index);
} else if ($(".dialog select option").length > 1) {
$(".dialog select").val($(".dialog option:nth-child(2)").attr('value'));
}
});
JTdCJTIydGl0bGUlMjI6JTIyQm9zcyUyMGNob29uYWdlcyUyMiwlMjJkZXNjcmlwdGlvbiUyMjolMjIlMjIsJTIydHJhY2tzJTIyOiU1QiU3QiUyMmtpbmQlMjI6JTIydHJhY2slMjIsJTIyaWQlMjI6NTg3ODkyNCwlMjJjcmVhdGVkX2F0JTIyOiUyMjIwMTAvMTAvMDclMjAxMTowMjowNSUyMCswMDAwJTIyLCUyMnVzZXJfaWQlMjI6MTEyNDAyMSwlMjJkdXJhdGlvbiUyMjoyOTY0MTksJTIyY29tbWVudGFibGUlMjI6dHJ1ZSwlMjJzdGF0ZSUyMjolMjJmaW5pc2hlZCUyMiwlMjJvcmlnaW5hbF9jb250ZW50X3NpemUlMjI6NzgzODU1NjAsJTIyc2hhcmluZyUyMjolMjJwdWJsaWMlMjIsJTIydGFnX2xpc3QlMjI6JTIyJTVDJTIySm9uJTIwSG9wa2lucyU1QyUyMiUyME1vbnN0ZXJzJTIwRG9taW5vJTIyLCUyMnBlcm1hbGluayUyMjolMjJqb24taG9wa2lucy1tb25zdGVycy10aGVtZSUyMiwlMjJzdHJlYW1hYmxlJTIyOnRydWUsJTIyZW1iZWRkYWJsZV9ieSUyMjolMjJhbGwlMjIsJTIyZG93bmxvYWRhYmxlJTIyOmZhbHNlLCUyMnB1cmNoYXNlX3VybCUyMjolMjJodHRwOi8vaXR1bmVzLmFwcGxlLmNvbS9nYi9hbGJ1bS9tb25zdGVycy1vcmlnaW5hbC1tb3Rpb24tcGljdHVyZS9pZDQwNTk4NDc0NiUyMiwlMjJsYWJlbF9pZCUyMjpudWxsLCUyMnB1cmNoYXNlX3RpdGxlJTIyOm51bGwsJTIyZ2VucmUlMjI6JTIyU291bmR0cmFjayUyMiwlMjJ0aXRsZSUyMjolMjJKb24lMjBIb3BraW5zJTIwLSUyME1vbnN0ZXJzJTIwVGhlbWUlMjIsJTIyZGVzY3Jp
@dazld
dazld / app.js
Created October 17, 2012 16:14
sample require call
require.config({
paths: {
"templates":"../templates",
"jquery":"http://code.jquery.com/jquery.min",
"underscore":"lib/lodash",
"backbone":"lib/backbone",
"icanhaz":"lib/icanhaz",
"models":"models",
"collections":"collections",
"template_loader":"resource/template_loader"
define(function(require,exports,module){
console.log(exports);
var app = {
bus: {},
go: function(){
this.bus = _.extend(this.bus,Backbone.Events);
$("#page").append(ich.structure());
}