Skip to content

Instantly share code, notes, and snippets.

A Patch based commenting system for static blogs

This is a Request For Comment on a workflow solution to allow readers of a static site blog to post comments.

Problem domain

A recent trend for blog owners (especially technical blogs) is to use static site generators. These frameworks allow the blog owner to author blog posts in a

Snippit from Security Now Podcast: https://www.grc.com/sn/sn-444.htm


Steve: Oh, yeah, there it is. So I had seen it visually, but I'd never dug into it and looked at it. But so many people were tweeting me that I got tired of saying go look at Threema. I thought, okay, let's go look at Telegram. So I go to the website, and I'm impressed by the openness of what I see. I mean, they appear to be good people. Everything is open, open source. They're multiplatform. There on the screen you are showing their API. There's a bunch of different stuff going on. They're running competitions. They're like, who can create the best Telegram Android app and so forth. So all that seems good.

So then, of course, I want to go find out about the crypto. And I see this diagram that is the most bizarre-looking thing I have ever encountered. I mean, I don't think I'm exaggerating. Maybe it's the most bizarre thing I've ever encountered. And I look at it, and they're like, they're taking the plaintext of the message, and the

ratingText = {
singular: {
"Closed": L("1_person_voted_to_get_this_issue_fixed", "1 person voted to get this issue fixed"),
"Archived": L("1_person_voted_to_get_this_issue_fixed", "1 person voted to get this issue fixed"),
default: L("1_person_wants_this_fixed", "1 person wants this fixed")
},
plural: {
"Closed": L("people_voted_to_get_this_issue_fixed", "%s people voted to get this issue fixed"),
"Archived": L("people_voted_to_get_this_issue_fixed", "%s people voted to get this issue fixed"),
default: L("people_want_this_fixed", "%s people want this fixed")
def missing(message)
if message.is_a? Symbol
puts "The environment is missing #{message.to_s.upcase}"
else
puts message
end
end
desc "Check the environment for proper setup"
task :checkenv do
@danbernier
danbernier / Rakefile
Created April 18, 2013 20:16 — forked from sukima/Rakefile
def missing(message)
if message.is_a? Symbol
puts "The environment is missing #{message.to_s.upcase}"
else
puts message
end
end
desc "Check the environment for proper setup"
task :checkenv do
@danbernier
danbernier / gist:5395929
Created April 16, 2013 13:34
Getting back undefined
(function(undefined) {
// In here, undefined is back to normal,
// because we passed the function no params!
})();
@danbernier
danbernier / issue.js
Last active May 10, 2024 00:03 — forked from sukima/issue.js
This is more what I was after - this way, ratingText is created once, AND it's private.
var getRatingText = (function() {
var ratingText = {
singular: {
"Closed": L("1_person_voted_to_get_this_issue_fixed", "1 person voted to get this issue fixed"),
"Archived": L("1_person_voted_to_get_this_issue_fixed", "1 person voted to get this issue fixed"),
default: L("1_person_wants_this_fixed", "1 person wants this fixed")
},
plural: {
"Closed": L("people_voted_to_get_this_issue_fixed", "%s people voted to get this issue fixed"),
@JADC362
JADC362 / ROS2DebugVSCode.md
Last active May 10, 2024 00:03
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

@danbernier
danbernier / gist:7378358
Created November 8, 2013 21:58
A mix-in module for a Rails model that's backed by a column like `{column-name} ENUM('true', 'false')
module HasFakeBooleanColumns
def self.wallpaper_over_fake(column_name)
define_method(column_name) do
self.attributes(column_name) == 'true'
end
define_method("#{column_name)=".to_sym) do |value|
self.update_attribute(column_name, value == 'true')
end
end
@cocopon
cocopon / Easing.pde
Last active May 10, 2024 00:03
A class that brings Robert Penner's easing functions into Processing
/*
* Easing.pde - brings Robert Penner's easing functions into Processing
* (c) 2015 cocopon.
*
* See the following to learn more about these famous functions:
* http://www.robertpenner.com/easing/
*
* License:
* http://www.robertpenner.com/easing_terms_of_use.html
*/