Skip to content

Instantly share code, notes, and snippets.

View Lulzx's full-sized avatar
👀
69 people are currently looking at this profile

Lulzx Lulzx

👀
69 people are currently looking at this profile
View GitHub Profile
@Lulzx
Lulzx / book.svelte
Created November 21, 2020 12:45
book info
<script lang="ts">
import { onMount } from "svelte";
let loading = true;
let title: string,
subtitle: string,
description: string,
author: string,
year: string,
@Lulzx
Lulzx / data.js
Created October 31, 2020 09:50
library genesis api data
[
{
id: '2397931',
title: 'The Rust Programming Language (Covers Rust 2018)',
volumeinfo: '',
series: '',
periodical: '',
author: 'Steve Klabnik; Carol Nichols',
year: '2019',
edition: '',
@Lulzx
Lulzx / tg_rust.md
Last active October 23, 2020 13:25
links for rust resources

Do you want to learn Rust (and oxidise the world 😂)?

Start by reading The Rust Book.
If you are ever in doubt, think about, Why Rust?

Tutorials

Rust 101 - Just a basic, hands-on course
Rustlings - Programming exercises in Rust
Rust Cookbook - Learn Rust good practices with practical code samples \

@Lulzx
Lulzx / main.py
Created August 25, 2020 17:59
254
from math import factorial as fac
def f(n: int) -> int:
y = 0
for x in map(int, str(n)):
y += fac(x)
return y
@Lulzx
Lulzx / bot.py
Created July 19, 2020 12:27
discord lyrics
import requests
from discord.ext import commands
prefix = "?"
bot = commands.Bot(command_prefix=prefix)
@bot.event
async def on_ready():
WebPage( id=5441171425018901268, url='https://www.tagesschau.de/ausland/trump-usa-einreisestopp-corona-101.html', display_url='tagesschau.de/ausland/trump-usa-einreisestopp-corona-101.html', hash=1127929505, type='photo', site_name='tagesschau.de', title='Trump will Einreisestopp verlängern', description='US-Präsident Trump hat angekündigt, den Ein
@Lulzx
Lulzx / fast-rough-edge-shadow.glsl
Created March 19, 2020 18:01 — forked from mattdesl/fast-rough-edge-shadow.glsl
Fast Rough-Edge Shadows Pseudocode
// Your shadow map comparison, this is builtin to ThreeJS
float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
}
float getShadow () {
float texelSize = 1.0 / shadowMapPixelDimension;
float shadowStepSize = 0.5; // adjust to taste
@Lulzx
Lulzx / links.md
Created September 23, 2019 19:10
@Lulzx
Lulzx / srle.c
Last active August 21, 2019 05:11
#include <stdio.h>
int main() {
char arr[] = "SRRRLLRLRRLLLRE";
int jump = 0, pos = 0;
int len = sizeof(arr)/sizeof(char);
while (pos != len) {
jump += 1;
if (arr[pos + jump] == 'R') {
pos += jump;
@Lulzx
Lulzx / bret_victor-reading_list.md
Created June 14, 2019 17:52 — forked from nickloewen/bret_victor-reading_list.md
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★