This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attribute vec4 vertex; | |
attribute vec2 texCoord; | |
void vs_main() | |
{ | |
} | |
varying vec3 LightDirection; | |
varying vec3 LightColor; | |
varying vec3 AmbientColor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace UsingUsingBlocks | |
{ | |
class SomethingThatDisposes : IDisposable | |
{ | |
public SomethingThatDisposes() | |
{ | |
Console.WriteLine("Creating"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void PreMultiplyImage(string infile, string outfile) | |
{ | |
using (System.Drawing.Image image = System.Drawing.Image.FromFile(infile)) | |
{ | |
int w = image.Width; | |
int h = image.Height; | |
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(image); | |
for (int i = 0; i != bitmap.Width; ++i) | |
{ | |
for (int j = 0; j != bitmap.Height; ++j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class ViewModelBase : MvxViewModel | |
{ | |
protected void ClearStackAndShowViewModel<TViewModel>() | |
where TViewModel : ViewModelBase | |
{ | |
var presentationBundle = new MvxBundle(new Dictionary<string, string> { { PresentationBundleFlagKeys.ClearStack, "" } }); | |
ShowViewModel<TViewModel>(presentationBundle: presentationBundle); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# where to store the sparse-image | |
WORKSPACE=~/Documents/workspace.dmg.sparseimage | |
create() { | |
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE} | |
} | |
detach() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Frameworks/Mono.framework/Commands/xbuild /p:AndroidSdkDirectory="/Users/dean/android-toolchain/sdk" /p:AndroidNdkDirectory="/Users/dean/android-toolchain/ndk" /noconsolelogger /flp1:LogFile=/Users/dean/Documents/Sandbox/Xamarin/dellismonodroid/tests/msbuild/nunit/Xamarin.Android.Build.Tests/Xamarin.Android.Build.Tests/bin/Debug/temp/BuildBasicApplicationCheckPdb/build.log;Encoding=UTF-8;Verbosity=diagnostic /p:TargetFrameworkRootPathSearchPathsOSX="/Users/dean/Documents/Sandbox/Xamarin/dellismonodroid/out/lib/xbuild-frameworks" /p:TargetFrameworkRootPath="/Users/dean/Documents/Sandbox/Xamarin/dellismonodroid/out/lib/xbuild-frameworks" /p:FrameworkPathOverride="/Users/dean/Documents/Sandbox/Xamarin/dellismonodroid/out/lib/xbuild-frameworks/MonoAndroid/v1.0" /p:MonoDroidInstallDirectory="/Users/dean/Documents/Sandbox/Xamarin/dellismonodroid/out" /t:SignAndroidPackage temp/BuildBasicApplicationCheckPdb/UnnamedProject.csproj /p:UseHostCompilerIfAvailable=false /p:BuildingInsideVisualStudio=true | |
Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using ImGuiNET; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Input; | |
using Vector2 = ImGuiNET.Vector2; | |
using Vector3 = ImGuiNET.Vector3; | |
using Vector4 = ImGuiNET.Vector4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jump System/Planets | |
--- ------ --------------- | |
1 20.80 Antliae Sector VZ-P b5-5 | |
A 6 (175) TWW | |
2 18.71 Antliae Sector GR-W d1-90 | |
1 (305) HMC | |
2 (427) ELW | |
3 (575) HMC | |
3 31.32 HIP 55469 * | |
A 3 (939) HMC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script creates two kinds of isometric cameras. | |
#The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus. | |
#The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1 | |
# Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view. | |
# The fourth button creates a simple groundplane where you can place your stuff at. | |
#You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again. | |
# The script is under Apache license | |
OlderNewer