Skip to content

Instantly share code, notes, and snippets.

Nelson LaQuet nelsonlaquet

Block or report user

Report or block nelsonlaquet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:84e6b34e0bcf55cb3b34924f54b2cb94
DOMAIN=localhost
HTTP_PORT=12001
HTTPS_PORT=12002
LEGACY_SOCKET_PORT=8344
NO_CDN=true
CA_URL=https://acme-staging-v02.api.letsencrypt.org/directory
CA_EMAIL=
TLS_TYPE=self_signed
EXTRA_DIR=/dev/null
EXISTING_CERT_DIR=/dev/null
View theme.css
::-webkit-scrollbar {
background: #111;
border-left: 2px solid #222;
border-right: 2px solid #222;
}
::-webkit-scrollbar-button {
/* 2 */
}
::-webkit-scrollbar-track {
/* 3 */
View gist:3253687
Write a BigInt class
A BigInt class can represent an int of any numeric value, unlike fixed width ints (for example, the primative int type).
Must support the following operators:
copy ctor, dtor, =
+, -, +=, -=, *, *=
==, !=, <, >, <=, >=
unary -
ostream >>
View asdf.fs
open System
type Location =
| City of string * float
| State of string * Location list
| Country of string * Location list
let data = [Country("United States", [State("Wasington", [City("Anacortes", 32.0); City("Seattle", 523.0)])])]
let getTotalPopulation locations =
View gist:2992413
<log4net>
<appender name="RootLogFileAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="log\<<PROJECT NAME>>.Root.log" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="1" />
<param name="MaximumFileSize" value="250MB" />
<param name="RollingStyle" value="Size" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%d&#9;[%t]&#9;%-5p&#9;%c&#9;%m%n" />
View gist:2839536
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<connectionStrings>
<add name="MainDb" connectionString="Data Source=THOR\SQLEXPRESS;Initial Catalog=dev-aaron-test1;Integrated Security=SSPI;" />
</connectionStrings>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
View gist:2839523
using System;
using System.Collections.Generic;
using System.Linq;
using HibernatingRhinos.Profiler.Appender.NHibernate;
using NHibernate.Cfg;
using NHibernate.Mapping.ByCode;
using NHibernate.Linq;
using NHibernate.Mapping.ByCode.Conformist;
namespace ConsoleApplication155
View gist:2722703
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
interface IItem
{
View gist:2722635
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
interface IItem
{
View gist:2706725
#include <iostream>
#include <string>
using namespace std;
struct Product
{
string Name;
};
struct Inventory
You can’t perform that action at this time.