Skip to content

Instantly share code, notes, and snippets.

@coolaj86
coolaj86 / name-calling.md
Last active May 4, 2024 08:34
What we call programmers - because labels make us happy! https://youtu.be/uxeR95aYer0#t=58
@wojteklu
wojteklu / clean_code.md
Last active May 4, 2024 08:34
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@RidaRidss
RidaRidss / Solution for No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle.md
Created October 26, 2017 07:09
Got an Error : No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle

Follow these commands

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf build/ios
yarn cache clean
lsof -i :8081
kill -9 9771
kill $(lsof -t -i:8081)

yarn start --reset-cache

@avoidik
avoidik / README.md
Last active May 4, 2024 08:31
Repack APK, make it debuggable
@joswr1ght
joswr1ght / evtxResourceIDGaps.py
Last active May 4, 2024 08:28
Read dump_evtx XML output, identify EventRecordID gaps possibly indicating deleted logging records
from xml.etree import ElementTree
import sys
first=True
eventrecordid=None
lasttime=None
latesttime=None
if (len(sys.argv) != 2):
print("Read from the dump_evtx XML output, identifying gaps in EventRecordID values")
@ExcelRobot
ExcelRobot / mandelbrot.lambda
Last active May 4, 2024 08:27
Mandelbrot Lambda
/*
Name: Mandelbrot Set (Mandelbrot)
Description: Generates a Mandelbrot set based on given assumptions that can be used with conditional formatting to view the visual representation.
Parameters:
xleft - Left X value
xright - Right X value
ytop - Top Y value
ybottom - Bottom Y value
size - number of columns/rows in square output range
iterations - number of iterations
@ExcelRobot
ExcelRobot / ArrayManipulation.lambda
Last active May 4, 2024 08:25
Array Manipulation LAMBDA Functions
/*
Excel Array Manipulation LAMBDA functions
Courtesy of Excel Robot
The Microsoft Excel team recent released 11 new Excel functions for combining, shaping, and resizing arrays.
I had already created similar ones for myself using the amazing LAMBDA function. Since the new functions
are only available to users running Beta Channel, I've renamed my versions and given them the same function
names so anyone with LAMBDA and LAMBDA helper functions (like MAKEARRAY), and import these LAMBDAs into your
workbook and have nearly the same functionality.
@sadukie
sadukie / AuthenticatedPlaywrightDriver.cs
Created April 30, 2024 16:03
Using Shared State in Playwright for .NET
using Microsoft.Playwright;
using NimblePros.SuperSecretProject.FrontEndTests.PageObjects;
namespace NimblePros.SuperSecretProject.FrontEndTests;
internal class AuthenticatedPlaywrightDriver : IDisposable
{
private IPlaywright? _playwright;
private IBrowser? _browser;
private IBrowserContext? _context;
public AuthenticatedPlaywrightDriver()