Skip to content

Instantly share code, notes, and snippets.

View Codesleuth's full-sized avatar
💪
Working hard

David Wood Codesleuth

💪
Working hard
View GitHub Profile
@Codesleuth
Codesleuth / install.md
Last active August 29, 2015 13:56
A Widen GitHubs Userscript to widen the display of GitHub.

How To Install

  1. Browse to chrome://extensions in a non-incognito window.
  2. Drag the file widengithubs.user.js onto the window (the extensions list).
  3. Accept the security warning. Please review the script to determine that we are not, in fact, installing a malicious script.
  4. Find the script in the list and tick the "Allow in incognito" box for the script.
  5. Profit.
@Codesleuth
Codesleuth / fizzbuzz.fs
Last active August 29, 2015 13:56
FizzBuzz in F# (work in progress)
module FizzBuzzFSharp.``FizzBuzz in F#``
open NUnit.Framework
open FsUnit
let fizzbuzz n =
match n with
| n when n % 15 = 0 -> "fizzbuzz"
| n when n % 5 = 0 -> "buzz"
| n when n % 3 = 0 -> "fizz"
module Main where
import Test.Hspec
someNumbers2 :: [Int]
someNumbers2 = 1:2:3:[]
-- someNumbers3 = 4:5:[1,2,3]
mapList2 :: (Int -> Int) -> [Int] -> [Int]
@Codesleuth
Codesleuth / GetSentMessageBodies.cs
Last active December 22, 2015 15:39
Getting sent message body texts using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk.messaging;
using com.esendex.sdk.sent;
...
const int pageNumber = 1;
const int pageSize = 20;
var credentials = new EsendexCredentials(USERNAME, PASSWORD);
var sentService = new SentService(credentials);
@Codesleuth
Codesleuth / CreateAndSendSMS.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/CreateAndSendSMS.cs
Creating and Sending SMS messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk;
using com.esendex.sdk.messaging;
...
var credentials = new EsendexCredentials(USERNAME, PASSWORD);
var messagingService = new MessagingService(true, credentials);
try
{
var message = new SmsMessage("447123456789", "This is a test message...", "<myAccountReference>");
@Codesleuth
Codesleuth / GetInboxMessages.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/GetInboxMessages.cs
Getting Inbox messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk.inbox;
...
const int pageNumber = 1;
const int pageSize = 20;
var inboxService = new InboxService(USERNAME, PASSWORD);
try
{
@Codesleuth
Codesleuth / GetSentMessages.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/GetSentMessages.cs
Getting sent messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk.sent;
...
const int pageNumber = 1;
const int pageSize = 20;
var sentService = new SentService(USERNAME, PASSWORD);
try
{