Skip to content

Instantly share code, notes, and snippets.

View Dogacel's full-sized avatar
🚀
To the moon.

Doğaç Eldenk Dogacel

🚀
To the moon.
  • Carbon Health
  • Evanston, IL
  • 02:21 (UTC -05:00)
View GitHub Profile
@Dogacel
Dogacel / omer.cpp
Created August 4, 2017 11:29
Omer al
if(inp[n] < 0 || inp[n] > '9'){
switch(inp[n]){
case '/':
case '*':
case '+':
case '-':
continue;
default:
break;
}
import java.util.Random;
public class ArrayRepeatProblem {
public static void print(int i) {System.out.println(i);}
public static void print(String s) {System.out.println(s);}
public static void main(String[] args) {
Random rn = new Random();
@Dogacel
Dogacel / LinearSums.java
Last active December 14, 2017 18:25
integer sums equal .... in linear time
import java.util.Random;
public class LinearSums {
public static void print(int i) {System.out.println(i);}
public static void print(String s) {System.out.println(s);}
public static void main(String[] args) {
Random rn = new Random();
@Dogacel
Dogacel / prepare-commit-msg
Created June 13, 2018 16:40
Auto run bench for test commits on defenchess
#!/usr/bin/env python
import sys, os, subprocess
from sys import platform
subprocess_cmd = '/bin/sh'
if platform == "win32":
subprocess_cmd = 'C:/Windows/System32/bash.exe'
call plug#begin()
" This is where we will add plugins to install
Plug 'danilo-augusto/vim-afterglow'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'preservim/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" TextEdit might fail if hidden is not set.
set hidden
" Some servers have issues with backup files, see #649.
set nobackup
set nowritebackup
" Give more space for displaying messages.
set cmdheight=2
@Dogacel
Dogacel / schema-defs.json
Last active June 8, 2024 04:44
$defs block for the armeria grpc tests
[
{
"$id": "armeria.grpc.testing.TestService/UnaryCallWithAllDifferentParameterTypes/POST",
"title": "UnaryCallWithAllDifferentParameterTypes",
"description": " This method's parameter message contains all different types of parameters\n as well as the response type contains all different types of parameters.\n Can be used to check any kind of serialization issues.\n",
"additionalProperties": false,
"type": "object",
"properties": {
"bool": {
"type": "boolean"