Skip to content

Instantly share code, notes, and snippets.

'use strict';
const fs = require('fs');
const path = require('path');
const iconv = require('iconv-lite');
const EOL = require('os').EOL;
const namePrefixList = [
'gm',
'god',

DrawerLayout.tsx

import DrawerLayout from 'react-native-gesture-handler/DrawerLayout';
export {DrawerLayout};

DrawerLayout.android.tsx

import {DrawerLayoutAndroid} from 'react-native';
export {DrawerLayoutAndroid as DrawerLayout};
@TheUltDev
TheUltDev / DrawerLayout.android.tsx
Last active June 13, 2022 10:27
DrawerLayout: React Native [+Web]
import {DrawerLayoutAndroid} from 'react-native';
export {DrawerLayoutAndroid as DrawerLayout};
use_flipper!
post_install do |installer|
flipper_post_install(installer)
react_native_post_install(installer)
# Fix simulator on Apple M1
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
::-webkit-scrollbar {
background-color: #202324;
color: #aba499;
}
::-webkit-scrollbar-thumb {
background-color: #454a4d;
}
::-webkit-scrollbar-thumb:hover {
background-color: #575e62;
}
var nodes = [...document.querySelectorAll('*[aria-label="Number of times this review was rated helpful"]')];
nodes.sort((a, b) => (parseInt(b.innerText) || 0) - (parseInt(a.innerText) || 0))
nodes.map(e => ([
parseInt(e.innerText) || 0,
e.parentNode.parentNode.parentNode.parentNode.parentNode.children[1].textContent.toString().trimStart(),
]));
@TheUltDev
TheUltDev / settings.json5
Last active January 29, 2023 05:21
My VSCode User Settings
{
// Fonts
"editor.fontSize": 12, // Font size can use decimals if needed
"editor.fontWeight": "400", // Font weight 450 = retina, 400 = normal (retina is too bold)
"editor.fontFamily": "Fira Code", // Fira Code is my favorite programming font
"editor.fontLigatures": true, // Enable programming ligatures (e.g. !==)
// Autocomplete
"editor.suggest.localityBonus": true, // Favor nearby tokens
// Visuals
"workbench.editor.labelFormat": "short", // Context is nice, but paths are too much
"use strict";
const https = require('https');
const http = require('http');
const fs = require('fs');
const glob = require('glob');
const git = require('nodegit');
const path = require('path');
const rimraf = require('rimraf');
const readMultipleFiles = require('read-multiple-files');
export async function post(
path: string,
options?: object,
token?: string,
): Promise<Response> {
const body = new URLSearchParams({
'response_format': 'json',
'application_id': API_ID.toString(),
'session_token': token || undefined,
...options,
@TheUltDev
TheUltDev / gen.js
Last active July 19, 2021 14:51
TFS Sublime Autocomplete Generator
var Promise = require("bluebird"),
os = require('os'),
fs = Promise.promisifyAll(require('fs')),
fse = Promise.promisifyAll(require('fs-extra'));
var dogen = function() {
return fs.readFileAsync('./lua-functions.txt')
// Parse XML contents into an object
.then(function(contents) {