Skip to content

Instantly share code, notes, and snippets.

@mrousavy
mrousavy / withNoBundleCompression.js
Created February 15, 2025 18:15
Expo Config Plugin to disable JS bundle compression for faster app startup
const {withAppBuildGradle} = require('@expo/config-plugins')
/**
* A Config Plugin to disable bundle compression in Android build.gradle.
* This makes the Android app start faster - in our tests by 400ms!
* @param {import('@expo/config-plugins').ConfigPlugin} config
* @returns {import('@expo/config-plugins').ConfigPlugin}
*/
module.exports = function withNoBundleCompression(config) {
return withAppBuildGradle(config, androidConfig => {
@mathcodes
mathcodes / dsa_pattern.md
Last active February 16, 2025 18:40
14 DSA Patterns to Master

14 Coding Patterns To Master

This is a collection of coding patterns I have learned to solve not only some of the most common problems, but the 14 patterns (yes, there are way more than 14, but the point here is taking 6 months of preparation and condensing it into a 30 minute read that would not take more than 1-2 weeks to master. I have found these problems and patterns to be the most useful in that the data structures and algorithms are used in many other problems and become familiar over time. Good luck!

Please feel free to comment if you got some value or find any errors!

Thanks!

Table of Contents

Comprehensive Mapping of AI, ML, Deep Learning, and Related Concepts

1. Artificial Intelligence (AI)

Definition: AI is the broad field of creating machines or systems that perform tasks requiring human intelligence, such as reasoning, learning, and language understanding.

Subfields:

  • Machine Learning (ML)
  • Natural Language Processing (NLP)
  • Generative AI
  • Computer Vision
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <Shlobj.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
bool replaceAllInFile(const TCHAR* filePath)
@vincevargadev
vincevargadev / main.dart
Last active February 16, 2025 18:32
Simple 3-dot popup menu in the app bar in Flutter
// This gist is part of the https://github.com/dartsidedev/gists repository.
// There, you'll find further information about this gist.
// https://github.com/dartsidedev/gists#3cd82881966c0e1314504e4e2e54e373
import 'package:flutter/material.dart';
void main() => runApp(PopupDemo());
class PopupDemo extends StatefulWidget {
@override
@WebRTCGame
WebRTCGame / JavascriptBooks.md
Last active February 16, 2025 18:32
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.

@stokito
stokito / howto_webdav_lighttpd_turrisos.md
Last active February 16, 2025 18:30
WebDAV with Lighttpd on Turris Omnia (TurrisOS/OpenWRT)

Note

For a vanilla OpenWRT see WebDAV with Lighttpd on OpenWRT. Those instructions are slightly different.

What is this for?

You can turn your router into a small NAS and file server. Just connect an SSD into USB and install a WebDAV server which allows to get access to the disk. Then you need to connect to router via SSH which is a remote command line an execute the commands bellow.

@trietptm
trietptm / Computer Science Tools, Books & Articles.md
Last active February 16, 2025 18:30
Computer Science Tools, Books & Articles

BOOKS:

  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • Computer Systems: A Programmer's Perspective, 3 Edition [Randal E. Bryant, David R. O'Hallaron]
  • Code: The Hidden Language of Computer Hardware and Software [Petzold, Charles]
  • How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine [Justice, Matthew]
  • How the Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance [Article 19, Knodel, Mallory, Uhlig, Ulrike, ten Oever, Niels, Cath, Corinne]
  • How Software Works: The Magic Behind Encryption, CGI, Search Engines, and Other Everyday Technologies [Spraul, V. Anton]
  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • How Cybersecurity Really Works: A Hands-On Guide for Total Beginners [Grubb, Sam]