A curated list of my GitHub stars! Generated by stargazed
This file contains hidden or 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
# Symbolic Representation of Prompt | |
# Initialization: Define Universal State | |
Ψ(t) ∈ H # Ψ(t): State vector in Hilbert space H | |
# Field Configuration Space | |
M = { (g, φ) | g ∈ G, φ ∈ Φ } # G: Symmetry group, Φ: Field space | |
μ : M → ℝ^+ # Measure on configuration space | |
# Complexity Operator |
This file contains hidden or 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
// 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 |
This file contains hidden or 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/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 file contains hidden or 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
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")))); |
This file contains hidden or 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> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using node.js <script>document.write(process.version)</script>. | |
</body> |
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.
This file contains hidden or 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 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__) |
NewerOlder