Skip to content

Instantly share code, notes, and snippets.

View tripleo1's full-sized avatar
๐Ÿš€
Being slightly more presentable

tripleo tripleo1

๐Ÿš€
Being slightly more presentable
View GitHub Profile
@tripleo1
tripleo1 / converted.yuck
Last active October 6, 2021 09:10
Automatic and corrected translatation of adi1090x/widgets eww config
;; **
;; ** Widgets config for EWW
;; ** Created by : @adi1090x
;; **
;; Profile vars
(defvar IMAGE "images/profile.jpg")
@tripleo1
tripleo1 / interval.py
Created June 18, 2021 11:47
Calculate every interval of days between 2 dates.
import datetime
import sys
year = int(sys.argv[1])
def calculate(year):
dt1 = datetime.datetime(year, 1, 1)
yield ("A", dt1)
dt2 = datetime.timedelta(days=14)
@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