Skip to content

Instantly share code, notes, and snippets.

View frankhale's full-sized avatar
🧩
Building a SaaS

Frank Hale frankhale

🧩
Building a SaaS
View GitHub Profile
@frankhale
frankhale / main.cljs
Last active August 29, 2015 14:01
My first attempt to port the main.js of the Hello, World atom-shell application to Clojurescript. This does not currently work because atom-shell thinks my application is invalid.
(ns main.core)
(def app (js/require "app"))
(def browser-window (js/require "browser-window"))
(def crash-reporter (js/require "crash-reporter"))
(def main-window (atom nil))
(defn init-browser []
(reset! main-window (browser-window. (clj->js {:width 800 :height 600})))
@frankhale
frankhale / index.html
Created November 7, 2011 13:39
Montauk Hello,World - Index view
%%Master=App%%
{{message}}
@frankhale
frankhale / app.html
Created November 7, 2011 13:42
Montauk Hello,World - master view
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello, World!</title>
</head>
<body>
%%View%%
</body>
</html>
@frankhale
frankhale / SampleMaster.html
Created May 23, 2012 03:35
Sample Aurora Master Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{title}}</title>
%%Head%%
</head>
<body>
%%View%%
</body>
@frankhale
frankhale / SampleAction.html
Created May 23, 2012 03:37
Sample Aurora Action View
%%Master=SomeMasterPage%%
[[
<!-- Any HEAD includes you want would go here -->
]]
<div class="content">
{{content}}
</div>
@frankhale
frankhale / ReflectionExample.cs
Created May 23, 2012 04:20
Simple C# Reflection Example
using System;
using System.Linq;
using System.Reflection;
namespace ReflectionExample
{
[AttributeUsage(AttributeTargets.Method)]
class Foo : Attribute
{
public string Bar { get; private set; }
@frankhale
frankhale / LINQJoin.cs
Created May 26, 2012 05:04
LINQ join which returns differences
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class A
{
public string Name { get; set; }
@frankhale
frankhale / DynamicDictionary.cs
Created May 31, 2012 21:22
This is a .NET 4 Dynamic Dictionary
public class DynamicDictionary : DynamicObject
{
private Dictionary<string, object> _members = new Dictionary<string, object>();
public bool IsEmpty()
{
if (_members.Keys.Count() > 0)
{
return false;
}
@frankhale
frankhale / LambdaTest.cs
Created June 15, 2012 02:58
Just a little test of lambda's
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LambdaTest
{
class Program
{
static void Main(string[] args)
@frankhale
frankhale / helloworld.fs
Created October 7, 2015 02:28
An F# IHttpHandler hello,world
type HelloWorldHandler() =
interface IHttpHandler with
member this.IsReusable
with get() = false
member this.ProcessRequest(context:HttpContext) =
context.Response.ContentType <- "text/html"
context.Response.Write("<b>I love F# OMG!</b>")