- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com
- They are the people who get things done. Effective Engineers produce results.
# Binary Tree Creation and Traversal | |
from queue import Queue | |
class BinaryTree(object): | |
def __init__(self, value): | |
self.value = value | |
self.left_child = None | |
self.right_child = None |
#!/bin/sh | |
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses | |
# Configure every saved WiFi connection in NetworkManager with a spoofed MAC | |
# address, seeded from the UUID of the connection and the date eg: | |
# 'c31bbcc4-d6ad-11e7-9a5a-e7e1491a7e20-2017-11-20' | |
# This makes your MAC impossible(?) to track across WiFi providers, and | |
# for one provider to track across days. |
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
I hold a B.Tech in Computer Science. I feel that my qualifications, work experience and drive for solving important problems makes me a perfect match for the job. I love writing code and helping solve real-life problem of users gives me immense pleasure. That's why I seriously got into programming during third year of my undergrad. I've been using Python and hacking around open source tools to build various projects since then. I’ve been building web apps using different Web frameworks of Python for last 4 years. I used to be fairly active on Github. I'm a good learner and ability to deliver is one of my core strengths. I used to learn through continuous improvement process. I am a team player to the core, but am also at complete ease when working alone. I’ve delivered many successful projects as part of multi-disciplinary team in my current role. Currently working on Golang based
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/python | |
def is_prime(n): | |
if (n == 2) or (n == 3): | |
return True | |
if (n < 2) or (n %2 == 0): | |
return False | |
if n < 9: | |
return True | |
if n % 3 == 0: |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
#!/bin/sh | |
while true; | |
do | |
# Minimum battery level in percentage. | |
# If remaning battery percentage is less than this then a notification will be shown. | |
MINIMUM_LEVEL=23; | |
# Determine battery status | |
BATTERY_STATUS=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state" | sed -E 's/state://' | sed 's/^[ \t]*//;s/[ \t]*$//'); |