Skip to content

Instantly share code, notes, and snippets.

View chriswinch's full-sized avatar

Chris Winch chriswinch

View GitHub Profile
@VictorTaelin
VictorTaelin / upload_json_to_ipfs.js
Last active December 30, 2021 20:09
Upload a JSON to IPFS
const ipfs = require("nano-ipfs-store").at("https://ipfs.infura.io:5001");
(async () => {
const doc = JSON.stringify({
foo: "bar",
tic: "tac"
});
const cid = await ipfs.add(doc);
@jagrosh
jagrosh / Growing A Discord Server.md
Last active July 24, 2024 09:34
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@FullStackForger
FullStackForger / .gitignore
Last active July 24, 2024 04:22
.gitignore for Unity3d project
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/
// Brightness math based on:
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx
$red-magic-number: 241;
$green-magic-number: 691;
$blue-magic-number: 68;
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number;
@function brightness($color) {
// Extract color components
@aderaaij
aderaaij / yoast
Last active April 3, 2024 20:11
Wordpress - Move yoast seo boxes to bottom of post/page
// Move Yoast to bottom
function yoasttobottom() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'yoasttobottom');