Convert LESS includes to SCSS.
Regex is PCRE. Adjust for your flavor as needed.
Now also handles includes in one-liners (e.g. a { .fancy-outline }).
Search
(\{ *|^ +)\.([\w_-]+(?:[(;]| *\}))
Replace
\1@include \2
| /* Standard CSS comments are included in the output */ | |
| input[type="text"], input[type="password"], input[type="email"] { | |
| padding: 3px 5px; | |
| line-height: 20px; | |
| } | |
| /* Nesting is useful for grouping related rules, and reducing redundancy */ | |
| .fancy-list { | |
| border: 1px solid black; | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- | |
| BBEdit Language Module for CoffeeScript | |
| Put this file in | |
| ~/Library/Application Support/BBEdit/Language Modules | |
| or equivalent. | |
| Based off of the examples shipped in the BBEdit SDK. |
Convert LESS includes to SCSS.
Regex is PCRE. Adjust for your flavor as needed.
Now also handles includes in one-liners (e.g. a { .fancy-outline }).
Search
(\{ *|^ +)\.([\w_-]+(?:[(;]| *\}))
Replace
\1@include \2
| a, | |
| button { | |
| + a, | |
| + button { | |
| margin-left: 5px; | |
| } | |
| } |
| @for $i from 1 through 10 { | |
| .tree_depth_#{$i} { padding-left: 18px * $i } | |
| } |
| var Mail = Application('Mail') | |
| , matches | |
| , pad; | |
| pad = function (input, length, fill) { | |
| if (!fill || fill.length > 1) { | |
| fill = (typeof input === 'string') ? ' ' : '0'; | |
| } | |
| input = String(input); | |
| return ( |
In OS X 10.10 (Yosemite), Apache has been upgraded from 2.2 to 2.4, which includes some significant changes, and the default config file has changed quite a bit. When you install Yosemite, it renames your old config to httpd.conf~previous, and unfortunately your old one won't work anymore.
To get Apache working again, edit the following files:
Uncomment:
| // Transition | |
| // Vendor-prefixed `transition` with individual properties also vendor-prefixed | |
| // Takes a comma-separated list of properties to be transitioned. | |
| // Each property looks like this: [property] [time] [timing-function] | |
| // Property name must come first. The `time` and `timing-function` values are optional. | |
| @mixin transition($properties...) { | |
| $prefixes: webkit moz standard; | |
| /* | |
| Utility for reading/writing nested object properties | |
| - Read: pathVar(obj, 'some.path') | |
| - Write: pathVar(obj, 'some.path', newVal) | |
| To automatically create the path when writing (similar to `mkdir -p`): | |
| pathVar(obj, 'some.new.path', newVal, true) | |
| Automatic path creation will fail if any part of the path already exists and | |
| is not an object. |
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user |