This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$subject = "=?UTF-8?B?" . base64_encode($subject) . "?="; | |
// mail( ... ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example use: | |
# rake favicons["../img/origin.png"] | |
# | |
# Output: | |
# ./apple-touch-icon-114x114-precomposed.png | |
# ./apple-touch-icon-114x114.png | |
# ./apple-touch-icon-57x57-precomposed.png | |
# ./apple-touch-icon-57x57.png | |
# ./apple-touch-icon-72x72-precomposed.png | |
# ./apple-touch-icon-72x72.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @group valignfix */ | |
/* *************************************** | |
valignfix, by Anders Ytterström @ madr.se | |
**************************************** */ | |
/* | |
HTML fixture: | |
.valign | |
%div | |
%div | |
%h1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BPs = {}; | |
var AnobiiBadge = (function(){ | |
var BADGE_URL = 'http://widgets.anobii.com/badge_result?settingId=4dd4b3916a743731'; | |
var bodyElm = document.getElementsByTagName('body')[0]; | |
return { | |
init: function(){ | |
var script = document.createElement('script'); | |
script.src = BADGE_URL; | |
script.type = 'text/javascript'; | |
bodyElm.appendChild(script); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'net/https' | |
require "rexml/document" | |
require "date" | |
require 'net/smtp' | |
# delicious | |
@username = "YOU" | |
@password = "secr3t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'net/https' | |
require "rexml/document" | |
require "date" | |
require 'net/smtp' | |
# delicious | |
@username = "YOU" | |
@password = "secr3t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, curly:true, browser:true, indent:2, maxerr:50 */ | |
/*! | |
front.js | |
(c) 2011 Anders Ytterström | |
front.js may be freely distributed under the MIT license. | |
TODO: pushState support | |
*/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
light-weight click listener, v 1.0 | |
Copyright (c) 2010 by madr <http://madr.se> | |
Licensed under the MIT license: http://en.wikipedia.org/wiki/MIT_License | |
*/ | |
/* | |
Usage: | |
Alter the below snippet for your needs and put the modified snippet in a js-file or a <script> and add it to your document. If your webapp depends on libraries or other resources to load, you better keep that in mind. | |
*/ | |
(function(document, undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function adate(daysFromNow) { | |
var date, datestr, mm, dd; | |
datestr = new Date().getTime(); | |
if (!!daysFromNow) { | |
datestr += (1000 * 60 * 60 * 24 * daysFromNow); | |
} | |
date = new Date(datestr); | |
mm = date.getMonth() + ''; | |
if (mm.length == 1) { | |
mm = '0' + mm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* vertical ruler using pseudo-elements */ | |
@mixin columnseparator { | |
@extend .relative; | |
&:before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
width: 3px; | |
background: #eee; |
OlderNewer