Skip to content

Instantly share code, notes, and snippets.

View ktchernov's full-sized avatar

Konstantin Tchernov ktchernov

View GitHub Profile
@ktchernov
ktchernov / aliases.txt
Last active December 5, 2018 00:19
Git Aliases
#paste the code below into ~/.gitconfig
[alias]
co = checkout
ci = commit
br = branch
st = status
last = log -1 HEAD
rct = rebase --continue
rab = rebase --abort

This is based on https://gist.github.com/rbuussyghin/0d7473a2692bdf6e0ef7

The change in my Gist is to add bash --login in front

Also note that the file launcher/bin/TeamCityAgentService-macosx-universal-32 may not be executable by default. You can add chmod +x run on that file to make it executable.

package com.example.mydemoapp;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.io.IOException;
import okhttp3.OkHttpClient;
import okhttp3.Request;
package io.github.ktchernov.moshiautovaluebug;
import com.squareup.moshi.Moshi;
import org.junit.Before;
import org.junit.Test;
import io.github.ktchernov.moshiautovaluebug.TestClassA.TestClassB;
import static org.junit.Assert.assertEquals;
package com.example.mydemoapp;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.concurrent.TimeUnit;
package com.example.mydemoapp;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.MockWebServer;
import com.squareup.okhttp.mockwebserver.SocketPolicy;
package com.example.mydemoapp;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import java.io.IOException;
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<time.h>
#include "mpi.h"
#define PI 3.1415926535897931
#define OBSTYP 0
#define OBSM 1
#define dist2(x,x1,y,y1,z,z1) ((((x)-(x1))*((x)-(x1)))+(((y)-(y1))*((y)-(y1)))+(((z)-(z1))*((z)-(z1))))