Skip to content

Instantly share code, notes, and snippets.

View amirmojiry's full-sized avatar
😶
I don't know

Amirhossein Mojiri Foroushani amirmojiry

😶
I don't know
View GitHub Profile
@m-esm
m-esm / extract_tweets.js
Last active October 1, 2023 01:57
Extract tweets from browser
if (!window.tweets) window.tweets = {};
/**
* @param tweetElem {HTMLElement}
*/
window.parseTweetElement = (tweetElem) => {
const isQuote = !!Array.from(tweetElem.querySelectorAll("span")).find(
(p) => p.textContent === "Quote"
);
@mimalef70
mimalef70 / gist:7c1893735e98403cdb09a3ebfd7480c9
Last active October 18, 2024 05:04
Prompt: Human Written | 100% Unique | SEO Optimized Article
I Want You To Act As A Content Writer Very Proficient SEO Writer Writes Fluently "Persian". First Create Two Tables. First Table Should be the Outline of the Article and the Second Should be the Article. Bold the Heading of the Second Table using Markdown language. Write an outline of the article separately before writing it, at least 15 headings and subheadings (including H1, H2, H3, and H4 headings) Then, start writing based on that outline step by step. Write a 2000-word 100% Unique, SEO-optimized, Human-Written article in Persian with at least 15 headings and subheadings (including H1, H2, H3, and H4 headings) that covers the topic provided in the Prompt. Write The article In Your Own Words Rather Than Copying And Pasting From Other Sources. Consider perplexity and burstiness when creating content, ensuring high levels of both without losing specificity or context. Use fully detailed paragraphs that engage the reader. Write In A Conversational Style As Written By A Human (Use An Informal Tone, Utilize Per
@ahbanavi
ahbanavi / iranian-banks-bin.json
Created March 18, 2021 11:10
Iranian banks cart number bin
[
{
"bank": "markazi",
"title": "اداره معاملات ریالی بانک مرکزی",
"bin": "636795"
},
{
"bank": "sanat",
"title": "بانک صنعت و معدن",
"bin": "627961"
@JeffreyWay
JeffreyWay / example.html
Last active March 27, 2020 17:16
Floating navigation bar example using the Intersection Observer API https://laracasts.com/series/how-do-i/episodes/25
<!DOCTYPE html>
<html>
<head>
<title>Floating Navigation</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<style>
@keyframes slide-nav-down {
100% {
transform: translateY(0);
}
@narbehaj
narbehaj / find_duplicates.py
Last active May 28, 2018 23:54
Finds duplicate files under the directory
import hashlib
import os
m_list = []
for i, d , e in os.walk('/home/test/'):
for file in e:
if file.endswith('mkv'):
with open('{}/{}'.format(i, file), 'rb') as file_read:
for chunk in iter(lambda: file_read.read(4096), b""):

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);