Skip to content

Instantly share code, notes, and snippets.

/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/
bootstrap_modal(dom_id: 'a_dom_id', fade: true, header_title: "I'm a bootstrap modal popup") do |modal|
modal.body do |c|
c.content_tag :div, "the body"
end
modal.footer do |f|
f.bootstrap_button "Save", "/link1", :type => 'btn-primary'
f.bootstrap_button "Cancel", "/link2"
end
end
@yury
yury / api.md
Last active December 18, 2015 01:38
Описание API https://global-sms.info

Global SMS rest API

Основные параметры

  • access_token - токен доступа, будет указан в письме для каждого сайта. Этот параметр должен передаваться в каждом запросе.
  • list_id - идентификатор списка, будет указан в письме для каждого сайта. Параметр используется в запросах работы со списками (базами) пользователей.

Операции

  • send_verification - Отправка проверочного кода.
  • verify_number - Проверка номера по коду
@yury
yury / application.css.scss
Last active December 17, 2015 19:39
Example of tiny, smalll and large column and shortcuts for bootstrap 3.0.x grid
// Grid shortcuts
// use with https://github.com/anjlab/bootstrap-rails
//
// Columns for phones
// - columns: .x[1-12]
// For small devices (tablets and small desktops)
// - columns: .s[1-12]
// - offsets: .so[0-11]
// - pushes: .sr[0-11]
// - pulls: .sl[0-11]
@yury
yury / file1.txt
Created April 23, 2013 20:36
new
werwerw
@yury
yury / file1.txt
Created April 22, 2013 09:46
new
werwerw
@yury
yury / file1.txt
Created April 22, 2013 09:46
new
werwerw
@yury
yury / file1.txt
Created April 22, 2013 09:46
new
werwerw
@yury
yury / file1.txt
Created April 22, 2013 09:46
new
werwerw
@yury
yury / test1
Created April 13, 2013 21:23
multifile gist
nice