Skip to content

Instantly share code, notes, and snippets.

@reachym
reachym / owl.xml
Created December 2, 2015 21:25
OWL example
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:plants="http://www.linkeddatatools.com/plants#">
<!-- OWL Header Example -->
<owl:Ontology rdf:about="http://www.linkeddatatools.com/plants">
<dc:title>The LinkedDataTools.com Example Plant Ontology</dc:title>
@swilcox
swilcox / _mgraph.md
Last active October 6, 2017 21:08
Multi-graph example widget for Shopify's Dashing dashboard

Multi-graph widget for Dashing

Description

Multi-graph widget for Shopify's dashing to display a comparison style graph (or stacked with a minor modification). Obviously, this is an example that is built heavily on the existing graph widget that is provided with dashing. This widget provides a more clear framework for expanding the graph for multiple series (or nodes) of data. After seeing the example code, it should be fairly easy to expand to 3 or more overlaid graphs (although colors might get tricky). And really, this is just a slightly greater use of the cool rickshaw graphs.

To use this widget:

# .1: GET API SERVERS
$ oc config view | grep server
server: https://127.0.0.1:8443
server: https://192.168.65.2:8443
server: https://192.168.99.100:8443
server: https://api.starter-us-east-1.openshift.com:443
$ oc config view | grep server | cut -f 2- -d ":"
https://127.0.0.1:8443
https://192.168.65.2:8443
@renatomattos2912
renatomattos2912 / unzip tar.gz
Created March 3, 2014 16:52
Unzip tar.gz on mac from terminal
gunzip -c foo.tar.gz | tar xopf -
@tristan-k
tristan-k / tesseract brew tar
Created July 6, 2012 15:31
tesseract brew tar
$ brew install tesseract --all-languages
Warning: Experimental support for using the "Command Line Tools" without Xcode.
Some formulae need Xcode to be installed (for the Frameworks not in the CLT.)
==> Downloading http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
Already downloaded: /Library/Caches/Homebrew/tesseract-3.01.tar.gz
==> /bin/sh autogen.sh
==> ./configure --prefix=/usr/local/Cellar/tesseract/3.01
==> make install
==> Downloading http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.heb.tar.gz
######################################################################## 100,0%
@arguile-
arguile- / gist:2510227
Created April 27, 2012 15:36
Basic Curl deploy file to Nexus
#!/bin/sh
SERVER="http://localhost:8081"
URL="$SERVER/nexus/service/local/artifact/maven/content"
REPO="sandbox"
USER="admin:admin123"
group=$1
artifact=$2
@rondinif
rondinif / command-line-slim-setup-osx-10_13_6-high-sierra.md
Last active October 14, 2018 01:16
Install Slim Framework with the Composer dependency manager on native macOS.
@nmarley
nmarley / curl-websocket.sh
Created September 8, 2017 09:50 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
@edsu
edsu / gist:dd92a2964e95782ce675
Last active April 12, 2019 20:59
Here's an example of the API call that WikiData's search box uses for suggesting entities. The suggestion is based on the text "ch" in the search URL query parameter.
curl --silent 'https://www.wikidata.org/w/api.php?action=wbsearchentities&search=ch&format=json&language=en&type=item&continue=0' | python -m json.tool
{
"search": [
{
"aliases": [
"encyclopaedia",
"encyclop\u00e6dia"
],
"description": "type of reference work",
"id": "Q5292",