Skip to content

Instantly share code, notes, and snippets.

@romanov
romanov / UIPosition
Last active August 29, 2015 14:06
MonoGame's responsive screen
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace im.romanov.subgame.Utility
{
public static class UIPosition
{
private const int MinResolutionWidth = 1366;
private const int MinResolutionHeight = 768;
@romanov
romanov / gist:abc494ee7b08f232f539
Last active January 16, 2016 14:40
node-webkit debug on Windows via Powershell
# path to nw.exe
$nodePath = "d:\Projects\node-webkit-v0.9.2-win-ia32\nw.exe"
# release file path
$releaseFile = "d:\Projects\app.nw"
# path to the app project
$appFolder = "d:\Projects\nodeApp1\app"
function ZipFiles( $zipfilename, $sourcedir )
{
Add-Type -Assembly System.IO.Compression.FileSystem