The following code will produce code-splitting in Webpack, which means that the source code will be split into several files that will be loaded async at runtime.. More info here;
import('./some-module').then((SomeModule) => {});| class Program | |
| { | |
| static async Task Main(string[] args) | |
| { | |
| // Add this to your C# console app's Main method to give yourself | |
| // a CancellationToken that is canceled when the user hits Ctrl+C. | |
| var cts = new CancellationTokenSource(); | |
| Console.CancelKeyPress += (s, e) => | |
| { | |
| Console.WriteLine("Canceling..."); |
| #!/bin/bash | |
| TOKEN="xxxxxxxxxxxxxxxxxxx" | |
| ZONE_ID=2222222222222222222222222 | |
| # [email protected] | |
| # KEY=11111111111111111111111111 | |
| # Replace with | |
| # -H "X-Auth-Email: ${EMAIL}" \ | |
| # -H "X-Auth-Key: ${KEY}" \ |
| type TemplateParameterType = { [key: string]: string }; | |
| /** | |
| * If the template from @member CompiledRouteType.template | |
| * is an object, this type will be extended with all the | |
| * members of that object. | |
| */ | |
| type TemplateMatchResponseType = { | |
| params: TemplateParameterType, | |
| /** |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.AspNetCore.Mvc.Infrastructure; | |
| using Microsoft.AspNetCore.Mvc.Internal; | |
| using Microsoft.AspNetCore.Routing; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Newtonsoft.Json; | |
| using System; | |
| using System.Linq; | |
| using System.Threading.Tasks; |
The following code will produce code-splitting in Webpack, which means that the source code will be split into several files that will be loaded async at runtime.. More info here;
import('./some-module').then((SomeModule) => {});| #!/bin/bash | |
| # Description: Everytime the Kernel is upgraded (which is quite often), virtualbox stops working and throws the following error: | |
| # | |
| # The provider 'virtualbox' that was requested to back the machine | |
| # 'default' is reporting that it isn't usable on this system. The | |
| # reason is shown below: | |
| # | |
| # VirtualBox is complaining that the installation is incomplete. Please | |
| # run `VBoxManage --version` to see the error message which should contain | |
| # instructions on how to fix this error. |
| #!/bin/sh | |
| # ngrok's web interface is HTML, but configuration is bootstrapped as a JSON | |
| # string. We can hack out the forwarded hostname by extracting the next | |
| # `*.ngrok.io` string from the JSON | |
| # | |
| # Brittle as all get out--YMMV. If you're still reading, usage is: | |
| # | |
| # $ ./ngrok_hostname.sh <proto> <addr> | |
| # |
| enum keyCodes { | |
| BACKSPACE: 8, | |
| TAB: 9, | |
| ENTER: 13, | |
| SHIFT: 16, | |
| CTRL: 17, | |
| ALT: 18, | |
| PAUSE: 19, | |
| CAPS_LOCK: 20, | |
| ESCAPE: 27, |
| # Add field | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}' | |
| # { | |
| # "hello": "world", | |
| # "foo": "bar" | |
| # } | |
| # Override field value | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}' | |
| { |
| /// <summary> | |
| /// Provides a convenience method for constructing an EnumerableStream<T>. | |
| /// </summary> | |
| public static class EnumerableStream | |
| { | |
| public static EnumerableStream<T> Create<T>(IEnumerable<T> source, Func<T, List<byte>> serializer) | |
| { | |
| return new EnumerableStream<T>(source, serializer); | |
| } | |
| } |