Skip to content

Instantly share code, notes, and snippets.

View timelessnesses's full-sized avatar
💭
ran out of ideas

Rukchad Wongprayoon timelessnesses

💭
ran out of ideas
View GitHub Profile
@timelessnesses
timelessnesses / gay.md
Last active July 31, 2023 11:50
C pointer.

C pointer

What is pointer in C?

int counts = 0;
int *pointer_counts = &counts;

A pointer is a variable that stores the memory address of another variable as its value.
A pointer variable points to a data type (like int, str) of the same type, and is created with the * operator.
When print out the pointer, it would look something like this.
Code:

@timelessnesses
timelessnesses / stupid.rs
Created July 1, 2023 17:10
I laughed at this
use std;
use log;
use env_logger;
struct CustomTargetAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA{
file: std::fs::File
}
impl CustomTargetAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA {
fn new() -> Result<CustomTargetAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, std::io::Error> {
@timelessnesses
timelessnesses / README.md
Created February 25, 2022 17:10
tilde.club

Tilde.club Tutorial

How it works?

It is a very big community with a server that have many users that user can play and tinkering around

Registeration

  1. Go to tilde.club
  2. Click at Sign-up
  3. Put everything it says
  4. When you reached public ssh key. You have 2 ways
@timelessnesses
timelessnesses / Samestrspeed.py
Created August 1, 2021 13:01
Same string speed run challenge
while True:
from random import sample
from datetime import timedelta
from time import time, sleep
from os import system
from string import ascii_letters, digits
inp = int(input("String length : "))
ainp = input("Upper or normal?")
count = 1
@timelessnesses
timelessnesses / a.py
Created May 21, 2021 07:45
bot itself
from flask import Flask
from threading import Thread
app = Flask(__name__)
@app.route('/')
def main():
return {"hello" : "everything is ok"}
def run():
app.run(host="0.0.0.0",port=8080)
import discord
from discord.ext import commands,tasks
from SimpleEconomy import Seco
import random
import asyncio
bot = commands.Bot(command_prefix="m")
@bot.event
async def on_command_error(ctx,error):
await ctx.send(error)
@timelessnesses
timelessnesses / eco.py
Created May 11, 2021 02:40
Economically bot
pkg = ["discord","discord-ext-alternatives","SimpleEconomy","asyncio"]
for x in pkg:
import os
os.system(f"pip install {x}")
print(f"Done install {x}")
import discord
from discord.ext import commands
from SimpleEconomy import Seco
import random
import asyncio