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
export PATH=$PATH:/opt/local/bin | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
export MANPATH=$MANPATH:/opt/local/share/man | |
export INFOPATH=$INFOPATH:/opt/local/share/info | |
export PATH=$PATH:. | |
export PATH=/usr/bin/:$PATH | |
export PATH=~/bin/:$PATH |
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
// budi's CS:GO config | |
// Competitive HUD from http://www.spddl.de/csgo/hud/competitivehud | |
// Rates | |
rate "128000" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp "0.0" | |
cl_interp_ratio "1" | |
cl_lagcompensation "1" |
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
// budi's CS:GO config | |
// Competitive HUD from http://www.spddl.de/csgo/hud/competitivehud | |
// Rates | |
rate "128000" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp "0.0" | |
cl_interp_ratio "1" | |
cl_lagcompensation "1" |
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
keypress_script = "var e = $.Event('keyup', { keyCode: 13 }); $('#main-search-input').trigger(e);" | |
page.driver.execute_script(keypress_script) |
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
class ClipartDiagnoser | |
def call | |
CSV.open("/u01/app/jsLab_server/current/tmp/clipart_designs.csv", "wb") do |csv| | |
csv << ["design_id"] | |
Design.where(updated_at: (Time.now - 24.hours)..Time.now).find_each do |design| | |
xml = Nokogiri::XML(design.content) | |
clipart = xml.xpath("//icon[@grayscale='none' and @type='IMAGE']") | |
if clipart.present? |
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
class Something | |
attr_accessor :groups | |
def initialize | |
@groups = [] | |
end | |
def respond_to_missing?(method_sym, include_private = false) | |
@groups.map(&:name).detect { |name| name == method_sym.to_s } | |
end |
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 'capybara_helper' | |
class LabPrintSaveTest < ActionDispatch::IntegrationTest | |
it 'save a design through print' do | |
stub_rack_proxy | |
insert_cassette 'capybara_lab_print_save' | |
visit_empty_lab | |
click_link 'add text' |
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 'capybara_helper' | |
class LabPrintSaveTest < ActionDispatch::IntegrationTest | |
it 'save a design through print' do | |
stub_rack_proxy | |
insert_cassette 'capybara_lab_print_save' | |
visit_empty_lab | |
click_link 'add text' |
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
IGNORED = [ | |
/The "fb-root" div has not been created/, | |
/Unsafe JavaScript attempt to access frame/, | |
/in the list of allowed domains for kit/ | |
].freeze |
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 | |
set hud | |
set nosmoothscroll | |
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
set typelinkhints | |
let searchlimit = 30 | |
let scrollstep = 70 | |
let barposition = "bottom" | |
set nocncpcompletion |
NewerOlder