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();
}
@geoffreymcgill
geoffreymcgill / index.html
Created January 19, 2015 06:19
Prism with Copy to Clipboard
<!doctype html>
<html>
<head>
<title>Prism Copy to Clipboard sample</title>
<link rel="stylesheet" href="prism.css" type="text/css" media="screen" />
<link rel="stylesheet" href="toolbar.css" type="text/css" media="screen" />
<script type="text/javascript" src="prism.js"></script>
<!-- Adapted from http://dev.misterphilip.com/prism/plugins/toolbar/ -->
public class App
{
[Ready]
public static void Main()
{
Console.WriteLine("Hello Bridge.NET");
Console.Log("")
}
}
@geoffreymcgill
geoffreymcgill / 1. HelloWorld.cs
Last active May 25, 2018 04:11
Bridge.NET Live Compiler Samples
public class Program
{
public static void Main()
{
var msg = "hello, world";
Console.WriteLine(msg);
// Try other C# Samples from
// the Button in the top right.
using Bridge;
using Bridge.Html5;
namespace Demo
{
public class App
{
[Ready]
public static void Main()
{
@geoffreymcgill
geoffreymcgill / deploy.bat
Created August 8, 2015 17:54
Sample deploy.bat file to use with Bridge.NET afterBuild config
SET _=%~dp0
SET dest="%_%..\..\..\MyWebApplication\resources\js"
IF EXIST %dest% xcopy "%_%..\output" %dest% /Y
:: See afterBuild setting at http://bridge.net/kb/global-configuration/
@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 / Object-CLA
Created January 11, 2017 08:10
Object.NET 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