Random programming language ideas. (The name drops the letter 'a', as in a certain other language's name)
"string"
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" |
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" | |
) |
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 { |