Emoji | Purpose | MD Markup | Prefix |
---|---|---|---|
📄 | Generic message | :page_facing_up: |
|
📐 | Improve the format / structure of the code / files | :triangular_ruler: |
[IMPROVE]: |
⚡ | Improve performance | :zap: |
[IMPROVE]: |
🚀 | Improve something (anything) | :rocket: |
[IMPROVE]: |
📝 | Write docs | :memo: |
[PROD]: |
💡 | New idea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SASS FUNCTION TO CONVERT PX INTO REM | |
// Defining base font size | |
// The default font size for html is 16px | |
$base-size: 16; | |
//Function to convert px value into rem | |
//You can replace rem with any other value you want (rem is most preferred value for web) | |
@function size($target, $context: $base-size) { | |
@return ($target / $context) * 1em; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate stripe fee from amount | |
* so you can charge stripe fee to customers | |
* lafif <[email protected]> | |
*/ | |
var fees = { | |
USD: { Percent: 2.9, Fixed: 0.30 }, | |
GBP: { Percent: 2.4, Fixed: 0.20 }, | |
EUR: { Percent: 2.4, Fixed: 0.24 }, | |
CAD: { Percent: 2.9, Fixed: 0.30 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Typescript React PureComponent": { | |
"prefix": "rpc", | |
"body": [ | |
"import * as React from 'react'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CS50 Problem Set 2 (Fall 2019): Readability | |
//Author: teeschorle | |
#include <stdio.h> | |
#include <cs50.h> | |
#include <string.h> | |
#include <math.h> | |
int main(void) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"TS React Dual Export": { | |
"prefix": "rfac", | |
"body": [ | |
"import React from \"react\"", | |
"", | |
"export type Props = {", | |
"", | |
"}", | |
"", |