Skip to content

Instantly share code, notes, and snippets.

seanf / stretchvideo43.js
Last active May 10, 2020 — forked from arpruss/stretchvideo.js
Bookmarklet to change aspect ratio of html5 video to 4:3
View stretchvideo43.js
document.dispatchEvent(new Event('mobi.omegacentauri.killStretchVideoEvent'));
var vid = document.getElementsByTagName('video');
if (vid.length == 0) {
alert("No video elements found in this page.");
else {
var mode = "4:3";
var stretchX = null;
var stretchY = null;
seanf / GWT Compiler Options
Last active May 8, 2019 — forked from Abdennebi/GWT Compiler Options
GWT Compiler Options
View GWT Compiler Options
Original Source :
java -cp ~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.jar
Missing required argument 'module[s]'
Google Web Toolkit 2.8.2
Compiler [-logLevel (ERROR|WARN|INFO|TRACE|DEBUG|SPAM|ALL)] [-workDir dir] [-X[no]closureFormattedOutput] [-[no]compileReport] [-X[no]checkCasts] [-X[no]classMetadata] [-[no]draftCompile] [-[no]checkAssertions] [-XfragmentCount numFragments] [-XfragmentMerge numFragments] [-gen dir] [-[no]generateJsInteropExports] [-includeJsInteropExports/excludeJsInteropExports regex] [-XmethodNameDisplayMode (NONE|ONLY_METHOD_NAME|ABBREVIATED|FULL)] [-Xnamespace (NONE|PACKAGE)] [-optimize level] [-[no]saveSource] [-setProperty name=value,value...] [-style (DETAILED|OBFUSCATED|PRETTY)] [-[no]failOnError] [-[no]validateOnly] [-sourceLevel [auto, 1.8]] [-localWorkers count] [-[no]incremental] [-war dir] [-depl
seanf / mvnhelpcmd
Created Feb 20, 2019
Invokes Maven's Help plugin to describe another Maven plugin's goal
View mvnhelpcmd
./mvnw help:describe -Ddetail "-Dcmd=$cmd" "$@"
seanf / mvnhelp
Created Feb 20, 2019
Invokes Maven's Help plugin to describe another Maven plugin's goals
View mvnhelp
./mvnw help:describe -Ddetail "-Dplugin=$plugin" "$@"
seanf / gitlab-realtime.user.js
Created Jan 20, 2019
GitLab real time user script
View gitlab-realtime.user.js
// ==UserScript==
// @name GitLab real time
// @namespace
// @version 0.1
// @description Replace GitLab's relative times (from timeago.js) with real timestamps
// @author Sean Flanigan
// @match*
// ==/UserScript==
(function() {
View MyRetryableTest.kt
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
internal class MyRetryableTest {
// Just to help IntelliJ detect this test class:
fun dummy() {}
seanf /
Last active Aug 31, 2018 — forked from tvlooy/
Bash test: get the directory of a script
function test {
if [ "$RECEIVED" = "$EXPECTED" ]; then
echo -e "\033[32m✔︎ Tested $MESSAGE"
seanf /
Created Aug 27, 2018
Clean up CDI Instances (Dependent only)
* Copyright 2018, Red Hat, Inc. and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
seanf / functionaljava_1.8-pom.xml
Created Aug 23, 2018
Functional Java dependencies for Java 8
View functionaljava_1.8-pom.xml
<!-- -->
seanf /
Last active Apr 29, 2018 — forked from jcalz/
TypeScript tuple inference

You can use the tuple() function in tuple.ts to infer tuple types in TypeScript and cut down on the need to repeat yourself. Without tuple(), declaring a constant of a tuple type looks like this:

const daysOfTheWeek: ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"] = 
  ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];

You can't do this:

const daysOfTheWeek = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];