- unchecked
- checked
This file contains 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 'java' | |
require 'jrubyfx' | |
class App < JRubyFX::Application | |
def start(stage) | |
with(stage, width: 800, height: 600, title: 'Converter') do | |
ui_text = nil | |
layout_scene do | |
vbox do |
This file contains 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
"autocmd GUIEnter * set transparency=220 | |
" default colorscheme | |
colorscheme murphy | |
" change default directory | |
if has("win32") || has("win64") | |
cd D:\hide\Documents\workspace | |
endif |
This file contains 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
#include <tuple> | |
namespace tuple | |
{ | |
// concat | |
template <typename, typename> | |
struct concat; | |
// concat: tuple -> tuple -> tuple | |
template <typename... Ts1, typename... Ts2> | |
struct concat<std::tuple<Ts1...>, std::tuple<Ts2...>> |
This file contains 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 Text.ParserCombinators.Parsec | |
import qualified Text.ParserCombinators.Parsec.Token as TokenSymbols | |
import Text.ParserCombinators.Parsec.Language | |
{- | |
data Impl | |
-} | |
data Impl = ImplNum Integer | ImplSym String | ImplOp String | |
deriving Show |
This file contains 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
// (a0 -> a1 -> ... -> r) -> (a0 -> (a1 -> ... -> r)) | |
template <typename F> | |
auto curry_1(F f) | |
{ | |
return [f](auto a) { | |
return [f, a](auto... args) { | |
return f(a, args...); | |
}; | |
}; | |
} |
This file contains 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
#include <iterator> | |
#include <type_traits> | |
#include <vector> | |
#include <algorithm> | |
// operator | |
template <typename C, typename F> | |
auto operator| (C c, F f) | |
{ | |
return f(c.begin(), c.end()); |
This file contains 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" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"io/ioutil" | |
"os" | |
"strconv" |
This file contains 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
FROM golang | |
RUN apt-get update && apt-get install -y \ | |
neovim \ | |
python3 \ | |
python3-pip \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& pip3 install --upgrade neovim \ | |
&& mkdir -p /root/.config/nvim \ | |
&& go get -u github.com/nsf/gocode \ |
This file contains 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" | |
"image" | |
"image/color" | |
"image/jpeg" | |
"io" | |
"os" |
OlderNewer