Map [1]
| Operation | Time Complexity |
|---|---|
| Access | O(log n) |
| Search | O(log n) |
| Insertion | O(n) for <= 32 elements, O(log n) for > 32 elements [2] |
| Deletion | O(n) for <= 32 elements, O(log n) for > 32 elements |
| #pragma once | |
| /* | |
| * Hall Effect Utilities for QMK | |
| * | |
| * DISCLAIMER: | |
| * This code was written by Boris Testov for personal use on K6 HE keyboard. | |
| * You are free to use, modify, and distribute this code for any purpose, including | |
| * commercial use. However, this code is provided "AS IS" without any warranty of | |
| * any kind, express or implied. The author makes no guarantees about its |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: pulse-audio-config | |
| namespace: gow | |
| data: | |
| default.pa: |- | |
| .fail | |
| load-module module-null-sink sink_name=sunshine | |
| set-default-sink sunshine |
| // Source: https://twitter.com/calebporzio/status/1151876736931549185 | |
| <div class="flex"> | |
| <aside class="h-screen sticky top-0"> | |
| // Fixed Sidebar | |
| </aside> | |
| <main> | |
| // Content | |
| </main> |
| #!/usr/bin/env python3.8 | |
| # requires python3.8 | |
| from typing import Dict, Final | |
| import hashlib | |
| import os | |
| import subprocess | |
| # Expects a file of the format output by sha256sum (text mode) | |
| CHECKSUM_FILE: Final = ".local_checksum" |
Here's my setup:
Complete up to the "Generate the cert" section in this gist
| #!/bin/bash | |
| # | |
| # This script will mount /Users in the boot2docker VM using NFS (instead of the | |
| # default vboxsf). It's probably not a good idea to run it while there are | |
| # Docker containers running in boot2docker. | |
| # | |
| # Usage: sudo ./boot2docker-use-nfs.sh | |
| # |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| @import compass | |
| $icons: sprite-map("icons/*.png") | |
| $icons-hd: sprite-map("icons-hd/*.png") | |
| i | |
| background: $icons | |
| display: inline-block | |
| @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
| background: $icons-hd |
| #put in lib/tasks/fixtures.rake | |
| namespace :db do | |
| namespace :fixtures do | |
| desc 'Create YAML test fixtures from data in an existing database. | |
| Defaults to development database. Set RAILS_ENV to override.' | |
| task :dump => :environment do | |
| sql = "SELECT * FROM %s" | |
| skip_tables = ["schema_migrations"] | |
| ActiveRecord::Base.establish_connection(:development) | |
| (ActiveRecord::Base.connection.tables - skip_tables).each do |table_name| |