This is how you might model Premier League managers tenures at different clubs in Neo4j:
The date modeling is based on an approach described in more detail in Return partly shared path ranges.
from neo4jrestclient.client import GraphDatabase | |
from neo4jrestclient.constants import RAW | |
from neo4jrestclient.client import Node | |
from urlparse import urlparse | |
import re, json | |
from flask import Flask, Response, json, jsonify, request, Blueprint, render_template | |
app = Flask(__name__) |
This is how you might model Premier League managers tenures at different clubs in Neo4j:
The date modeling is based on an approach described in more detail in Return partly shared path ranges.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using node.js <script>document.write(process.version)</script>. | |
</body> |
public class SAXReaderExample { | |
public static final String PATH = "/tmp/resources"; | |
public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException { | |
SAXParserFactory spf = SAXParserFactory.newInstance(); | |
SAXParser sp = spf.newSAXParser(); | |
XMLReader reader = sp.getXMLReader(); | |
reader.setContentHandler(new SchemaSaxHandler()); | |
reader.parse(new InputSource(new FileInputStream(new File(PATH, "source.xsd")))); |
#!/usr/bin/env python | |
from pocket import Pocket | |
import webbrowser, sys | |
# Get consumer key from cmd line | |
consumer_key = sys.argv[1] | |
request_token = Pocket.get_request_token( | |
consumer_key=consumer_key, |
// This javascript code will alert you and immediately book the slot whenever a slot opens up on the given date within the given pincodes. | |
// **** THIS SCRIPT IS TO MAKE NEW BOOKING FOR DOSE 1 OR DOSE 2. IN CASE OF RESCHEDULE, FIRST CANCEL THE BOOKING AND THEN TRY TO BOOK USING THIS SCRIPT. **** | |
// **** RUN SCRIPT 5 MINUTES BEFORE THE SLOT OPENING TIME. IF THE SESSION IS EXPIRED (EXPIRES IN 10-15 MINUTES), LOG IN AND RERUN THE SCRIPT. **** | |
// Steps to use | |
// 1. Update pincodes,age,district_id,beneficiaries,dose,vaccine & vaccine_date. | |
// 2. Login to https://selfregistration.cowin.gov.in/ | |
// 3. Right Click on the website | |
// 4. Click on Inspect |