Skip to content

Instantly share code, notes, and snippets.

View Abbe98's full-sized avatar
📧
Tons of notifications here, send me an email instead.

Albin Larsson Abbe98

📧
Tons of notifications here, send me an email instead.
View GitHub Profile
@Abbe98
Abbe98 / getVideoDetails.py
Created September 25, 2017 16:13 — forked from jaivikram/getVideoDetails.py
Python gist to obtain video details like duration, resolution, bitrate, video codec and audio codec, frequency using 'ffmpeg'
#! /usr/bin/env python
import os
import sys
import re
import tempfile
def getVideoDetails(filepath):
tmpf = tempfile.NamedTemporaryFile()
os.system("ffmpeg -i \"%s\" 2> %s" % (filepath, tmpf.name))
lines = tmpf.readlines()
@Abbe98
Abbe98 / neo4j_cypher_cheatsheet.md
Created January 26, 2017 15:37 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@Abbe98
Abbe98 / output.rdf
Last active February 19, 2016 12:20 — forked from jiemakel/output.rdf
RDF example/dummy output from the OpenStreetMap API(OpenHistoricalMap).
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ohmdm="http://schemas.openhistoricalmap.org/#">
<rdf:Description rdf:about="http://www.openhistoricalmap.org/way/198179683">
<ohmdm:timestamp>2015-04-11</ohmdm:timestamp>
<ohmdm:elementType rdf:resource="http://schemas.openhistoricalmap.org/element#way"/>
<ohmdm:osmVersion>0.6</ohmdm:osmVersion>
<ohmdm:changeset>1141</ohmdm:changeset>
<ohmdm:version>8</ohmdm:version>
<ohmdm:user>Abbe98</ohmdm:user>
@Abbe98
Abbe98 / output.ttl
Created February 6, 2016 10:32 — forked from jiemakel/output.ttl
OpenHistoricalMap example RDF as turtle
@prefix ohmdm: <http://schemas.openhistoricalmap.org/#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix tags: <http://schemas.openhistoricalmap.org/tag#> .
@prefix element: <http://schemas.openhistoricalmap.org/element#> .
<http://www.platsr.se/platsr/visa/plats/id/51000000025120>