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
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-headers-4.17.0-994_4.17.0-994.201805240410_all.deb | |
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-headers-4.17.0-994-generic_4.17.0-994.201805240410_amd64.deb | |
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-image-unsigned-4.17.0-994-generic_4.17.0-994.201805240410_amd64.deb | |
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-image-unsigned-4.17.0-994-lowlatency_4.17.0-994.201805240410_amd64.deb | |
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-modules-4.17.0-994-generic_4.17.0-994.201805240410_amd64.deb | |
curl http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2018-05-24/linux-modules-4.17.0-994-lowlatency_4.17.0-994.201805240410_amd64.deb |
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
curl -O http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/2018-05-15/linux-headers-4.17.0-997_4.17.0-997.201805142201_all.deb | |
curl -O http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/2018-05-15/linux-headers-4.17.0-997-generic_4.17.0-997.201805142201_amd64.deb | |
curl -O http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/2018-05-15/linux-image-unsigned-4.17.0-997-generic_4.17.0-997.201805142201_amd64.deb | |
curl -O http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/2018-05-15/linux-modules-4.17.0-997-generic_4.17.0-997.201805142201_amd64.deb |
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
""" | |
Python min/max functions (O(n) complexity). | |
""" | |
mylist = [1, 2, 0, 3] | |
def test_min(): | |
assert min(mylist) == min_(mylist) |
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
from functools import wraps | |
import cProfile | |
def profileit(func): | |
@wraps(func) | |
def wrapper(*args, **kwargs): | |
profile = cProfile.Profile() | |
return_value = profile.runcall(func, *args, **kwargs) | |
profile.dump_stats(f'{func.__name__}.profile') |
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
from decimal import Decimal | |
def round_to_attractive_price( | |
value, attractive_after_decimals=(0, 50, 95, 99) | |
): | |
rounded = round(Decimal(value), 2) | |
before_decimal, after_decimal = str(rounded).split('.') | |
after_decimal = min( | |
attractive_after_decimals, |
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
linkedin.com##h4:has-text(, complete these steps to get the most out of LinkedIn):upward(4) | |
linkedin.com##h2:has-text(Profile Strength:):upward(4) | |
linkedin.com##h2:has-text(Strengthen your profile):upward(5) | |
linkedin.com##strong:has-text(Show recruiters you’re open to work):upward(14) | |
linkedin.com##a:has-text(Try Premium for free):upward(3) | |
linkedin.com##span:has-text(Promoted):upward(6) |
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
kubernetes.io##.announcement | |
react-bootstrap.github.io##.navbar-dark.navbar-expand.navbar.justify-content-center | |
firebase.google.com##.devsite-banner-announcement.devsite-banner | |
sass-lang.com##.sl-c-alert--info.sl-c-alert | |
nodejs.org##.home-blacklivesmatterbutton |
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
{ | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Thomas Davis", | |
"label": "Web Developer", | |
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4", | |
"summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ", | |
"website": "https://lordajax.com", |