Skip to content

Instantly share code, notes, and snippets.

FROM golang:1.20.2
COPY . .
ENTRYPOINT go run main.go
#!/bin/bash
# Copyright 2012 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# support functions for go cross compilation
type setopt >/dev/null 2>&1 && setopt shwordsplit
PLATFORMS="darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64 openbsd/386 openbsd/amd64"
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="palindromes.js"></script>
<script type="text/javascript">
function findPalindromesInInput() {
var inputString = document.getElementById('input').value;
var inputStream = new InputStream(inputString);
@JulianDuniec
JulianDuniec / gist:4066315
Created November 13, 2012 15:25
Download a list of all files from the gutenberg index
var http = require('http');
var fs = require('fs');
var crypto = require('crypto');
var url = require('url');
var exec = require('child_process').exec;
var linkRegex = />(http:..www[.]gutenberg[.]lib[.]md[.]us.*zip)</gi
var nextOffsetRegex = /harvest[?]offset=([0-9]+)/gi;
var downloads = [];
var host = "www.gutenberg.org";
@JulianDuniec
JulianDuniec / Lunarizer
Created August 13, 2012 14:17 — forked from charud/Lunarizer
Lunarize a string from shell
#!/bin/sh
#
# Lunarizer
# =========
#
# Installation
# ------------
# $ sudo chmod +x lunar
# $ sudo cp lunar /usr/local/bin/lunar
#