Skip to content

Instantly share code, notes, and snippets.

Paweł Sroka Srokap

Block or report user

Report or block Srokap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Srokap
Srokap / crs10.csv
Last active Feb 19, 2017
Converted https://github.com/rikkertkoppes/spacex-telemetry/blob/master/crs10.txt to CSV. Removed leading and trailing junk, but still some rows are corrupted. Most of them are fine.
View crs10.csv
We can't make this file beautiful and searchable because it's too large.
Time,Speed,Altitude
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
00:00:05,00000,00.0
@Srokap
Srokap / problems.txt
Created Jul 22, 2014
List of private function calls in bundled plugins for Elgg 1.9
View problems.txt
Subpath selected mod/
Max version: 1.9
In file: D:/GIT/Srokap/Elgg/mod\aalborg_theme\views\default\page\default.php
Line 21: Function call: _elgg_admin_add_plugin_settings_menu (use of function marked private is unsafe)
In file: D:/GIT/Srokap/Elgg/mod\blog\activate.php
Line 6: Function call: get_subtype_id (use of function marked private is unsafe)
In file: D:/GIT/Srokap/Elgg/mod\blog\views\default\forms\blog\save.php
@Srokap
Srokap / changes.md
Created May 24, 2014
git log output without merges and commits matching our new forma standard
View changes.md

commit b83c69759c2b9100b40d6ed344dc0a1c6b6ba628 Author: Brett Profitt brett.profitt@gmail.com Date: Thu Apr 24 10:09:40 2014 -0400

Revert "Fixes #5090: Possible to register js as shimmed AMD module"

This reverts commit 4dcaf3889c1800ea879db1606f7883a21edf3a6f.

Conflicts:
	engine/classes/Elgg/AmdConfig.php
@Srokap
Srokap / composer.json
Created Apr 14, 2014
Simplest example of installing Elgg plugins with composer. Just put it into your project root and run `php composer.phar install`
View composer.json
{
"type": "project",
"repositories": [
{
"type": "composer",
"url": "http://composer.i.srokap.pl"
}
],
"minimum-stability": "dev",
"require": {
@Srokap
Srokap / composer.json
Created Jan 29, 2014
composer.json for Elgg projest
View composer.json
{
"name": "srokap/elgg",
"type": "project",
"description": "Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.",
"homepage": "http://elgg.org/",
"minimum-stability": "stable",
"keywords": ["elgg", "framework", "social network", "open source social networking", "social intranet", "collaboration software", "social networking software", "community software", "social media", "social publishing", "social media platform"],
"license": ["GPL-2.0", "MIT"],
"authors": [
{
@Srokap
Srokap / composer.json
Created Dec 25, 2013
Sample composer.json for Elgg core with additional requirement of srokap/code_review
View composer.json
{
"name": "elgg/elgg",
"type": "project",
"description": "Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.",
"homepage": "http://elgg.org/",
"minimum-stability": "stable",
"keywords": ["elgg", "framework", "social network", "open source social networking", "social intranet", "collaboration software", "social networking software", "community software", "social media", "social publishing", "social media platform"],
"license": ["GPL-2.0", "MIT"],
"authors": [
{
@Srokap
Srokap / config
Created Aug 20, 2013
Transifex .tx/config file for Elgg
View config
[main]
host = https://www.transifex.com
[elgg-core.engine]
file_filter = languages/<lang>.php
source_file = languages/en.php
source_lang = en
type = PHP_ARRAY
[elgg-core.install]
View gist:5655131
Elgg Core Unit Tests
string 'ElggObject' (length=10)
array
'maxtime' => string '1369627086' (length=10)
Exception: G:/GIT/Srokap/Elgg1.9/engine/tests/ElggCoreEntityGetterFunctionsTest.php -> ElggCoreEntityGetterFunctionsTest -> testElggApiGettersEntitiesFromAnnotation -> Unexpected PHP error [Invalid error type specified] severity [2] in [G:\GIT\Srokap\Elgg1.9\engine\classes\Elgg\AttributeLoader.php line 260]
string 'ElggObject' (length=10)
@Srokap
Srokap / test.php
Created May 9, 2013
Timestamp in int or string memory consumption
View test.php
$mx = 10000;
$mem = memory_get_usage();
$data1 = array();
$i = $mx;
while ($i-- >0) {
$data1[] = 1368118712;
}
$i1 = (memory_get_usage() - $mem);
echo ' ';
View Travis install bug
Exception #1364526180: exception 'DatabaseException' with message 'Elgg couldn't select the database '', please check that the database is created and you have access to it.' in /home/travis/build/Srokap/Elgg/engine/classes/ElggDatabase.php:120
Stack trace:
#0 /home/travis/build/Srokap/Elgg/engine/classes/ElggDatabase.php(72): ElggDatabase->establishLink('readwrite')
#1 /home/travis/build/Srokap/Elgg/engine/classes/ElggDatabase.php(51): ElggDatabase->setupConnections()
#2 /home/travis/build/Srokap/Elgg/engine/lib/database.php(118): ElggDatabase->getLink('read')
You can’t perform that action at this time.