View RsaKeyConverter.cs
using System; | |
using System.IO; | |
using System.Xml; | |
using System.Text; | |
using System.Security.Cryptography; | |
using Org.BouncyCastle.Pkcs; | |
using Org.BouncyCastle.X509; | |
using Org.BouncyCastle.OpenSsl; |
View data.cs
using System.Collections.Generic; | |
using System.Data; | |
using ServiceStack; | |
using ServiceStack.OrmLite; | |
using ServiceStack.DataAnnotations; | |
public class Artist | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } |
View main.cs
using System.Collections.Generic; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
var db = dbFactory.Open(); // Open ADO.NET DB Connection |
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View gist:3839583
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Threading; | |
using Raven.Abstractions.Data; | |
using Raven.Client; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; | |
using Raven.Client.Listeners; |
View gist:3810439
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; | |
namespace ravenplay | |
{ | |
public class Activity |
View gist:1682443
var receivedFile, form = new formidable.IncomingForm(); | |
form.keepExtensions = true; | |
form.on('file', function (field, file) { | |
receivedFile = file; | |
}).on('end', function () { | |
var inp = fs.createReadStream(receivedFile.path); | |
var out = fs.createWriteStream(receivedFile.filename); | |
inp.pipe(gzip).pipe(out); |
View heradar construction issue
[ExtendWith(typeof(ErrorInfo))] | |
public class SimpleWorks | |
{ | |
} | |
[ExtendWith(typeof(ErrorInfo))] | |
public class ThisOneDoesNotWork | |
{ | |
private readonly IEventAggregator _eventAggregator; |