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
function checkEmailsAndSendToDiscord() { | |
impl("prod") | |
} | |
function dev() { | |
impl("dev") | |
} | |
const YOUR_QUERY = ""; |
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
import { expect } from "@jest/globals"; | |
import prettyFormat from "pretty-format"; | |
import snapshotDiff from "snapshot-diff"; | |
import "snapshot-diff/extend-expect"; | |
import snapshot from "jest-snapshot"; | |
import { styleSheetSerializer } from "jest-styled-components"; | |
const prettyFormatOptions = { | |
plugins: snapshot.getSerializers(), | |
}; |
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
// https://gist.github.com/fsubal/b1ab80acb82763c28a3d92ed8f2010af | |
type Status = "pending" | "success" | "error"; | |
export default class Resource<T> { | |
static from<T>(promise: Promise<T>): Resource<T> { | |
return new this(promise); | |
} | |
private status: Status; |
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
#include <iostream> | |
#include <string> | |
#include <Windows.h> | |
BOOL CALLBACK monitor_enum_proc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM cbData) { | |
MONITORINFOEX mi; | |
mi.cbSize = sizeof(mi); | |
GetMonitorInfo(hMonitor, &mi); |
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
babel | |
copy-to-clipboard | |
node-dateformat | |
jsrsasign | |
CryptoJS | |
YUI Library | |
Bitcoin JS | |
polyglot | |
Numeral-js | |
Spine Runtime |
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
function sorter(a, b) { | |
if (a.value - b.value > 0) { | |
return 1; | |
} else if (a.value - b.value < 0) { | |
return -1; | |
} | |
return 0; | |
} | |
class Fuzzy { |
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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:all", | |
"parser": "babel-eslint", | |
"plugins": [ | |
"eslint-comments" |
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
function mergeSort(array) { | |
if(array.length <= 1) { | |
return array; | |
} | |
const mid = array.length / 2 | 0; | |
const left = mergeSort(array.slice(0, mid)); | |
const right = mergeSort(array.slice(mid)); | |
return merge(left, right); | |
}; |
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
Show hidden characters
{ | |
"presets": [ | |
"es2015" | |
], | |
"plugins": [ | |
"syntax-flow", | |
"transform-flow-strip-types" | |
], | |
"env": { | |
"development": { |
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
'use strict'; | |
function parse(json) { | |
return _parseValue(json, 0).value; | |
} | |
module.exports = parse; | |
const WHITESPACE = ' \t\n\r'; | |
const DIGIT = '0123456789'; |
NewerOlder