Skip to content

Instantly share code, notes, and snippets.

struct myStruct *p = &myStructs[0]; // Create a pointer to the first array element
for (uint8_t i = 0; i != N_ELEMENTS; i++) {
print_f(p->value); // Access the struct
p++; // Advance the pointer
}
/*
* CustomTextFieldConverter.cs
*
* Author:
* Hylke Bons <hylbo@microsoft.com>
*
* Copyright (C) 2020 Microsoft, Corp
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
// View: detailsTextView
// NodeName: "detailsTextView"
// NodeType: INSTANCE
// NodeId: 10:470
var detailsTextViewScrollView = new AppKit.NSScrollView();
detailsTextViewScrollView.WantsLayer = true;
detailsTextViewScrollView.BorderType = NSBorderType.LineBorder;
detailsTextViewScrollView.HasHorizontalRuler = false;
detailsTextViewScrollView.HasVerticalScroller = true;
-- Skipping Git LFS
-- Adding CA bundle
-- Removing server-side programs
-- Removing unsupported features
-- Static linking research
File: ./libexec/git-core/git-http-fetch
0x0000000000000001 (NEEDED) Shared library: [libcurl.so.4]
0x0000000000000001 (NEEDED) Shared library: [libz.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [librt.so.1]
@hbons
hbons / gist:8b9af01653f991f966ec6a3672259b6c
Created April 2, 2018 09:29
An example DNS file for GitLab custom domains
* 600 IN A 52.167.214.135
@ 600 IN A 52.167.214.135
_gitlab-pages-verification-code 600 IN TXT "gitlab-pages-verification-code=VERIFICATION_CODE"
_gitlab-pages-verification-code.www 600 IN TXT "gitlab-pages-verification-code=VERIFICATION_CODE"

Source Code Typography

Presentation: http://www.slideshare.net/vancura/source-code-typography

Quotes

Dumb quotes (also known as straight quotes) are straight and vertical. Proper typography never uses straight quotes. They are left over from the age of typewriters and their only modern use is for coding.

Cleaning up
Commiting stage cleanup to cache
(xdg-app-builder:3540): xdg-app-WARNING **: Can't load metadata file metadata.app: Error opening file: No such file or directory
Finishing app
error: Error when getting information for file '/home/hbons/Projects/sparkleshare-xdg-app/metadata.app': No such file or directory
Making all in profiler
make[4]: Entering directory '/home/hbons/Projects/gtk-sharp/gtk/gui-thread-check/profiler'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -g -O2 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT gui-thread-check.lo -MD -MP -MF .deps/gui-thread-check.Tpo -c -o gui-thread-check.lo gui-thread-check.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -g -O2 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT gui-thread-check.lo -MD -MP -MF .deps/gui-thread-check.Tpo -c gui-thread-check.c -fPIC -DPIC -o .libs/gui-thread-check.o
gui-thread-check.
### Keybase proof
I hereby claim:
* I am hbons on github.
* I am hbons (https://keybase.io/hbons) on keybase.
* I have a public key whose fingerprint is 4B25 3600 1934 4324 191E D6C4 34B1 478A 4304 EBCD
To claim this, I am signing this object:
git fetch --update-shallow