Skip to content

Instantly share code, notes, and snippets.

@VictoriqueMoe
VictoriqueMoe / main.go
Last active October 26, 2024 02:22
go prime new
package main
import (
"fmt"
"math/big"
"time"
)
var one = big.NewInt(1)
var four = big.NewInt(4)
@talves
talves / front-matter.md
Created October 21, 2017 06:55
Shortcode Hugo example for a link button

This is an example of using the shortcode link-button-sc


A pretty easy button. :)

{{% link-button-sc href="#" class="my-button--raised crazy-button" value="Click Me Real Good" %}}

@lukas-h
lukas-h / license-badges.md
Last active November 25, 2025 18:49
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@stonehippo
stonehippo / install_ruby_with_rbenv.md
Last active August 24, 2025 14:49
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS (and make yourself a superhero)

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Installing a new Ruby

To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*

A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.