Skip to content

Instantly share code, notes, and snippets.

@klimisa
klimisa / App.fsx
Created September 16, 2021 07:54
Nethereum with Fable example
#load "../.paket/load/net5.0/main.group.fsx"
open Fable.React
open Nethereum.Web3
printfn "Fable compiled this"
let account = Web3.GetAddressFromPrivateKey("3a4f9a5f5350caf50ad4a9c7b87b01d095a70af3d8f6fdb7b314ce0b3b13711f")
@klimisa
klimisa / bump_version.sh
Created January 8, 2021 15:58 — forked from andyexeter/bump_version.sh
Bash script to increment version numbers in multiple files
#!/usr/bin/env bash
# Usage: ./bump_version.sh <major|minor|patch> - Increments the relevant version part by one.
#
# Usage 2: ./bump_version.sh <version-from> <version-to>
# e.g: ./bump_version.sh 1.1.1 2.0
set -e
# Define which files to update and the pattern to look for
@klimisa
klimisa / bump_version.sh
Created January 8, 2021 15:58 — forked from ekarudianto/bump_version.sh
Bash script to increment version numbers in multiple files
#!/usr/bin/env bash
# Usage: ./bump_version.sh <major|minor|patch> - Increments the relevant version part by one.
#
# Usage 2: ./bump_version.sh <version-from> <version-to>
# e.g: ./bump_version.sh 1.1.1 2.0
set -e
# Define which files to update and the pattern to look for
Func<UnverifiedAccountDetails, Task<VerifiedAccountDetails>
Task<VerifiedAccountDetails> VerifyAccount(UnverifiedAccountDetails details);
Func<UnverifiedAccountDetails, Task<VerifiedAccountDetails>>
public delegate Task<VerifiedAccountDetails> VerifyAccount(UnverifiedAccountDetails details);
@klimisa
klimisa / index.html
Created June 26, 2017 07:21
Discogs Discogs Listings // source http://jsbin.com/qidagir
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Discogs Listings">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Discogs</title>
<style type="text/css">
.listItem {
background-color: #ccc;
public void Save(Hospital hospital)
{
int numberOfRecordsAffected = 0;
using (var connection = new SqlConnection(_applicationSettings.ConnectionString))
{
var command = connection.CreateCommand();
command.CommandText = _UpdateSQL;
command.Parameters.Add(new SqlParameter("@Id", hospital.Id));
@klimisa
klimisa / AegisType.cs
Last active May 3, 2017 16:50
Value Object Example
using System;
using System.Collections.Generic;
namespace Eope.Model.Aegises
{
public class AegisType
{
private readonly List<AegisType> _aegisTypes = new List<AegisType>
{
new AegisType("Συνέδριο"),
@klimisa
klimisa / frequency.erl
Created April 7, 2017 11:52
Enhancing the frequency server
%% Based on code from
%% Erlang Programming
%% Francecso Cesarini and Simon Thompson
%% O'Reilly, 2008
%% http://oreilly.com/catalog/9780596518189/
%% http://www.erlangprogramming.org/
%% (c) Francesco Cesarini and Simon Thompson
-module(frequency).
-export([start/0,allocate/0,deallocate/1,stop/0]).
-module(index).
-export([get_file_contents/1,show_file_contents/1,split/1]).
% --------------------------------------------------
% !!! IMPORTANT !!!
% --------------------------------------------------
% Haven't finished the "Indexing a file"
% JUST broke the lines into words and numbered them.
% --------------------------------------------------
-module(index).
-export([get_file_contents/1,show_file_contents/1
,split/1
]).
% Used to read a file into a list of lines.
% Example files available in:
% gettysburg-address.txt (short)
% dickens-christmas.txt (long)