This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
(defun $magit-status-in-dir (dir) | |
"limit magit status to directory" | |
(interactive "D") | |
(require 'magit) | |
(let* ((root (vc-git-root dir)) | |
(dir (list (file-relative-name dir root))) | |
(magit-status-mode-hook (cons (lambda () (setq-local magit-diff-section-file-args dir)) | |
magit-status-mode-hook))) | |
(magit-status-internal root))) |
open Unix; | |
open Printf; | |
open Sys; | |
open ExtUnix.All; | |
open Thread; | |
open CCBlockingQueue; | |
open CCTimer; | |
/* | |
* How long do we wait for the discovery deregistration |
Emacs packages, features, files, layers, extensions, auto-loading, require
,
provide
, use-package
… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
#!/bin/bash | |
# A quick and dirty way to package Graphite using fpm and a custom target. | |
# (c) by Hynek Schlawack, MIT licence, USE AT OWN RISK. | |
# EXECUTE DIRECTLY ON A BUILDBOT -- IT USES REAL PATHS SINCE GRAPHITE IS PRICKY | |
# Necessary Ubuntu dependency for building: build-essential, libcairo-dev and | |
# fpm which isn't packaged unfortunately: https://github.com/jordansissel/fpm |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
Add the following chunk to your existing ISC dhcpd.conf
file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
I am trying to do relative imports in Python
In Ruby, I can just
require '../puppies.rb'
But Python gets all weird when I try something similar.
My structure looks like this: