Skip to content

Instantly share code, notes, and snippets.

import csv
import sys
filename = 'FROM.csv'
with open(filename, newline='', encoding='utf-8') as f:
reader = csv.reader(f)
rows = list(reader)
headers = rows[0]
@joozek78
joozek78 / .gitignore
Last active February 26, 2020 13:28
SqlHangRepro
bin/
obj/
/packages/
.idea/
@joozek78
joozek78 / labo.js
Last active November 16, 2018 16:14
(function() {
window.addEventListener('load', function() {
var ls = window.localStorage;
if(!ls)
{
return;
}
var name = document.querySelector("#name1");
var email = document.querySelector("#email1");
@joozek78
joozek78 / production.md
Created April 11, 2017 16:08
Creating starcounter production machine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Sc.Server.Weaver.Schema;
using Simplified.Ring2;
using Simplified.Ring5;
using Claim = System.Security.Claims.Claim;
using Unit = System.Web.UI.WebControls.Unit;
@joozek78
joozek78 / description.md
Created August 13, 2015 14:58
CircleCI running log issue

Those two files are excerpts from the same build (https://circleci.com/gh/joozek78/greenticket-api/23), from the running log visible on build's page, during execution, captured at (more or less) same time. You can see that there's more log lines in the first file. First file was copied from the window I used to start a build (so the log was running from the beginning) Second file was copied from the windows I opened when log was around monad-control

@joozek78
joozek78 / stack.yml
Created July 6, 2015 15:13
stack bug report
extra-deps:
- hsopenssl-0.11.1.1
resolver: lts-2.16
flags: {}
packages:
- '.'
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bruteforce!</title>
</head>
<!-- http://www.tp-link.com/resources/simulator/TL-WR750N_V5.0/localiztion/str_menu.js -->
<body onload="detectFirefox()">
<h1>Bruteforcing TP-Link routers with JavaScript</h1>
### Keybase proof
I hereby claim:
* I am joozek78 on github.
* I am joozek78 (https://keybase.io/joozek78) on keybase.
* I have a public key whose fingerprint is ECF2 8572 B93F 72D7 F6EF F5E3 8FCE 4390 F1FA 32C2
To claim this, I am signing this object:
public class MapperIdiom<TSource, TDestination, TMapper> where TMapper: class, IMapper<TSource, TDestination>
{
private readonly IEnumerable<TDestination> _expected;
public MapperIdiom(IFixture fixture)
{
var pairs = fixture.CreateMany<TSource>().Select(source => new
{
Source = source,
ViewModel = fixture.Create<TDestination>()