Skip to content

Instantly share code, notes, and snippets.

🙂
alive

ww9

🙂
alive
Block or report user

Report or block ww9

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
@ww9
ww9 / chromium_based_edge.md
Created Dec 7, 2018
Chromium based Microsoft Edge announcement
View chromium_based_edge.md

source: https://blogs.windows.com/windowsexperience/2018/12/06/microsoft-edge-making-the-web-better-through-more-open-source-collaboration/

DECEMBER 6, 2018 9:00 AM

Microsoft Edge: Making the web better through more open source collaboration

By Joe Belfiore / Corporate Vice President, Windows

For the past few years, Microsoft has meaningfully increased participation in the open source software (OSS) community, becoming one of the world’s largest supporters of OSS projects. Today we’re announcing that we intend to adopt the Chromium open source project in the development of Microsoft Edge on the desktop to create better web compatibility for our customers and less fragmentation of the web for all web developers.

@ww9
ww9 / context_keys_as_struct_not_int_or_string.md
Last active Nov 28, 2018
Why use empty struct{} and not int or string for context.Value() key types in #go
View context_keys_as_struct_not_int_or_string.md

Use struct{} as keys for context.Value() in Go

In the other file of this gist I detail why we should use struct{} as context.Value() keys and not int or string. Open gist to see main.go but the TLDR is:

	type key struct{}
	ctx = context.WithValue(ctx, key{}, "my value") // Set value
	myValue, ok := ctx.Value(key{}).(string) // Get value
@ww9
ww9 / go_type_assertion_is_fast.md
Created Nov 17, 2018
Benchmark showing that type assertion in Go is pretty fast
View go_type_assertion_is_fast.md
@ww9
ww9 / _vanilla_go_web_server.md
Last active Nov 17, 2018 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View _vanilla_go_web_server.md

Go vanilla web server

Go web server with logging, tracing, health check, graceful shutdown and zero dependencies.

@ww9
ww9 / gist_markdown_examples.md
Last active Nov 17, 2018
Gist markdown examples
View gist_markdown_examples.md

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@ww9
ww9 / public_domain_software.md
Last active Feb 23, 2019
Public Domain Software #blog
View public_domain_software.md

TLDR

Public Domain is not a license and isn't legally accepted in some countries. So if you want to give stuff for free, it's better to just license it under MIT or BSD.

Public Domain Software

The term “public domain” refers to creative materials that are not protected by intellectual property laws such as copyright, trademark, or patent laws. The public owns these works, not an individual author or artist. Anyone can use a public domain work without obtaining permission, but no one can ever own it. - Stanford University definition

Can Cannot
@ww9
ww9 / gist_blog.md
Last active Oct 30, 2019
Using Gist as a blog #blog
View gist_blog.md

Blogging with Gist

Gist simplicity can turn blogging into a liberating experience.

Pros Cons
Free, simple, fast, hassle-free Image upload in comments only
Tagging No post pinning
Search Doesn't look like a blog
Revisions Unfriendly URLs
@ww9
ww9 / _description.md
Last active Nov 17, 2018
Emojis, UTF8, ASCII (one line) #misc
View _description.md

Collection of one line text art (◕‿◕✿)

Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗

@ww9
ww9 / gui_apps_using_go_html_js_css.md
Last active Oct 24, 2019
Simple GUI example using https://github.com/zserge/lorca. Shows Go<->Js communication. #go
View gui_apps_using_go_html_js_css.md

GUI programs using Go and HTML/CSS/JS

Superior to similar solutions. Doesn't use electron or cgo. Easy communication between Go and Js. Can easily use libs like React, Vue and Angular.

This is a demo app using GUI library https://github.com/zserge/lorca which requires only Chrome and might even work with Firefox in the future.

You can’t perform that action at this time.