Skip to content

Instantly share code, notes, and snippets.

@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
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. ##
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. ##
@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!";
@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 / 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) {
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Targets in ths file are to take a V8 context snapshot on build time.
# Created V8 context snapshot is used in
# third_party/WebKit/Source/bindings/core/v8/V8ContextSnapshot.{cpp|h}.
# to speedup creating a V8 context and setting up around it.
import("//tools/v8_context_snapshot/v8_context_snapshot.gni")
!
! Comments begin with a "!" character.
!
XTerm*background: black
XTerm*foreground: white
XTerm*cursorColor: white
XTerm*VT100.geometry: 80x25
! XTerm*faceName: Terminus:style=Regular:size=10
@zelid
zelid / test-image.html
Last active September 24, 2017 17:20
Strange IMG behaviour
<html>
<head>
<title></title>
<style>
body {
/* background-color: #404552; */
/* border-color: #404552; */
}
import wx
import win32api
import win32gui
import win32con
from sciter import sapi
from sciter.capi.scdef import *