Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
type printer func(string)
func main() {
do("hello world", print)
}
package main
import "fmt"
func main() {
do("hello world", print)
}
func do(s string, printer func(s string)){
printer(s)
package apd
import (
"bytes"
"encoding/json"
"testing"
)
type jsonTestStruct struct {
Value NullDecimal
// Copyright 2016 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
import UIKit
import SystemConfiguration
class ViewController: UIViewController, UIWebViewDelegate {
@IBOutlet weak var LoadingScreenView: UIView!
@IBOutlet weak var ActivityIndicatorView: UIActivityIndicatorView!
@IBOutlet weak var WebView: UIWebView!
@IBOutlet weak var NetworkErrorView: UIView!
@caseylmanus
caseylmanus / Index.html
Created April 18, 2015 13:49
ReactJS No-JSX Tree Rendering Sample
<!DOCTYPE html />
<html>
<head>
<link href="css/jquery.mobile-1.4.2.min.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>Login Sample</title>
</head>
<body>
@caseylmanus
caseylmanus / nqueens.go
Last active August 6, 2023 13:49
An implementation of the 8 Queens problem in Go (Golang)
package main
import (
"fmt"
"math"
)
type Point struct {
x int
y int
@caseylmanus
caseylmanus / index.html
Last active August 29, 2015 14:09
Polymer Element Template
<html>
<head>
</head>
<body>
</body>
</html>