Skip to content

Instantly share code, notes, and snippets.

@john20xdoe
john20xdoe / cloudSettings
Last active Sep 28, 2021
VSCode public settings for Dev 1 team
View cloudSettings
{"lastUpload":"2020-04-21T01:22:44.724Z","extensionVersion":"v3.4.3"}
@wojteklu
wojteklu / clean_code.md
Last active Sep 28, 2021
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

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

@jakubzitny
jakubzitny / snippets
Last active Sep 28, 2021
StackOverflow JS <code> snipptes - filtered, unescaped
View snippets
// SNIPPET:
e.preventDefault()
// SNIPPET:
onclick='document.formName.submit();'
@focusmade
focusmade / syncro-intercom-email-template.html
Last active Sep 28, 2021
Intercom email template ported for use with Syncro RMM. Email me at www.limehawk.io for questions
View syncro-intercom-email-template.html
<!--
This template is for my personal use. It does contain links specific to my company that you will need to change.
There are also two image dependancies you will need to host yourself.
Templates are modified from Intercom https://www.intercom.com/help/en/articles/244-4-email-templates-to-choose-from
Searh for all instances of i.ibb and host the images yourself. only triangle and arrow are necessary.
<a href="https://imgbb.com/"><img src="https://i.ibb.co/b1W4VYK/triangle-8747882e9ef8882f9bc057241fd3c049.png" alt="triangle-8747882e9ef8882f9bc057241fd3c049" border="0"></a>
<a href="https://imgbb.com/"><img src="https://i.ibb.co/bRtHj0C/arrow-37f6774809df6fd083bfc98e9d562e23ca6ede618e2b5e10c042de88d2f858dd.png" alt="arrow-37f6774809df6fd083bfc98e9d562e23ca6ede618e2b5e10c042de88d2f858dd" border="0"></a>
-->
<!DOCTYPE html>
View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@staltz
staltz / introrx.md
Last active Sep 27, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@ganius
ganius / xenophage.py
Created Oct 30, 2019
Simple Python script I wrote for the Destiny 2 Shadowkeep Xenophage exotic weapon quest
View xenophage.py
"""
A brute force solution to Xenophage quest
"""
import random
# Symbols are coded as the most similar letters, namely X, E, V, A
# Shooting a symbol converts it from one shape (letter) to another
trans_dict = {
'X': 'E',
'E': 'V',
@geor-kasapidi
geor-kasapidi / classes.txt
Created May 27, 2021
VNClassifyImageRequest.knownClassifications(forRevision: VNClassifyImageRequestRevision1)
View classes.txt
abacus
accordion
acorn
acrobat
adult
adult_cat
agriculture
aircraft
airplane
airport
@SynCap
SynCap / remove_node_modules_recursively.ps1
Last active Sep 27, 2021
Remove `node_modules` folders in Windows in all subfolders recursively with PowerShell to avoid exceeding path max_length
View remove_node_modules_recursively.ps1
<#
Note: Eliminate `-WhatIf` parameter to get action be actually done
Note: PS with version prior to 4.0 can't delete non-empty folders
#>
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force -WhatIf
@radiantly
radiantly / noMangleGoogle.user.js
Last active Sep 28, 2021
Prevent Google from mangling links on the search results when clicking or copying on Firefox
View noMangleGoogle.user.js
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==