- Commerce aims to be the simple, ultra-low-cost e-commerce platform with an emphasis on managing accounts for you e.g. recurring payments, split billings, memberships etc.
- Commerce provides extensive APIs that companies can use instead of build themselves.
- We don't want people to have to sink huge costs (e.g. Shopify, Chargebee) just to be able to use a simple service for one-off or recurring payments.
- Everyday Joes can simply rock up to our site, sign-up for RM1, and transact via credit card for a 3.5% + RM1 charge (can be further mitigated via nego for better rates with Stripe to perhaps 2.2% and RM0.50).
- Heavy Users who could save on admin and tech fees:
- recurring food delivery services,
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
# ag <https://github.com/ggreer/the_silver_searcher> | |
# usage: ag-replace.sh [search] [replace] | |
# caveats: will choke if either arguments contain a forward slash | |
# notes: will back up changed files to *.bak files | |
ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
# or if you prefer sed's regex syntax: | |
ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
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
#!/bin/bash | |
# It assumes [asdf](https://github.com/asdf-vm/asdf) to be installed | |
# and asdf plugin for Ruby to be added | |
set -exuo pipefail | |
sudo apt install libreadline-dev | |
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz | |
tar -xzf openssl-1.0.2u.tar.gz |
Updated 3rd Sept 2020
-
yarn add cypress -D
-
yarn run cypress open
2.1 Wait for cypress to completely load and then close it. We're just running this to instantiate the files we need.
-
Follow these steps for TypeScript or basically just follow the below:
3.1. Basically make sure that tsconfig.json
exists in the ./cypress
folder with the minimum below:
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
``` | |
sudo mkdir -p ~/work/data/psql11 && \ | |
sudo docker run \ | |
--name ifca.training.psql11 \ | |
-e POSTGRES_PASSWORD=abc123 \ | |
-e PGDATA=pgdata \ | |
-p 5432:5432 \ | |
-v ~/work/data/psql11:/var/lib/postgresql/data/pgdata \ | |
--restart unless-stopped \ | |
-d \ |
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
#!/bin/sh | |
# | |
# Adam Sharp | |
# Aug 21, 2013 | |
# | |
# Usage: Add it to your PATH and `git remove-submodule path/to/submodule`. | |
# | |
# Does the inverse of `git submodule add`: | |
# 1) `deinit` the submodule | |
# 2) Remove the submodule from the index and working directory |
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
<html> | |
<body> | |
<div id="react-root"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-with-addons.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.7.7/babel.min.js"></script> | |
<script id="react-app" type="text/template"> | |
const App = ({name}) => { |
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
//go to nodejs.org and copy the simple hello world code to a file. | |
// test it go with the browser to http://127.0.0.1:1337/ | |
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(1337, '127.0.0.1'); // remove the ip argument from listen. otherwise it will bind only to this ip address. and you wont be able to connect if it runs on a server. | |
console.log('Server running at http://127.0.0.1:1337/'); |
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
for (var i = 1; i < 100; i++) { | |
if (i%3 == 0 && i%5 == 0) { | |
console.log("AnonymousLlama"); | |
} else if (i%3 == 0) { | |
console.log("Anonymous"); | |
} else if (i%5 == 0) { | |
console.log("Llama"); | |
} else { | |
console.log(i); | |
} |