- danbri edit to try using http://schema.org/docs/tree.jsonld instead of http://wafi.iit.cnr.it/webvis/tmp/schema.org.json
- see http://bl.ocks.org/danbri/1c121ea8bd2189cf411c
- based on http://bl.ocks.org/fabiovalse/63fba792a7922d03243a
- this version uses schema.org draft site, sdo-phobos and includes extensions
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
| license: gpl-3.0 |
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 | |
| # From: https://forums.plex.tv/discussion/comment/1059738/#Comment_1059738 | |
| wget -q -O- https://plex.tv/downloads/1/archive | grep "downloads.plex.tv.*amd64.deb" | head -1 | sed -e "s/.*https/https/" -e "s/amd64.deb.*/amd64.deb/" | xargs wget -q -nc; ls -t *amd64.deb | head -1 | xargs dpkg -i -E |
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
| for ($i = 1; $i <= 100; $i++) { | |
| if ($i % 3 == 0) { | |
| echo "Fizz"; | |
| } | |
| elseif ($i % 5 == 0) { | |
| echo "Buzz"; | |
| } | |
| else { | |
| echo $i; | |
| } |
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
| # http://stackoverflow.com/questions/1947430/git-remove-directory | |
| # Remove from cache | |
| git rm -r -f --cached DIR_NAME | |
| # Then add DIR_NAME to .gitignore | |
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 | |
| echo "apt-get update & upgrade wizard" | |
| echo "Would you like to assume yes? [y/n]" | |
| read input_force | |
| if [ $input_force = y ] | |
| then | |
| force="--yes" | |
| fi |
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 | |
| echo "apt-get update & upgrade wizard" | |
| echo "Would you like to assume yes? [y/n]" | |
| read input_force | |
| if [ $input_force = y ] | |
| then | |
| force="--yes" | |
| fi |
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
| // Condense triple line breaks | |
| // | |
| // Find | |
| /\n\n\n+/ | |
| // Replace | |
| \n\n | |
| // Remove EOL whitespace | |
| // | |
| // Find |
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
| // From: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/ | |
| // Your app's root module... | |
| angular.module('MyModule', [], function($httpProvider) { | |
| // Use x-www-form-urlencoded Content-Type | |
| $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'; | |
| /** | |
| * The workhorse; converts an object to x-www-form-urlencoded serialization. | |
| * @param {Object} obj |
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
| # To hide future changes | |
| git update-index --assume-unchanged filepath | |
| # To unhide changes | |
| git update-index --no-assume-unchanged filepath |