Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ashinze Ekene ashinzekene

🎯
Focusing
Block or report user

Report or block ashinzekene

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vcard_gen_inital.py
import csv
VCF_TEXT = ''
with open('./Final Year Bioscope Form.csv', mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
lines_read = 0
for row in csv_reader:
if lines_read > 0:
VCF_TEXT += ("BEGIN:VCARD\n"
@ashinzekene
ashinzekene / vcard_gen.py
Last active Aug 26, 2018
Generate a vCard(.vcf) from a csvfile
View vcard_gen.py
import csv
import re
from datetime import datetime
VCF_TEXT = ''
NAME_SUB = re.compile('( +|,) ?')
with open('./Final Year Bioscope Form.csv', mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
lines_read = 0
@ashinzekene
ashinzekene / square.html
Created May 11, 2018
To create a square object without specifying the width and height in pixels
View square.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.profile-image {
width: 80%;
@ashinzekene
ashinzekene / chromeEditor
Last active Apr 27, 2018
Use Chrome as a simple editor
View chromeEditor
data:text/html, <html contenteditable style="padding:30px;line-height:1.6;background-color:#111;color:#192;font-size: 15px;font-family:'Operator Mono',Consolas,monospace;">
@ashinzekene
ashinzekene / products.ts
Last active Mar 17, 2018
Products.ts file for the post - Integrating rave payments in your angular application
View products.ts
export const products = [
{
name: "Nokia 8",
price: 195000,
special_price: 190000,
is_new: true,
img_url: "https://drop.ndtv.com/TECH/product_database/images/8162017114310PM_635_nokia_8_back_silver.jpeg",
description: "Nokia 8 Android smartphone. Announced Sep 2017. Features 5.3″ IPS LCD display, Snapdragon 835 chipset, Dual: 13 MP primary camera, 13 MP front camera, 3090 mAh battery, 128 GB storage, 6 GB RAM, IP54 certified, Corning Gorilla Glass 5.",
rating: 5,
slug: "nokia-8"
You can’t perform that action at this time.