Skip to content

Instantly share code, notes, and snippets.

View smrghsh's full-sized avatar
🆗

Samir Ghosh smrghsh

🆗
View GitHub Profile
@laffan
laffan / mdToWordNoComments.sh
Created October 23, 2022 23:22
Export markdown to word via pandoc with citations
#!/usr/bin/env bash
# MarkdownToWord
# --------------
# Searches for markdown file in parent directory, then uses pandoc to export it
# along with with bibtex citations to a word document on your desktop.
# Intended to be used with a Zotero --> Obsidian --> Word workflow
#
# TO USE
# Insert your own username on line 43, make sure md and csl files are within parent
@matthewzring
matthewzring / markdown-text-101.md
Last active May 26, 2024 03:29
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@basharovV
basharovV / https_nginx_express_node_config.md
Last active October 31, 2023 15:11
How to configure HTTPS with Lets Encrypt, Nginx reverse proxy, Express and Node

How to configure HTTPS with Lets Encrypt, Nginx reverse proxy, Express and Node

  1. Have a Node app ready for production.
  2. Create an app.js file in your project directory:
const express = require('express');
const path = require('path');
const app = express();

// Allow dotfiles - this is required for verification by Lets Encrypt's certbot
@stereokai
stereokai / index.css
Created June 18, 2017 11:03
Trigonometry in CSS
//----------------------------------*\
// TRIGONOMETRY FUNCTIONS
//----------------------------------*/
// # Trigonometry in CSS
//
// - Through Taylor/Maclaurin polynomial representation: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// - Useful if you don't want to use JS.
// - With CSS Variables.
// - `calc()` can't do power (x ^ y) so I used multiplication instead.
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 26, 2024 08:23
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);