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
| Public Domain |
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
| # Save this file | |
| # mac - "~/Library/Application Support/Sublime Text 3/Packages/" | |
| # linux - "~/.config/sublime-text-3/Packages/" | |
| # NOTE! | |
| # ~/.nvm/alias/default must contain full version name. | |
| # $ nvm alias default v4.3.5 | |
| import os |
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 | |
| # Get Homebrew in the new location | |
| git clone git@github.com:Homebrew/homebrew.git ~/Homebrew | |
| # Move all your installed packages to the new location | |
| mv /usr/local/Cellar ~/Homebrew/Cellar | |
| mv /usr/local/Library ~/Homebrew/Library | |
| # Remove "root" directory files left behind | |
| rm -rf /usr/local/.git /usr/local/{.gitignore,.yardopts,CODEOFCONDUCT.md,CONTRIBUTING.md,LICENSE.txt,README.md,SUPPORTERS.md} |
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
| server { | |
| listen 80; | |
| root /var/www/craft.dev/public; | |
| index index.php index.html index.htm; | |
| server_name craft.dev; | |
| location / { | |
| try_files $uri $uri/ @rewrites; |
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
| /** | |
| * PLUGIN CODE | |
| */ | |
| // create a simple javascript plugin that gets the current video ID and sets up ads: | |
| videojs.plugin('setupAds', function() { | |
| 'use strict'; | |
| var player = this, | |
| currentVideoId = player.el().getAttribute('data-video-id'); | |
| player.ima3({ |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>video.js HLS Plugin Example</title> | |
| <link href="node_modules/video.js/dist/video-js/video-js.css" rel="stylesheet"> | |
| <!-- video.js --> | |
| <script src="node_modules/video.js/dist/video-js/video.js"></script> |