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
name: deploy dev from feature by pull request | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
deploy: | |
# add comment of pull request && comment is KEYWORD |
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 os | |
import json | |
import logging | |
import urllib.request | |
# Bot's "Verification Token" at "Basic Information" | |
SLACK_VERIFY_TOKEN = os.environ['SLACK_VERIFY_TOKEN'] | |
# Bot's "Bot User OAuth Access Token" at "Install App" | |
SLACK_BOT_USER_ACCESS_TOKEN = os.environ['SLACK_BOT_USER_ACCESS_TOKEN'] | |
# User name of response bot |
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
[user] | |
name = MyName | |
email = MyMailAddres | |
[core] | |
excludesfile = ~/gitconf/.global_gitignore | |
attributesfile = ~/gitconf/attributes | |
[merge] | |
ff = false | |
[pull] | |
ff = only |
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
-- Ordering and De-maybe Evaluating Nonsense operator | |
(-#@|>) :: Maybe a -> (a->b) -> Maybe b | |
Just x -#@|> f = Just (f x) | |
Nothing -#@|> _ = Nothing | |
main :: IO() | |
main = do | |
print $ Nothing -#@|> (+ 3) | |
print $ Just 2 -#@|> (+ 3) |
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 <iostream> | |
template <typename VAL, typename FUNC> | |
inline typename std::result_of<FUNC(const VAL&)>::type | |
invoke(const VAL& trg, FUNC func) | |
{ | |
return func(trg); | |
} | |
template <typename VAL, typename FUNC> | |
inline typename std::result_of<FUNC(VAL&)>::type |
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
setlocal foldmethod=expr | |
setlocal foldexpr=MarkdownFold() | |
function! MarkdownFold() | |
let head = s:head(v:lnum) | |
if head | |
return head | |
" end fold of this level when nexe and nexe line is title and nexe line is empty | |
elseif v:lnum + 1 < line('$') && getline(v:lnum + 1) == "" && getline(v:lnum + 2) =~ '^#' | |
return '<' . s:head(v:lnum + 2) |
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 <vector> | |
#include <iostream> | |
#include <memory> | |
#include <functional> | |
#include <type_traits> | |
// interface of filtered object | |
template <typename SRC_E> struct IFiltered | |
{ | |
~IFiltered() {} |
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
function! Put_text_without_override_register() | |
let line_len = strlen(getline('.')) | |
execute "normal! `>" | |
let col_loc = col('.') | |
execute 'normal! gv"_x' | |
if line_len == col_loc | |
execute 'normal! p' | |
else | |
execute 'normal! P' | |
endif |
NewerOlder