Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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 |
# | |
# PLACE THE CONTENTS IN YOUR ~/.bashrc | |
# AFTERWARDS YOU'LL NEED TO RELOAD IT: source ~/.bashrc | |
# | |
# Colors | |
BLACK='\[\e[0;30m\]' | |
BLUE='\[\e[0;34m\]' | |
GREEN='\[\e[0;32m\]' | |
CYAN='\[\e[0;36m\]' |
RS="\033[0m" # reset | |
HC="\033[1m" # hicolor | |
INV="\033[7m" # inverse background and foreground | |
function git_dirty() { | |
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then | |
echo -n "\[$INV\]*" | |
else | |
echo -n "\[$HC\]" | |
fi |
# This is the complete example of nginx configuration file for ownCloud 5 | |
# This config file configures proper rewrite rules for the new release of ownCloud | |
# Also, this config file configures nginx to listen on both IPv4 and IPv6 addresses | |
# If you want it to listen to IPv4 address only, use listen 80; instead of listen [::]:80 | |
# First, we configure redirection to HTTPS (substitue owncloud.example.com with the proper address of your OC instance) | |
server { | |
listen [::]:80; | |
server_name owncloud.example.com; |
# coding=UTF-8 | |
from __future__ import division | |
import re | |
# This is a naive text summarization algorithm | |
# Created by Shlomi Babluki | |
# April, 2013 | |
class SummaryTool(object): |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
package main | |
import ( | |
"fmt" | |
"github.com/str1ngs/util/file" | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"time" |
# | |
# Himawari-8 Downloader | |
# | |
# | |
# | |
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
# | |
# http://himawari8.nict.go.jp/himawari8-image.htm | |
# |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.