Bash-completion is very slow on MSYS2 when the current user is a domain user. This describes the cause and the solutions.
Expansion of ~*
is very slow when you use a domain user. For example:
{-# LANGUAGE GADTs #-} | |
module Yolo where | |
import System.IO.Unsafe | |
class Yolo f where | |
yolo :: f a -> a | |
instance Yolo Maybe where | |
yolo (Just x) = x |
local old_draw = love.graphics.draw | |
local monkey_draw = function(im, ...) | |
if fudge.current and type(im)=="string" then | |
--Get associate and draw it | |
local fud = fudge.current:getPiece(im) | |
old_draw(fud.img, fud.quad, ...) | |
elseif type(im)=="table" and im.img and im.quad then | |
old_draw(im.img, im.quad, ...) | |
elseif type(im)=="table" and im.batch then | |
old_draw(im.batch) |
local lua = [[{ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
require 'rubygems' | |
require 'serialport' | |
class Korad | |
def initialize(port="/dev/ttyACM0", baud=9600) | |
@serial = SerialPort::open(port,baud) | |
@serial.read_timeout = 100 | |
end | |
def get_status |
// Two-dimensional array with dimensions determined at runtime | |
// | |
// Written in 2012 by Martinho Fernandes | |
// | |
// To the extent possible under law, the author(s) have dedicated all copyright and related | |
// and neighboring rights to this software to the public domain worldwide. This software is | |
// distributed without any warranty. | |
// | |
// You should have received a copy of the CC0 Public Domain Dedication along with this software. | |
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |
// begin() and end() functions for arrays (C++03) | |
// | |
// Written in 2012 by Martinho Fernandes | |
// | |
// To the extent possible under law, the author(s) have dedicated all copyright and related | |
// and neighboring rights to this software to the public domain worldwide. This software is | |
// distributed without any warranty. | |
// | |
// You should have received a copy of the CC0 Public Domain Dedication along with this software. | |
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |