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
const originalParse = JSON.parse | |
/** | |
* Monkey patch BigInt toJSON and JSON.parse to support BigInt | |
* @example | |
* monkeyPatchBigInt() // JSON.parse will support BigInt | |
*/ | |
export function monkeyPatchBigInt() { | |
// browser only check | |
if (typeof window === 'undefined') { |
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 type { MaybeRef } from 'vue' | |
import { computed, onMounted, onUnmounted, ref, toValue, watch } from 'vue' | |
/** | |
* Keep track of the time left until a future timestamp string | |
* | |
* @param futureTimestampRef may be reactive `new Date().toISOString()` string | |
*/ | |
export function useCountdownString(futureTimestampRef: MaybeRef<string>) { | |
// Calculates the initial difference in seconds |
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
#!/bin/bash | |
# virtualenv-auto-activate.sh | |
# | |
# Installation: | |
# Add this line to your .bashrc or .bash-profile: | |
# | |
# source /path/to/virtualenv-auto-activate.sh | |
# | |
# Go to your project folder, run "virtualenv .venv", so your project folder | |
# has a .venv folder at the top level, next to your version control directory. |
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
/** | |
* @author Manthankumar Satani <satanimanthan@gmail.com> | |
* @version 1.5.0 | |
*/ | |
/** Interval enough to like 6 to 10 post per minute */ | |
const batchInterval = 60000 | |
const random = true | |
const waitBetweenLikes = true |
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
/** | |
* @author Manthankumar Satani <satanimanthan@gmail.com> | |
* @version 1.0.0 | |
*/ | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function getLikeBtns(xpf, xpath) { |
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
/** | |
* @author Manthankumar Satani <satanimanthan@gmail.com> | |
* @version 1.1.0 | |
*/ | |
function getLikeButtons($x, xpath) { | |
var items = []; | |
$x(xpath).forEach(item => { | |
if ( |
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
/** | |
* @author Manthankumar Satani <satanimanthan@gmail.com> | |
* @version 1.5.0 | |
*/ | |
/** Interval enough to like 6 to 10 post per minute */ | |
const batchInterval = 60000 | |
const random = true | |
const waitBetweenLikes = true |
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
$themes: ( | |
default: ( | |
logo: url("../images/brand/logo_vertical.svg"), | |
bg: $bg--light, | |
text: $text--light, | |
), | |
dark: ( | |
logo: url("../images/brand/logo_vertical--invert.svg"), | |
text: $text--dark, | |
), |