Skip to content

Instantly share code, notes, and snippets.

View wyldrodney's full-sized avatar

Komaritskiy Dmitry wyldrodney

  • Saint-Petersburg
View GitHub Profile
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Sitesaver</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<html class="i-ua_js_yes i-ua_css_standart m-border-radius" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:x="http://www.yandex.ru/xscript"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><meta content="true" name="MSSmartTagsPreventParsing"><meta content="IE=EmulateIE7, IE=edge" http-equiv="X-UA-Compatible"><!--[if gt IE 7]><!--><link href="//yandex.st/weather/1.1.68.1/pages/common/_common.css" rel="stylesheet"><!--<![endif]--><!--[if lt IE 8]><link rel=stylesheet href="http://yandex.st/weather/1.1.68.1/pages/common/_common.ie.css"><![endif]--><link href="//yandex.st/lego/_/p2hHn1BzWL7kJemxd7YIBrA98ho.ico" rel="shortcut icon"><title>Прогноз погоды: Санкт-Петербург (Россия) - Яндекс.Погода</title><link href="/opensearch.xml" title="Яндекс.Погода" type="application/opensearchdescription+xml" rel="search"></head><body class="b-page"><div class="b-head-gradient b-t_c_16"><div class="b-head-gradient__i"></div></div><i class="b-statcounter"><i style="background:url(//www.tns-counter.ru/V
[186] pry(main)> print data[105*66..106*66].unpack("a50qq")
["Day 106\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 106, 1334433600]=> nil
[187] pry(main)> print data[106*66..107*66].unpack("a50qq")
["ay 107\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k", -4611686018427387904, 4899916394584312616]=> nil
[188] pry(main)>
module SDB
class Database
@@connections = {}
def self.define_connection(db_name, &init)
@@connections[db_name] = init
##Storing db config in proc.
end