Skip to content

Instantly share code, notes, and snippets.

🏔
above snow inside ☁️

Stefan Hagen sthagen

🏔
above snow inside ☁️
Block or report user

Report or block sthagen

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 keybase.md

Keybase proof

I hereby claim:

  • I am sthagen on github.
  • I am stefanhagen (https://keybase.io/stefanhagen) on keybase.
  • I have a public key ASCR_oVOd30zOqjDn6r-EFsHpe0eKf0HiA-Qjs0dm0PI8wo

To claim this, I am signing this object:

@sthagen
sthagen / go-shebang-story.md
Created Oct 5, 2019 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go
View go-shebang-story.md

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

View phoenix.yml
name: Elixir CI
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
@sthagen
sthagen / compiling_building_c_cpp_notes.md
Created Jun 22, 2019 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs
View compiling_building_c_cpp_notes.md

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015.

Include Paths

On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found.

With gcc and llvm include paths are passed with -I/path/to/includes, you can pass as many -I as you need.

In Windows, cl.exe takes include paths with the following syntax: /I"c:\path\to\includes\ you can also pass as many as you need.

View gist:69627043c321cbfe8bf8
### Keybase proof
I hereby claim:
* I am sdrees on github.
* I am stefanhagen (https://keybase.io/stefanhagen) on keybase.
* I have a public key whose fingerprint is 2C06 803C B4FB FE2F F7D7 CC58 7890 A9A6 BD44 04E8
To claim this, I am signing this object:
You can’t perform that action at this time.