Skip to content

Instantly share code, notes, and snippets.

Tom Granot-Scalosub tomgs

Block or report user

Report or block tomgs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomgs
tomgs / shopify_app_css.css
Created Mar 29, 2020
Shopify App Dev From Scratch - HTML Wiring V2
View shopify_app_css.css
/* A lot of the information can be learned from Shopify Polairs */
/* Form elements use the default of the OS */
html {
/* Load system fonts */
font-family: -apple-system, BlinkMacSystemFont, San Francisco, Roboto, Segoe UI, Helvetica Neue, sans-serif;
/* Make type rendering look crisper */
-webkit-font-smoothing: antialiased;
@tomgs
tomgs / shopify_app_html_v2.html
Created Mar 29, 2020
Shopify App Dev From Scratch - HTML Wiring V2
View shopify_app_html_v2.html
<html>
<head>
<link rel="stylesheet" href="styles.css">
<title>
Countries We Ship Button
</title>
</head>
<body>
@tomgs
tomgs / shopify_app_html.html
Last active Mar 29, 2020
Shopify App Dev From Scratch - HTML Wiring
View shopify_app_html.html
<html>
<head>
<title>
Countries We Ship Button
</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>Countries We Ship To Button</h1>
@tomgs
tomgs / push
Last active Feb 26, 2020
ForgetMeNot Node-RED Flow
View push
[
{
"id": "dfd248d3.68e5c8",
"type": "tab",
"label": "ForgetMeNot",
"disabled": false,
"info": ""
},
{
"id": "6e222d22.55f4f4",
View config-part-7.yml
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: app/build/reports
destination: reports
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
path: app/build/test-results
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
View config-part-6.yml
- run:
name: Assemble Bundles & Run Tests
command: ./gradlew clean bundleFreeRelease bundlePlusFlavorRelease
- run:
name: Publish Free Beta Version To Play Store
command: ./gradlew publishFreeReleaseBundle
- run:
name: Publish Plus Beta Version To Play Store
command: ./gradlew publishPlusFlavorReleaseBundle
View config-part-5.yml
- run:
name: Approve SDK Licenses
# Captures SIGPIPE 141 error but still allow repeating "y" to accept all licenses
command: yes | sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
@tomgs
tomgs / config-part-4.yml
Last active Mar 5, 2019
Config.yml part 4
View config-part-4.yml
- run:
name: Get JSON & GPG Keys From Env-Var
command: |
echo ${PLAYSTORE_SERVICE_KEY} > app/GPLAY_KEY.json
echo -e $GPG_KEY > gpg_key.asc
- run:
name: Import gpg key into gpg, decrypt secrets
command: |
gpg --import gpg_key.asc
gpg --decrypt secrets.tar.gpg > secrets.tar
@tomgs
tomgs / config-part-3.yml
Last active Mar 5, 2019
Config.yml part 3
View config-part-3.yml
- run:
name: Bump Version & Push To Repo
command: |
cd scripts
./version-bumper.sh
printf "\n"
echo "-- Pushing To Github --"
printf "\n"
git config credential.helper 'cache --timeout=120'
git config user.email ${GITHUB_EMAIL}
@tomgs
tomgs / config-part-2.yml
Last active Mar 5, 2019
Config.yml part 2
View config-part-2.yml
steps:
- run:
name: Wait 900 Seconds (15 minutes) for other commits (cherry-picking)
command: sleep 900
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
You can’t perform that action at this time.