Skip to content

Instantly share code, notes, and snippets.

View JudahSan's full-sized avatar
🎯
Focusing

Judah JudahSan

🎯
Focusing
View GitHub Profile
@JudahSan
JudahSan / README.md
Created October 30, 2023 18:49
How to self host my fullstack projos
@JudahSan
JudahSan / AsychronousJS.md
Last active October 26, 2023 11:44
Node Fundamentals

Asynchronous JavaScript

  • JS is a synchronous, blocking, single-threaded language

  • JS is blocking - no matter how long a previous process takes, the subsequent processes won't kick off until the former is completed

  • Single threaded- a thead is a process that your JS program can use to run a task. Each thread can only do one task at a time. JS has just the one thread called the main thread for executing any code.

  • We need new pices outside JS to help us write asynchronous code.

  • For FE, this where web browsers come into play. For BE, this is where Node.js comes into play

  • Web browsers and Node.js define functions and APIs that allow us to register functions that should not be executed synchronously, and should instead be invoked asynchronously when some kind of event occurs.

@JudahSan
JudahSan / grid_item.dart
Created September 24, 2023 22:03
Flutter Haptic Feedback
import 'package:flutter/material.dart';
// Haptic feedback package import
import 'package:haptic_feedback/haptic_feedback.dart';
import 'package:tms_app/models/series.dart';
class SeriesGridItem extends StatelessWidget {
const SeriesGridItem({
super.key,
@JudahSan
JudahSan / README.md
Created September 14, 2023 22:36
Joy con sim

Here's a simple Rust program that simulates a Joy-Con and controls a Nintendo Switch over Bluetooth.

// Import necessary libraries and Bluetooth stack
extern crate bluetooth;
use bluetooth::{Server, Device, Characteristic};

// Define the simulated Joy-Con struct and related functions (as previously outlined)

// Initialize Bluetooth stack
@JudahSan
JudahSan / merge-to-main.yml
Created August 17, 2023 18:29
Git actions yaml files
name: Merge dev to stage
on:
push:
branches:
- dev
jobs:
merge:
runs-on: ubuntu-latest
@JudahSan
JudahSan / err.log
Last active July 31, 2023 12:52
nairuby jekyll project
jooda@jooda:~/RubymineProjects/nairuby_duka$ bundle exec jekyll build -d public
Configuration file: /home/jooda/RubymineProjects/nairuby_duka/_config.yml
DEPRECATION WARNING: You are using a deprecated processor interface Jekyll::Assets::Addons::Processors::Liquid.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <top (required)> at /home/jooda/RubymineProjects/nairuby_duka/vendor/ruby/3.0.0/gems/jekyll-assets-2.1.3/lib/jekyll/assets/addons/processors/liquid.rb:30)
DEPRECATION WARNING: You are using a deprecated processor interface Jekyll::Assets::Addons::Processors::Liquid.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
@JudahSan
JudahSan / README.md
Last active July 23, 2023 00:28
LocalStorage

🆘localStorage 😱

Problem Statement:

The localStorage for this sample app, Simple ATM Simulator , is acting all wonky! While I can store the keys just fine, I'm hitting a brick wall when it comes to saving the values!

Screenshot from 2023-07-22 21-15-51

@JudahSan
JudahSan / README.md
Created July 21, 2023 12:11
Ubuntu Network hotspot popup

Why am I getting a Hotspot Login page every time I connect to a network in Ubuntu?

image

Plausible explanation

The Hotspot Login page is a pop-up window that is automatically opened by the NetworkManager service in Ubuntu. This service is responsible for managing your computer's network connections.

@JudahSan
JudahSan / README.md
Created July 7, 2023 19:47
ROG Strix g531g motherboard conundrum

Problem: Blue screen of death, laptop stopped starting up

Symptoms:

  • The laptop was working normally before the blue screen of death. After the blue screen of death, the laptop no longer starts up. The laptop does not power on, and there is no response when the power button is pressed.

Troubleshooting:

@JudahSan
JudahSan / README.md
Last active July 6, 2023 22:15
Generic USB to VGA Adapter problems
  • Reddit VGA to USB resources

  • VGA to USB

  • More

  • I am yet to try it on Win OS

  • The adapter is detected by the computer(Ubuntu 22:04) lsusb image