Skip to content

Instantly share code, notes, and snippets.

View clone1018's full-sized avatar

Luke Strickland clone1018

View GitHub Profile
templates/base.spt
<html>
<head>
{% block scripts %}{% end %}
</head>
</html>
templates/about.spt
{% extends "base.spt" %}
{% block scripts %}
<script type="text/javascript">
my scripts here
</script>
{% end %}
-- or --
{% block scripts %}
my scripts here
// dogexrate project main.go
package main
import (
"bytes"
"crypto/hmac"
"crypto/sha512"
"crypto/tls"
"encoding/json"
"fmt"
// generator
package main
import (
"errors"
"fmt"
"github.com/nfnt/resize"
"image"
_ "image/draw"
"image/jpeg"
@clone1018
clone1018 / find.go
Last active December 28, 2015 08:29
var PATHS = []string{filepath.Join("y:", "Web Product Photography", "001_RFU", "NonBrands"),
filepath.Join("y:", "Web Product Photography", "001_RFU", "Brands", "FENDI"),
filepath.Join("y:", "Web Product Photography", "001_RFU", "Brands", "HOT KISS"),
filepath.Join("y:", "Web Product Photography", "001_RFU", "Brands", "NIKE"),
filepath.Join("y:", "Web Product Photography", "001_RFU", "Brands", "SOPHIA LOREN")}
func findFrame(sku string) (string, error) {
for i := 0; i < len(PATHS); i++ {
path := PATHS[i]
$ Frames.exe
NAME:
frames - Manage Eyemart Frames
USAGE:
frames [global options] command [command options] [arguments...]
VERSION:
0.0.1
// validator
package main
import (
"errors"
"image/jpeg"
"os"
"path/filepath"
"strconv"
)
// htmlcolor project main.go
package main
import (
"fmt"
"log"
"os"
"regexp"
)
@clone1018
clone1018 / fizzbuzz.di
Last active December 27, 2015 14:19
FizzBuzz in Dimond
for {$i=1; $i <= 100; $i++} {
if {$i % 3 == 0} {
if {$i % 5 == 0} {
print "FizzBuzz\r\n"
} else {
print "Fizz\r\n"
}
} elseif {$i % 5 == 0} {
print "Buzz\r\n"
} else {

Dimond

Random programming language ideas. (The name drops the letter 'a', as in a certain other language's name)

Types

"string"