Skip to content

Instantly share code, notes, and snippets.

View belachkar's full-sized avatar
💻
Freelance

Ali Belachkar belachkar

💻
Freelance
View GitHub Profile
@belachkar
belachkar / add-to-existing-namespaces.js
Created December 25, 2023 02:45 — forked from idettman/add-to-existing-namespaces.js
JavaScript: JSDoc Advanced Tips
/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/
Namespaces can still be documented when a more abstract mechanism is used. @lends allows members to be added to an existing namespace:
*/
/**
* Root namespace
* @namespace root
*/
$namespace('root', /** @lends root **/ {
/**
@belachkar
belachkar / VLC command-line.md
Last active March 21, 2023 18:43
VLC command-line
@belachkar
belachkar / consoleColors.js
Created December 21, 2022 15:57 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
POST https://firestore.googleapis.com/v1beta1/projects/firestore-fun/databases/(default)/documents:commit?key={YOUR_API_KEY}
{
"writes": [
{
"update": {
"name": "projects/firestore-fun/databases/(default)/documents/foo/bar",
"fields": {
"some-field": {
"stringValue": "some-value"

CMD Powershell commands

Show wifi known AP passwords

# To get all the known APs names
netsh wlan show profile

# To get the password decrypted
netsh wlan show profile "AP name" key=clear

Firebase Configurations

Examples for Firebase configurations.

Cloud Store

Example 1

rules_version = '2';

Flutter project upgrade steps

To update the project to null safety follow these steps:

Side note: change the flutter version in pubsec.yaml, make new project and copy the following lines:

environment:
  sdk: ">=2.15.1 <3.0.0"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.