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 request = require('request'); | |
var mraa = require('mraa'); | |
var myButton = new mraa.Gpio(3); | |
myButton.dir(mraa.DIR_IN); | |
var LCD = require('jsupm_i2clcd'); | |
var myLCD = new LCD.Jhd1313m1(0, 0x3E, 0x62); | |
var processingRequest = 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
<Page.Resources> | |
<DataTemplate x:Key="TeamItemTemplate"> | |
<Grid Width="250" Height="250"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="161*"/> | |
<RowDefinition Height="51*"/> | |
<RowDefinition Height="38*"/> | |
</Grid.RowDefinitions> | |
<Rectangle Fill="#FFF4F4F5" Stroke="Black"/> | |
<TextBlock Grid.Row="1" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" TextAlignment="Center" FontSize="16"/> |
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 customizer = (function () { | |
"use strict"; | |
var t = {}; | |
//flip the RGB components | |
function flipRGB(colorIn) | |
{ | |
var part1 = colorIn & 0xFF0000; | |
var part2 = colorIn & 0xFF00; |
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
// LICENSE: http://opensource.org/licenses/ms-pl | |
// | |
// This gist contains code that references the open source Callisto toolkit (http://callistotoolkit.com/) | |
// implementation of OnNavigated to for a given page in a Windows Store App | |
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
// handle Settings pane options |
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. | |
Licensed under the Microsoft Limited Public License (the “License”); you may not | |
use this file except in compliance with the License. | |
You may obtain a copy of the License at http://msdn.microsoft.com/en-us/cc300389. | |
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | |
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS | |
OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. |
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. | |
Licensed under the Microsoft Limited Public License (the “License”); you may not | |
use this file except in compliance with the License. | |
You may obtain a copy of the License at http://msdn.microsoft.com/en-us/cc300389. | |
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. | |
Licensed under the Microsoft Limited Public License (the “License”); you may not | |
use this file except in compliance with the License. | |
You may obtain a copy of the License at http://msdn.microsoft.com/en-us/cc300389. | |
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | |
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS | |
OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. |