Skip to content

Instantly share code, notes, and snippets.

View rogargon's full-sized avatar
👷‍♂️
#BUIDLing 🏗

Roberto García rogargon

👷‍♂️
#BUIDLing 🏗
View GitHub Profile
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dbp: <http://dbpedia.org/property/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
#################################################################
# Object Properties
@rogargon
rogargon / docker-compose.yml
Last active August 26, 2020 14:08
A docker-compose.yml to run and configure the Docker image of the Teku Eth2 client and complete the Eth2 Launch Pad for Medalla testnet
version: "2"
services:
teku_node:
image: pegasyseng/teku:develop
environment:
- TEKU_NETWORK=medalla
- TEKU_ETH1_DEPOSIT_CONTRACT_ADDRESS=07b39F4fDE4A38bACe212b546dAc87C58DfE3fDC # Eth2 Medalla testnet deposit contract
- TEKU_ETH1_ENDPOINT=https://goerli.infura.io/v3/<INFURA_TOKEN>
- TEKU_VALIDATORS_KEY_FILES=/opt/teku/data/validator_keys/keystore.json
- TEKU_VALIDATORS_KEY_PASSWORD_FILES=/opt/teku/data/validator_keys/password.txt
@rogargon
rogargon / EEGEmotionReviewKeywords.csv
Created September 9, 2019 15:51
EEG & Emotion Literature Review Keywords
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"Area";"Keyword";"Parent";"Repetitions"
"other areas";"genetic algorithm";"artificial intelligence";"4"
"Computer Science";"machine learning";"artificial intelligence";"4"
"other areas";"machine learning";"artificial intelligence";"3"
"Neuroscience";"deep learning";"artificial neural network";"2"
"other areas";"deep learning";"artificial neural network";"3"
"Computer Science";"extreme learning machine";"artificial neural network";"2"
"Neuroscience";"extreme learning machine";"artificial neural network";"2"
"other areas";"feedforward neural network";"artificial neural network";"1"
"other areas";"pattern classification";"artificial neural network";"2"
@rogargon
rogargon / README.md
Last active April 5, 2019 12:39 — forked from danbri/README.md
Schema.org hierarchy Sunburst
@rogargon
rogargon / gist:0c79561a978df34a6d59
Created July 14, 2015 18:35
Regular Expression for RDF N-Quads with 4 capturing groups for subject, predicate, object and graph
(<[^\s]+>|_:(?:[A-Za-z][A-Za-z0-9\-_]*))\s+(<[^\s]+>)\s+(<[^\s]+>|_:(?:[A-Za-z][A-Za-z0-9\-_]*)|\"(?:(?:\"|[^"])*)\"(?:@(?:[a-z]+[\-A-Za-z0-9]*)|\^\^<(?:[^>]+)>)?)\s+(<[^\s]+>).*
#!/bin/sh
dir="/opt/sparqlverse"
startcmd="$dir/start.sh"
stopcmd="$dir/stop.sh"
process="sbx_go"
name=`basename $0`
pid_file="$dir/logs/$name.pid"
stdout_log="$dir/logs/$name.log"
stderr_log="$dir/logs/$name.err"
@rogargon
rogargon / incidenciesGML.xml
Last active August 29, 2015 14:01
May 15th 2014 dump of the Catalonia Traffic Alerts dataset by Dades Obertes / Generalitat de Catalunya (http://dadesobertes.gencat.cat/ca/cercador/detall-cataleg/?id=430)
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml" xmlns:cite="http://www.opengeospatial.net/cite"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengeospatial.net/cite http://10.136.29.23:8080/sct-gis/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=cite%3Amct2_v_afectacions_data http://www.opengis.net/wfs http://10.136.29.23:8080/sct-gis/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
<gml:featureMember>
<cite:mct2_v_afectacions_data fid="mct2_v_afectacions_data.fid--16ab5cb2_145fb9cb23b_2587">
<cite:geom>
@rogargon
rogargon / XQueryHelper.java
Last active August 29, 2015 14:01
Example of using XQuery to process and input URL and create objects from the XQuery results.
package cat.udl.eps.softarch;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
@rogargon
rogargon / gist:5664984
Last active May 21, 2016 17:36
Example of restaurant_detail.html page including RDFa
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-2.2.3.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/static/style/base.css" />
<title>MyRestaurants - La Taberna de la Cuarta Esquina</title>
</head>
@rogargon
rogargon / countries.json
Last active April 18, 2023 16:53
List of countries as a JSON array of strings
["United States", "Canada", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and/or Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Cook Islands", "Costa Rica", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "F