Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h4>
STUN TEST
</h4>
<p>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h4>
STUN TEST
</h4>
<p>
@milandobrota
milandobrota / webrtc_check.html
Created March 7, 2017 17:13
Generic WebRTC check
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h4>WebRTC check</h4>
<h4>Your local IP addresses:</h4>
<ul></ul>
<h4>Your public IP addresses:</h4>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h4>
Demo for:
<a href="https://github.com/diafygi/webrtc-ips">
https://github.com/diafygi/webrtc-ips
@milandobrota
milandobrota / monty_hall.rb
Created December 19, 2010 18:24
Monty Hall Problem simulation written in Ruby. Usage: ruby monty_hall.rb <number of games>
class Show
attr_reader :games
def initialize
@games = []
end
def first_pick(door)
@current_game = Game.new(door)
@current_game.first_pick(door)
item.categories.each do |rss_category|
rss_category.strip.split(',').each do |rss_category_split|
if rss_category_split
# Create the new category is necessary
category = Category.find_by_name(rss_category_split.strip)
if !category
# Try to find a merge category before creating a new category.x