View subr
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 | |
wget -O /usr/local/bin/subr https://raw.githubusercontent.com/aurora/rmate/master/rmate | |
chmod +x /usr/local/bin/subr | |
if ! which subl 2>&1 > /dev/null; then | |
ln -s /usr/local/bin/subr /usr/local/bin/subl | |
fi |
View hackerWeb.js
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
javascript:(function hackerWeb (len) { | |
if (window.location.href.match('https://news.ycombinator.com')) { | |
window.location.href = window.location.href.replace('https://news.ycombinator.com/item?id=', 'http://cheeaun.github.io/hackerweb/#/item/'); | |
} else { | |
var a = document.querySelectorAll('a'); | |
if (len != a.length) { | |
Array.prototype.forEach.call(a, function(e) { | |
var href = e.getAttribute('href'); | |
href && e.setAttribute('href', href.replace('https://news.ycombinator.com/item?id=', 'http://cheeaun.github.io/hackerweb/#/item/')); | |
}); |
View gender.txt
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
Emma Watson seems nervous at first, but I can see coherence in her speech. She starts with her own experience with her family, her school then her confession of a feminist with her male friend then to a bigger picture: Human rights, where people, men an women perceive the same rights, same opportunities in their life. | |
As she stated in her speech, no country at the moment achieves gender equality and it doesn't seem to change much from the talk of Hilary Clinton in 1997. She also mentions that it maybe due to the fact that there was too few men who participate the campaigns. | |
Having a look on the map of HeForShe, I found however, the more men's votes in US and Europe, the less votes on Africa. Is this the answer why do we have Angela Merkel as Chancellor of Germany or Marissa Mayer as CEO of Yahoo! when here are many women out there doing the job no men do in Jordan or even having no ID card in Guatemala? |
View fortran-ampersand.el
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
(defun fortran-insert-f90-continuation () | |
"Insert continuation symbol (ampersand &) that match both fixed and | |
free format. | |
If the inserted ampersand is the first non-blank character, just | |
insert it, otherwise, insert it at column 72 (zero-based index) | |
and insert another ampersand at column 6 on next line. | |
Also indent next line if `electric-indent-mode` is on." | |
(interactive) |
View zshrc
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 t () { | |
INTERFACE=Wi-Fi | |
sudo networksetup -setsocksfirewallproxy $INTERFACE 127.0.0.1 9050 off | |
sudo networksetup -setsocksfirewallproxystate $INTERFACE on | |
if ! [ -z $1 ]; then | |
mv /usr/local/etc/tor/torrc{,.t} 2>&1 > /dev/null | |
echo "ExitNodes {$1}" | tee /usr/local/etc/tor/torrc | |
fi | |
tor | |
if ! [ -z $1 ]; then |
View PIV.F90
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
DO IPIV = 1, NPIV | |
WHERE (VALID(:,:,IPIV)==0) | |
UMOY = UMOY + U(:,:,IPIV) | |
VMOY = VMOY + V(:,:,IPIV) | |
UU = UU + U(:,:,IPIV)**2 | |
VV = VV + V(:,:,IPIV)**2 | |
UV = UV + U(:,:,IPIV)*V(:,:,IPIV) | |
NVALID = NVALID + 1 | |
END WHERE | |
END DO |
View dura.js
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
console.log((function (match) { | |
a = document.querySelectorAll('a'); | |
matched = [].filter.call(a, function (e) { return e.innerText.match(match); }); | |
link = matched.map(function (e) { return window.location.href + e.getAttribute('href'); }); | |
return link.join("\n"); | |
})(/Horri/i)); | |
View git.sh
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
git -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now gc |
View horri.js
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
[].filter.call(document.querySelectorAll('div.latest a'), function(e) { | |
return /^magnet/.test(e.getAttribute('href')); | |
}).filter(function(e) { | |
return /720p/.test(e.parentNode.parentNode.parentNode.innerText); | |
}).map(function (e) { | |
return e.getAttribute('href'); | |
}).join('\n'); |
View .spacemacs.el
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
(mapc 'disable-theme custom-enabled-themes) |
OlderNewer