Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# MOTIVATION: As rails apps are growing, people are noticing the drawbacks | |
# of the ActiveRecord pattern. Several apps I have seen, and several | |
# developers I have spoken to are looking towards other patterns for object | |
# persistence. The major drawback with ActiveRecord is that the notion | |
# of the domain object is conflated with what it means to store/retrieve | |
# it in any given format (like sql, json, key/value, etc). | |
# | |
# This is an attempt to codify the Repository pattern in a way that would | |
# feel comfortable to beginner and seasoned Ruby developers alike. | |
# |
;; Workaround the annoying warnings: | |
;; Warning (mumamo-per-buffer-local-vars): | |
;; Already 'permanent-local t: buffer-file-name | |
(when (and (equal emacs-major-version 24) | |
(equal emacs-minor-version 2)) | |
(eval-after-load "mumamo" | |
'(setq mumamo-per-buffer-local-vars | |
(delq 'buffer-file-name mumamo-per-buffer-local-vars)))) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
-- Completely unused indexes: | |
SELECT relid::regclass as table, indexrelid::regclass as index | |
, pg_size_pretty(pg_relation_size(indexrelid)) | |
FROM pg_stat_user_indexes | |
JOIN pg_index | |
USING (indexrelid) | |
WHERE idx_scan = 0 | |
AND indisunique IS FALSE order by pg_relation_size(indexrelid); |
tl;dr: how about a virtual global flat LAN that maps static IPs to onion addresses?
[We all know the story][1]. Random feature gets unintentionally picked up as the main reason for buying/using a certain product, despite the creator's intention being different or more general. (PC: spreadsheets; Internet: porn; smartphones: messaging.)
require 'bundler/gem_tasks' | |
require 'active_record' | |
# Temporary switch to blank rake app, extract required tasks and import them to | |
# current rake task. Skip seed loader here, as we do not need it for tests. | |
# More info on AR tasks import: @see https://gist.github.com/drogus/6087979 | |
def import_active_record_tasks(default_rake_app) | |
Rake.application = Rake::Application.new | |
Rake.application.rake_require('active_record/railties/databases') |
#!/usr/bin/env python3 | |
import json | |
import time | |
import requests | |
from ntfy.backends.default import notify | |
USER = 'YOUR USERNAME' |
000(023Rb|001Rb) | |
001(017La|002Rb) | |
002(021La|003Rb) | |
003(021La|004La) | |
004(009Rb|005Lb) | |
005(004Ra|005La) | |
006(008La|007La) | |
007(009Rb|007La) | |
008(009Ra|008La) | |
009(010Ra|026Ra) |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project: