Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandre Zollinger Chohfi azchohfi

View GitHub Profile
@azchohfi
azchohfi / Generic.xaml
Created Sep 4, 2014
SuperSlider for Windows Phone 8.x with Upper and Lower Values.
View Generic.xaml
<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>
View Camera.cpp
#include "Camera.h"
Camera::Camera(void)
{
this->Up = Vector3::unitY;
...
}
View gist:5605921
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);
}
@azchohfi
azchohfi / gist:5470598
Created Apr 26, 2013
Build error Facebook binding.
View gist:5470598
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
View gist:3024201
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);