Skip to content

Instantly share code, notes, and snippets.

View zubairov's full-sized avatar

Renat Zubairov zubairov

View GitHub Profile
@olgen
olgen / webhook_json_schema.json
Created July 24, 2013 12:23
JSON & schema of the webhook payload of admineo-webhooks
{
"type":"object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required":false,
"properties":{
"event": {
"enum": [
"product.created",
"product.updated",
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 19, 2024 11:00
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

(function(global) {
var silpUrl = '//s3-eu-west-1.amazonaws.com/silp.shootitlive.com/js/silp.min.js';
// Globals
if(!global.Silp) { global.Silp = {}; };
var Silp = global.Silp;
// To keep track of which embeds we have already processed
if(!Silp.foundEls) Silp.foundEls = [];
@Integralist
Integralist / errorhandler.js
Created January 12, 2012 09:23
Error Handling with RequireJs
define(function(){
return function(errObject) {
requireType = errObject.requireType;
requireModules = errObject.requireModules.trim().split(' ');
console.log(requireType, requireModules);
};
});
@tokumine
tokumine / mvk_Panasonic_TX-L42E30B_TX-L37E30B_TX-L32E30B
Created December 29, 2011 13:39
MKV playback problems Panasonic TX-L42E30B, TX-L37E30B and TX-L32E30B
There's something wrong with the Panasonic TX-L42E30B, TX-L37E30B and TX-L32E30B TVs not recognising certain MKV container specific settings.
There is nothing actually wrong with the x264 encoded video and audio streams - the solution is to correctly re-mux the contents of the MKV container into a compatible MKV container while avoiding a time consuming re-encode.
I have found 2 solutions (on OSX) to the problem that don't require re-encoding.
1) Repackage the MKV as a mp4 using mp4tools (http://www.emmgunn.com/mp4tools/mp4toolshome.html). This works, but is unable to handle MKVs with DTS encoded audio streams on my machine.
2) Repackage the MKV as an MKV using mkvtools beta (http://www.emmgunn.com/mkvtools/mkvtoolshome.html). This has worked flawlessly on all the broken MKVs I've tried. mkvtools also can split MKVs into FAT32 compatible chunks for playback from USB sticks and so on.
@mattpodwysocki
mattpodwysocki / jsconf-eu-2011.md
Created October 1, 2011 13:40
JSConf.EU Slides
@zubairov
zubairov / cuscar_d99a.xml
Created March 2, 2011 10:16
Example XML produced by parsing with namespace-aware D99A CUSCAR
<?xml version="1.0" encoding="UTF-8"?>
<env:unEdifact xmlns:env="urn:org.milyn.edi.unedifact.v41">
<env:UNB>
<env:syntaxIdentifier>
<env:id>UNOA</env:id>
<env:versionNum>2</env:versionNum>
</env:syntaxIdentifier>
<env:sender>
<env:id>SENDER</env:id>
</env:sender>