Skip to content

Instantly share code, notes, and snippets.

Marcus Schiesser marcusschiesser

Block or report user

Report or block marcusschiesser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marcusschiesser
marcusschiesser / qt2gif.py
Created Sep 24, 2019
Convert QuickTime movies to animated GIFs. Useful for uploading to Github
View qt2gif.py
from gooey import Gooey, GooeyParser
@Gooey(target="ffmpeg", program_name='QuickTime To Gif v1.0', suppress_gooey_flag=True)
def main():
parser = GooeyParser(description="Convert QuickTime movies to GIFs")
ffmpeg = parser.add_argument_group('Frame Extraction Util')
ffmpeg.add_argument('-i',
metavar='Input Movie',
help='The movie that you want to convert to a GIF',
widget='FileChooser')
@marcusschiesser
marcusschiesser / launchrock_adwords.js
Created Sep 22, 2016 — forked from anonymous/launchrock_adwords.js
Add Google Adwords to Launchrock
View launchrock_adwords.js
// you also have to add the JS from the URL http://www.googleadservices.com/pagead/conversion_async.js in the header,
// so the function window.google_trackConversion is available
angular.module("lrSiteApp").config(function ($httpProvider) {
var httpinterceptor = function () {
return {
response: function (result) {
var isCreateReq = result.config.url.match(/site-users\/create/) !== null;
if (isCreateReq) {
window.google_trackConversion({
@marcusschiesser
marcusschiesser / ext_dataview_buttons.js
Created May 7, 2013
Buttons with action handlers in a datagrid in ExtJS 4.2
View ext_dataview_buttons.js
Ext.onReady(function () {
Ext.define('User', {
extend: 'Ext.data.Model',
fields: [
{name: 'name', type: 'string'}
]
});
var store = Ext.create('Ext.data.Store', {
@marcusschiesser
marcusschiesser / TXUtils.java
Created Apr 27, 2013
Utils class for doing transactions with Google App Engine
View TXUtils.java
public final class TXUtils {
public static final Logger log = Logger.getLogger(TXUtils.class.getName());
public interface Transaction<T> {
T doit(EntityManager em);
}
private static final EntityManagerFactory emfInstance = Persistence
.createEntityManagerFactory("my-persistence-unit");
@marcusschiesser
marcusschiesser / HttpUtils.java
Created Apr 27, 2013
Simple Http client class for doing REST-style request with Android
View HttpUtils.java
import org.codehaus.jackson.map.ObjectMapper;
public class HttpUtils {
private static final int SERVER_PORT = 80;
private static final String SERVER_IP = "myapp.appspot.com"; // use 10.0.2.2 for emulator
private static HttpUtils instance = new HttpUtils();
private DefaultHttpClient client;
private ResponseHandler<String> responseHandler;
@marcusschiesser
marcusschiesser / AuthFilter.scala
Created Apr 27, 2013
AuthFilter secures your Play 2.1.1 web application by allowing only requests that contain a secret access key. Once authenticated the secret key is stored in the session object for convenience.
View AuthFilter.scala
package util
import play.api.mvc._
import play.api.Logger
object AuthFilter extends Filter {
val accessParam = "access_key"
val accessKey = "secret"
override def apply(next: RequestHeader => Result)(request: RequestHeader): Result = {
You can’t perform that action at this time.