Skip to content

Instantly share code, notes, and snippets.

View BenjaminAbt's full-sized avatar

BEN ABT BenjaminAbt

View GitHub Profile
@BenjaminAbt
BenjaminAbt / SchwabenCode.FlexMapper.travis.yml
Last active December 14, 2015 11:16
Travis CI SchwabenCode.FlexMapper Configuration
# Origin: https://github.com/SchwabenCode/FlexMapper
language: csharp
solution: src/SchwabenCode.FlexMapper.sln
install:
- curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
- dnvm upgrade
- dnu restore
@BenjaminAbt
BenjaminAbt / vsts-build-badge-never-built.svg
Created December 9, 2015 10:17
VSTS Badge Return Never Build
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BenjaminAbt
BenjaminAbt / SchwabenCode.FlexMapper.0.0.9_project.json
Created December 13, 2015 21:26
SchwabenCode.FlexMapper.0.0.9/project.json
{
"version": "0.0.9",
"description": "Map your stuff! ",
"authors": [ "SCHWABENCODE", "BenjaminAbt" ],
"owners": [ "SCHWABENCODE", "BenjaminAbt" ],
"tags": [ "Mapping, FlexMapper, SchwabenCode, BenjaminAbt" ],
"projectUrl": "https://github.com/SchwabenCode/FlexMapper",
"licenseUrl": "https://github.com/SchwabenCode/FlexMapper/LICENSE.md",
"dependencies": {
@BenjaminAbt
BenjaminAbt / SchwabenCode.FlexMapper.appveyor.0.0.9.yml
Created December 14, 2015 11:48
SchwabenCode.FlexMapper.appveyor.0.0.9.yml
#-------------------------------------------------#
# GENERAL #
#-------------------------------------------------#
version: 0.0.9.{build}-develop
#-------------------------------------------------#
# ENVIRONMENT #
#-------------------------------------------------#
os: Visual Studio 2015
environment:
@BenjaminAbt
BenjaminAbt / AppVeyor.Error.yml
Created December 15, 2015 12:15
(Line: 20, Col: 1, Idx: 725) - (Line: 20, Col: 2, Idx: 726): While parsing a block mapping, did not find expected key.
#-------------------------------------------------#
# GENERAL #
#-------------------------------------------------#
version: 1.1.0.{build}-develop
#-------------------------------------------------#
# ENVIRONMENT #
#-------------------------------------------------#
os: Visual Studio 2015
environment:
@BenjaminAbt
BenjaminAbt / CSharp_XmlTutorial_XmlDocument.cs
Created January 3, 2016 15:21
C# XML Tutorial - XmlDocument Create Simple Document
XmlDocument xmlDoc = new XmlDocument( );
XmlElement xmlRoot = xmlDoc.CreateElement( "XMLRootName" );
root.SetAttribute( "demo", "SchwabenCode" );
XmlElement child = xmlDoc.CreateElement( "KindElement" );
child.InnerText = "Dies ist ein BeispielText";
xmlRoot.AppendChild( child );
xmlDoc.AppendChild( xmlRoot );
@BenjaminAbt
BenjaminAbt / CSharp_XmlTutorial_XDocument.cs
Created January 3, 2016 15:23
C# XML Tutorial - XDocument Create Simple Document
XDocument doc = new XDocument(
new XElement( "XMLRootName",
new XAttribute( "demo", "SchwabenCode" ),
new XElement( "KindElement", "Dies ist ein BeispielText" )));
@BenjaminAbt
BenjaminAbt / CSharp_XmlTutorial_SimpleXML.xml
Created January 3, 2016 15:25
CSharp_XmlTutorial_XDocument.cs
<XMLRootName demo="SchwabenCode">
<KindElement>Dies ist ein BeispielText</KindElement>
</XMLRootName>
@BenjaminAbt
BenjaminAbt / CSharp_XmlTutorial_MovieXML.xml
Last active January 3, 2016 17:40
CSharp XmlTutorial DEMO Xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MediaDatenbank>
<!-- Liste von Filmen -->
<Filme>
<Film Id="1" Jahr="1996">
<Name>The Rock</Name>
<Land>USA</Land>
<FSK>16</FSK>
<Person IdRef="1" Typ="Hauptdarsteller" />
<Person IdRef="2" Typ="Regisseur" />
@BenjaminAbt
BenjaminAbt / MicrosoftBandSDK_GetBands.cs
Last active January 12, 2016 16:07
Get all bands from Microsoft Band SDK
// Find all Bands
IBandInfo[ ] allBands = await BandClientManager.Instance.GetBandsAsync();
if( !allBands.Any() )
{
throw new NoBandFoundException();
}
// Use first Band
IBandInfo bandInfo = allBands.First();