pip3 install pipenv
pipenv shell
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles(() => ({ | |
media: { | |
height: 260, | |
}, | |
cardContent: { | |
display: 'flex', | |
justifyContent: 'space-between', | |
}, |
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 15, | |
"editor.lineHeight": 1.8, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [ | |
80, | |
120 | |
], |
import cv2 | |
import numpy as np | |
import base64 | |
image = "" # raw data with base64 encoding | |
decoded_data = base64.b64decode(image) | |
np_data = np.fromstring(decoded_data,np.uint8) | |
img = cv2.imdecode(np_data,cv2.IMREAD_UNCHANGED) | |
cv2.imshow("test", img) | |
cv2.waitKey(0) |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
let HEAP = []; | |
const A = { | |
language: 'JavaScript' | |
}; | |
HEAP.push(A); | |
const root = () => HEAP[0]; |
start(() => { | |
while(true) | |
{ | |
print("a"); | |
sleep(1000); | |
} | |
}) | |
while(true) | |
{ |
This gist had a far larger impact than I imagined it would, and apparently people are still finding it, so a quick update:
(async main(){...}())
as a substitute for TLA. This completely eliminates the blocking problem (yay!) but it's less powerful, and harder to statically analyse (boo). In other words the lack of TLA is causing real problemsI'll leave the rest of this document unedited, for archaeological
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |