View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"gorm.io/driver/sqlite" | |
"gorm.io/gorm" | |
"gorm.io/gorm/schema" | |
) | |
// CustomDialector allows for customization of the type affinity for booleans. | |
type CustomDialector struct { |
View puzzle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build a list of all possible combinations | |
a = [] | |
for i in range(0, 10): | |
for j in range(0, 10): | |
for k in range(0, 10): | |
a.append('{}{}{}'.format(i, j, k)) | |
# For each of the possible answers, check the five constraints | |
for v in a: | |
pass_1 = \ |
View smsformat.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from argparse import ArgumentParser | |
from datetime import datetime, timezone | |
from html import escape | |
import xml.etree.ElementTree as ET | |
class SmsFormat: | |
def __init__(self, f_in, f_out): |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR) | |
project(netenum) | |
find_package(Qt5Network 5.4 REQUIRED) | |
add_executable(netenum main.cpp) | |
target_link_libraries(netenum Qt5::Network) |
View CMakeListst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR) | |
project(stdout) | |
find_package(Qt5Core 5.4 REQUIRED) | |
add_executable(stdout main.cpp) | |
target_link_libraries(stdout Qt5::Core) |
View ppastats.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from argparse import ArgumentParser | |
from sys import exit | |
try: | |
from launchpadlib.launchpad import Launchpad | |
from tabulate import tabulate | |
except ImportError: | |
print "python-launchpadlib and python-tabulate are required" |
View temperature.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Measure temperature & humidity and display on OLED screen | |
* Copyright 2017 - Nathan Osman | |
*/ | |
#include <DHT.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Fonts/FreeSans12pt7b.h> | |
#define DHTPIN 3 |
View letsencrypt.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"crypto" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" |
View measurer.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Measure distance and display on OLED screen | |
* Copyright 2017 - Nathan Osman | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Fonts/FreeSans12pt7b.h> |
NewerOlder