content mapping in jq :: the filter maps each post to its slug, and the reverse filter reverts it
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
https://drive.google.com/file/d/1doYh3JOQR0w1D-gbdR9NHRNkBAl42IN7/view?usp=drivesdk |
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
Always check the time complexity when coding. | |
Python: https://wiki.python.org/moin/TimeComplexity | |
JavaScript: https://www.freecodecamp.org/news/the-complexity-of-simple-algorithms-and-data-structures-in-javascript-11e25b29de1e/ |
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
1. Find the userId. | |
select user_id from APEX_040200.WWV_FLOW_FND_USER where user_name = 'ADMIN' order by last_update_date desc; | |
2. Set a new password. | |
update APEX_040200.WWV_FLOW_FND_USER | |
set web_password = 'password' | |
where user_name = 'ADMIN' | |
and user_id = 56502607595642; |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" name="text/html; charset=UTF-8"> | |
<title>reddit - what's new online</title> | |
<script src="/static/prototype.js" language="javascript" type="text/javascript"></script> | |
<script language="javascript"><% if logged_in_p %>var logged = true<% else %>var logged = false<% endif %></script> | |
<script src="/static/logic.js" language="javascript" type="text/javascript"></script> | |
<link rel="stylesheet" href="/static/styles.css" type="text/css"> | |
<link rel="shortcut icon" href="/static/favicon.ico"> | |
<% if rss_url %><link rel="alternate" type="text/xml" title="RSS" href={{rss_url}}><% endif %></head> |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import datetime | |
if __name__ == '__main__': | |
at = datetime.datetime(1986,11,8) | |
st = datetime.datetime(1997,11,15) | |
sn = datetime.datetime.now() | |
ad = datetime.datetime(2013,1,11) | |
print(str( ad - sn + st - at )) |
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 flask | |
app = flask.Flask(__name__) | |
@app.route('/', defaults={'path': ''}) | |
@app.route('/<name>') | |
def hello(name): | |
if not name: | |
name = 'World' | |
return 'Hello ' + name + '!' |
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
const data = JSON.parse(`{ | |
"users": [ | |
{ | |
"id": 1, | |
"name": "basicuser" | |
}, | |
{ | |
"id": 2, | |
"name": "adminuser" | |
} |
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
Su Mo Tu We Th Fr Sa | |
Feb 1 | |
2 3 4 5 6 7 8 | |
9 10 11 12 13 14 15 | |
16 17 18 19 20 21 22 | |
23 24 25 26 27 28 29 you are here | |
Mar 1 2 3 4 5 6 7 | |
8 9 10 11 12 13 14 | |
15 16 17 18 19 20 21 lv4 & lv5 cw2 due | |
22 23 24 25 26 27 28 |
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 datetime | |
import calendar | |
import re | |
def last_day_of_month(date): | |
return date.replace(day=31) if date.month == 12 else date.replace(month=date.month+1, day=1) - datetime.timedelta(days=1) | |
def format_date(date): | |
return date.strftime("%Y-%m-%dT%H:%M:%S.%fZ") |