Skip to content

Instantly share code, notes, and snippets.

View Scrappers-glitch's full-sized avatar
🤖
Software~Hardware Co-Desgin

pavl_g Scrappers-glitch

🤖
Software~Hardware Co-Desgin
View GitHub Profile
@Scrappers-glitch
Scrappers-glitch / LemurGuiStyle.java
Created May 7, 2022 10:19 — forked from Ali-RS/LemurGuiStyle.java
The default Lemur glass style written programatically instead of using groovy (android-friendly).
package com.jayfella.motorunner.lemur;
import com.jme3.asset.AssetManager;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.simsilica.lemur.GuiGlobals;
import com.simsilica.lemur.Insets3f;
import com.simsilica.lemur.Label;
import com.simsilica.lemur.component.QuadBackgroundComponent;
import com.simsilica.lemur.component.TbtQuadBackgroundComponent;
@Scrappers-glitch
Scrappers-glitch / .test-dodj39.json
Created June 4, 2022 07:03
Git Gist Test for Alby Wallet
{
"addr":"pavl_g@getalby.com",
"enabled":true
}
@Scrappers-glitch
Scrappers-glitch / kmalloc.c
Last active June 5, 2022 10:25 — forked from cvam0000/kmalloc
Linux Kernal mem allocation example
/* An example of Memory Allocation */
#include<linux/slab.h>
#include<linux/init.h>
#include<linux/module.h>
#include<linux/kernel.h>
#define size 10
MODULE_DESCRIPTION("example of memory allocation ");
#include<avr/io.h>
#include<avr/interrupt.h>
#include<util/delay.h>
#include "lcd.h"
volatile int cnt_zero,cnt_one;
ISR (INT0_vect) //External interrupt_zero ISR
{
cnt_zero++;
}
ISR (INT1_vect) //External interrupt_one ISR
/*
| Example part of AVR Tutorial Series @ Explore Embedded
| To read the detailed tutorial visit:
| http://exploreembedded.com/wiki/5.AVR_Timer_programming
*/
#include<avr/io.h>
#include <util/delay.h>
#define LED PD4
int main()
{
@Scrappers-glitch
Scrappers-glitch / sources.list
Created September 16, 2022 18:53 — forked from h0bbel/sources.list
/etc/apt/sources.list for Ubuntu 18.04.1 LTS Bionic Beaver
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@Scrappers-glitch
Scrappers-glitch / HelloDynmaicArray.c
Created October 29, 2022 14:23
An example of dynamic arrays in C
/**
* @brief: Shows a minimalistic example of dynamic arrays.
*
* @author pavl_g.
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct {
@Scrappers-glitch
Scrappers-glitch / dropdown.md
Last active December 9, 2022 11:08 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@Scrappers-glitch
Scrappers-glitch / techdemo.c
Last active January 6, 2023 10:49
Test Deep copy V.S. Superficial copy
// Online C compiler to run C program online
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
typedef struct {
int baud;
uint8_t data;
} uart;