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
# -------------------- | |
# Define Audio Context | |
# -------------------- | |
window.AudioContext = window.AudioContext||window.webkitAudioContext | |
window.MyAudioContext = new AudioContext() | |
window.MyAudioDecodeAndPlay = (arrayBuffer) -> | |
MyAudioContext.decodeAudioData arrayBuffer, (buffer) -> | |
source = MyAudioContext.createBufferSource() |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Example aliases |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"drag_text": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ |
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
#!/bin/sh | |
echo "NB! This process could be too destructive sometimes and you may need to run 'bundle' command from your project directory." | |
echo "Do you want to cleanup all gemsets?" | |
read -p "(anything other than 'yes' will cancel) > " ANSWER | |
if [[ $ANSWER != "yes" ]] | |
then | |
echo "Phew...\nMay be another day." | |
else |
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
= link_to 'Homepage', root_path, data: { keybinding: 'h' } # Press 'h' to navigate to homepage | |
= link_to 'About', about_path, data: { keybinding: '["a", "c"]' } # Press 'a' or 'c' to navigate to about |
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) |
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
// 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
!!! 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
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=") " | |