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
@eaccmk
eaccmk / sydneyWeather.json
Last active April 29, 2020 11:57
sample response for weather API for location Sydney, AU
{"latitude":-33.8688,"longitude":151.2093,"timezone":"Australia/Sydney","currently":{"time":1584326846,"summary":"Mostly Cloudy","icon":"wind","precipIntensity":0.6398,"precipProbability":0.21,"precipType":"rain","temperature":20.88,"apparentTemperature":20.88,"dewPoint":15,"humidity":0.69,"pressure":1025.3,"windSpeed":6.88,"windGust":8.6,"windBearing":157,"cloudCover":0.78,"uvIndex":5,"visibility":16.093,"ozone":276.6},"offset":11}
@eaccmk
eaccmk / fitbit-supported_emojsi-unicode_v1.0.md
Last active December 27, 2020 01:48
fitbit app clockface emoji support with Settings.jsx

Supported emojis ✅ | Fitbit - My clockface

I was able to successfully use thses while building A FITBIT CLOCKFACE app.

Open/Install My clockface Fitbit mobile app here [My Clockface - Fitbit app] go to Settings

! Enjoy playing with text + emojis, take some motivation :

Some Examples
@eaccmk
eaccmk / Base64__DE-CODING
Last active April 24, 2024 12:42
Base64 decoding using postman (Working in Postman v7.34.0 version)
const base64EncodedString = "YWJjZDEyMzQ=" ; // abcd1234
console.log("INPUT >> ",base64EncodedString," <<");
if(!base64EncodedString.length > 0) {
pm.test("FAIL ", () => {throw new Error(" 'base64EncodedString' can not be empty !!")});
}else{
try{
var wordArray = CryptoJS.enc.Base64.parse(base64EncodedString);
var decodedString = CryptoJS.enc.Utf8.stringify(wordArray);
console.log("OUTPUT >> ",decodedString," <<");
@eaccmk
eaccmk / Base64.postman_collection
Created October 19, 2020 11:53
Base64 Encoding Decoding Postman collection
{
"info": {
"_postman_id": "c23935f1-3640-45fd-adf2-0e342084262e",
"name": "Base64",
"description": "Some Interesting ause cases of Postman for making Day to Day live easier",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Base64__EN-CODING",
@eaccmk
eaccmk / 1_bg_color_fitbit.jsx
Last active September 12, 2021 10:19
Fitbit app companion (mobile) setting to set background colour
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Section
title={
<Text bold align="center">
Demo Settings
@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">
@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 / 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 / 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 / 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"