(Jan 2, 2021) Ask HN: Successful one-person online businesses in 2021?
https://news.ycombinator.com/item?id=25614966
(Dec 12, 2020) Ask HN: Successful one-person online businesses?
/* | |
Author: https://github.com/gorhill | |
Source: https://gist.github.com/gorhill/5285193 | |
A Go function to render a number to a string based on | |
the following user-specified criteria: | |
* thousands separator | |
* decimal separator |
from urllib.parse import urlparse | |
def parse_domain_name(url: str) -> str: | |
""" | |
Parse the domain name from the given url. | |
""" | |
return urlparse(url).hostname.split('.')[-2] |
(Jan 2, 2021) Ask HN: Successful one-person online businesses in 2021?
https://news.ycombinator.com/item?id=25614966
(Dec 12, 2020) Ask HN: Successful one-person online businesses?
function addCss(rule) { | |
// https://stackoverflow.com/a/38063486 | |
let css = document.createElement('style'); | |
css.type = 'text/css'; | |
if (css.styleSheet) { | |
css.styleSheet.cssText = rule; // Support for IE | |
} | |
else { | |
css.appendChild(document.createTextNode(rule)); // Support for the rest | |
} |
import socket | |
import sys | |
def isOpen(ip, port): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
s.connect((ip, int(port))) | |
s.shutdown(2) | |
return True |
// See all event listeners on the page. | |
// Ref: https://stackoverflow.com/a/45842339 | |
// | |
Array.from(document.querySelectorAll('*')) | |
.reduce(function(pre, dom){ | |
var evtObj = getEventListeners(dom) | |
Object.keys(evtObj).forEach(function (evt) { | |
if (typeof pre[evt] === 'undefined') { | |
pre[evt] = 0 | |
} |
alias changefileperms='find . -type d -perm 777 -exec chmod 755 {} \; && find . -type f -perm 777 -exec chmod 644 {} \;' |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
I hereby claim:
To claim this, I am signing this object: