Skip to content

Instantly share code, notes, and snippets.

View michael-alade's full-sized avatar
🏠
Working from home

Kolawole Michael Alade michael-alade

🏠
Working from home
  • Nigeria
View GitHub Profile
@michael-alade
michael-alade / create_pr.sh
Created September 14, 2024 11:49 — forked from slavingia/create_pr.sh
Create a (draft) pull request using GitHub CLI
#!/bin/bash
# Create a (draft) pull request using GitHub CLI.
# It assigns the PR to the current user, fills in the title from the first commit,
# and uses the PR template file for the description.
set -euo pipefail
# Colors for output
RED='\033[0;31m'
{"data":[{"alignmentgroup":"True","hovertemplate":"Word=%{x}<br>Frequency=%{y}<extra></extra>","legendgroup":"","marker":{"color":"#636efa","pattern":{"shape":""}},"name":"","offsetgroup":"","orientation":"v","showlegend":false,"textposition":"auto","type":"bar","x":["exclude","youtube","and","geography","linkedin","video","yt","regional","in","long","length","remarks","livestream","longer","than","10","mins","platform","jp","post"],"xaxis":"x","y":[3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1],"yaxis":"y"}],"layout":{"template":{"data":{"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}]},"layout":{"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"autotypenumbers":"strict","coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"diverging":[],"sequential":[],"sequentialminus":[]},"font":{"color":"#2a3f5f"},"geo":{"bgcolor":"white","lakeco
@michael-alade
michael-alade / ffmpeg.md
Created May 26, 2022 23:08 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@michael-alade
michael-alade / clear-browser-cache.js
Created December 3, 2018 16:16 — forked from DavidWells/clear-browser-cache.js
Clear Browser cache. Run in your browsers javascript console
//Cache Buster
(function (){
  var rep = /.*\?.*/,
      links = document.getElementsByTagName('link'),
      scripts = document.getElementsByTagName('script'),
      process_scripts = false;
  for (var i=0;i<links.length;i++){
    var link = links[i],
        href = link.href;
    if(rep.test(href)){
@michael-alade
michael-alade / media-query.css
Created July 17, 2018 22:19 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
const astar = {
init: (cols, rows) => {
this.grid = new Array(cols);
for (let x = 0; x < cols; x++) {
this.grid[x] = new Array(rows);
for (let y = 0; y < rows; y++) {
this.grid[x][y] = {
f: 0,
g: 0,
h: 0,