Skip to content

Instantly share code, notes, and snippets.

View lpenguin's full-sized avatar

Nikita Prianichnikov lpenguin

  • Munich
  • 21:10 (UTC +02:00)
View GitHub Profile
@lpenguin
lpenguin / data.json
Last active November 7, 2024 18:51
Json
{
"userProfile": {
"personalInfo": {
"id": "usr123456",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phoneNumber": "+1-555-123-4567",
"dateOfBirth": "1990-01-15",
"gender": "male"
https://forum.qt.io/topic/109779/windeployqt-exe-comes-with-qt-5-14-not-copy-the-dlls-to-the-app-directory/6
cp src/vangers.exe dist
cp /c/prefix/vangers/bin/zlib1.dll dist
cp /c/prefix/vangers/bin/avformat-57.dll dist
cp /c/prefix/vangers/bin/avcodec-57.dll dist
cp /c/prefix/vangers/bin/avutil-55.dll dist
cp /c/prefix/vangers/bin/swresample-2.dll dist
@lpenguin
lpenguin / MemEater.cs
Last active December 8, 2017 11:26
MemEater
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace MemEater
{
static class MainClass
{
private static readonly Random Random = new Random();
@lpenguin
lpenguin / MemEater.cs
Last active December 6, 2017 18:30
MemEater
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace MemEater
{
static class MainClass
{
private const Int64 Kilobyte = 1024;
using System;
using System.Collections.Generic;
namespace envvartest
{
internal static class EnvPrinter
{
public static void Main(string[] args)
{
var varName = args[0];
@lpenguin
lpenguin / Snakefile
Last active November 8, 2017 14:46
Snakemake
from os.path import exists
configfile: 'config.yml'
BOWTIE2_BIN = config['bowtie2.bin']
BOWTIE2_INDEX = config['bowtie2.index']
BOWTIE2_THREADS = config['bowtie2.threads']
SAMTOOLS_BIN = config['samtools.bin']
GENOME_COVERAGE_BIN = config['genome_coverage.bin']
@lpenguin
lpenguin / float_data.py
Last active October 15, 2017 13:54
math-exp-cpp
import struct
import math
def bytes_to_double(data):
return struct.unpack('d', data)[0]
def double_to_bytes(data):
return struct.pack('d', data)
@lpenguin
lpenguin / reflect.py
Last active September 17, 2016 08:38 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
import sys
def pr(msg):
sys.stderr.write(str(msg))