load jquery in browser console

1.9.1 version

javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js';(d.head||d.documentElement).appendChild(s)})(document);

last version

javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='http://code.jquery.com/jquery.js';(d.head||d.documentElement).appendChild(s)})(document);
view raw script.md hosted with ❤ by GitHub

bower can't fetch components(very very slow)

這最主要原因就是bower server只接受"https://"不接受"git://"來的protocol,解決方式就是修改git設定

git config --global url."https://".insteadOf git://

相關連結
bower github wiki - https://github.com/bower/bower/wiki/FAQ#how-can-i-use-bower-with-only-https-urls-and-not-git

bower error status code of git: 128

這其實是bower要更新到local cache中發生衝突,最主要的目的就是要把cache清掉,解決辦法可分為兩種


1. 用bower的功能直接將cache清掉
bower cache-clean

2. 手動將整個bower所有的cache清掉(MAC 路徑)
rm -rf ~/.bower


但如果是下載當中一直卡住請參考下連結
http://iskens.blogspot.tw/2013/06/bower-cant-fetch-componentsvery-very.html

相關連結
https://github.com/bower/bower/issues/50