Skip to content

Instantly share code, notes, and snippets.

Pavel Sinitcyn pgsin

Block or report user

Report or block pgsin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FloatAndFloat.cs
using System;
namespace FloatFloatTest {
class Program {
static void Main() {
float first = BitConverter.ToSingle(BitConverter.GetBytes(0x4540FDA8), 0);
float second = BitConverter.ToSingle(BitConverter.GetBytes(0x3E19A9C4), 0);
Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(first)) + " | " + first);
Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(second)) + " | " + second);
import requests
import json
import pandas as pd
import os
from IPython.display import display, HTML
base_dir = "C:/Users/Pavel/Documents/Projects/hipsci/data/"
base_url = ""
View 161172.a.cs
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Attributes;
namespace Test {
public class PalindromNumber {
//Thanks to @Velial and @Denis
pgsin / polindrom.benchmark.log
Last active Apr 21, 2017
Log file (BenchmarkDotNet) of CR question "Project Euler Problem #4 - Palindromic number"
View polindrom.benchmark.log
// ***** BenchmarkRunner: Start *****
// Found benchmarks:
// PalindromNumber.LargestPalindromeOriginal: DefaultJob
// PalindromNumber.LargestPalindromeDenis: DefaultJob
// PalindromNumber.LargestPalindromeEric: DefaultJob
// PalindromNumber.LargestPalindromePgs: DefaultJob
// PalindromNumber.LargestPalindromeDavislor: DefaultJob
// PalindromNumber.LargestPalindromeDavislor2: DefaultJob
// Validating benchmarks:
View gsl_permutation_next.test.c
typedef struct
size_t size;
size_t *data;
} gsl_permutation;
View cinemaClubRandom.cs
using System;
using System.IO;
namespace RandSeed {
class Program {
static void Main() {
string seeds, ms, ns;
int seed, m, n;
Console.Write("Seed: ");
seeds = Console.ReadLine();
pgsin / concatT.cs
Created Feb 28, 2017
View concatT.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Test {
public class Program {
static void Main() {
Console.WriteLine(Concat(",",new List<string> {"a","b","c"}));
You can’t perform that action at this time.