Skip to content

Instantly share code, notes, and snippets.

View red2678's full-sized avatar
🏠
Working from home

Anthony Trimble red2678

🏠
Working from home
View GitHub Profile
@Zn4rK
Zn4rK / README.md
Last active April 20, 2025 23:06
pnpm and expo without node-linker=hoisted

I have a pretty big monorepo, and adding node-linker=hoisted to .npmrc would have significant consequences. With the help of rnx-kit, I managed to configure Expo to work without changes to .npmrc.

I haven't encountered any major issues yet, but I also haven't built or released a production version of my app, so we'll see how it goes.

Steps:

  1. Add the following dependencies to your package.json:

{

@red2678
red2678 / 50_us_state_list.txt
Last active August 29, 2015 14:02
50 US State Select List
AL|Alabama
AK|Alaska
AZ|Arizona
AR|Arkansas
AS|American Samoa
CA|California
CO|Colorado
CT|Connecticut
DE|Delaware
DC|District of Columbia
@nickawalsh
nickawalsh / icons.sass
Last active October 7, 2021 09:38
Auto Hi-res Sprites
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
background: $icons-hd
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);