Skip to content

Instantly share code, notes, and snippets.

View TheDhejavu's full-sized avatar
🏫
working from home

Ayodeji Akinola TheDhejavu

🏫
working from home
View GitHub Profile
@TheDhejavu
TheDhejavu / .html
Last active July 1, 2024 12:28
html data
<html darker-dark-theme=\"\"><head><script id=\"js-2447375869\" nonce=\"-fNlFTm8KAYiSGnO4cUkiA\" src=\"//www.google.com/js/th/EirmVnnNlSgqRyHN1YLvHhRw11SWUqUPb76JYHphonQ.js\" data-loaded=\"true\"></script><script id=\"js-1124342058\" src=\"//static.doubleclick.net/instream/ad_status.js\" nonce=\"-fNlFTm8KAYiSGnO4cUkiA\" data-loaded=\"true\"></script><script id=\"js-3008644456\" src=\"/s/player/5b22937f/player-plasma-ias-phone-en_US.vflset/base.js\" nonce=\"-fNlFTm8KAYiSGnO4cUkiA\" data-loaded=\"true\"></script><script data-id=\"_gd\" nonce=\"-fNlFTm8KAYiSGnO4cUkiA\">window.WIZ_global_data = {\"MuJWjd\":false,\"nQyAE\":{},\"oxN3nb\":{\"1\":false,\"641353869\":false}};</script><meta http-equiv=\"origin-trial\" content=\"AhZ+nuiLHaXd5WiMXwoxO4Qa21jekJ4a9eVWQaakApp1EngcNtUgGbSyWPaqQqsvBTcoCEkax9aQHW2GaX2iZAEAAAB5eyJvcmlnaW4iOiJodHRwczovL20ueW91dHViZS5jb206NDQzIiwiZmVhdHVyZSI6IkF0dHJpYnV0aW9uUmVwb3J0aW5nQ3Jvc3NBcHBXZWIiLCJleHBpcnkiOjE3MTQ1MjE1OTksImlzU3ViZG9tYWluIjp0cnVlfQ==\"><meta name=\"viewport\" content=\"wid
@TheDhejavu
TheDhejavu / index.ts
Created March 12, 2024 11:07
Neynar signature signer
import 'dotenv/config';
import express from 'express';
import * as ed from "@noble/ed25519";
import { mnemonicToAccount } from "viem/accounts";
const app = express();
const port = 3000;
app.use(express.json());
@TheDhejavu
TheDhejavu / warpcast_oauth.go
Created March 12, 2024 11:01
Warpcast oauth implementation
// ======= NEYNAR CLIENT =======
type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
Get(url string) (*http.Response, error)
}
type NeynarClient struct {
Client HTTPClient
Cfg Config
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem import PorterStemmer
from nltk.stem import LancasterStemmer
import rabin_karp
import numpy as np
from os.path import dirname, join
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem import PorterStemmer
from nltk.stem import LancasterStemmer
class PlagiarismChecker:
def prepare_content(self, content):
# STOP WORDS
let link_string = string;
let searchList = search.split(" ");
const highlightMatchesInString = (string, search)=>{
var completedString = completedString || string;
search.forEach(function(item) {
var reg = "(" + item + ")(?![^<]*>|[^<>]*</)";
var regex = new RegExp(reg, "i");
//Highlight.....
let link_string = string;
let searchList = search.split(" ");
const highlightMatchesInString = (string, search)=>{
var completedString = completedString || string;
search.forEach(function(item) {
var reg = "(" + item + ")(?![^<]*>|[^<>]*</)";
var regex = new RegExp(reg, "i");
//Highlight.....
let link_string = string;
let searchList = search.split(" ");
const highlightMatchesInString = (string, search)=>{
var completedString = completedString || string;
search.forEach(function(item) {
var reg = "(" + item + ")(?![^<]*>|[^<>]*</)";
var regex = new RegExp(reg, "i");
//Highlight.....
let link_string = string;
let searchList = search.split(" ");
const highlightMatchesInString = (string, search)=>{
var completedString = completedString || string;
search.forEach(function(item) {
var reg = "(" + item + ")(?![^<]*>|[^<>]*</)";
var regex = new RegExp(reg, "i");
//Highlight.....
<template>
<div class="toaster-container">
<transition-group
name="slide"
enter-active-class="animated quick bounceInRight"
leave-active-class="animated quick bounceOutRight"
>
<div :class="[t.theme, 'toaster']" v-for='t in toasters' :key='t.key'>
<!-- SUCCESS TOASTER CONTENT -->
<div class="flex" v-if="t.theme == 'success'">