Skip to content

Instantly share code, notes, and snippets.

View lszeremeta's full-sized avatar

Łukasz Szeremeta lszeremeta

View GitHub Profile
@lszeremeta
lszeremeta / ffmpeg-interlace-test.sh
Created August 11, 2017 23:16 — forked from aktau/ffmpeg-interlace-test.sh
ffmpeg detect interlacing
#!/bin/bash
# for a blogpost on this, check: http://www.aktau.be/2013/09/22/detecting-interlaced-video-with-ffmpeg/
# detect interlacing with the ffmpeg "idet" filter, the longer
# you let this run, the better, though it's never 100% accurate
# flags:
# -an = discard audio, we don't need it
# -f rawvideo = output raw video
// layout file
<body>
<div class="container">
<%= flash_messages %>
<%= yield %>
</div><!-- /container -->
</body>
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{light-gray}{gray}{0.25}
\lstdefinestyle{java}{
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
@lszeremeta
lszeremeta / proxy.php
Last active August 29, 2015 14:07 — forked from wrygiel/proxy.php
<?php
/* USOS API Base URL, trailing slash included. */
$usosapi_base_url = '';
/* Consumer Key to use. */
$consumer_key = '';
$consumer_secret = '';
/*
@lszeremeta
lszeremeta / hello.php
Last active August 29, 2015 14:07 — forked from wrygiel/hello.php
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
/* USOS API Base URL, trailing slash included. */
$usosapi_base_url = '';
/* URL of THIS script. Required for callback support. */
$self_url = '';
<div class="card">
<div class="card-image">
<img alt="home" src="./images/image.png" />
<div class="banner"></div>
<h2>Card Title</h2>
</div>
<p>Lorem ipsum...</p>
</div>
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");