Skip to content

Instantly share code, notes, and snippets.

View eaccmk's full-sized avatar
🧑‍💻
I may be building next big...

#QualityWithMillan eaccmk

🧑‍💻
I may be building next big...
View GitHub Profile
{
"data":
{
"products":
[
{
"desc": "A fixed term investment for businesses at an agreed rate of interest.",
"name": "90 Day Business Term Deposit"
},
{
@eaccmk
eaccmk / 10_variable_in_settings_index.jsx
Last active September 12, 2021 10:17
Fitbit app companion (mobile) setting to implement advance coding such as methods and variables inside index.jsx
// author : https://github.com/eaccmk
// created : sep-2021
//Advanced jsx in fitbit
const user = {
firstName: "Fitbit",
lastName: "Buddy",
};
@eaccmk
eaccmk / 9_image_picker_index.jsx
Last active September 12, 2021 10:19
Fitbit app companion (mobile) setting to demo image picker to pick image form phone
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<ImagePicker
title="Image Selector"
description="This feature gets image from phone to fitbit"
label="Click here to select an image"
@eaccmk
eaccmk / 8_multi_selection_lwith_autocomplete_index.jsx
Last active September 12, 2021 10:19
Fitbit app companion (mobile) setting to demo how to select multiple item from a list
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<AdditiveList
title="Items with Autocomplete feature"
settingsKey="autocomplete-list"
maxItems="3"
@eaccmk
eaccmk / 7_selection_index.jsx
Last active September 12, 2021 10:19
Fitbit app companion (mobile) setting to demo how to select 1 item from a list
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Select
label={`Click for Selection`}
settingsKey="selection"
options={[
@eaccmk
eaccmk / 6_auto_complete_text_index.jsx
Last active September 12, 2021 10:20
Fitbit app companion (mobile) setting to demo selecting a value with autocomplete text
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<TextInput
title="Click me to type"
label="Type (one, two ...)"
placeholder="Type here"
@eaccmk
eaccmk / 5_slider_index.jsx
Last active September 12, 2021 10:20
Fitbit app companion (mobile) setting to demo slider and display value selected
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Section>
<Text>
Sync frequence in minutes :{" "}
<Text bold>{props.settingsStorage.getItem("minutes")}</Text>
@eaccmk
eaccmk / 4_text_formatting_index.jsx
Last active September 12, 2021 10:20
Fitbit app companion (mobile) setting to demo how to format text bold, italic, aligned center etc..
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Text align="right">This text will align to the right side</Text>
<Text align="left">This text will align to the left side</Text>
<Text align="center"> Text at center </Text>
<Text bold>Bold Text.</Text>
@eaccmk
eaccmk / 3_paypal_index.jsx
Last active September 12, 2021 10:20
Fitbit app companion (mobile) setting to demo images with test area such as paypal
// author : https://github.com/eaccmk
// created : sep-2021
// ref Official : https://www.paypal.com/us/webapps/mpp/logo-center
//const PP_LOGO = 'https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_74x46.jpg'
//you may also pick one from https://www.flaticon.com/free-icons/paypal
const PP_LOGO = "https://cdn-icons-png.flaticon.com/512/888/888871.png";
//replace with your personalised link
const PAYPAL_ME_LINK = "https://www.paypal.com/au/webapps/mpp/paypal-me";
@eaccmk
eaccmk / 2_text_input_index.jsx
Last active September 12, 2021 10:20
Fitbit app companion (mobile) setting to text box with selection option
// author : https://github.com/eaccmk
// created : sep-2021
const NEW_EMOJI_URL = "http://bit.ly/emojiHelp";
function mySettings(props) {
return (
<Page>
<Section>
<Text align="center">