Skip to content

Instantly share code, notes, and snippets.

View azhurb's full-sized avatar

Oleksii Zhurbytskyi azhurb

View GitHub Profile
@azhurb
azhurb / Improved_authorization_(issue_#931).patch
Created June 27, 2012 14:46
Stalker MW. Improved authorization (issue #931)
Index: server/tools/auth_simple.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/tools/auth_simple.php (revision 3059)
+++ server/tools/auth_simple.php (revision )
@@ -10,7 +10,12 @@
$login = $_REQUEST['login'];
$password = $_REQUEST['password'];
@azhurb
azhurb / gist:3341468
Created August 13, 2012 14:54
issue #909
Index: D:/projects/stalker_portal/stalker_portal/c/tv_archive.js
===================================================================
--- D:/projects/stalker_portal/stalker_portal/c/tv_archive.js (revision 3107)
+++ D:/projects/stalker_portal/stalker_portal/c/tv_archive.js (revision 3108)
@@ -142,7 +142,7 @@
},
get_filename_by_date : function(date){
- _debug('tv_archive.get_filename_by_date', date);
+ _debug('tv_archive.get_filename_by_date', date.toString());
@azhurb
azhurb / epg.class.php
Created September 10, 2012 13:42
Fix issue #1068
<?php
/**
* Epg from XMLTV
*
* @package stalker_portal
* @author zhurbitsky@gmail.com
*/
class Epg
{
@azhurb
azhurb / base-funcs.js
Created September 14, 2012 12:59
Fix youtube
/**
* `byID` is function for return element object
*
* @function
* @name byID
* @param {function(id):*}
* @example
* byID('frame');
* @return [object]
*/
@azhurb
azhurb / objs.js
Created September 14, 2012 12:59
Fix youtube
var player_cond = 0,
player = {
"obj":new Object(), //current object
"condition": 1, // play/pause
"current_step": 30, // step rewind
"steps": [5,10,20,30,60,300,600,900], // step rewinds
"interval": new Object(), // timer for everystep
"interval_text": "setInterval(player.every_sec, 1000);", // text
"last_step": 10, // in percents
"where": 0, //position for set after rewind
@azhurb
azhurb / Fix_youtube.patch
Created September 14, 2012 13:03
Fix youtube
Index: external/youtube/js/base-funcs.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- external/youtube/js/base-funcs.js (revision 3059)
+++ external/youtube/js/base-funcs.js (revision )
@@ -247,7 +247,8 @@
{
if (request.readyState == 4 && request.status == 200) {
@azhurb
azhurb / objs.js
Created September 27, 2012 14:48
Youtube fix
var player_cond = 0,
player = {
"obj":new Object(), //current object
"condition": 1, // play/pause
"current_step": 30, // step rewind
"steps": [5,10,20,30,60,300,600,900], // step rewinds
"interval": new Object(), // timer for everystep
"interval_text": "setInterval(player.every_sec, 1000);", // text
"last_step": 10, // in percents
"where": 0, //position for set after rewind
@azhurb
azhurb / base-funcs.js
Created September 27, 2012 14:48
Fix youtube
/**
* `byID` is function for return element object
*
* @function
* @name byID
* @param {function(id):*}
* @example
* byID('frame');
* @return [object]
*/
@azhurb
azhurb / xpcom.common.js
Created October 2, 2012 07:53
Model type fix
/**
* Common XPCOM STB constructor.
* @constructor
*/
function common_xpcom(){
this.user = {};
this.mac = '';
this.ip = '';
this.hd = 0;
@azhurb
azhurb / Default_wide_tv_container.patch
Created October 11, 2012 10:59
Default wide tv container
Index: c/tv.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/tv.js (revision 3273)
+++ c/tv.js (revision )
@@ -585,13 +585,6 @@
//this._play_now(this.data_items[this.cur_row]);
this.set_active_row(this.cur_row);