Skip to content

Instantly share code, notes, and snippets.

View tripleo1's full-sized avatar

tripleo tripleo1

View GitHub Profile
@tripleo1
tripleo1 / advcp_install.sh
Created October 23, 2022 22:42 — forked from wangjiezhe/advcp_install.sh
install 'cp' and 'mv' utilities with progress bar patches
#!/usr/bin/env bash
set -e
tmpdir=$(mktemp -t -d advcp.XXXXXX)
cd ${tmpdir}
wget https://aur.archlinux.org/packages/ad/advcp/advcp.tar.gz
tar xf advcp.tar.gz
source advcp/PKGBUILD
@tripleo1
tripleo1 / SudokuSolve.cpp
Created August 1, 2020 09:22 — forked from briankip/SudokuSolve.cpp
PM Lee's C++ Sudoku Solver Souce Code.
#include "stdio.h"
int InBlock[81], InRow[81], InCol[81];
const int BLANK = 0;
const int ONES = 0x3fe; // Binary 1111111110
int Entry[81]; // Records entries 1-9 in the grid, as the corresponding bit set to 1
int Block[9], Row[9], Col[9]; // Each int is a 9-bit array