Skip to content

Instantly share code, notes, and snippets.

View azchohfi's full-sized avatar

Alexandre Zollinger Chohfi azchohfi

View GitHub Profile
string that = "http://elemarjr.net/2012/06/29/snippet-o-que-esse-cdigo-faz/";
var tmp = that.Trim().Replace('/', '\\');
if (tmp.Substring(tmp.Length - 1, 1) == @"\")
tmp = tmp.Substring(0, tmp.Length - 1);
int index = tmp.LastIndexOf('\\');
var result = tmp.Substring(0, index);
@azchohfi
azchohfi / gist:5470598
Created April 26, 2013 21:33
Build error Facebook binding.
Building Solution: CursoResidenteCBBW (Debug|iPhone)
Building: XNA8DFramework_iPhone (Debug|iPhone)
Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Volumes/Users/Alexandre/Desktop/8DGames/XNA8DFramework/bin/iPhone/Debug/XNA8DFramework_iPhone.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll" "/r:/Volumes/Users/Alexandre/Documents/GitHub/MonoGame/MonoGame.Framework/bin/iPhone/Debug/MonoGame.Framework.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG;IPHONE" /t:library "/Volumes/Users/Alexandre/Desktop/8DGames/XNA8DFramework/Animations/AlphaAnimation.cs" "/Volumes/Users/Alexandre/Desktop/8DGames/XNA8DFramework/Animations/AlphaDoubleAnimation.cs" "/Volumes/Users/Alexandre/Desktop/8DGames/XNA8DFramework/Animation
class AzureStorageConstants
{
public static readonly string KeyString = "";
public static readonly string KeySecondString = "";
public static readonly string Account = "";
public static readonly string BlobEndPoint = "http://***.blob.core.windows.net/";
public static readonly string SharedKeyAuthorizationScheme = "";
public static readonly byte[] Key = Convert.FromBase64String(AzureStorageConstants.KeySecondString);
}
#include "Camera.h"
Camera::Camera(void)
{
this->Up = Vector3::unitY;
...
}
@azchohfi
azchohfi / Generic.xaml
Created September 4, 2014 17:56
SuperSlider for Windows Phone 8.x with Upper and Lower Values.
<Style TargetType="controls:SuperRangeSlider">
<Setter Property="Background" Value="{StaticResource PhoneChromeBrush}" />
<Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}" />
<Setter Property="Padding" Value="0, 3, 0, 36" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:SuperRangeSlider">
<Grid Name="Body">
<Grid.RowDefinitions>