This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
-- stack --resolver lts-9.12 script --package http-conduit,stm,bytestring | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import qualified Data.ByteString.Lazy.Char8 as L8 | |
import Control.Concurrent | |
import Control.Monad | |
import Control.Concurrent.STM | |
import Network.HTTP.Simple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# WARNING! Everything described in this file was checked against | |
# Net::SSH v3.2.0, https://github.com/net-ssh/net-ssh/tree/v3.2.0 | |
# (commit e279c5e). Other versions may be apropriately different. | |
# Some of the things here appear to dig into the Net::SSH internals a | |
# little more than may be comfortable for some. | |
# | |
require 'net/ssh' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
-- stack script --resolver lts-8.20 --package time,haskeline | |
module Main where | |
import Control.Monad.IO.Class | |
import Control.Monad | |
import Control.Exception | |
import System.Console.Haskeline | |
import Data.Time | |
import Data.Maybe |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"time" | |
) | |
func export(i int) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
go get -u github.com/alecthomas/gometalinter | |
go get -u github.com/haya14busa/go-typeconv/cmd/gotypeconv | |
go get -u github.com/haya14busa/gosum/cmd/gosumcheck | |
go get -u github.com/haya14busa/goverage | |
go get -u github.com/motemen/gofind/cmd/gofind | |
go get -u github.com/nsf/gocode | |
go get -u github.com/rogpeppe/godef | |
go get -u github.com/sqs/goreturns | |
go get -u github.com/zmb3/gogetdoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn map-flatten | |
([params] | |
(into {} (map-flatten params nil))) | |
([params prefix] | |
(mapcat (fn [[k v]] | |
(let [prefix (if (nil? prefix) (name k) (str prefix "[" (name k) "]"))] | |
(if (map? v) | |
(map-flatten v prefix) | |
[{prefix v}]))) | |
params))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
(package-initialize) | |
(unless package-archive-contents | |
(package-refresh-contents)) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class Replicate { | |
public static void main(String []args) throws IOException, InterruptedException { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger; | |
public class Replicate { | |
public static void main(String []args) { | |
Integer n = 100; | |
BigInteger bn = new BigInteger(n.toString()).pow(n); | |
while (!bn.equals(BigInteger.ZERO)) { | |
System.out.print('A'); | |
bn = bn.subtract(BigInteger.ONE); | |
} | |
System.out.println(); |