Skip to content

Instantly share code, notes, and snippets.

@raymens
raymens / contract.json
Created April 4, 2016 09:40
Mist Wallet Contract
[
{
"constant": false,
"inputs": [
{
"name": "_owner",
"type": "address",
"typeShort": "address",
"bits": "",
"displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;owner",

Keybase proof

I hereby claim:

  • I am raymens on github.
  • I am raymens (https://keybase.io/raymens) on keybase.
  • I have a public key ASDFOAODz5bGN-vNKH_rXxWLyXlPgX8UM2NFn2l4TdztKAo

To claim this, I am signing this object:

using System;
using Helpers;
namespace ConsoleApplication1
{
class Program
{
static void Sample1()
{
var elem1 = RuleSystem.Element<int>.NewConstant(1);
@raymens
raymens / CSharpDatabaseValueCodeGenerator.fs
Last active August 29, 2015 14:10
Generate C# new object code from database table
open System.Data.SqlClient
[<Literal>]
let selectTablesSQL = "select
INFORMATION_schema.TABLES.TABLE_NAME
from INFORMATION_SCHEMA.TABLES
group by INFORMATION_schema.TABLES.TABLE_NAME"
[<Literal>]
let selectColumnsSQL = "select
module Yobao.Core
open System
open System.Reflection
open DatabaseModels
type ComboValue =
{ Name : string
Value : int }
class Program
{
static void Main(string[] args)
{
// NOT yet working because of referenced assembly:
/*
var files = new[] {
new Uri("c:\\users\\rayme_001\\documents\\visual studio 2013\\Projects\\FsharpCompilationSandbox\\TestProject\\Sample.fs"),
new Uri("c:\\users\\rayme_001\\documents\\visual studio 2013\\Projects\\FsharpCompilationSandbox\\TestProject\\Program.fs") };
var references = new[] {
class Program
{
static void Main(string[] args)
{
var result = CompileToStream(
@" namespace M
type C() =
member x.P = 1
");