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
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE StandaloneDeriving #-} | |
| {-# LANGUAGE DeriveFunctor #-} | |
| {-# LANGUAGE DeriveTraversable #-} | |
| {- | | |
| Module : Main | |
| Description : Type-driven design for domain modeling |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Backup Significance Analyzer v2.1.0 | |
| Analyzes file and directory significance in user home directories using statistical | |
| methods (entropy, access patterns, modification frequency, content hints) to | |
| recommend optimized backup strategies. |
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 python3 | |
| """ | |
| Advanced Encoding Analyzer Pro | |
| ------------------------------ | |
| Enterprise-grade encoding analysis tool with comprehensive JSON handling. | |
| Supports recursive decoding, binary data inspection, and advanced format detection. | |
| """ | |
| import argparse | |
| import base64 |
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 python3 | |
| """ | |
| Professional Domain Availability Checker | |
| This script provides comprehensive domain availability checking across multiple TLDs using | |
| robust DNS queries, enhanced WHOIS lookups, and advanced features like bulk checking, | |
| export capabilities, and detailed logging. | |
| Features: | |
| - Concurrent domain checking for optimal performance |
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 perl | |
| use strict; | |
| use warnings; | |
| use File::Find; | |
| use File::Path qw(make_path); | |
| use File::Copy qw(copy); | |
| use File::Compare; | |
| use File::Basename; | |
| use IPC::System::Simple qw(system capture); | |
| use Cwd qw(abs_path); |
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
| import numpy as np | |
| from scipy.io import wavfile | |
| from math import pow | |
| def dB_to_ratio(dB): | |
| return pow(10, dB / 20) | |
| def compress_audio(sample_rate, audio, threshold, ratio, attack_time, release_time): | |
| compressed_audio = np.zeros_like(audio, dtype=np.float32) | |
| gain_reduction = 0 |
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
| import boto3 | |
| if __name__ == "__main__": | |
| s = boto3.session.Session() | |
| dynamodb_regions = s.get_available_regions('dynamodb') | |
| for region in dynamodb_regions: | |
| try: | |
| logs = boto3.client('logs', region_name=region) |
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
| """ | |
| When a custom lambda layer (zipped folder) is added, all lambda functions that use it put it on "/opt/LAYER". | |
| In theory, "/opt/LAYER" should be added to the $PATH environment variable, but that didn't happen. | |
| In any case, this is an example of how to import in an "absolute" fashion. | |
| sample_lib/layer_test.py (That's the structure of the layer, which has a class named X.) | |
| """ | |
| import json | |
| import os | |
| import importlib.util |
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
| """ | |
| Copyright (C) <2018> <Ericson Willians> | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
| import java.sql.*; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| public class Estabelecimento<T> { | |
| final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; | |
| final String DB_URL = "jdbc:mysql://localhost/bd_gopg"; // Mudar o host / endereço do banco de dados aqui. | |
| final String USER = "root"; // Mudar o usuário do banco de dados aqui. | |
| final String PASS = ""; // Mudar a senha do banco de dados aqui. | |
| T input = null; |
NewerOlder