I hereby claim:
- I am tomdalling on github.
- I am tomdalling (https://keybase.io/tomdalling) on keybase.
- I have a public key ASDAMWx4M_UpLqjxz-ZUxQCZoDl8Tt18bKoclREuxqQo2go
To claim this, I am signing this object:
#!/bin/bash | |
# Copyright (C) 2013 Thomas Dalling | |
# Copyright (C) 2013 Marshall Levin | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in | |
# the Software without restriction, including without limitation the rights to | |
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
# of the Software, and to permit persons to whom the Software is furnished to do |
#!/user/bin/env ruby | |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'sinatra', '~> 1.4' | |
gem 'bcrypt', '~> 3.1' | |
end | |
require 'sinatra/base' |
class CommentsController | |
def create | |
result = CreateComment.call(params, @user) | |
if result.ok? | |
render :partial => "comments/postedreply", :layout => false, | |
:content_type => "text/html", :locals => { :comment => result.value } | |
else | |
case result.error.name | |
when :story_not_found | |
render :plain => "can't find story", :status => 400 |
#version 150 | |
uniform sampler2D tex; | |
uniform sampler2D tex2; | |
in vec2 fragTexCoord; | |
out vec4 finalColor; | |
void main() { |
# Schema: entries[ id, account_id, creator_id, created_at, updated_at, specialization_type, specialization_id ] | |
class Entry < ApplicationRecord | |
has_specialization types: %w[ Message Comment ] | |
belongs_to :account | |
belongs_to :creator | |
end | |
# Schema: messages[ id, subject ] | |
class Message < ApplicationRecord | |
is_specialization_of 'Entry' |
require 'json' | |
COLORS = { | |
'#' => '#216e39', | |
'+' => '#30a14e', | |
':' => '#40c463', | |
'-' => '#9be9a8', | |
'.' => '#ebedf0', | |
' ' => nil, | |
} |
I hereby claim:
To claim this, I am signing this object:
Mutant environment: | |
Matcher: #<Mutant::Matcher::Config match_expressions: [C]> | |
Integration: rspec | |
Jobs: 8 | |
Includes: [] | |
Requires: ["./c"] | |
Subjects: 1 | |
Total-Tests: 90 | |
Selected-Tests: 1 | |
Tests/Subject: 1.00 avg |
Running test/automated/zettel/hashtag_query.rb | |
Zettel::HashtagQuery | |
matches the presence of a hashtag | |
with syntax: #a | |
provides logical NOT | |
with syntax: NOT #a | |
with syntax: not #a | |
with syntax: !#a | |
provides logical AND | |
with syntax: #a AND #b |