James Sugrue [asked][1], "@GitHubAPI is there a way to find the number of stars for a given repository?"
$ curl -ni "https://api.github.com/search/repositories?q=more+useful+keyboard" -H 'Accept: application/vnd.github.preview'
{
module.export = function(v1, v2) { | |
const sv1 = v1.split('.').map(Number), | |
sv2 = v2.split('.').map(Number), | |
res = []; | |
let sv1v = null, | |
sv2v = null; | |
for (let i = 0; i < Math.max(sv1.length, sv2.length); i++) { | |
sv1v = sv1[i] || 0; | |
sv2v = sv2[i] || 0; |
sudo su | |
# In case of TinkerBoard, use the `tinker-config` alternative to the rpi's raspi-config | |
wget https://raw.githubusercontent.com/mikerr/tinker-config/master/tinker-config | |
# Enable multiverse repository | |
sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list | |
apt-get update | |
apt-get upgrade -y |
I hereby claim:
To claim this, I am signing this object:
# +--------------------+ | |
# | | | |
# | GENERAL CONFIG | | |
# | | | |
# +--------------------+ | |
PROBLEM_NAME := problem_name | |
DEBUG := true | |
LANG := cpp |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4
This ffmpeg command converts a .webm video file to a standard .mp4 file using the libx264 codec for video, aac codec for audio, and a CRF value of 22. The preset is set to 'slow' for higher quality encoding, and the audio bitrate is set to 128 kbps.