A Pen by Abdus Samad Azad on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
REPO=artistic | |
UPLOAD_INSTRUCTIONS="Upload your creation to GitHub! | |
# 1. Create a new empty repo on your GitHub account | |
# 2. Upload your repository using the instructions on https://github.com/new, or this script!" | |
git init $REPO | |
cd $REPO | |
touch README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Stage and Commit Every Unsaved changes | |
# and push them to master | |
git add . | |
git commit -m 'comitted from deploy script' | |
git push origin master | |
# generate a clean build | |
bundle exec jekyll clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form action=""> | |
<input | |
type="email" | |
id="email" | |
name="email" | |
placeholder="[email protected]" | |
/> | |
<br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Getting the most frequent element from an array | |
*/ | |
function mode(array = []) { | |
// check if it is an array and have atleast a single element | |
if (!Array.isArray(array)) { | |
throw new Error(`Please provide an array as argument`); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch') | |
const { execSync } = require('child_process') | |
async function getRepoURLs(user) { | |
let gh_data = await fetch(`https://api.github.com/users/${user}/repos`) | |
gh_data = await gh_data.json() | |
return gh_data | |
} | |
async function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -d ./frames ] | |
then | |
mkdir frames | |
fi | |
ffmpeg -i $1 -r 20 'frames/frame-%03d.jpg' | |
cd frames | |
convert -delay 5 -loop 0 *.jpg $1.gif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
// script for sending auto invite to people in linkedin | |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
// | |
// Simple script for sending mass invite on linkedin | |
// NOTE: This will send invite to the profiles available in your 'RECOMANDATION' tab | |
// | |
// | |
// | |
// HOW TO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"short_name": "Abdus", | |
"name": "Abdus", | |
"icon": [ | |
{ | |
"src": "/pwa/img/icons-192.png", | |
"type": "image/png", | |
"sizes": "192x192" | |
}, | |
{ |