Skip to content

Instantly share code, notes, and snippets.

View astro648's full-sized avatar

Ayaan astro648

View GitHub Profile
@astro648
astro648 / index.html
Created August 15, 2021 20:24
Hello World basic code for HTML just in case anyone needs it
<html>
<head><title>Hello World</title></head>
<body><p>Hello World!</p></body>
</html>
@astro648
astro648 / OutputPinExample_RawCPP.cpp
Created August 16, 2021 01:10
Arduino LED Light Output Pin Setup
void setup(){
//Let's say that the pin that the LED is connected to is 2. We'll set up the output for that one.
pinMode(4,OUTPUT);
}
void loop(){
}
@astro648
astro648 / FlashingLightArduino_RawCPP.cpp
Created August 16, 2021 01:15
Flashing LED Light Arduino Code with Basic Explanations
//(Remember to use the Arduino IDE) Let's say that you want to make a flashing LED light.
//In this specific example, the LED is connected to Pin 2.
void setup(){
//Setting up the output for Pin 2
pinMode(2,OUTPUT);
}
//In the Arduino IDE, void loop(){} loops the code inside curly brackets.
void loop(){
//The line of code below turns on the light.
digitalWrite(2,HIGH);
@astro648
astro648 / pixelArtResource.md
Last active August 16, 2021 01:16 — forked from halimbimantara/pixelArtResource.md
[Pixel Art ]linklearing #Design2D #PixelArt #GameDeveloper

Pixel Art Resources (Not affiliated / sponsored. Just helping) PIXEL ART TUTORIALS & RESOURCES

LOSPEC (Tutorials / Palettes / Tools / Resources / etc)
https://lospec.com/

Pixeljoint's Pixel Art Tutorial
https://pixeljoint.com/forum/forum_posts.asp?TID=11299

Pixel Logic ($9 USD Pixel Art guide series)

@astro648
astro648 / README.md
Created August 16, 2021 04:18 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@astro648
astro648 / README.md
Last active August 17, 2021 01:28 — forked from lopspower/REAMDE.md
Increase Android Studio memory

Increase Android Studio memory

Twitter

Locate the configuration file

Run command:

touch ~/Library/Preferences/AndroidStudioX.X/studio.vmoptions
@astro648
astro648 / index.html
Created August 16, 2021 05:00
JavaScript mini-script inside of HTML
<html>
<head><title>test</title></head>
<body>
<script>
//This is where you type the JS code.
</script>
</body>
</html>
@astro648
astro648 / gist:e1e1a153297a267cca9ff0b764c22871
Created September 18, 2021 01:58
Arduino error message
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Uno"
Sketch uses 864 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\johnr\AppData\Local\Temp\arduino_build_603018/sketch_sep11a.ino.hex:i
@astro648
astro648 / gist:3e25eb863eb0ea5e3d6c7f99d1324691
Created September 18, 2021 02:05
Arduino error message
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Uno"
Sketch uses 864 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\johnr\AppData\Local\Temp\arduino_build_603018/sketch_sep11a.ino.hex:i
@astro648
astro648 / gist:b80c59d0d592d7d507e23a03b3c63caf
Created September 18, 2021 02:08
Arduino error message
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Uno"
Sketch uses 864 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\johnr\AppData\Local\Temp\arduino_build_603018/sketch_sep11a.ino.hex:i
An error occurred while uploading the sketch