MATCH (a:Person)-[r:Invented]->(b:Patent)
MATCH (u:Person {full_name:'Abovitz, Rony'})
WHERE not (u)-[:Invented]-(b)
RETURN r
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
from django.http import HttpResponse | |
import pandas as pd | |
def foo(): | |
your_dataframe = pd.Dataframe() | |
response = HttpResponse(content_type='text/csv') | |
response['Content-Disposition'] = 'attachment; filename=filename.csv' | |
results.to_csv(path_or_buf=response,sep=';',float_format='%.2f',index=False,decimal=",") |
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
// Visit https://www.reddit.com/subreddits/ and run the following in console (browser dev tools) | |
// Wait until all the buttons have visibly toggled, refresh page to confirm. | |
$('.fancy-toggle-button .remove').each(function(i, elem) { setTimeout(function(){ $(elem).trigger('click'); }, i*500) }); |
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
Open up browser console, for Chrome, hit F12 and copy-paste and enter this | |
$("a").filter(function(index){return $(this).text()==="unsave"}).click();setTimeout(function(){location.reload();},500); | |
Repeat until all items are unsaved. |
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
Verifying my Blockstack ID is secured with the address 1j7jdHTvQFD3Lq9PywG43oRRg1mYZbkee https://explorer.blockstack.org/address/1j7jdHTvQFD3Lq9PywG43oRRg1mYZbkee |
MATCH (n:Patent) RETURN count(n)
MATCH (a:Person {full_name: 'Abovitz, Rony'}) -[r]-> (b:Patent)
RETURN r
MATCH(a:Person {full_name: "Jon Doe"})
MATCH(b:Patent {grant_number: "7477713"})
MERGE(a)-[:Invented {priority_date:"2004-03-02"}]->(b)
class Neo4jWriter():
def __init__(self):
config = configparser.ConfigParser()
config.read('config.ini')
user_name = config.get('neo4j credentials', 'user_name')
password = config.get('neo4j credentials', 'password')
from neo4j_writer import Neo4jWriter
from entity_models import Person, Patent, Company
from IPStreet import client, query
if __name__ == '__main__':
NewerOlder