Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
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
| copy https://github.com/hirotakaster/baytail-bootia32.efi/blob/master/bootia32.efi to /EFI/BOOT | |
| after installing ubuntu: | |
| sudo passwd ubuntu | |
| sudo apt update | |
| sudo apt install openssh-server | |
| ssh to your computer, then: | |
| sudo mount /dev/mmcblk1p2 /mnt | |
| sudo mount --bind /dev /mnt/dev |
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 type { MarkdownHeading } from 'astro'; | |
| type Props = { | |
| headings: MarkdownHeading[]; | |
| }; | |
| type HeadingWithSubheadings = MarkdownHeading & { | |
| subheadings: MarkdownHeading[]; | |
| }; |
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
| 'Attribute VB_Name = "OneDrivePathConversion" | |
| ' | |
| ' Cross-platform VBA Function to get the local path of OneDrive/SharePoint | |
| ' synchronized Microsoft Office files (Works on Windows and on macOS) and | |
| ' Cross-platform VBA Function to get the OneDrive/SharePoint Url path (link) | |
| ' from a local path of a locally synced folder (Works on Windows and on macOS) | |
| ' | |
| ' Author: Guido Witt-Dörring | |
| ' Created: 2022/07/01 | |
| ' Updated: 2025/06/02 |
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
| // #1 Select first matched element | |
| export function $(selector, elem) { | |
| elem = elem || document; | |
| return elem.querySelector(selector); | |
| } | |
| // #2 Select all matched elements | |
| export function $$(selector, elem) { | |
| elem = elem || document; | |
| return elem.querySelectorAll(selector); |
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
| // Youtube tutorial here: https://youtu.be/LDgPTw6tePk | |
| // These functions are designed to be exported, but you could create a class instead. See tutorial video. | |
| // #1 proper case | |
| export const properCase = (string) => { | |
| return `${string[0].toUpperCase()}${string.slice(1).toLowerCase()}`; | |
| }; |
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
| #!/bin/bash | |
| wget http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | |
| tar xf apk-tools-static-2.10.5-r1.apk sbin/apk.static | |
| ./sbin/apk.static add apk-tools | |
| # Thanks to https://github.com/ish-app/ish/wiki/Installing-apk-on-the-App-Store-Version |
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
| const deepCopyFunction = (inObject) => { | |
| let outObject, value, key | |
| if (typeof inObject !== "object" || inObject === null) { | |
| return inObject // Return the value if inObject is not an object | |
| } | |
| // Create an array or object to hold the values | |
| outObject = Array.isArray(inObject) ? [] : {} |
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 Int2d(rowLookup As Double, colLookup As Double, lookupRange As Range) As Double | |
| 'This function performs 2 dimensional linear interpolation using built-in linear functions | |
| 'Lookup range includes column and row lookup values | |
| Dim Row, col As Integer | |
| Dim RowVals, ColVals, lookup As Variant | |
| Dim sl1, sl2, sl3, int1, int2, int3, col1, col2 As Double | |
| Row = 1 | |
| col = Row | |
| On Error Resume Next | |
| Row = WorksheetFunction.Match(rowLookup, lookupRange.Offset(1, 0).Columns(1), 1) |
Follow [steps][1]:
- Download: http://download.microsoft.com/download/9/1/E/91E9F42C-3F1F-4AD9-92B7-8DD65DA3B0C2/mvmc_setup.msi (thanks @xavery)
- Open Powershell as administrator and run
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1' - And after
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
NewerOlder