-
-
Save caseywatts/f9be22834ad05e43ea8d3a0717849deb to your computer and use it in GitHub Desktop.
Revisions
-
caseywatts revised this gist
Sep 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,4 @@ This helps flip between a page the development server and the same page on the p # Installation - create a new bookmark in your browser - name: "flip" - url: paste something like the code below -
caseywatts revised this gist
Sep 20, 2018 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,3 +5,8 @@ Other gists & tricks: http://caseywatts.com/gists-and-tricks # Flipit This helps flip between a page the development server and the same page on the production server. Useful for comparing css or functionality changes quickly. # Installation - create a new bookmark in your browser - name: "flip" - url: copy-paste some code from below -
caseywatts revised this gist
Sep 20, 2018 . 2 changed files with 12 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ javascript:(function() { var host = window.location.hostname; var path = window.location.pathname; var search = window.location.search; if (host !== "dashboard.heroku.com") { window.open("https://dashboard.heroku.com" + path + search) } else { window.open("http://localhost:4200" + path + search) } })(); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,22 @@ javascript: (function() { var host = window.location.hostname; var path = window.location.pathname; var port = window.location.port; var search = window.location.search; var onDashboard = host === "dashboard.heroku.com" || (host === "localhost" && port === "4200"); if (onDashboard) { if (host !== "dashboard.heroku.com") { window.open("https://dashboard.heroku.com" + path + search); } else { window.open("http://localhost:4200" + path + search); } } else { if (host !== "elements.heroku.com") { window.open("https://elements.heroku.com" + path + search); } else { window.open("http://localhost:5000" + path + search); } } })(); -
caseywatts revised this gist
Jun 10, 2017 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ Link to this page: http://caseywatts.com/flipit Other gists & tricks: http://caseywatts.com/gists-and-tricks # Flipit This helps flip between a page the development server and the same page on the production server. Useful for comparing css or functionality changes quickly. -
caseywatts revised this gist
Jun 10, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ This helps flip between a page the development server and the same page on the production server. Link to this page: http://caseywatts.com/flipit Other gists & tricks: http://caseywatts.com/gists-and-tricks -
caseywatts revised this gist
Feb 12, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ This helps flip between a page the development server and the same page on the production server. Link to this page: http://caseywatts.com/flipit -
caseywatts revised this gist
Feb 12, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,3 @@ This helps flip between a page the development server and the same page on the production server. Link: http://caseywatts.com/flipit -
caseywatts revised this gist
Feb 12, 2017 . 2 changed files with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ javascript:(function() { var host = window.location.hostname; var path = window.location.pathname; var port = window.location.port; if (host !== "dashboard.heroku.com") { window.open("https://dashboard.heroku.com" + path) } else { window.open("http://localhost:4200" + path) } })(); File renamed without changes. -
caseywatts revised this gist
Feb 12, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ This helps flip between a page the development server and the same page on the production server. -
caseywatts created this gist
Nov 10, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ javascript:(function() { var host = window.location.hostname; var path = window.location.pathname; var port = window.location.port; var onDashboard = (host === "dashboard.heroku.com" || (host === "localhost" && port === "4200")); if (onDashboard) { if (host !== "dashboard.heroku.com") { window.open("https://dashboard.heroku.com" + path) } else { window.open("http://localhost:4200" + path) } } else { if (host !== "elements.heroku.com") { window.open("https://elements.heroku.com" + path) } else { window.open("http://localhost:5000" + path) } } })();