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
| #!/bin/bash | |
| # A simple script to recursively resample a bunch of files | |
| # in a directory using SoX. Only certain file extensions (mp3, aac, | |
| # flac, wav, aiff) are considered. | |
| # | |
| # It takes 2 command line options: `indir` and `outdir`. | |
| # The destination (`outdir`) is relative to the current | |
| # directory of where you were when the script was run. | |
| # |
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.isElementInViewport = function(el) { | |
| //special bonus for those using jQuery | |
| if (typeof jQuery === "function" && el instanceof jQuery) { | |
| el = el[0]; | |
| } | |
| if (typeof el === 'undefined') { | |
| return false; | |
| } |
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
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
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
| # Source: http://choyan.me/oh-my-zsh-elementaryos/ | |
| sudo apt-get update && sudo apt-get install -y curl vim git zsh | |
| curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash | |
| sudo chsh -s $(which zsh) $(whoami) |