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
h1.happy .happy{ | |
color:green; | |
} | |
h1.sad .not{ | |
color:red; | |
} | |
<span class="happy"><i class="fa fa-smile-o fa-2x"></i>Happy</span> | |
<br/> |
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 (c) Microsoft. All rights reserved. | |
// Modified and Licensed under MIT from https://github.com/ms-iot/samples | |
using Windows.ApplicationModel.Background; | |
using Windows.Devices.Gpio; | |
using System.Diagnostics; | |
using Windows.System.Threading; | |
// The Background Application template is documented at http://go.microsoft.com/fwlink/?LinkID=533884&clcid=0x409 | |
namespace ServoMotorBasics |
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
//usage | |
int height = Resources.DisplayMetrics.HeightPixels; | |
int width = _imageView.Height; | |
Bitmap bitmap = _file.Path.ResizeAndRotate(width, height); |
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 httplib, urllib, base64 | |
import json | |
def get_strongest_emotion(raw_result): | |
""" | |
Returns: | |
The strongest emotion in image or if there's multiple faces a list representing | |
strongest emotion in each face is returned. | |
MIT liscence for this function from https://github.com/zooba/projectoxford | |
""" |
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 class DeviceMessage { | |
public string DeviceId {get;set;} | |
public string Message {get;set;} | |
} |
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
docker network create -d nat jstest | |
docker network ls | |
docker network inspect jstest | |
docker run -itd --name js1 --net=jstest microsoft/nanoserver | |
docker run -itd --name js2 --net=jstest microsoft/nanoserver | |
docker ps |
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": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to Azure Functions", | |
"type": "node", | |
"request": "attach", | |
"port": 5858 | |
}, | |
{ |
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 minecraft-server:nanoserver | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
ENV EULA=TRUE ` | |
ONLINE_MODE=FALSE ` | |
SEED=-9363708386013540 ` | |
VERSION=1.12.1 ` | |
DIFFICULTY=peaceful ` | |
GUI=FALSE ` |
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
<source> | |
@type forward | |
</source> | |
<match test.**> | |
@type stdout | |
</match> |
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
input { stdin { } } | |
output { | |
stdout { codec => rubydebug } | |
} |
OlderNewer