Skip to content

Instantly share code, notes, and snippets.

View walidamriou's full-sized avatar
🚩
Open for New challenges for the future of the world

Walid Amriou walidamriou

🚩
Open for New challenges for the future of the world
View GitHub Profile
@walidamriou
walidamriou / read_json_file_content.js
Last active January 21, 2020 07:58
read json file content in javascript
/*
* Notes: don't use this file like a resource function because
* it is for the test only, you need to put the fonction
* in new .js file and make it like a function :D
*
* Read Json file content in Javascript
* the file in https://walidamriou.github.io/data.json content (just fot test):
* {"data": {
* "id": "123664",
* "name": "bingad",
{
"data1": {
"id": "123664",
"name": "bingad",
"date": "12.12.12"
},
"data2": {
"id": "123664",
"name": "bingad",
"date": "12.12.12"
@walidamriou
walidamriou / ESP8266-flash-size.cpp
Last active March 21, 2020 17:31
Display / Determine / Show Flash size of ESP8266 in PlatformIO
#include <Arduino.h>
void setup(void) {
Serial.begin(9600);
}
void loop() {
uint32_t realSize = ESP.getFlashChipRealSize();
uint32_t ideSize = ESP.getFlashChipSize();
@walidamriou
walidamriou / I2CScanner.cpp
Created April 3, 2020 00:23
I2C scanner for Arduino, ESP32, ESP8266 ...
#include <Arduino.h>
#include <Wire.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
while (!Serial);
Serial.println("\nI2C Scanner");
}
@walidamriou
walidamriou / Arduino code to test new boards
Created May 9, 2020 23:30
test new boards that can work with Arduino lang
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello");
@walidamriou
walidamriou / Install_and_remove_System76_Pop_GTK_Theme.md
Last active May 30, 2020 20:45
Install and remove System76 Pop GTK+ Theme

Installation:

Pop is intended to be installed through the package manager. Packages for Pop are available in PPA:

sudo add-apt-repository ppa:system76/pop
sudo apt update
sudo apt install pop-theme
It's recommended to use the pop-theme metapackage, as this will pull in all components of the look. However, individual components can be installed separately, e.g:

sudo apt install pop-gtk-theme

\FF\FB\90d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Xing\00\00\00\00\00\00O\00\00'9\00 &+118<CFFILNQQTWYY\_beegjmpprux{{}\80\83\83\86\88\8B\8E\8E\91\94\96\99\99\9C\9F\A1\A4\A4\A7\AA\AC\AC\AF\B2\B5\B8\B8\BA\BD\C0\C3\C3\C5\C8\CB\CE\CE\D0\D3\D6\D6\D9\DC\DE\E1\E1\E4\E7\E9\EC\EC\EF\F2\F4\F7\F7\FA\FD\FF\00\00\00<LAME3.98r\AF\00\00\00\00\00\00\00\004 $\B8M\00\CC\00\00'9

\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\
@walidamriou
walidamriou / Getting_started_React_Native_in_Ubuntu_Linux.md
Last active July 20, 2020 13:21
Getting started React Native in Ubuntu/Linux

Fix "SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties" or "Failed to install the app. Make sure you have the Android development environment set up" export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

@walidamriou
walidamriou / Fix_PlatformIO_Errno_13_Permission_denied_ttyUSB0_with_Linux.md
Created August 26, 2020 12:57
Fix PlatformIO [Errno 13] Permission denied: '/dev/ttyUSB0' with Linux

The problem: " Traceback (most recent call last): File "/home/../.platformio/penv/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0'

During handling of the above exception, another exception occurred:

"

{
"name": "fcc-learn-npm-package-json",
"author":"walidamriou",
"dependencies": {
"express": "^4.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},