Skip to content

Instantly share code, notes, and snippets.

View tomalex0's full-sized avatar

Thomas Alexander tomalex0

  • Universal Music Group
  • Los Angeles, California
View GitHub Profile
@stonehippo
stonehippo / adding-HA-hack-to-all-children.css
Created March 8, 2012 01:52
Adding Webkit native scrolling to an element
.scrolling-element-class * {
-webkit-transform: translate3d(0,0,0);
}
@ocean90
ocean90 / box-shadow.html
Last active January 30, 2026 20:04
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@asadawan
asadawan / overrideChangePage.js
Created July 26, 2011 06:53
Hack to override the the changePage handler in jQuery Mobile, so data can be passed to the "page" using a "__" in the data-url and appending the data to be passed after this delimiter. The nice part of this is that the resulting url can be used to bookmar
// Copyright: Asad Awan
// license: Apache
var utils: {
overrideChangePage: function() {
var cp = $.mobile.changePage;
$.mobile.changePage = function(url, opts) {
if (typeof(url) == 'string') {
var o = url.split('#');
if (o.length == 2) {
@ryanflorence
ryanflorence / static_server.js
Last active July 3, 2025 03:26
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables