Skip to content

Instantly share code, notes, and snippets.

Alex Zelid zelid

Block or report user

Report or block zelid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xmake xz config.log for mingw
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. ##
View direct xz configure for mingw
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 Sep 10, 2019
Trivial xmake dependency
View hello.cpp
#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
E:\dev\nw\src>gclient sync --with_branch_heads
View gclient-output
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
E:\dev\nw\src\content\nw\patch\patches\buildtools.patch
View gist:8e96bf90d428ba514cc8b200ae53bc5f
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) {
View E:\dev\nw\src\tools\v8_context_snapshot\BUILD.gn
# 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")
View gist:daad099953a3f31e0c3746dfa8233dac
!
! 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 Sep 24, 2017
Strange IMG behaviour
View test-image.html
<html>
<head>
<title></title>
<style>
body {
/* background-color: #404552; */
/* border-color: #404552; */
}
View Combining pysciter and wxPython - no success
import wx
import win32api
import win32gui
import win32con
from sciter import sapi
from sciter.capi.scdef import *
@zelid
zelid / gist:6965002
Last active Jun 13, 2019
Examples of BulkInsert for PostgreSQL, MySQL and MS SQL using ServiceStack OrmLite. Work in progress...
View gist:6965002
public static void BulkInsertNpgsql<T>(this IDbConnection dbConn, IEnumerable<T> list, IEnumerable<string> insertFields = null)
{
if (list == null) return;
if (list.Count() < 1) return;
var objWithAttributes = list.FirstOrDefault();
var modelDef = OrmLiteConfig.GetModelDefinition(objWithAttributes.GetType());
if (insertFields == null) insertFields = new List<string>();
You can’t perform that action at this time.