Skip to content

Instantly share code, notes, and snippets.

View chrisgate's full-sized avatar

Chris Godwin chrisgate

View GitHub Profile
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active July 27, 2024 04:48
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
<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>
@gbritton1
gbritton1 / links.md
Last active July 17, 2024 18:20
Capturing Logic with Custom Functions in PostgreSQL
@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",

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

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):