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
from rpi_ws281x import * | |
# LED strip configuration: | |
LED_COUNT = 300 # Number of LED pixels. | |
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!). | |
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0). | |
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz) | |
LED_DMA = 10 # DMA channel to use for generating signal (try 10) | |
LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest | |
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift) |
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
import requests | |
import json | |
import time | |
while True : | |
response = requests.get("https://api.coinbase.com/v2/prices/BTC-USD/spot") | |
data = response.json() | |
currency = data["data"]["base"] | |
price = data["data"]["amount"] | |
print(f"Currency : {currency} Price: {price}") |
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
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | |
#include "GameLiftTutorialGameMode.h" | |
#include "GameLiftTutorialCharacter.h" | |
#include "UObject/ConstructorHelpers.h" | |
AGameLiftTutorialGameMode::AGameLiftTutorialGameMode() | |
{ | |
// set default pawn class to our Blueprinted character | |
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/ThirdPersonCPP/Blueprints/ThirdPersonCharacter")); |
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
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | |
#pragma once | |
#include "CoreMinimal.h" | |
#include "GameLiftServerSDK.h" | |
#include "GameFramework/GameModeBase.h" | |
#include "GameLiftTutorialGameMode.generated.h" | |
USTRUCT() |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "gamelift:*", | |
"Resource": "*" | |
} | |
] | |
} |
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
VC_redist.x64.exe /q | |
Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /q |
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
{ | |
"name": "aliens_vs_cowboys", | |
"ruleLanguageVersion": "1.0", | |
"playerAttributes": [{ | |
"name": "skill", | |
"type": "number", | |
"default": 10 | |
}], | |
"teams": [{ | |
"name": "cowboys", |
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 AWS = require('aws-sdk'); | |
const DynamoDb = new AWS.DynamoDB({region: 'us-east-1'}); | |
const TypeToRank = { | |
MatchmakingSearching: '1', | |
PotentialMatchCreated: '2', | |
MatchmakingSucceeded: '3', | |
MatchmakingTimedOut: '4', | |
MatchmakingCancelled: '5', | |
MatchmakingFailed: '6' | |
}; |
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
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | |
using UnrealBuildTool; | |
public class GameLiftTutorial : ModuleRules | |
{ | |
public GameLiftTutorial(ReadOnlyTargetRules Target) : base(Target) | |
{ | |
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; |
OlderNewer