This file contains 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
# INFO | |
## To switch shell: | |
## - Add desired shell to /etc/shells | |
## - Run: chsh -s <PATH_TO_SHELL> | |
echo "Current shell: $SHELL" | |
echo "Bash version: $BASH_VERSION" | |
# Setup | |
## xcode select cli tools | |
# xcode-select --install |
This file contains 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
Base URLs | |
- for resources: https://id.example.com/ | |
- for ontology: https://id.example.com/schema/ | |
- for API: https://api.example.com/ | |
API | |
1. Root files | |
/humans.txt | |
/robots.txt | |
/favicon.ico |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href='https://cdn.jsdelivr.net/npm/yasgui@2.7.29/dist/yasgui.min.css' rel='stylesheet' type='text/css'/> | |
<script src='https://cdn.jsdelivr.net/npm/yasgui@2.7.29/dist/yasgui.min.js'></script> | |
<style> | |
.yasgui .endpointText { | |
display:none !important; | |
} | |
</style> |
This file contains 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
{ | |
"": "https://id.parliament.uk/schema/", | |
"id": "https://id.parliament.uk/", | |
"owl": "http://www.w3.org/2002/07/owl#", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#" | |
} |
This file contains 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
PREFIX : <https://id.parliament.uk/schema/> | |
SELECT ?constituencyGroup ?constituencyGroupName ?constituencyGroupOnsCode ?member ?memberGivenName ?memberFamilyName | |
WHERE { | |
?constituencyGroup | |
a :ConstituencyGroup ; | |
:constituencyGroupName ?constituencyGroupName ; | |
:constituencyGroupHasHouseSeat ?houseSeat ; | |
:constituencyGroupOnsCode ?constituencyGroupOnsCode . | |
FILTER NOT EXISTS { ?constituencyGroup a :PastConstituencyGroup . } | |
?houseSeat |
This file contains 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
{ | |
"vscode": "snippets" | |
} |
This file contains 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
" Commandes de base " | |
""""""""""""""""""""" | |
" Afficher l'aide d'une commande | |
" :help echo | |
" | |
" Afficher quelque chose | |
" :echo "vi rules !" | |
" | |
" Connaitre la valeur de variables | |
" :set history? |
This file contains 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
#!/usr/bin/python | |
# | |
# Python search script 0.1 | |
# 14th of june 2011 (started v0.0 on 1st of june 2011) | |
# | |
# Copyright 2011 Matthieu Bosquet | |
# Licensed under the GPL, Version 3.0 | |
# http://www.gnu.org/licenses/gpl-3.0.txt | |
import argparse |
This file contains 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
# Custom Bash neig.es | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# If changed, Update $LINES and $COLUMNS after each command | |
shopt -s checkwinsize | |
# Default editor | |
export EDITOR=vim |
NewerOlder