Skip to content

Instantly share code, notes, and snippets.

View GlinZachariah's full-sized avatar
🎯
Focusing

glinzac GlinZachariah

🎯
Focusing
  • Glasgow, United Kingdom
  • 03:11 (UTC +01:00)
View GitHub Profile
@GlinZachariah
GlinZachariah / wiki_movie_generator_data_generator.py
Created January 9, 2023 21:21
Generate movie data as json from Wikipedia (Base Layout) further improvements are welcome.
'''
Generate movie data as json from Wikipedia
'''
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import re
import json
@GlinZachariah
GlinZachariah / LICENSE
Created January 9, 2023 21:19
This license is applicable for all gists belonging to me.
MIT License
Copyright (c) 2023 Glin Zachariah
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@GlinZachariah
GlinZachariah / autoupdater-java.bat
Last active October 15, 2021 17:20
Update Maven projects automatically
@ECHO OFF
ECHO RUNNING AUTOUPDATER..
TIMEOUT 2 >NUL
::saving the current working directory
set cwd=%cd%
::specify a build.txt file with path of each dependencies and projects to be built in order
for /f "tokens=*" %%s in (build.txt) do(
cd %%s
call :auto_update %%s
cd %cwd%
@echo off
set /p nm="Add dependencies for system or project :"
if %nm% EQU system (
echo "Installing system dependencies ..once complete please install project dependencies manually "
echo "Installing gulp..."
npm install -g gulp-cli
echo "Installing sass.."
npm install sass
echo "Installing json..."
npm install -g json
@GlinZachariah
GlinZachariah / gulpfile.js
Last active October 3, 2021 15:50
Gulp web automation
const { src, dest, series, watch } = require('gulp');
const del = require('del');
const sass = require('gulp-sass')(require('sass'));
const plumber = require("gulp-plumber");
const uglify = require("gulp-uglify");
const cssmin = require("gulp-cssmin");
const htmlmin = require("gulp-htmlmin");
const babel = require('gulp-babel');
const prefix = require('gulp-autoprefixer');
const mocha = require('gulp-mocha');
@GlinZachariah
GlinZachariah / GitHub Custom Sheild.txt
Created October 26, 2020 13:34
Custom Shield for GitHub Marking
![In Progress](https://img.shields.io/badge/status-In%20Progress-yellow)
![Completed](https://img.shields.io/badge/status-completed-green)
![Stopped](https://img.shields.io/badge/status-stopped-red)
![Hackathon](https://img.shields.io/badge/Event-Hackathon-purple)
![Angular](https://img.shields.io/badge/Front%20End-Angular-red)
![Spring](https://img.shields.io/badge/Middleware-SpringBoot-green)
![MySQL](https://img.shields.io/badge/Back%20End-MySQL-blue)
![Git](https://img.shields.io/badge/tools-Git-orange)
@GlinZachariah
GlinZachariah / app.component.ts
Created November 7, 2019 02:06
Angular Material - Responsive Web Page Format
import { Component, ViewChild, HostListener } from '@angular/core';
import { MatSidenav } from '@angular/material/sidenav';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
from google.cloud import firestore
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
import json
import datetime
import os,csv,re,emoji
#filekey =input("Enter key file name: ")
companyname =input("Enter company name: ")
import unicodedata
from unidecode import unidecode
def deEmojify(inputString):
returnString = ""
for character in inputString:
try:
character.encode("ascii")
#Final code for Data extraction using tweepy and firestore
#Text preprocessing included
#sentiment analyser embedded
#immune to connectionerror
import tweepy
import csv
import sys,re,os
import datetime,requests
from requests.exceptions import ConnectionError