I hereby claim:
- I am kalashnikovisme on github.
- I am kalashnikovisme (https://keybase.io/kalashnikovisme) on keybase.
- I have a public key ASDVeoOQspk0G4ZJMgzCFFTzbG7M6OUpGzazXbVdfiCExgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Github Open API wrapper gem
Требуется создать гем, который позволяет использовать некоторые фичи Github Open API.
Гем должен иметь реализацию в себе следующих запросов:
Функции гема должны возвращать Ruby-объекты, содержающие все полученные из JSON-ответов данные. Вызов функций должен происходить синхронный.
services: | |
- docker:19.03.5-dind | |
stages: | |
- linter | |
linter: | |
stage: linter | |
services: | |
- docker:latest |
file = File.open("errors.json").read | |
lines = [] | |
file.each_line do |line| | |
line.gsub!(/ObjectId\({1}(.)/, '\1').sub!(/()*\)/, '\1') if line.include? 'ObjectId' | |
line.gsub!(/ISODate\({1}(.)/, '\1').sub!(/()*\)/, '\1') if line.include? 'ISODate' | |
lines.push line | |
end | |
puts lines |
class SimpleMultipleExample | |
include AASM | |
aasm(:move, column: 'move_state') do | |
state :standing, initial: true | |
state :walking | |
state :running | |
event :walk do | |
transitions from: :standing, to: :walking | |
end |
--- | |
- hosts: all | |
vars: | |
name: "Your name" | |
email: "your_email" | |
tasks: | |
- command: git config --global user.email "{{ email }}" | |
- command: git config --global user.name "{{ name }}" | |
- apt: name={{ item }} | |
sudo: True |
cvt 1440 900 60 | |
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync | |
xrandr --addmode VGA1 1440x900_60.00 |
parent_div_width = $('.youtube_embed').parents('div').first().width() | |
$youtube_embed = $('.youtube_embed iframe') | |
$youtube_embed.prop('width', "#{parent_div_width}px") | |
$youtube_embed.prop('height', "#{parent_div_width / 16 * 9}px") |
public void ExportToExcel(DataGridView grid) { | |
ApplicationClass Excel = new ApplicationClass(); | |
XlReferenceStyle RefStyle = Excel.ReferenceStyle; | |
Excel.Visible = true; | |
Workbook wb = null; | |
String TemplatePath = System.Windows.Forms.Application.StartupPath + @"\export.xlt"; | |
try { | |
wb = Excel.Workbooks.Add(TemplatePath); // !!! | |
} catch (System.Exception ex) { | |
throw new Exception("Template is unavailable " + TemplatePath + "\n" + ex.Message); |