Skip to content

Instantly share code, notes, and snippets.

View BWbwchen's full-sized avatar
🌏
Working from home

Bo-Wei Chen BWbwchen

🌏
Working from home
View GitHub Profile
@BWbwchen
BWbwchen / BoostDownloader.cmake
Created November 2, 2023 08:26
Auto Download Boost with official FindBoost (assume that builded boost will be placed in ${CMAKE_SOURCE_DIR}/external/boost)
# - Find Boost
#
# Based on https://gist.github.com/thiagowfx/970e3931387ed7db9a39709a8a130ee9 Copyright (c) 2016 Thiago Barroso Perrotta
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
package main
import "fmt"
type SQL struct {
table string
}
func (s SQL) Create () {
fmt.Println("Create")
type SQL struct {
table SQL.table
}
type Human struct {
name string
}
type Student struct {
Human
job string
}
type Worker struct {
type TestStruct struct {
Interger int
String string
Bool bool
SomeWeirdInterface interface{}
OtherStruct // we call it embedded field
}
type OtherStruct struct {
Hello string
}
#define DEBUG
#define MAXN 1e9
#include <bits/stdc++.h>
#define MAXIMUM 10000
using namespace std;
template<class T>
class _queue
#include <iostream>
#include <string>
#include <stdexcept>
using namespace std;
class ListNode{
private:
int data;
ListNode *next;