This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Show CSS breakpoint labels for various screen widths | |
*/ | |
body:after | |
{ | |
content: 'default'; | |
position: fixed; | |
bottom: 0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* BBEdit SQL format text filter | |
* For a file with SQL query, send page contents to SQL format API and repopulate file with results | |
*/ | |
$str = file_get_contents('php://stdin'); | |
$str = str_replace(array("\n", "\r", "\t"), ' ', $str); | |
$str = preg_replace('~ +~', ' ', $str); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* BBEdit reset PHP links text filter | |
* When editing attributes for <a> tag with PHP link (<a href="<?=FOO?>">), reset '<?=...?>' to '<?=...?>' | |
*/ | |
while($l = fgets(STDIN)) | |
{ | |
$l = preg_replace('~ (action|href)="<\?=(\$*[^\?]+)\?>"~',' \1="<?=\2?>"',$l); | |
echo $l; |