Skip to content

Instantly share code, notes, and snippets.

View OlegRomanenko's full-sized avatar

Oleg Romanenko OlegRomanenko

View GitHub Profile
{
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22",
"bidid": "80ce30c53c16e6ede735f123ef6e32361bfc7b22",
"cur": "RUB",
"seatbid": [{
"bid": [{
"id": "1",
"impid": "1",
"price": 50.10,
"nurl": "https://log.bumlam.com/?src=win_show_url=${AUCTION_PRICE}",
{
"id": "80ce30c53c16e6ede735f123ef6e32361bfc7b22",
"at": 1,
"cur": ["RUB"],
"imp": [{
"id": "1",
"bidfloor": 40,
"banner": {
"h": 250,
"w": 300,
class F
{
public:
void set_cb(function<void(void)>&& _cb)
{
cb = std::move(_cb);
}
private:
function<void(void)> cb;
@OlegRomanenko
OlegRomanenko / as_key_new_digest_memory_leak.cpp
Last active September 12, 2015 10:48
as_key_new_digest_memory_leak
#include <cstdio>
#include <aerospike/aerospike.h>
#include <aerospike/aerospike_key.h>
int main(int argc, char** argv)
{
as_digest_value digest = {0};
@OlegRomanenko
OlegRomanenko / gist:6751400
Last active December 24, 2015 05:38
Banner template
<img src="{URL_DSP_LOGGER}&rnd1={DSP_RND}&wp=%%WINNING_PRICE%%&rnd2=%%CACHEBUSTER%%" width="0" height="0" border="0" />
<img src="http://pixel.ru/?pixel" width="0" height="0" border="0" />
<!--[if IE]>
<object id="adnw-fm-{W}x{H}" width="{W}" height="{H}" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="left">
<param name="movie" value="http://g-dsp.adsniper.ru/img/{SWF}">
<![endif]-->
<!--[if !IE]>-->
<object id="adnw-fm-{W}x{H}" width="{W}" height="{H}" data="http://g-dsp.adsniper.ru/img/{SWF}" type="application/x-shockwave-flash">
@OlegRomanenko
OlegRomanenko / helenos-fat12-patch.patch
Created April 6, 2011 21:04
This patch brings basic support for FAT12 fs to HelenOS
diff -Naurp a/uspace/srv/fs/fat/fat_fat.c b/uspace/srv/fs/fat/fat_fat.c
--- a/uspace/srv/fs/fat/fat_fat.c 2011-04-07 00:53:26.709442951 +0400
+++ b/uspace/srv/fs/fat/fat_fat.c 2011-04-07 00:47:30.252776284 +0400
@@ -83,10 +83,11 @@ int
fat_cluster_walk(fat_bs_t *bs, devmap_handle_t devmap_handle, fat_cluster_t firstc,
fat_cluster_t *lastc, uint16_t *numc, uint16_t max_clusters)
{
- block_t *b;
uint16_t clusters = 0;
fat_cluster_t clst = firstc;