Skip to content

Instantly share code, notes, and snippets.

@chrisbck
chrisbck / gist:5b66068b1a459965dd54bfb662903aee
Created November 21, 2023 15:25
Rust Matching Example
// Taken from YouTube video by Jeremy Chone: https://www.youtube.com/watch?v=VQdStWU2ewY
use Activity::*;
pub enum Activity{
Sleeping(Option<u16>),
Skiing {resort: String},
Coding
}

Linking my account chrisbck on GitHub with my address 5F1EPvi4o5BYEgdd6oUkRvyp2qfxCUUuTbcqwkHb4MaJdLsz on Substrate in mycryptoprofile.io, and the challenge code is: d75e884f6db9fbc7ae053dde16a18f29. #LitentryVerifyMyAddress

Linking my account chrisbck on GitHub with my address 5C8YUs7Ja2VK1z3bv7PpkeLnsYH3hvgXdMHvUtxjSSu5VEB4 on Substrate in mycryptoprofile.io, and the challenge code is: 7c1126071b1ebd8475e894a2d3e47eb4. #LitentryVerifyMyAddress
package com.google;
import java.util.List;
/**
* A class used to parse and execute a user Command.
*/
class CommandParser {
private final VideoPlayer videoPlayer;
@chrisbck
chrisbck / Mongo.cs
Created April 8, 2020 07:24
Godot attempt to connect to MongoDb using c# nuget package
using Godot;
using System;
using MongoDB.Driver;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver.Core.Clusters;
public class Mongo : Node
{
MongoCRUD db = new MongoCRUD("testDb"); // MongoDb will get ths database if available, if not it will create it.
@chrisbck
chrisbck / keybase.md
Created March 11, 2018 16:23
Keybase verification

Keybase proof

I hereby claim:

  • I am chrisbck on github.
  • I am chrisbck (https://keybase.io/chrisbck) on keybase.
  • I have a public key ASANKhlHoRkUJC_TocZRpBw5H3tXxiMK66oeGIBXRq6wigo

To claim this, I am signing this object: