Skip to content

Instantly share code, notes, and snippets.

View DoctorLai's full-sized avatar
🎯
Focusing

DoctorLai DoctorLai

🎯
Focusing
View GitHub Profile
@DoctorLai
DoctorLai / mv-docker-repo.sh
Created March 21, 2023 18:39 — forked from ety001/mv-docker-repo.sh
move the docker images from docker hub to github.
#!/bin/bash
set -xe
repos=(
"steemfans/pricefeed:latest"
"steemfans/authsteem:edge"
"steemfans/authsteem:latest"
"steemfans/steem-dev-tools:latest"
"steemfans/steem-conductor:latest"
// Author: Huahua (https://www.youtube.com/user/xxfflower)
// p5 web editor: https://editor.p5js.org
var rows = 25;
var cols = 25;
var a = 20;
var s;
var f;
function Snake() {
this.x = 12;
@DoctorLai
DoctorLai / The Technical Interview Cheat Sheet.md
Created December 16, 2018 19:37 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@DoctorLai
DoctorLai / bresenham3d
Created August 4, 2017 22:42 — forked from yamamushi/bresenham3d
C++ Bresenham 3d Line Drawing Algorithm
// Bresenham3D
//
// A slightly modified version of the source found at
// http://www.ict.griffith.edu.au/anthony/info/graphics/bresenham.procs
// Provided by Anthony Thyssen, though he does not take credit for the original implementation
//
// It is highly likely that the original Author was Bob Pendelton, as referenced here
//
// ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d
//
@DoctorLai
DoctorLai / ComWithoutRegistering.cs
Created November 14, 2015 13:38 — forked from jjeffery/ComWithoutRegistering.cs
COM without registering
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace ComWithoutRegisteringExample
{
internal static class ComHelper
{
private delegate int DllGetClassObject(ref Guid clsid, ref Guid iid, [Out, MarshalAs(UnmanagedType.Interface)] out IClassFactory classFactory);