Skip to content

Instantly share code, notes, and snippets.

View pedrofaria's full-sized avatar
🇧🇷
Eu sou o Pedro

Pedro Faria pedrofaria

🇧🇷
Eu sou o Pedro
View GitHub Profile
@pedrofaria
pedrofaria / logs_20220315_201400_1636636807.log
Created June 29, 2022 18:25
fake accserver log - logs_20220315_201400_1636636807.log
This file has been truncated, but you can view the full file.
Server starting with version 255
Starting server Xurupita - Noobs - SPA (by ACCWeb)
==ERR: dumpEntryList is set to true, but is a public server. Will not dump entry lists
Joining during race is allowed
FileToStruct cfg/eventRules.json
maxCarSlots 25 exceeds the allowed slots by Rating requirement (24). Add Track Medal and Safety Rating Requirements to gain up to 30 slots (3 TM + 70 SA)
Translated realtime interval hzToMiliseconds(18)=54
Autogenerated new configuration.json options
Autogenerated new settings.json options
#!/bin/sh
export ANDROID_HOME="$HOME/Library/Android/sdk"
export DYLD_LIBRARY_PATH="$ANDROID_HOME/emulator/lib64:$ANDROID_HOME/emulator/lib64/qt/lib"
$ANDROID_HOME/emulator/qemu/darwin-x86_64/qemu-system-x86_64 -netdelay none -netspeed full -avd Pixel_2_API_30
r/local/Cellar/go/1.14/libexec #gosetup
GOPATH=/Users/p.faria/go #gosetup
/usr/local/Cellar/go/1.14/libexec/bin/go build -o /private/var/folders/3k/_dkl0l91723426w_hxt_yzcxdh0wn0/T/___go_build_github_com_ramon_astrago_cmd_grpc github.com/ramon/astrago/cmd/grpc #gosetup
/private/var/folders/3k/_dkl0l91723426w_hxt_yzcxdh0wn0/T/___go_build_github_com_ramon_astrago_cmd_grpc #gosetup
INFO[0000] Booting Game Server game-speed=1 quadrant-distance=1 travel-time-multiply=1s
INFO[0000] Loading the Universe ...
INFO[0000] Universe Loaded. bbox="Rect(-25,-31;21,32)" size=79.40403012442127 total-celestials=20
INFO[0000] Running Game Server...
INFO[0000] starting gRPC server...
INFO[0000] starting HTTP/REST gateway in address :8080 ...
package main
import (
"testing"
)
type everyThing struct{}
func (e *everyThing) FuncA() bool {
return true
@pedrofaria
pedrofaria / main.go
Last active April 24, 2019 16:02
Test solution
func Solution1(A int, B int) string {
sL, sN, bL, bN := "b", B, "a", A
if B > A {
sL, sN, bL, bN = "a", A, "b", B
}
output := ""
f := false
r := 3
@pedrofaria
pedrofaria / XML-PHPUnit.xml.groovy
Created April 10, 2018 15:33
PHPStorm - Generate database fixture file for Integration Tests
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col) }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
<VirtualHost *:80>
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Generating code coverage report in HTML format ... done
eu@Pedros-MacBook-Air ⮀ ~/src/primeiramao/website ⮀ ⭠ develop± ⮀ guard
23:29:27 - INFO - Guard uses TerminalTitle to send notifications.
23:29:27 - INFO - Running all tests
PHP Fatal error: Class 'Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll' not found in /Users/eu/src/primeiramao/website/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php on line 1182
PHP Stack trace:
PHP 1. {main}() /usr/local/Cellar/php54/5.4.12/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/local/Cellar/php54/5.4.12/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run() /usr/local/Cellar/php54/5.4.12/lib/php/PHPUnit/TextUI/Command.php:129
PHP 4. PHPUnit_Runner_BaseTestRunner->getTest() /usr/local/Cellar/php54/5.4.12/lib/php/PHPUnit/TextUI/Command.php:150
=== Tests ===
1) Benchmark test for Single Threads
-- C:
**** C (200000010000000)
Total time: 0.00665903 s
-- Clever:
**** clever (200000010000000)
Total time: 2.29342 s
-- Java:
**** Java (200000010000000)
eu ~/src/clever/benchmark $ sh run.sh
Running threads benchmark...
threads/threads_001.clv:
Time elapsed single-thread version clever: 2.29763
Time elapsed multi-thread version clever: 1.53859
Relative time difference: 33.0359 %
Result: 200000010000000
[OK]
threads/threads_001.py: [python version]
Time elapsed single-thread python: 3.3809800148