Random programming language ideas. (The name drops the letter 'a', as in a certain other language's name)
"string"
root@ubuntu:~/wrk# ./wrk -t2 -c20 -d10s http://gittip.axxim.net/Sophie3ac | |
Running 10s test @ http://gittip.axxim.net/Sophie3ac | |
2 threads and 20 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 37.59ms 4.05ms 78.19ms 85.00% | |
Req/Sec 266.99 23.42 329.00 65.65% | |
5290 requests in 10.00s, 4.64MB read | |
Requests/sec: 528.92 | |
Transfer/sec: 474.67KB |
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 { |
// htmlcolor project main.go | |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"regexp" | |
) |
// validator | |
package main | |
import ( | |
"errors" | |
"image/jpeg" | |
"os" | |
"path/filepath" | |
"strconv" | |
) |
$ Frames.exe | |
NAME: | |
frames - Manage Eyemart Frames | |
USAGE: | |
frames [global options] command [command options] [arguments...] | |
VERSION: | |
0.0.1 |
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] |
// generator | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"github.com/nfnt/resize" | |
"image" | |
_ "image/draw" | |
"image/jpeg" |
// dogexrate project main.go | |
package main | |
import ( | |
"bytes" | |
"crypto/hmac" | |
"crypto/sha512" | |
"crypto/tls" | |
"encoding/json" | |
"fmt" |
{% block scripts %} | |
<script type="text/javascript"> | |
my scripts here | |
</script> | |
{% end %} | |
-- or -- | |
{% block scripts %} | |
my scripts here |