Skip to content

Instantly share code, notes, and snippets.

View Abdur-rahmaanJ's full-sized avatar
🛰️
Python, for the love of it!

Abdur-Rahmaan Janhangeer Abdur-rahmaanJ

🛰️
Python, for the love of it!
View GitHub Profile
#!/usr/bin/env python3.6.2
# -*- coding: utf-8 -*-
# run script from command line via python3 keyword_search_github_repositories.py
import click
import datetime
import time
from github import Github
@Abdur-rahmaanJ
Abdur-rahmaanJ / webview.py
Created July 29, 2019 04:04 — forked from techtonik/webview.py
View HTML content in Python with PySide
"""
Placed into public domain by
anatoly techtonik <techtonik@gmail.com>
Show HTML in GUI window through PyQt4/PySide.
[ ] position window at the center of the screen
(right now it is middle bottom)
[ ] implement lazy loading for PyQt4/PySide
"""
@Abdur-rahmaanJ
Abdur-rahmaanJ / exploring_word_vectors.ipynb
Created July 24, 2019 17:12 — forked from ssghost/exploring_word_vectors.ipynb
My answers for Stanford on-line course CS224N Winter 2019 Assignment-1.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Abdur-rahmaanJ
Abdur-rahmaanJ / dictionary_4-1.py
Created December 21, 2018 05:41 — forked from Dhrumilcse/dictionary_4-1.py
Dictionary Part 4.1
#Import library
import json
# This is a python library for 'Text Processing Services', as the offcial site suggests.
import difflib
from difflib import SequenceMatcher
#Let's load the same data again
data = json.load(open("dictionary.json"))
#Run a Sequence Matcher
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@Abdur-rahmaanJ
Abdur-rahmaanJ / snakecoin-server-full-code.py
Created March 1, 2018 07:01 — forked from aunyks/snakecoin-server-full-code.py
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block:
@Abdur-rahmaanJ
Abdur-rahmaanJ / transformer.js
Created August 31, 2017 04:01 — forked from kosamari/transformer.js
transform function for sbn compiler
function transformer (ast) {
var svg_ast = {
tag : 'svg',
attr: {
width: 100, height: 100, viewBox: '0 0 100 100',
xmlns: 'http://www.w3.org/2000/svg', version: '1.1'
},
body:[]
}