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
{ | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3694.0 Mobile Safari/537.36 Chrome-Lighthouse", | |
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36", | |
"benchmarkIndex": 1320 | |
}, | |
"lighthouseVersion": "5.7.0", | |
"fetchTime": "2020-04-22T15:36:12.990Z", | |
"requestedUrl": "https://realtyinorlando.com/", |
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
# add-whitespace-only.bash | |
for fname in $(git diff --name-only --diff-filter=ACMR --full-index HEAD) | |
do | |
diff=$(git diff -w --ignore-blank-lines --exit-code $fname) | |
if [ $? -eq 0 ]; then | |
echo "only whitespace diff on $fname ! adding to git..." | |
git add $fname | |
else | |
echo "diff on $fname!" | |
fi |
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
function tabs_or_spaces () { | |
spaces = $(grep -P '^ *' "$@" | wc -l); | |
tabs = $(grep -P '^\t' "$@" | wc -l); | |
echo "Number of Spaces: $spaces" | |
echo "Number of Tabs: $tabs" | |
} |
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
------------------------------------------------------------------------- | |
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
Latest version of this file (in English) is usually at: | |
http://sed.sourceforge.net/sed1line.txt | |
http://www.pement.org/sed/sed1line.txt | |
This file will also available in other languages: | |
Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html |
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
------------------------------------------------------------------------- | |
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
Latest version of this file (in English) is usually at: | |
http://sed.sourceforge.net/sed1line.txt | |
http://www.pement.org/sed/sed1line.txt | |
This file will also available in other languages: | |
Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html |
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
<?php | |
// Set content type and disable encoding | |
header('Content-Type: text/html; charset=UTF-8'); | |
while (@ob_get_level()) ob_end_flush(); | |
ob_start(); | |
// Send some content | |
function padding () { |
Prototypes:
- Marvel - https://marvelapp.com/
- Invisionapp - http://invisionapp.com/
- Origami (Facebook) - https://facebook.github.io/origami/
- Codiqa - https://codiqa.com/
- Precursor - https://precursorapp.com/
- Flinto - https://www.flinto.com/
- Framer - http://framerjs.com/
Mobile:
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
#!/bin/bash | |
# usage: | |
# cd ~/your-repo | |
# git filter-branch --prune-empty --tree-filter ~/rewrite-history.bash | |
if [[ ! -e httpdocs ]]; then | |
mkdir -p httpdocs | |
git ls-tree --name-only $GIT_COMMIT | grep -v ^'.gitignore\|.gitattributes'$ | xargs -I files mv files httpdocs | |
fi |
- https://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
- http://stackoverflow.com/questions/4042816/how-can-i-rewrite-history-so-that-all-files-except-the-ones-i-already-moved-ar
- http://stackoverflow.com/questions/2797191/how-to-split-a-git-repository-while-preserving-subdirectories/18261585#18261585
- http://unix.stackexchange.com/questions/37313/how-do-i-grep-for-multiple-patterns
- https://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html
git filter-branch --prune-empty --tree-filter '
if [[ ! -e httpdocs ]]; then
mkdir -p httpdocs
NewerOlder