Skip to content

Instantly share code, notes, and snippets.

Sean Flanigan seanf

Block or report user

Report or block seanf

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
@seanf
seanf / GWT Compiler Options
Last active May 8, 2019 — forked from Abdennebi/GWT Compiler Options
GWT Compiler Options
View GWT Compiler Options
Original Source : https://web.archive.org/web/20181012143606/http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions
java -cp ~/.m2/repository/com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.jar com.google.gwt.dev.Compiler
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
seanf / mvnhelpcmd
Created Feb 20, 2019
Invokes Maven's Help plugin to describe another Maven plugin's goal
View mvnhelpcmd
#!/bin/bash
cmd="$1"
shift
./mvnw help:describe -Ddetail "-Dcmd=$cmd" "$@"
@seanf
seanf / mvnhelp
Created Feb 20, 2019
Invokes Maven's Help plugin to describe another Maven plugin's goals
View mvnhelp
#!/bin/bash
plugin="$1"
shift
./mvnw help:describe -Ddetail "-Dplugin=$plugin" "$@"
@seanf
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 http://tampermonkey.net/
// @version 0.1
// @description Replace GitLab's relative times (from timeago.js) with real timestamps
// @author Sean Flanigan
// @match https://gitlab.com/*
// ==/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:
@Test
@Disabled
fun dummy() {}
@seanf
seanf / unit.sh
Last active Aug 31, 2018 — forked from tvlooy/unit.sh
Bash test: get the directory of a script
View unit.sh
#!/bin/bash
function test {
MESSAGE=$1
RECEIVED=$2
EXPECTED=$3
if [ "$RECEIVED" = "$EXPECTED" ]; then
echo -e "\033[32m✔︎ Tested $MESSAGE"
else
@seanf
seanf / Instances.java
Created Aug 27, 2018
Clean up CDI Instances (Dependent only)
View Instances.java
/*
* 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
seanf / functionaljava_1.8-pom.xml
Created Aug 23, 2018
Functional Java dependencies for Java 8
View functionaljava_1.8-pom.xml
<!-- http://www.mvnrepository.com/artifact/org.functionaljava -->
<dependency>
<groupId>org.functionaljava</groupId>
<artifactId>functionaljava_1.8</artifactId>
<version>4.8</version>
</dependency>
<dependency>
<groupId>org.functionaljava</groupId>
<artifactId>functionaljava-java-core_1.8</artifactId>
<version>4.8</version>
@seanf
seanf / tuple.md
Last active Apr 29, 2018 — forked from jcalz/tuple.md
TypeScript tuple inference
View tuple.md

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"]; 
@seanf
seanf / debugreact
Created Jan 22, 2018
Enables stack traces for React warnings
View debugreact
#!/bin/sh -e
sed -i 's/console.warn(/console.trace(/g' node_modules/react/lib/lowPriorityWarning.js
sed -i 's/console.error(/console.trace(/g' node_modules/fbjs/lib/warning.js
You can’t perform that action at this time.