Skip to content

Instantly share code, notes, and snippets.

View GlinZachariah's full-sized avatar
🎯
Focusing

glinzac GlinZachariah

🎯
Focusing
  • Glasgow, United Kingdom
  • 15:00 (UTC +01:00)
View GitHub Profile
@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');
@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 / 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%
@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 / 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