This file contains hidden or 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/zsh | |
emailToExtractOtacFrom=$1 | |
emailToSendMagicLinkTo=$2 | |
otacValue=$(curl -s https://aws-sns-stub.dev.moneynp.xinja.com.au/aws-sns-stub/email/address/$emailToExtractOtacFrom | jq '.[0].message.body.html.data' | grep otac= | awk -F 'otac=' '{print $2}' | cut -d "\\" -f 1) | |
emailBodyText='Magic Link ==>> ' | |
emailBodyMagicLink=https://native-support.dev.moneynp.xinja.com.au/information/install?otac=$otacValue | |
curl -s --user 'api:79c45e782acba502516875093739f9b6-4836d8f5-68302a5e' \ |
This file contains hidden or 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
import math | |
import turtle | |
def polyline(obj, length, sides, angle): | |
for i in range(sides): | |
obj.fd(length) | |
obj.lt(angle) | |
def arc(t, radius, angle): | |
arc_length = 2 * math.pi * radius * angle / 360 |
This file contains hidden or 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
from __future__ import print_function, division | |
import math | |
import turtle | |
def draw_pie(t, n, r): | |
draw_poly_pie(t, n, r) | |
t.pu() | |
t.fd(r*2 + 10) | |
t.pd() |
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.