Skip to content

Instantly share code, notes, and snippets.

View chrisgate's full-sized avatar

Chris Godwin chrisgate

View GitHub Profile

Build a flutter app in WSL2

Install, build and debug a flutter app in WSL2 (Windows Subsystem for Linux).

Linux setup

Install Java

To install the JDK, execute the following command, which will also install the JRE:

sudo apt install default-jdk

Add the following two lines to /etc/profile (setting the JAVA_HOME environment variable):

@nickovchinnikov
nickovchinnikov / launch.json
Last active November 15, 2022 05:47
vscode jest debug config
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest single run all tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": [
"--verbose",
@gbritton1
gbritton1 / links.md
Last active August 9, 2023 01:50
Capturing Logic with Custom Functions in PostgreSQL
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
<!-- https://docs.microsoft.com/en-us/NuGet/schema/msbuild-targets#packagetargetfallback Allows getting NuGet packages that don't explicitly set netstandard version -->
<PackageTargetFallback>portable-net45</PackageTargetFallback>
<DebugType>full</DebugType>
</PropertyGroup>
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active April 28, 2024 08:52
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests