Skip to content

Instantly share code, notes, and snippets.

View algomaster99's full-sized avatar
πŸ”’
Securing software supply chains

Aman Sharma algomaster99

πŸ”’
Securing software supply chains
View GitHub Profile
Big O complexities for common methods of Java Collections and common sorting algorithms.
Complexity (Best to Worst)
===================================================================================================
O(1) < O(log n) < O(n) < O(n log n) < O(n^2) < O(2^n) < O(n!)
Collections
===================================================================================================
@sachdeva-shrey
sachdeva-shrey / addContract.js
Created June 22, 2020 22:36
CiceroMark --> OOXML
const addToContract = async (templateIndex, templateUri) => {
/* global Word */
Word.run(async function (context) {
// load the template
const hashIndex = templateUri.indexOf('#');
const templateId = templateUri.substring(5, hashIndex);
const templateDetails = templateIndex[templateId];
const url = templateDetails.url;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub Pages</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
@jacklorusso
jacklorusso / workbench.colorCustomizations.json
Last active March 21, 2025 18:08
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@nicolasdao
nicolasdao / open_source_licenses.md
Last active April 29, 2025 00:59
What you need to know to choose an open source license.
@joepie91
joepie91 / express-server-side-rendering.md
Last active April 26, 2025 08:11
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
@cbrwn
cbrwn / GreenEggs.b
Last active October 5, 2024 18:58
Green Eggs and Ham in Brainfuck
--[----->+<]>-----<[-]>>[-]<<-[--->>>++++++++++[<++++>-]<<<]>>-------<<[-]
>>>>[-]<<<<+++[>>>>+++++++++++<<<<-]++[>>++++<<-]>>.>>-.<<<.<++[>++++++<-]
>.>>.>.<<<<++[>>+++++<<-]>>.<<++[>------<-]>.<++[>++++++<-]>.<++++++++++..
[-]++[>>-----<<-]>>.>>.<<<<+++[>----<-]>.<+++[>++++<-]>.>>.>.<<<<++[>>++++
+<<-]>>.<<++[>------<-]>.<++[>++++++<-]>.<++++++++++.[-]>>.<<+++[>----<-]>
.<+++[>++++<-]>.>>>.<<<<++[>>-----<<-]>>.>>.<<<<+++[>----<-]>.<++[>++++++<
-]>.<++++++++++..[-]++[>>+++++<<-]>>+.<-----.<++[>---<-]>-.<+++[>++++++<-]
>+.>>>.<<-.<<++++[>-----<-]>+.<+++[>++++<-]>.<+++[>>>>++++<<<<-]>>>>+.<<<<
++[>>-----<<-]>>.>>.<<<<+++[>----<-]>.<+++[>++++<-]>.<+++[>>>>----<<<<-]>>
>>.<<<<++++++++++.[-]++[>>+++++<<-]>>+.<-----.<++[>---<-]>-.<+++[>++++++<-
@rxaviers
rxaviers / gist:7360908
Last active May 10, 2025 12:10
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: