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
sudo yum install libssl1.0.0 gcc libssl-dev libjpeg62 alien csh tcsh libaudiofile-dev libglw1-mesa elfutils libglw1-mesa-dev mesa-utils xfstt xfonts-100dpi xfonts-75dpi ttf-mscorefonts-installer libfam0 libfam-dev libcurl4-openssl-dev libtbb-dev | |
sudo yum install -y mesa-libGLU-devel libXp.x86_64 libXmu.x86_64 libXpm.x86_64 fontconfig-devel libXinerama.x86_64 gamin libXrender libXcomposite gstreamer gstreamer1-plugins-base libXcursor libXtst.x86_64 | |
sudo yum install -y libXrender libXcomposite gstreamer gstreamer1-plugins-base libXcursor libXtst.x86_64 |
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
<html> | |
<head> | |
<title>micro:bit</title> | |
<script | |
type="text/javascript" | |
src="/microbit.js" | |
></script> | |
</head> | |
<body> | |
<button id="find">find</button> |
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 BBCMicrobit = context.global.microbit | |
var text = 'Hello there'; | |
console.log('Scanning for microbit'); | |
BBCMicrobit.discover(function(microbit) { | |
console.log('\tdiscovered microbit: id = %s, address = %s', microbit.id, microbit.address); | |
microbit.on('disconnect', function() { | |
console.log('\tmicrobit disconnected!'); | |
}); |
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
{"Entries": | |
[ | |
{ | |
"Name": "a", | |
"BC": 0, | |
"LN": 121.45, | |
"RT": 1.47197, | |
"SC": 1 | |
}, | |
{ |
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
void AFileLoad::BeginPlay(){ | |
Super::BeginPlay(); | |
// Load | |
FString aFullPath = FPaths::GameSavedDir(); | |
aFullPath += "example.json"; | |
FString JsonStr; | |
FFileHelper::LoadFileToString(JsonStr, *aFullPath); |
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
#pragma once | |
#include "GameFramework/Actor.h" | |
#include "Http.h" | |
#include "HelloWorld.generated.h" | |
/** | |
* | |
*/ | |
UCLASS() |
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
public void Change( Material skybx ){ | |
// 表示されているmeshを削除 | |
GameObject[] examples = GameObject.FindGameObjectsWithTag("SkyMesh"); | |
for( int i = 0; i < examples.Length; i++){ | |
Destroy(examples[i]); | |
} | |
// 新たにメッシュを設定 | |
this.material = null; |
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
//まずは、以下のプロパティを宣言します。 | |
@property (nonatomic, strong) CBLReplication *pull; | |
@property (nonatomic, strong) CBLReplication *push; | |
//そして、以下のようなメソッドを作ります。 | |
- (void)syncServer{ | |
// sync method | |
AppDelegate *ap = ApplicationDelegate; |
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
- (void) observeValueForKeyPath:(NSString *)keyPath | |
ofObject:(id)object | |
change:(NSDictionary *)change | |
context:(void *)context | |
{ | |
// push & pull Action | |
if (object == self.pull || object == self.push) { | |
// レプリケーションモードを取得 |
NewerOlder