Skip to content

Instantly share code, notes, and snippets.

View geoffreymcgill's full-sized avatar

Geoffrey McGill geoffreymcgill

View GitHub Profile
protected void Button1_Click (object sender, DirectEventArgs e)
{
X.Msg.Notify("Hello World").Show();
}
public class App
{
[Ready]
public static void Main()
{
Console.WriteLine("Hello Bridge.NET");
Console.Log("")
}
}
using Bridge;
using Bridge.Html5;
namespace Demo
{
public class App
{
[Ready]
public static void Main()
{
@geoffreymcgill
geoffreymcgill / clean.bat
Created August 8, 2015 17:59
Sample clean.bat file to use with Bridge.NET beforeBuild config
SET _=%~dp0
del "%_%..\output\*.js" /Q
:: See beforeBuild setting at http://bridge.net/kb/global-configuration
@geoffreymcgill
geoffreymcgill / DateJS_CLA
Last active January 11, 2017 08:07
DateJS Contributor License Agreement
#Contributor License Agreement
The following terms are used throughout this agreement:
- **You** - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
- **Project** - is an umbrella term that refers to any and all Object.NET, Inc. open source projects.
- **Contribution** - any type of work that is submitted to a Project, including any modifications or additions to existing work.
- **Submitted** - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Object.NET, Inc., contributors or maintainers.
##1. Grant of Copyright License.
@geoffreymcgill
geoffreymcgill / DeckServices.asmx.cs
Last active January 23, 2017 16:59
Basic WebMethod endpoints for use with Deck.NET
using Newtonsoft.Json;
using System.Web.Script.Services;
using System.Web.Services;
// see http://deck.net/webservice
namespace Deck.www
{
/// <summary>
/// Summary description for DeckServices
/// <reference path="./bridge.d.ts" />
declare module Bridge.Collections {
/** @namespace System.Collections.Generic */
/**
* Internal helper functions for working with enumerables.
*
* @static
* @abstract
using Bridge;
using Bridge.Html5;
namespace Demo
{
public class Program
{
public static void Main()
{
// Simple alert() to confirm it’s working
Bridge.Class.define("Demo.App", {
statics: {
$config: {
init: function () {
Bridge.ready(this.main);
}
},
main: function () {
// Simple alert() to confirm it's working
window.alert("Success");
<!DOCTYPE html>
<html>
<head>
<title>My Demo App</title>
<script src=”bridge.js”></script>
<script src=”demo.js”></script>
</head>
<body>
</body>
</html>