Skip to content

Instantly share code, notes, and snippets.

View ka8725's full-sized avatar
🚀
Ruby on Rails expert with business development mindset | WideFix Founder

Andrei Kaleshka ka8725

🚀
Ruby on Rails expert with business development mindset | WideFix Founder
View GitHub Profile
@ka8725
ka8725 / smart.txt
Last active August 29, 2015 14:17 — forked from avsej/smart.txt
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.0-0.rc3.git2.1.fc23.x86_64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: Samsung SSD 850 PRO 256GB
Serial Number: S1SUNSAFA06649M
LU WWN Device Id: 5 002538 8a0713409
Firmware Version: EXM01B6Q
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
@ka8725
ka8725 / gist:3892048
Created October 15, 2012 11:39 — forked from 0x000000/gist:3852426
Список ссылок для RubyGardens
=== Часть 1. Обзорная информация
== Обязательно посмотрите
http://en.wikipedia.org/wiki/Internet_media_type
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes или http://www.flickr.com/photos/girliemac/sets/72157628409467125
http://api.rubyonrails.org/classes/ActionDispatch/Response.html
http://api.rubyonrails.org/classes/ActionDispatch/Request.html
== Документация по AJAX в jQuery
@ka8725
ka8725 / mobidedrm.py
Created September 24, 2012 13:59 — forked from avsej/mobidedrm.py
#!/usr/bin/python
# GistID: 3775979
#
# This is a python script. You need a Python interpreter to run it.
# For example, ActiveState Python, which exists for windows.
#
# It can run standalone to convert files, or it can be installed as a
# plugin for Calibre (http://calibre-ebook.com/about) so that
# importing files with DRM 'Just Works'.
#
<h3 class="title-text title-text-top0">Добавить отзыв</h3>
<%= form_for [@page, @comment] do |f| %>
<div class="row-form1 clear">
<div class="col-1 fleft">
<div class="row-form1 clear">
<div class="row-form1-left fleft">Имя:</div>
<div class="row-form1-right fleft"><%= f.text_field :user_name %></div>
</div>
</div>
<div class="col-2 fleft">
class AddNewFieldsToComments < ActiveRecord::Migration
def self.up
add_column :comments, :ip, :string
add_column :comments, :rate, :integer
add_column :comments, :email, :string
add_column :comments, :user_name, :string
add_column :comments, :description, :text
add_column :comments, :page_id, :integer
remove_column :comments, :title
remove_column :comments, :comment