Skip to content

Instantly share code, notes, and snippets.

View skipor's full-sized avatar

Vladimir Skipor skipor

View GitHub Profile
@skipor
skipor / code_writer.go
Last active March 20, 2019 14:50
CodeWriter helper for generation Go code.
// Copyright (c) 2019 Yandex LLC.
// Author: Dmitry Novikov <novikoff@yandex-team.ru>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
on run argv
tell application "IntelliJ IDEA" to activate
delay 0.1
menu_click({"IntelliJ IDEA", "Navigate", "File..."})
delay 0.1
tell application "System Events"
keystroke item 1 of argv
end tell
end run
@skipor
skipor / Main.java
Created September 28, 2014 18:57
Java stdin/stdout fast IO template
import java.io.*;
import java.util.*;
public class Main {
public void solve() throws IOException {
// put your code here
String s = in.next();
int n = in.nextInt();
long l = in.nextLong();