# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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
| -- AppleScript that mounts an AFP service (e.g. a Synology NAS Diskstation) then | |
| -- searches for any .avi or .mkv files in the requested volume and converts all | |
| -- the files it finds to .mp4 via HandbrakeCLI (which must be installed on your | |
| -- machine at /Applications/HandbrakeCLI) | |
| -- IMPORTANT: You may need to make sure your NAS does not sleep until ~4 hours of | |
| -- inactivity has passed so it doesn't interrupt the mp4 conversion process of | |
| -- this script. | |
| -- Based loosely on the script published at http://cybernetnews.com/batch-convert-videos-handbrake-applescript/ |
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
| <?php | |
| /* | |
| * Virtual Themed Page class | |
| * | |
| * This class implements virtual pages for a plugin. | |
| * | |
| * It is designed to be included then called for each part of the plugin | |
| * that wants virtual pages. | |
| * | |
| * It supports multiple virtual pages and content generation functions. |
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
| <?php | |
| session_start(); | |
| if (!isset($_SESSION['names'])) | |
| $_SESSION['names'] = array("jane","jim","john","emily","bill","sara"); | |
| class Name | |
| { | |
| public $id; |
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.
If you plan on switching between different branches (e.g. git checkout master-experiment
then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your
.gitignore and is not part of your master branch).
NewerOlder