This file contains 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
/* | |
In my case, compile with: | |
/usr/bin/c++ --std=c++14 -I${PWD}/fmt -I${PWD}/include testcase3.cpp -o testcase -L$PWD/lib $PWD/lib/libv8_base.a -lv8_libbase $PWD/lib/libv8_nosnapshot.a -lv8_libplatform $PWD/lib/libv8_libsampler.a -licui18n -licuuc -Wl,-rpath,$PWD/lib -pthread | |
Run with ./testcase | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains 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
/* | |
In my case, compile with: | |
/usr/bin/c++ --std=c++14 -I${PWD}/include testcase2.cpp -o testcase -L$PWD/lib $PWD/lib/libv8_base.a -lv8_libbase $PWD/lib/libv8_nosnapshot.a -lv8_libplatform $PWD/lib/libv8_libsampler.a -licui18n -licuuc -Wl,-rpath,$PWD/lib -pthread | |
Run with ./testcase | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains 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
(gdb) r | |
Starting program: /projects/cheerp/cheerp-utils/tests/server/async_chat | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
1456442248 INFO pion.http.plugin_server : Added request handler for HTTP resource: | |
1456442248 INFO pion.http.plugin_server : Loaded web service plug-in for resource (): FileService.so | |
1456442248 INFO pion.http.plugin_server : Set web service option for resource (/): directory=. | |
1456442248 INFO pion.http.plugin_server : Added request handler for HTTP resource: /cheerp_call | |
1456442248 INFO pion.http.plugin_server : Starting server on port 1987 | |
1456442248 INFO pion.scheduler : Starting thread scheduler |
This file contains 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
trigen@FIREFLY:/projects/cheerp-utils/tests/server[pion5]> gdb ./async_chat | |
GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 | |
Copyright (C) 2015 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains 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
// ==UserScript== | |
// @name Add time spent per day in "Done" column Kanbanflow. | |
// @namespace http://cppse.nl/ | |
// @version 0.1 | |
// @description Add time spent per day in "Done" column Kanbanflow. | |
// @match https://kanbanflow.com/board/* | |
// @copyright 2012+, Ray Burgemeestre | |
// @updateURL http://cppse.nl/public/tampermonkey_kanbanflow_time_spent_per_day-meta.js | |
// @downloadURL http://cppse.nl/public/tampermonkey_kanbanflow_time_spent_per_day.js | |
// ==/UserScript== |
This file contains 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
template <typename T> | |
void print_vector(vector<T> &A, size_t counter) | |
{ | |
cout << "" << counter << ") "; |
This file contains 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
// ==UserScript== | |
// @name Visualize blocked tickets in current sprint on Jira Agile board Plan board. | |
// @namespace http://cppse.nl | |
// @version 1.0 | |
// @description It will fetch all `status != Done` issues in the current sprint with an API call, | |
// and see if there are "is blocked by" relations to tickets that are not yet `status = Done`. | |
// @author Ray Burgemeetre | |
// @match https://*.atlassian.net/secure/RapidBoard.jspa*view=planning* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
// ==UserScript== | |
// @name Visualize issue ranks in the Jira Agile board | |
// @namespace http://cppse.nl | |
// @version 2.3.4.3 | |
// @description It will search for the ranks using an Ajax Jira API call with two seconds in between | |
// and update the board with colored rank indicators. | |
// @author Ray Burgemeetre | |
// @match https://*/secure/RapidBoard.jspa* | |
// @updateURL http://cppse.nl/public/tampermonkey_agile_board_prios-meta.js | |
// @downloadURL http://cppse.nl/public/tampermonkey_agile_board_prios.js |
This file contains 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 | |
class ScopedResourceAllocator | |
{ | |
private $closure = null; | |
public function __construct(Closure $closure) | |
{ | |
$this->closure = $closure; | |
} | |
public function __destruct() | |
{ |