Skip to content

Instantly share code, notes, and snippets.

@zelid
zelid / gist:8e96bf90d428ba514cc8b200ae53bc5f
Created May 30, 2019 21:46
E:\dev\nw\src\content\nw\patch\patches\buildtools.patch
diff --git a/third_party/libc++/BUILD.gn b/third_party/libc++/BUILD.gn
index 9bcd072..bb61518 100644
--- third_party/libc++/BUILD.gn
+++ third_party/libc++/BUILD.gn
@@ -21,7 +21,11 @@ config("config") {
if (libcxx_is_shared) {
_libcxx_target_type = "shared_library"
} else {
- _libcxx_target_type = "source_set"
+ if (is_linux) {
@zelid
zelid / gclient-output
Created May 30, 2019 22:04
E:\dev\nw\src>gclient sync --with_branch_heads
E:\dev\nw\src>gclient sync --with_branch_heads
E:\dev\nw\.gclient_entries missing, .gclient file in parent directory E:\dev\nw might not be the file you want to use.
1>________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://github.com/nwjs/chromium.src.git E:\dev\nw\_gclient_src_d7ymnj' in 'E:\dev\nw'
1>Cloning into 'E:\dev\nw\_gclient_src_d7ymnj'...
1>remote: Enumerating objects: 8, done.
1>remote: Counting objects: 100% (8/8), done.
1>remote: Compressing objects: 100% (8/8), done.
1>Receiving objects: 4% (518762/12109779), 235.14 MiB | 10.59 MiB/s
[0:01:00] Still working on:
[0:01:00] src
@zelid
zelid / hello.cpp
Created September 10, 2019 13:00
Trivial xmake dependency
#include <iostream>
#include <string>
#include <zlib.h">
// #include <zlib/zlib.h>
using namespace std;
int main()
{
cout << "Hello, World!";
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by XZ Utils configure 5.2.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=i686-w64-mingw32 --prefix=/tmp/i686-w64-mingw32 --disable-shared --enable-static
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by XZ Utils configure 5.2.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=i686-w64-mingw32 --prefix=/Users/alex/.xmake/packages/x/xz/5.2.4/b9543a0f8547689dd676f7910da01dcc
## --------- ##
## Platform. ##
@zelid
zelid / Program.fs
Created August 21, 2020 17:17
Async F# Question
namespace fsharp
open System
open System.Collections.Generic
open System.IO
open System.Linq
open System.Threading.Tasks
open Microsoft.AspNetCore
open Microsoft.AspNetCore.Hosting
open Microsoft.Extensions.Configuration