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
/* ======================================================================================== */ | |
/* FMOD Studio - Unity Integration Demo. */ | |
/* Firelight Technologies Pty, Ltd. 2012-2016. */ | |
/* Liam de Koster-Kjaer */ | |
/* */ | |
/* Use this script in conjunction with the Viking Village scene tutorial and Unity 5.4. */ | |
/* http://www.fmod.org/training/ */ | |
/* */ | |
/* 1. Import Viking Village asset package */ | |
/* 2. Import FMOD Studio Unity Integration package */ |
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
/* ======================================================================================== */ | |
/* FMOD Studio - Unity Integration Demo. */ | |
/* Firelight Technologies Pty, Ltd. 2012-2016. */ | |
/* Liam de Koster-Kjaer */ | |
/* */ | |
/* Use this script in conjunction with the Viking Village scene tutorial and Unity 5.4. */ | |
/* http://www.fmod.org/training/ */ | |
/* */ | |
/* 1. Import Viking Village asset package */ | |
/* 2. Import FMOD Studio Unity Integration package */ |
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 code is licensed under MIT license. | |
// | |
// Copyright © 2014 Bil Simser, https://weblogs.aspnet/bsimser <bsimser@shaw.ca> | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
/* | |
complete facebook sdk authorization/login in 20 lines (or less) | |
include https://connect.facebook.net/en_US/sdk.js in your html page | |
*/ | |
function onLogin(response) { | |
if(response.status === "not_authorized") { | |
// send the user somewhere as they refused to authorize your app | |
} | |
} |
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 code is licensed under MIT license. | |
// | |
// Copyright © 2014 Bil Simser, https://weblogs.aspnet/bsimser <bsimser@shaw.ca> | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
<?xml version="1.0"?> | |
<package > | |
<metadata> | |
<id>Terrarium.Sdk</id> | |
<version>$version$</version> | |
<title>Terrarium SDK</title> | |
<authors>Microsoft, Bil Simser</authors> | |
<owners>Bil Simser</owners> | |
<licenseUrl>https://github.com/terrariumapp/terrarium-sdk/blob/master/LICENSE.md</licenseUrl> | |
<projectUrl>http://terrarium.azurewebsites.net/</projectUrl> |
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
@echo Off | |
set config=%1 | |
if "%config%" == "" ( | |
set config=Release | |
) | |
set version=1.0.0 | |
if not "%PackageVersion%" == "" ( | |
set version=%PackageVersion% | |
) |
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 SignalR.Client.Hubs; | |
namespace FANS.Demo | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
try |
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
namespace System | |
{ | |
public static class SentenceParser | |
{ | |
public static string TrimSentence(this string @string, int length) | |
{ | |
if (TheInputsAreNotValid(length, @string)) return AnEmptyString(); | |
if (TheLengthIsLongerThanTheInputString(length, @string)) return TheOriginalString(@string); | |
if (TheNextCharacterIsEmpty(@string, length)) return TheNormallyParsedString(length, @string); |
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
# Redis configuration file for gemcutter | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
NewerOlder