Skip to content

Instantly share code, notes, and snippets.

View ytsarev's full-sized avatar
🎸
\m/

Yury Tsarev ytsarev

🎸
\m/
View GitHub Profile
@ytsarev
ytsarev / main.go
Created February 18, 2020 13:23 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@ytsarev
ytsarev / show.html.erb
Created February 22, 2012 23:48 — forked from codeschool-courses/show.html.erb
Rails for Zombies 2 – Challenge 5-9
<p id="notice"><%= notice %></p>
<ul>
<li>
<em>Name:</em>
<%= @weapon.name %>
</li>
<li>
<em>Condition:</em>
<span id="condition"><%= @weapon.condition %></span>
<%= link_to "Toggle", toggle_condition_user_weapon_path(@user, @weapon), remote: true %>