This file contains hidden or 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 ( | |
| "time" | |
| "periph.io/x/conn/v3/gpio" | |
| "periph.io/x/conn/v3/gpio/gpioreg" | |
| "periph.io/x/conn/v3/physic" | |
| "periph.io/x/conn/v3/spi" | |
| "periph.io/x/conn/v3/spi/spireg" |
This file contains hidden or 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
| project(wintray) | |
| add_executable(hiber WIN32 | |
| hiber.cpp | |
| ) | |
| set_target_properties(hiber PROPERTIES | |
| CXX_STANDARD 11 | |
| CXX_STANDARD_REQUIRED ON | |
| ) |
This file contains hidden or 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
| project(wintray) | |
| add_executable(wintray WIN32 | |
| main.cpp | |
| resource.rc | |
| wintray.exe.manifest | |
| ) | |
| set_target_properties(wintray PROPERTIES | |
| CXX_STANDARD 11 |
This file contains hidden or 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 { |
This file contains hidden or 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 = \ |
This file contains hidden or 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): |
This file contains hidden or 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) |
This file contains hidden or 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) |
This file contains hidden or 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" |
NewerOlder
