Skip to content

Instantly share code, notes, and snippets.

@carolineschnapp
carolineschnapp / related-products.liquid
Last active February 10, 2025 17:37
Related Products — to add to product.liquid
@nazgob
nazgob / hello_node.js
Created April 24, 2011 18:20
node.js echo request server
var http = require('http'),
sys = require('sys');
var server = http.createServer(function(request, response) {
request.addListener('end', function() {
response.writeHead(200, {
'Content-Type': 'text/plain'
});
response.write(sys.inspect(request));
response.end();
@unruthless
unruthless / CSS for <sup> and <sub>
Created May 26, 2010 01:31
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position