- border, border-collapse, border-width
- box-sizing
- float
- font, font-family, font-size, font-weight, line-height
- height
- letter-spacing
- margin
- max-height
| <?php | |
| $x11 = array( | |
| 'aliceblue' => array( 240, 248, 255 ), | |
| 'antiquewhite' => array( 250, 235, 215 ), | |
| 'aqua' => array( 0, 255, 255 ), | |
| 'aquamarine' => array( 127, 255, 212 ), | |
| 'azure' => array( 240, 255, 255 ), | |
| 'beige' => array( 245, 245, 220 ), | |
| 'bisque' => array( 255, 228, 196 ), | |
| 'black' => array( 0, 0, 0 ), |
| /** | |
| * Load Media Upload Scripts | |
| * | |
| * Load the JS & CSS needed for the media upload field | |
| */ | |
| function enqueue_scripts() { | |
| // Only load on widgets screen | |
| $screen = get_current_screen(); | |
| if ( $screen->id != 'widgets' ) |
| function w { | |
| if [[ $1 == "" ]]; then | |
| command cd ~/workspace/; | |
| else | |
| command cd ~/workspace/$1; | |
| fi; | |
| } | |
| <?php | |
| class DateFormat { | |
| const DATE_SHORT = 'Y-m-d'; | |
| const DATE_LONG = 'F j, Y'; | |
| const DATETIME_SHORT = 'Y-m-d H:i'; | |
| const DATETIME_LONG = 'F j, Y, g:i a'; |
| <?php | |
| Route::filter('cache', function($response = NULL) { | |
| $cname = 'response-' . Str::slug(URI::full()); | |
| if (!$response) { | |
| return Cache::get($cname); | |
| } | |
| else if ($response->status == 200) { | |
| $ctime = floor(pow(current(sys_getloadavg()) + 1, 5)); # cache for between 1 and 32 minutes | |
| Cache::put($cname, $response, $ctime); |
| <?php | |
| if ( ! function_exists( 'shortcode_exists' ) ) : | |
| /** | |
| * Check if a shortcode is registered in WordPress. | |
| * | |
| * Examples: shortcode_exists( 'caption' ) - will return true. | |
| * shortcode_exists( 'blah' ) - will return false. | |
| */ | |
| function shortcode_exists( $shortcode = false ) { | |
| global $shortcode_tags; |
| # Filename-based cache busting | |
| # taken from https://github.com/h5bp/html5-boilerplate/ | |
| # This rewrites file names of the form `name.123456.js` to `name.js` | |
| # so that the browser doesn't use the cached version when you have | |
| # updated (but not manually renamed) the file. | |
| <IfModule mod_rewrite.c> | |
| Options +FollowSymlinks | |
| RewriteEngine On |
| var scales = { | |
| 'natural major': [0,2,4,5,7,9,11,12], | |
| 'ionian': [0,2,4,5,7,9,11,12], | |
| 'major': [0,2,4,5,7,9,11,12], | |
| 'chromatic': [0,1,2,3,4,5,6,7,8,9,10,11,12], | |
| 'spanish 8 tone': [0,1,3,4,5,6,8,10,12], | |
| 'flamenco': [0,1,3,4,5,7,8,10,12], | |
| 'symmetrical': [0,1,3,4,6,7,9,10,12], | |
| 'inverted diminished': [0,1,3,4,6,7,9,10,12], | |
| 'diminished': [0,2,3,5,6,8,9,11,12], |
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| ".gitkeep", | |
| "dump.rdb" | |
| ], |