Skip to content

Instantly share code, notes, and snippets.

Avatar
🦁
ROAR!

Mohamed sangimed

🦁
ROAR!
View GitHub Profile
@sangimed
sangimed / Z Command example
Last active Mar 27, 2019
Z command example
View Z Command example
# Accessing to some directories for the first time.
cd Repositories/watc/src/main/java/com/mohamedibrihen/watc/service
cd ../endpoint
cd ../utils
# Accessing quickly via the Z command
sangimed@ubuntu ~ z watc service
sangimed@ubuntu ~ /Repositories/watc/src/main/java/com/mohamedibrihen/watc/service
sangimed@ubuntu ~ z endpoint
@sangimed
sangimed / ProcedureQueries.java
Created Oct 4, 2018
Call a plsql procedure with JPA in Spring
View ProcedureQueries.java
package mypackage;
import javax.persistence.EntityManager;
import javax.persistence.ParameterMode;
import javax.persistence.PersistenceContext;
import javax.persistence.StoredProcedureQuery;
import org.springframework.stereotype.Component;
@Component
@sangimed
sangimed / contentscriptUtils.js
Created Apr 13, 2018
Utils of my chrome extension before refactoring it
View contentscriptUtils.js
'use strict';
// ----- utils.js -----
// CONSTANTS
/**
* Defines the tags on which the extension will be triggered.
*/
const EDITABLE_TAGS = ['INPUT', 'TEXTAREA'];
View popup.js
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Get the current URL.
*
* @param {function(string)} callback called when the URL of the current tab
* is found.
*/
@sangimed
sangimed / insertDummyDataset.rq
Last active Feb 24, 2017
dataset for the Travel's triplestore project
View insertDummyDataset.rq
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX users: <http://travel.univ-rouen.fr/ontologies/users/>
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
PREFIX travelers: <http://travel.univ-rouen.fr/ontologies/travelers/>
PREFIX global: <http://travel.univ-rouen.fr/ontologies/global/>
PREFIX travel: <http://travel.univ-rouen.fr/>
PREFIX text: <http://jena.apache.org/text#>
PREFIX tr: <http://www.thomsonreuters.com/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
View add_trips_and_diaries
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX users: <http://travel.univ-rouen.fr/ontologies/users/>
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
PREFIX travelers: <http://travel.univ-rouen.fr/ontologies/travelers/>
PREFIX global: <http://travel.univ-rouen.fr/ontologies/global/>
PREFIX travel: <http://travel.univ-rouen.fr/>
PREFIX text: <http://jena.apache.org/text#>
PREFIX tr: <http://www.thomsonreuters.com/>
View find My diaries by trip testing sparql query
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
SELECT * WHERE {
?diary trips:associatedTrip <http://travel.univ-rouen.fr/triamh21667rza6r>;
trips:isCollaborative ?diary_isCollaborative;
trips:public ?diary_public;
trips:ownerId "ow4557de".
}
@sangimed
sangimed / stb-html.xsl
Last active Mar 7, 2016
XML to HTML (TP3LW2)
View stb-html.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Root element -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Output element -->
<xsl:output
method="html"
encoding="UTF-8"
doctype-public="-//W3C//DTD HTML 4.01//EN"
You can’t perform that action at this time.