Komaritskiy Dmitry wyldrodney

View Example DB
1 2 3 4 5 6 7 8 9 10
module SDB
 
class Database
@@connections = {}
 
def self.define_connection(db_name, &init)
@@connections[db_name] = init
 
##Storing db config in proc.
end
View gist:3038336
1 2 3 4 5
[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)>
View gist:3025337
1
<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
View gist:2823476
1 2 3 4 5 6 7 8 9
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Sitesaver</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
View gist:2546762
1 2 3 4
http://flat.petroarenda.ru/obj/103
http://flat.petroarenda.ru/obj/569
http://flat.petroarenda.ru/obj/458
http://flat.petroarenda.ru/obj/357
View gist:2420243
1 2 3 4 5 6 7 8 9 10
<% current = @resource_contents[ind] %>
<% prev = (ind != 0) ? @resource_contents[ind - 1] : nil %>
 
unless prev
if current.show
<%= render "statistics/content_chunk" %>
else
<tr>
<td colspan="5">
<div id="accordion<%= accordion_counter.to_s %>" class="accordion">
View gist:2381107
1 2 3 4 5 6 7 8 9 10
class Resource < ActiveRecord::Base
belongs_to :host
has_many :resource_statuses
has_many :resource_contents
attr_accessible :path, :period, :csspaths
validates_presence_of :path, :period, :csspaths
 
before_save do |resource|
csspaths = resource.csspaths.split(",")
csspaths.delete("")
View gist:2374095
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Sitesaver</title>
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/home.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/hosts.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/resources.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/statistics.css?body=1" media="all" rel="stylesheet" type="text/css" />
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
View gist:2358216
1 2 3 4 5 6 7 8 9
module Periodic
 
class HostProbeJob
def initialize(host)
@host = host
end
 
def perform
stime = Time.current.to_f
View gist:2358211
1 2 3 4 5 6 7 8 9 10
$(document).ready(function() {
$('iframe', top.document).load(function() {
 
// this.style.height = this.contentWindow.document.body.offsetHeight + 'px'; //autoheight
 
var nodes = $('#wizard-controller > input').attr('value').split(',');
var iframeDoc = window.frames[0].document;
var list = $(iframeDoc).contents().find('*');
 
setNodesCounter();
Something went wrong with that request. Please try again.