Skip to content

Instantly share code, notes, and snippets.

View intendednull's full-sized avatar
💭

Noah Corona intendednull

💭
View GitHub Profile
// Copyright 2020 Noah Corona
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
app.wasm:1 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at core::ptr::read::h9db3cc8a07d53e34 (:9000/app.wasm:wasm-…tion[8148]:0x3ebafc)
at core::ptr::swap_nonoverlapping_one::hf4501ff7a50bdbdd (:9000/app.wasm:wasm-…tion[7043]:0x3c1dda)
at core::mem::swap::h84849a24fb989fb5 (:9000/app.wasm:wasm-…ion[19448]:0x4e3d7d)
at core::mem::replace::hbb85f640b9e8c182 (:9000/app.wasm:wasm-…ion[13581]:0x47dfc3)
at core::cell::Cell<T>::replace::h0f6bcbc20bef24cf (:9000/app.wasm:wasm-…ion[15674]:0x4a6f99)
at core::cell::Cell<T>::set::ha6d2002b93767497 (:9000/app.wasm:wasm-…ion[15414]:0x4a23c1)
at core::cell::BorrowRef::new::h0ace7011b8b218be (:9000/app.wasm:wasm-…tion[6090]:0x3985d4)
at core::cell::RefCell<T>::try_borrow::h3ed0030d70b555ac (:9000/app.wasm:wasm-…tion[5660]:0x383b5c)
at core::cell::RefCell<T>::borrow::h2774192428ae8ea7 (:9000/app.wasm:wasm-…tion[7908]:0x3e3255)
@intendednull
intendednull / form.rs
Last active June 9, 2020 00:02
Example yew input component implementation
use validator::Validate;
use validator_derive::Validate;
use getset::Setters;
#[derive(Validate, Setters, PartialEq, Clone, Default, Eq)]
#[getset(set = "pub")]
pub struct RegisterForm {
#[validate(length(min = 1, message = "Please enter a name"))]
@intendednull
intendednull / out.txt
Created August 1, 2019 18:18
Xrandr output
[11:17] zer0 $ xrandr | grep -v 'disconnected'
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+1080 (normal left inverted right x axis y axis) 790mm x 0mm
1920x1080 144.00*+ 59.96 60.00 59.93
1680x1050 59.95 59.88
1400x1050 74.76 59.98
1600x900 144.00 59.95 59.82
1280x1024 85.02 75.02 60.02
1400x900 59.96 59.88
1280x960 85.00 60.00
@intendednull
intendednull / info (gdm3).txt
Last active March 21, 2019 23:07
Steam System Information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
CPU Family: 0x6
@intendednull
intendednull / Excelwb.py
Last active January 17, 2018 18:50
Application Clean-up practice
from users import User
from notify import notify
from openpyxl.styles import Font, PatternFill
from Imports import *
import sqlite3
conn = sqlite3.connect('item_data.db')
c = conn.cursor()
c.execute("CREATE TABLE if not EXISTS User_Data (Name test key not NULL, ID text not NULL, PO_num text not NULL, Amount int)")
c.execute("CREATE TABLE if not EXISTS Keep_Stock (ID text primary key not NULL, Name text not NULL, Stock int not NULL)")