This file contains hidden or 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
let s:bcs = b:current_syntax | |
unlet b:current_syntax | |
syntax include @SQL syntax/sql.vim | |
" this unlet instruction is needed | |
" before we load each new syntax | |
unlet b:current_syntax | |
syntax include @SHELL syntax/sh.vim | |
let b:current_syntax = s:bcs |
This file contains hidden or 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
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
bind -n WheelDownPane select-pane -t= \; send-keys -M |
This file contains hidden or 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 'openssl' | |
class MessageEncryptor | |
class << self | |
include OpenSSL | |
def delivering_email(message) | |
encrypted_message = sign_and_encrypt(message.encoded, message.to) | |
overwrite_body(message, encrypted_message) | |
overwrite_headers(message, encrypted_message) |
This file contains hidden or 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
#Ignore everything in this directory | |
* | |
# Except this file | |
!.gitignore |
This file contains hidden or 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
# In the controller | |
@lineChart = LazyHighCharts::HighChart.new('graph') do |f| | |
f.options[:chart][:defaultSeriesType] = "line" | |
f.options[:title][:text] = "Chart Title" | |
f.xAxis(:categories=>['Jan', 'Feb', 'March', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']) | |
f.series(name: 'This Series', :data=> [1,2,3,4,5,6,7,8,9,10,9,8]) | |
f.series(name: 'That Series', :data=> [10,9,8,7,5,6,7,8,9,10,9,8]) | |
end |
This file contains hidden or 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
## use lazy_high_charts to make a horizontal stacked bar chart | |
# in the controller | |
@h = LazyHighCharts::HighChart.new('graph') do |f| | |
f.options[:chart][:defaultSeriesType] = "bar" | |
f.options[:title][:text] = "Sample Title Text" | |
f.legend(:reversed => 'true') | |
f.xAxis(:categories=>['Cat1', | |
'Cat2', | |
'Cat3', |
This file contains hidden or 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
module God | |
module Conditions | |
class Timeout < PollCondition | |
attr_accessor :timeout | |
def initialize | |
super | |
@last_time = Time.now | |
end | |
def reset |