Skip to content

Instantly share code, notes, and snippets.

@m-ammar
m-ammar / getOtacOverEmail.sh
Created October 26, 2018 05:55
This shell script can be used to get
#!/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' \
@m-ammar
m-ammar / README.md
Created September 30, 2018 19:01
haskell-resources
@m-ammar
m-ammar / think_python_ch4_exercise_4-2_flower.py
Last active April 2, 2018 19:50
Exercise 4-2. Write an appropriately general set of functions that can draw flowers as in https://www.safaribooksonline.com/library/view/think-python-2nd/9781491939406/assets/tnkp_0401.png
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
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()

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets