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
/** | |
* Create the store with dynamic reducers | |
*/ | |
import { createStore, applyMiddleware, compose } from 'redux'; | |
import { routerMiddleware } from 'connected-react-router'; | |
import createSagaMiddleware from 'redux-saga'; | |
import { persistStore } from 'redux-persist'; | |
import createReducer from './reducers'; |
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
'use strict'; | |
/** | |
* This util class converts snake cased fields/columns into camel case from snake canse. | |
* @param {Object} row Object to have their fields converted to camel case from the DB native snake case. | |
*/ | |
const ConvertSnakeCaseToCamelCaseFields = row => { | |
const keys = Object.keys(row); | |
const updatedRow = {}; |
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
#include "Object.h" | |
#include <string> | |
#include "UStringExtensionsStaticLibrary.generated.h" | |
UCLASS() | |
class MYGAME_API UStringExtensionsStaticLibrary : public UObject | |
{ | |
GENERATED_BODY() | |
/* |
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
#include "GameForGentlemen.h" | |
#include "Chap.h" | |
AChap::AChap(const class FObjectInitializer& PCIP) | |
{ | |
this->_IsInvalid = false; | |
} | |
AChap:PublicMethodGuv() | |
{ |
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
function StringBuilder(value) { | |
this.strings = new Array(); | |
this.append(value); | |
} | |
StringBuilder.prototype.append = function (value) { | |
if (value) { | |
this.strings.push(value); | |
} | |
} |
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
const FRotator Rotation = this->Controller->GetControlRotation(); | |
// following section will get the characters rotation for direction | |
float directionTheCharacterIsFacing = Rotation.Yaw + 22.5f; //Offset rotation to account for your 359.999 to 0 crossover | |
// if yaw is less than 0, add 360 so we can get a positive value. | |
if (directionTheCharacterIsFacing < 0) | |
{ | |
directionTheCharacterIsFacing = directionTheCharacterIsFacing + 360.f; | |
} |
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
#include "MyGame.h" | |
#include "MyBaseCharacterBase.h" | |
#include "MyBaseCharacterBaseController.h" | |
AMyBaseCharacterBase::AMyBaseCharacterBase(const class FPostConstructInitializeProperties& PCIP) | |
: Super(PCIP) | |
{ | |
// Set size for collision capsule | |
CapsuleComponent->InitCapsuleSize(42.f, 96.0f); |
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
var doc = XDocument.Parse(myXmlString); | |
var xmlNamespaceManager = new XmlNamespaceManager(new NameTable()); | |
xmlNamespaceManager.AddNamespace("x", "http://myAwesomeXmlNamespace/"); | |
xmlNamespaceManager.AddNamespace("y", "http://yetAnotherAwesomeXmlNamespace/"); | |
//gets all registered namespaces as a IDictionary/Hash Table | |
IDictionary<string, string> myNamespaces = xmlNamespaceManager.GetNamespacesInScope(XmlNamespaceScope.All); | |
foreach(var myNamespace in myNamespaces) |
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
PM > Install-Package Microsoft.Web.Infrastructure | |
Installing 'Microsoft.SharePoint.Client 14.0.4762.1000'. | |
Successfully installed 'Microsoft.SharePoint.Client 14.0.4762.1000'. | |
Adding 'Microsoft.SharePoint.Client 14.0.4762.1000' to FluxCapacitorWebApp. | |
Successfully added 'Microsoft.SharePoint.Client 14.0.4762.1000' to FluxCapacitorWebApp. |
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 Newtonsoft.Json; | |
namespace ExtensionMethodEncapsulation | |
{ | |
public static class JsonExtensions | |
{ | |
/// <summary> | |
/// Method to encapsulate how you serialize your JSON object. | |
/// </summary> | |
/// <typeparam name="T">The type of the object/POCO you wish to convert to JSON.</typeparam> |
NewerOlder