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 / 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'">
import Toaster from './Toaster.vue';
Toaster.install = (Vue, options = {}) => {
Vue.prototype.$toaster = new (Vue.extend(Toaster))({propsData: options})
Vue.toaster = Vue.prototype.$toaster
if (process.env.NODE_ENV === 'development') window.$toaster = Vue.prototype.$toaster
}
export default Toaster