Skip to content

Instantly share code, notes, and snippets.

sixman9 /
Created Mar 10, 2022
Script to create a JSON Schema from a TypeScript interface (Editly.Config)
# Assuming you have NodeJS tools installed...
# Create a well-configured TypeScript project in direct './"$tsprojname"'
npx tsdx create --template basic "$tsprojname"
pushd ./"$tsprojname"
sixman9 /
Created Dec 11, 2020
LibGDX Pong simple implementation, University of Idaho (Jeffrey)
* Slightly modified from
* and the
* pastebin link
* cache: <=**
import com.badlogic.gdx.ApplicationListener;
sixman9 / launch.json
Created Aug 5, 2020
VSCode Mocha TypeScript debug launch configuration (place in '<project>/.vscode/launch.json')
View launch.json
"version": "0.2.0",
"configurations": [
"name": "Current TS File",
"type": "node",
"request": "launch",
"args": ["${file}"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
sixman9 /
Last active Feb 3, 2022
Wrapping a Web app or PWA into an Ionic/Capacitor Mobile or Desktop app

Capacitor—How To Get Five Apps In One time

Use Ionic framework ‘Capacitor’ to write Angular 7 code and create apps for PWA, iOS, Android, MacOS, and Windows in one go.

Jeroen Ouwehand

Nov 11, 2018·3 min read

sixman9 /
Created Aug 13, 2019
Install extensions in Visual Studio code from the command line
View Bare Android SDK Setup
sixman9 / gist:8ac49a601d3e76e33243
Created Jun 1, 2015
Add write permissions by user etc.
View gist:8ac49a601d3e76e33243
for f in `find /the/dir -user THE_USER -maxdepth 1`; do chmod -R g+w "$f"; done
# Add repositories
sudo add-apt-repository -y "deb stable non-free"
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:fish-shell/nightly-master
echo "deb stable main" | sudo tee \
sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-add-repository -y ppa:pipelight/stable
View Mail.scala
package object mail {
implicit def stringToSeq(single: String): Seq[String] = Seq(single)
implicit def liftToOption[T](t: T): Option[T] = Some(t)
sealed abstract class MailType
case object Plain extends MailType
case object Rich extends MailType
case object MultiPart extends MailType

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.