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 'eet_cz' | |
client = EET_CZ::Client.new.tap do |c| | |
c.endpoint = EET_CZ::PG_EET_URL #EET_CZ::PROD_EET_URL | |
c.ssl_cert_file = Rails.root.join('EET_CA1_Playground-CZ00000019.p12') | |
c.ssl_cert_key_file = Rails.root.join('EET_CA1_Playground-CZ00000019.p12') | |
c.ssl_cert_key_password = 'eet' | |
c.overovaci_mod = true # It sends attribute: overeni='true' Or explicitly specify 'false'. `default: true` | |
c.debug_logger = Logger.new('log/eet.log') # or Logger.new($stdout) in tests? |
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
#!/usr/bin/env python3 | |
import argparse; | |
import json; | |
import yaml; | |
import urllib.parse; | |
import urllib.request; | |
## | |
# Translation URI |
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 'octokit' | |
Octokit.configure do |c| | |
c.login = '' | |
c.password = '' | |
end | |
new_labels = [ | |
{ name: 'Blocked', color: 'b60205' }, | |
{ name: 'Bug', color: 'd93f0b' }, |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
{ foldingStartMarker = '(/\*|\{\s*$)|if\s*\(.*\)'; | |
foldingStopMarker = '(\*/|^\s*\})|endif;'; | |
} |
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
# 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="steeef" | |
# Example aliases |
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
// ==UserScript== | |
// @name Blueberry CMS | |
// @namespace http://blueberry.cz/user/ceda | |
// @description Highlights the HTML syntax for Textareas in block editor | |
// @include http://cms.blueberry.cz/* | |
// @require http://codemirror.net/lib/codemirror.js | |
// @require http://codemirror.net/addon/fold/foldcode.js | |
// @require http://codemirror.net/addon/fold/foldgutter.js | |
// @require http://codemirror.net/addon/fold/xml-fold.js | |
// @require http://codemirror.net/mode/xml/xml.js |
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
%ul.breadcrumb | |
%li | |
%big | |
="1" | |
= link_to t('reservations.steps.choose_date_and_count'), root_path | |
%span.divider | |
> | |
%li.active | |
%big | |
="2" |
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
#!/usr/bin/env ruby | |
filename = File.basename(ENV["TM_FILEPATH"]) | |
if (filename=="style.less") | |
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) | |
system("lessc -x \"#{file}.less\" > \"#{file}.css\"") | |
end | |
# if is modules path | |
dir, base = File.split(File.dirname(ENV["TM_FILEPATH"])) |
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
#!/usr/bin/env ruby | |
filename = File.basename(ENV["TM_FILEPATH"]) | |
if (filename=="style.less") | |
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) | |
system("lessc -x \"#{file}.less\" > \"#{file}.css\"") | |
end |
NewerOlder