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
Highcharts.theme = { | |
colors: ['#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066', | |
'#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee' | |
]}; | |
Highcharts.setOptions(Highcharts.theme); |
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
let searchInput = document.getElementById('search'); | |
searchInput.oninput = function(event) { | |
currentSearch = this.value; | |
chart.series.forEach(serie => { | |
serie.points.forEach(point => { | |
point.update({ color: Highcharts.theme.colors[point.colorIndex] }, false); | |
}); | |
}); | |
chart.redraw(); |
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 searchText = 'US'; | |
var chart = new Highcharts.chart('container', { | |
series: [{ | |
name: 'Asia', | |
data: [{ | |
name: 'Taiwan', | |
value: 87 | |
}, { | |
name: 'Japan', | |
value: 86 |
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
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform vec2 pointMain[225]; | |
uniform int pointNumber; | |
float Blob(vec2 position, vec2 point, float radius) | |
{ | |
float temp = pow(position.x - point.x, 2.0) + pow(position.y - point.y, 2.0); |
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
<dict> | |
<key>HomeScene</key> | |
<string>首頁</string> | |
<key>MainScene</key> | |
<string>主頁</string> | |
<key>BookScene</key> | |
<string>百科</string> | |
<key>GameScene</key> | |
<string>遊戲</string> | |
<key>AnimScene</key> |
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 <iostream> | |
#include <list> | |
#include <algorithm> | |
#include <string> | |
using namespace std; | |
class Sprite | |
{ | |
public: |
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 "CXmlStream.h" | |
CXmlStream::CXmlStream(const char* dicFilename) | |
{ | |
this->m_dictionary = CCDictionary::createWithContentsOfFile(dicFilename); | |
} | |
CXmlStream::~CXmlStream() | |
{ |
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 MainPage() | |
{ | |
this.InitializeComponent(); | |
SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; | |
} | |
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
SettingsCommand urlCommand = new SettingsCommand("urlCommand", "詳細設定", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand); |
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 int ContentAnimationOffset = 100; | |
public SettingPage() | |
{ | |
this.InitializeComponent(); | |
FlyoutContent.Transitions = new Windows.UI.Xaml.Media.Animation.TransitionCollection(); | |
FlyoutContent.Transitions.Add(new Windows.UI.Xaml.Media.Animation.EntranceThemeTransition() | |
{ | |
FromHorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? ContentAnimationOffset : (ContentAnimationOffset * -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
<common:LayoutAwarePage | |
x:Name="pageRoot" | |
x:Class="App2.SettingPage" | |
DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App2" | |
xmlns:common="using:App2.Common" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
NewerOlder