This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------ | |
# Task runners | |
# ------------ | |
# Gulp builder | |
gulp = require 'gulp' | |
# Run tasks one by one | |
runSeq = require 'run-sequence' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/concern' | |
require 'addressable/uri' | |
require 'simpleidn' | |
require 'faraday' | |
# Normalize and validate URLs | |
module Urlable | |
extend ActiveSupport::Concern | |
included do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!upstart | |
description "Upstart Script for a Freefeed sidekiq process" | |
start on startup | |
stop on shutdown | |
respawn | |
setuid deploy | |
setgid deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} } | |
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extendend": true} } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.2.6' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'pg' | |
gem 'sqlite3', group: :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt_char { | |
if [ $UID -eq 0 ]; then echo "#"; else echo $; fi | |
} | |
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%_$(prompt_char)%{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=") " | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
%html(lang="ru") | |
%head | |
%meta(charset="utf-8") | |
%title= t[:app_name] | |
%link{rel: "stylesheet", href: "css/styles.css", type: "text/css", media: 'all'} | |
%script{type: 'text/javascript', src: 'js/jquery-1.7.2.min.js'} | |
%script{type: 'text/javascript', src: 'js/join_inputs.jquery.min.js'} | |
%body | |
.auth-block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Set to false to prevent line numbers being drawn in the gutter | |
"line_numbers": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ru: | |
activerecord: | |
errors: | |
messages: | |
taken: "%{model} с таким именем уже существует" | |
record_invalid: "Валидация не прошла: %{errors}" | |
restrict_dependent_destroy: | |
one: "Невозможно удалить запись, так как существуют зависимости: %{record}" | |
many: "Невозможно удалить записи, так как существуют зависимости: %{record} " | |
inclusion: "недопустимое значение" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'yard' | |
gems = %w(xendoola jackad) | |
libraries = {} | |
gems.each do |gem_name| | |
Gem.source_index.find_name(gem_name).each do |spec| | |
libraries[spec.name] ||= [] | |
libraries[spec.name] << YARD::Server::LibraryVersion.new(spec.name, spec.version.to_s, nil, :gem) |
OlderNewer