This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Module LambdasAndAnonymousFunctions | |
| Sub Main() | |
| Dim people = { | |
| New With {.Name = "Mick", .Age = 12}, | |
| New With {.Name = "Michelle", .Age = 24} | |
| } | |
| Dim nameBeginsWithM = Function(name) name.ToUpper.StartsWith("M") | |
| Dim ageIsEven = Function(age) age Mod 2 = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.test1; | |
| import android.app.Activity; | |
| public class BaseActivity extends Activity { | |
| protected <T> T GetViewById(int id) { | |
| return (T)findViewById(id); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Imports System.ServiceModel | |
| Module Module1 | |
| Sub Main() | |
| Dim service = New ServiceReference1.InboxServiceSoapClient() | |
| Dim messageHeader = New EsendexSoap.ServiceReference1.MessengerHeader | |
| messageHeader.Account = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using NUnit.Framework; | |
| namespace TestWithExceptions | |
| { | |
| /// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx? | |
| [email protected]& | |
| account=ex000xxxx& | |
| password=xxx& | |
| recipient=xxx& | |
| body=xxx& | |
| plaintext=1--> | |
| <form method="post" action="https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx?"> | |
| <label for="username">Enter your username:</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var checkBoxManager = { | |
| allSelected: false, | |
| checkBoxes: null, | |
| init: function ($checkBoxes) { | |
| var that = this; | |
| that.checkBoxes = $checkBoxes; | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="https://secure-test.worldpay.com/wcc/purchase" method="post" class="buyForm"> | |
| <input type="hidden" name="amount" ID="amount" value="" runat="server"/><!-- amount due NOW--> | |
| <input type="hidden" name="testMode" id="testMode" value="100" runat="server"/> | |
| <input type="hidden" name="desc" id="desc" value="removed!" runat="server"/> | |
| <input type="hidden" name="cartId" id="cartId" value="Monthly Membership" runat="server"/> | |
| <input type="hidden" name="instId" id="instId" value="removed!" runat="server"/> | |
| <input type="hidden" name="currency" id="currency" value="GBP" runat="server"/> | |
| <input type="hidden" name="futurePayType" id="futurePayType" value="regular" runat="server"/> | |
| <input type="hidden" name="option" id="option" value="0" runat="server"/> | |
| <input type="hidden" name="startDelayMult" value="4" runat="server" id="startDelayMult"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using TeaLeague.Core.Domain; | |
| namespace TeaLeague.Core.Repository | |
| { | |
| //What's the best way to approach this, seen as StructureMap seems to have problems with open generics.... | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package lotterynumbergenerator; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| public class LotteryNumberGenerator { | |
| public static void main(String[] args) { | |
| //an array to keep track of the numbers that have been created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using FluentNHibernate.Cfg; | |
| using FluentNHibernate.Cfg.Db; | |
| using NHibernate; | |
| using NHibernate.Tool.hbm2ddl; | |
| using TeaLeague.Core.Domain; | |
| namespace TeaLeague.Core.Database | |
| { | |
| public interface INHibernateHelper | |
| { |