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 characters
git remote -v | |
# View existing remotes | |
# origin https://github.com/user/repo.git (fetch) | |
# origin https://github.com/user/repo.git (push) | |
git remote set-url origin https://github.com/user/repo2.git | |
# Change the 'origin' remote's URL | |
git remote -v | |
# Verify new remote URL |
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 characters
$(document).ready(function() { | |
$(window).resize(function() { | |
var bodyheight = $(window).height(); | |
$("#sidebar").height(bodyheight); | |
}); | |
}); |
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 characters
$(window).bind('resize', function() | |
{ | |
if($(window).width() > 500) | |
$('#divID').css('width', '300px'); | |
else | |
$('divID').css('width', '200px'); | |
}); |
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 characters
First you want to start with binding the window resize event to a function of your choosing. | |
$(window).on("resize", methodToFixLayout); | |
Now you can determine the new heights and widths and make adjustments to the page from there. | |
function methodToFixLayout( e ) { | |
var winHeight = $(window).height(); | |
var winWidth = $(window).width(); | |
//adjust elements css etc..... | |
//$("#someDiv").css('someProperty',someValue based on winHeight and winWidth); | |
} | |
Without more specifics on your layout it's hard to tell what changes you'll need exactly but this should get you going in the right direction. |
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 characters
mysqlcheck -op -u<user> <db> |
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 characters
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user |
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 characters
wget google.com -O foo.html |
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 characters
style=".*?" |
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 characters
tar czf archive.tar.gz archive | |
tar xvf archive.tar.gz |