Skip to content

Instantly share code, notes, and snippets.

@sixman9
sixman9 / wrapWebAppInIonic.md
Last active February 3, 2022 21:53
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
sixman9 / java-ikvm-dotnet
Created January 13, 2011 16:57
Using IKVM to generate a C# assembly (dll) from a Java jar file
See http://stackoverflow.com/questions/2947990/using-ikvm-to-convert-a-jar-flying-saucer-xhtmlrenderer
I wanted to use the Flying Saucer Java API in .NET so I tried to use IKVM to convert the Flying Saucer library:
ikvmc core-renderer.jar
For some reason, IKVMC gave me an exe core-renderer.exe so I renamed it to core-renderer.dll, added to my assemblies and hacked away
using java.io;
using java.lang;
using com.lowagie.text;
@sixman9
sixman9 / CSharpSpatialHash.cs
Created February 1, 2011 12:51
A Spatial Hash class in C#.
/*
http://entitycrisis.blogspot.com/2010/02/spatial-hash-class-in-c.html
This is a rather useful class, the Spatial Hash. It is used for creating an index of spatial data (3D things in space) and allowing fast queries to be run against the index.
Effectively, you can use this class to ask, "I'm at this position, what other objects are near me?".
*/
using UnityEngine; //This needs to be 'removed' to make 'universal', i.e. not tied to Unity3D
using System.Collections;
@sixman9
sixman9 / Pong.java
Created December 11, 2020 04:08
LibGDX Pong simple implementation, University of Idaho (Jeffrey)
/*
* 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 / Bare Android SDK Setup MacOS.md
Last active September 18, 2020 15:34 — forked from srmds/Bare Android SDK Setup MacOS.md
Bare Android sdk setup MacOS
@sixman9
sixman9 / launch.json
Created August 5, 2020 11:59
VSCode Mocha TypeScript debug launch configuration (place in '<project>/.vscode/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,
<!-- Originally found at http://qainsight.net/2007/03/04/Update+To+User+Agent+Import+For+User+Agent+Switcher.aspx -->
<useragentswitcher>
<useragent description="*Internet Explorer*****************" useragent="" appname="" appversion=""
platform="" vendor="" vendorsub="" />
<useragent description="MSIE 7 (Win Vista)" useragent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"
appname="" appversion="" platform="" vendor="" vendorsub="" />
<useragent description="MSIE 7 (Win XP)" useragent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"
appname="" appversion="" platform="" vendor="" vendorsub="" />
<useragent description="MSIE 7 (Win Storage Server)" useragent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1)"
appname="" appversion="" platform="" vendor="" vendorsub="" />
@sixman9
sixman9 / More3Dto2dOpenTK.txt
Created February 8, 2011 13:03
3D to 2D functions...
http://www.aopentk.com/node/1892
Projects a 3D vector from object space into screen space. Reference page contains links to related code samples.
Parameters
source
The vector to project.
projection
The projection matrix.
view
The view matrix.
@sixman9
sixman9 / installExtensions.sh
Created August 13, 2019 17:12
Install extensions in Visual Studio code from the command line
#!/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
@sixman9
sixman9 / installKivySrc.sh
Last active June 25, 2019 08:38
Installs the latest Kivy source distribution from Github for Debian/Ubuntu
#!/bin/bash
kivyBaseBuildDir=/tmp
myKivyInstallAlias="kivyDev"
#Build and install Kivy on Ubuntu - http://kivy.org/docs/installation/installation.html#development-version
#Modify the PYTHONPATH to point at our Kivy install - see http://docs.python.org/2/tutorial/modules.html#the-module-search-path AND http://docs.python.org/2/tutorial/modules.html#standard-modules
sudo apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip
if [ ! `pip freeze | grep -i cython` ]; then