Skip to content

Instantly share code, notes, and snippets.

# Test URI
# Ignore netbeans folder
nbproject/*
# Ignore private folder
/app/private/*
!/app/private/empty
# Ignore packed asset files
/app/webroot/css/packed/*
<?php
/**
* Formats a JSON string for pretty printing
*
* @param string $json The JSON to make pretty
* @param bool $html Insert nonbreaking spaces and <br />s for tabs and linebreaks
* @return string The prettified output
* @author Jay Roberts
*/
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"
server {
listen 80;
server_name adtweb;
# root directive should be global
root /Users/drinkspiller/Sites/adt_web/;
index index.php;
location / {
@drinkspiller
drinkspiller / grid.ts
Created August 26, 2024 19:45
Creates a grid that returns an array for laying out objects in a grid.
/** Defines a Point. */
export interface Point {
x: number;
y: number;
}
/**
* Creates a grid that returns an array for laying out objects in a grid.
*
* @param columns An integer representing the number of columns to be created