This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
install_mono_cmd = 'sudo apt-key adv --keyserver pgp.mit.edu' \ | |
' --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF;' \ | |
'echo "deb http://download.mono-project.com/repo/debian' \ | |
' wheezy main"' \ | |
' | sudo tee /etc/apt/sources.list.d/mono-xamarin.list;' \ | |
'sudo apt-get update;' \ | |
'sudo apt-get dist-upgrade -y;' \ |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get -y install ruby ruby-dev gem 1.9.3 | |
sudo apt-get -y install ruby-bundler g++ make | |
sudo apt-get -y install nodejs | |
sudo gem install dashing | |
sudo update-alternatives --set ruby /usr/bin/ruby1.9.1 |
This file contains hidden or 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
var devices = new HidEnumerator().Enumerate(); | |
var device = devices.Last(); | |
device.OpenDevice(); | |
var success = device.Write(new byte[]{ 0x00, 0x01, 0x80, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00 }); | |
if(success) | |
{ |
This file contains hidden or 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 class AutoMapperInstaller : IWindsorInstaller | |
{ | |
public void Install(IWindsorContainer container, IConfigurationStore store) | |
{ | |
container.Register( | |
Classes.FromThisAssembly() | |
.BasedOn<Profile>() | |
.WithService | |
.Base() | |
); |
#OSS creates heroes...you can be next!!!
What drives the heroes of open source projects...is it fame, is it a road to an MVP or something like it, what is the actual drive behind all this hard labor?
In this session we will dig down and have a look at what drives magnificent people in the industry. It's not always for the carrot in front and it sure ain't due to the threat of being beaten with a stick. It might not be for the awesome reference on the CV, but when we have passed through all the obvious reasons standing out we look at the deeper meanings behind our sleepless hours. We all have a great piece of motivation in our mind...we just need to find it.
This file contains hidden or 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
var serverUri = new Uri(@"http://foo:8080/tfs/"); | |
using( var collection = new TfsTeamProjectCollection( serverUri, CredentialCache.DefaultCredentials ) ) | |
{ | |
var server = collection.GetService<ICommonStructureService>(); | |
var projects = server.ListProjects(); | |
var homeProject = (from p in projects | |
where |
- The ServiceStack Book
- Building With ServiceStack
- ServiceStack 101
- From databases to REST with ServiceStack
- The Secret ServiceStack
- Stacking the Web
- Get Some Rest w/ServiceStack
- ServiceStack: Got Your Back
- REST easy with ServiceStack
- REST in peace with ServiceStack
This file contains hidden or 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
Environment.Version.Major | |
//4 | |
Environment.Version.Minor | |
//0 | |
Environment.Version.Build | |
//30319 | |
Environment.Version.Revision | |
//276 | |
//SemVer ex1. 4.0.30319+276 |
This file contains hidden or 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 class SemanticVersionComparer : IComparer<SemanticVersion> | |
{ | |
private IDictionary<VersionType, Func<SemanticVersion, SemanticVersion, int>> comparisons = | |
new Dictionary<VersionType, Func<SemanticVersion, SemanticVersion, int>>(); | |
public int Compare(SemanticVersion x, SemanticVersion y) | |
{ | |
if (x == y) | |
{ | |
return 0; |
NewerOlder