This file contains 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
/** | |
* Returns a Segment's KSUID. | |
* | |
* Reference implementation: https://github.com/segmentio/ksuid | |
* Also read: https://segment.com/blog/a-brief-history-of-the-uuid/ | |
* Taken suggestions from: https://stackoverflow.com/a/71137273/518493 | |
*/ | |
CREATE EXTENSION pgcrypto; | |
CREATE OR REPLACE FUNCTION fn_ksuid(prefix text DEFAULT '') RETURNS text AS $$ |
This file contains 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
import com.vladsch.flexmark.html.HtmlRenderer; | |
import com.vladsch.flexmark.parser.Parser; | |
import com.vladsch.flexmark.util.ast.Node; | |
import com.vladsch.flexmark.util.options.MutableDataSet; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* @author Manish Singh |
This file contains 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
# This is Git's per-user configuration file. | |
[user] | |
email = [email protected] | |
name = Manish Singh | |
[alias] | |
dev = !export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git checkout dev && git pull origin dev && git checkout $tmp_cur_branch && git merge dev && git push origin $tmp_cur_branch | |
devwip = !export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git checkout dev && git pull origin dev && git checkout $tmp_cur_branch && git merge dev | |
cpush = "!f() { export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git add . && git commit -i -m \"$tmp_cur_branch $1\" . && git push origin $tmp_cur_branch; }; f" |
This file contains 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
alert('Hello World'); |