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
func estimateMapSize(m map[string]bool) uintptr { | |
var totalSize uintptr | |
ch := make(chan uintptr) | |
wg := sync.WaitGroup{} | |
// Iterate over each key-value pair | |
for key, value := range m { | |
wg.Add(1) | |
go func() { | |
defer wg.Done() |
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
<?php | |
use RecursiveArrayIterator; | |
use RecursiveIteratorIterator; | |
use ReflectionClass; | |
class Extractor { | |
public static function get_controllers_and_methods_list($path = 'Controllers/') { |
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
version: "3" | |
services: | |
mysql: | |
restart: always | |
container_name: mysql-test | |
image: mysql:5.7 | |
volumes: | |
- /if-you-need-to-mount:/target | |
environment: |