Skip to content

Instantly share code, notes, and snippets.

View shashwata27's full-sized avatar
🎯
Focusing

Shashwata Saha shashwata27

🎯
Focusing
View GitHub Profile
@jxub
jxub / pandas_labeled_csv_import_to_mongo.py
Created September 22, 2017 11:51
A simple mongoimport for importing csv files with python and pymongo
import pandas as pd
from pymongo import MongoClient
import json
def mongoimport(csv_path, db_name, coll_name, db_url='localhost', db_port=27000)
""" Imports a csv file at path csv_name to a mongo colection
returns: count of the documants in the new collection
"""
client = MongoClient(db_url, db_port)
db = client[db_name]
@lopspower
lopspower / README.md
Last active May 21, 2025 13:14
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

<!DOCTYPE html>
<html>
<head>
<title>HTML Elements Cont..</title>
</head>
<body>
<h1>More Elements</h1>
<p>Here is a quote: <q>Inspirational quote would go right here.</q></p>