Skip to content

Instantly share code, notes, and snippets.

@sixman9
sixman9 / Pong.java
Created Dec 11, 2020
LibGDX Pong simple implementation, University of Idaho (Jeffrey)
View Pong.java
/*
* Slightly modified from
* http://www.java-gaming.org/index.php?topic=33022.0 and the
* pastebin link http://pastebin.com/WMFBg3zQ
*
* cache:http://www2.cs.uidaho.edu/~jeffery/courses/328/newPong.java <=**
*/
package com.mygdx.game;
import com.badlogic.gdx.ApplicationListener;
@sixman9
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
sixman9 / wrapWebAppInIonic.md
Last active Dec 11, 2020
Wrapping a Web app or PWA into an Ionic/Capacitor Mobile or Desktop app
View wrapWebAppInIonic.md

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
sixman9 / installExtensions.sh
Created Aug 13, 2019
Install extensions in Visual Studio code from the command line
View installExtensions.sh
#!/bin/sh
extensionList=(
formulahendry.auto-close-tag
formulahendry.auto-complete-tag
formulahendry.auto-rename-tag
CoenraadS.bracket-pair-colorizer
wmaurer.change-case
Shan.code-settings-sync
streetsidesoftware.code-spell-checker
View Bare Android SDK Setup MacOS.md
@sixman9
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
View install.sh
#!/bin/bash
# Add repositories
sudo add-apt-repository -y "deb http://repository.spotify.com stable non-free"
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:fish-shell/nightly-master
echo "deb http://downloads.hipchat.com/linux/apt stable main" | sudo tee \
/etc/apt/sources.list.d/atlassian-hipchat.list
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
View README.md

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.
@sixman9
sixman9 / build.gradle
Last active Mar 22, 2018
My base Gradle build file, with sample Intellij & Eclipse project config section - This a version of https://github.com/sixman9/gradleExample/blob/master/build.gradle.
View build.gradle
version = 0.1
apply plugin: 'java'
//apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin:'application' //See 'mainClassName', issue 'gradle run'
mainClassName = "YourMainClassNameHere"