This file contains 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
version: '3.7' | |
services: | |
teamcity-server: | |
container_name: teamcity | |
image: jetbrains/teamcity-server | |
restart: unless-stopped | |
ports: | |
- "8111:8111" | |
volumes: | |
- ./data_dir:/data/teamcity_server/datadir |
This file contains 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
using System; | |
using RestSharp; | |
namespace Application.Services | |
{ | |
public class RequestBuilder | |
{ | |
private IRestRequest request; | |
#region Static Constructors |
This file contains 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
using System; | |
using Android.Content; | |
using Android.Graphics; | |
using Android.Util; | |
using Android.Widget; | |
namespace MyProject.Droid.Controls | |
{ | |
public class CustomEditText : EditText | |
{ |
This file contains 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
using System.IO; | |
using System.IO.MemoryMappedFiles; | |
public static class FileUtils | |
{ | |
public static string MapAndRead(string processIdPath) { | |
using (var f = new FileStream(processIdPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) | |
using (var m = MemoryMappedFile.CreateFromFile(f, null, 0, MemoryMappedFileAccess.Read, null, HandleInheritability.None, true)) | |
using (var s = m.CreateViewStream(0, 0, MemoryMappedFileAccess.Read)) | |
using (var r = new StreamReader(s)) { |
This file contains 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
class Hash | |
def except_nested(key) | |
r = Marshal.load(Marshal.dump(self)) | |
r.except_nested!(key) | |
end | |
def except_nested!(key) | |
self.except!(key) | |
self.each do |_, v| | |
v.except_nested!(key) if v.is_a?(Hash) |
This file contains 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
public static class DocumentHelper { | |
public static string GetPathToFile(Context context, Android.Net.Uri uri) { | |
bool isKitkat = Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat; | |
if (isKitkat && DocumentsContract.IsDocumentUri(context, uri)) { | |
if (uri.IsExternalStorageDocument()) { | |
var parts = DocumentsContract.GetDocumentId(uri).Split(':'); | |
var type = parts[0]; | |
var name = parts[1]; | |