object | detail |
---|---|
chage date | 2018/5/12 |
version | fabic 2.0.0 |
os | ubuntu 18.04 |
python | 3.6.5 |
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
// @flow | |
import { MixpanelConsumer } from 'react-mixpanel' | |
import { fromRenderProps } from 'recompose' | |
const enhancer = fromRenderProps(MixpanelConsumer, (mixpanel) => ({ | |
mixpanel, | |
})) | |
export default enhancer |
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
// Template Tree | |
global.templateIDsByPath = global.templateIDsByPath || { | |
'404': undefined | |
} | |
// Get template for given path | |
const getComponentForPath = path => { | |
path = cleanPath(path) | |
return global.componentsByTemplateID[global.templateIDsByPath[path]] | |
} |
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
PatternsSpec.scala | |
PoolSpec.scala | |
PipelineSpec.scala |
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
# #load "str.cma";; | |
# List.map int_of_string (Str.split (Str.regexp "[^0-9]+") "1234");; | |
- : int list = [1234] | |
# List.map int_of_string (Str.split (Str.regexp "") "1234");; | |
- : int list = [1; 2; 3; 4] |
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
swagger: '2.0' | |
info: | |
version: v2 | |
title: YourName. API | |
host: yourname.nulab-inc.com | |
basePath: /api/v2 | |
schemes: | |
- https | |
produces: | |
- application/json |
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
object HelloWorld { | |
def main(args: Array[String]): Unit = { | |
println("Hello, world!") | |
} | |
} |
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
>>> from datetime import datetime | |
>>> from unittest import mock | |
>>> with mock.patch('__main__.datetime') as m: | |
... datetime.now() > datetime.now() | |
... | |
Traceback (most recent call last): | |
File "<stdin>", line 2, in <module> | |
TypeError: '>' not supported between instances of 'MagicMock' and 'MagicMock' |
$ python3 -v env this-folder
$ src this-folder/bin/activate
$ pip install python-lambda-local
$ python-lambda-local -f lambda_handler -t 5 handler.py event.json
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
[alias] | |
fetchp = fetch --prune | |
create-backlog-issue-branch = "!git checkout -b `pbpaste | sed -E 's/([a-zA-Z]+-[0-9]+) (.*)/\\1\\/\\2/g' | sed -e 's/ /-/g' | sed -e 's/\\\"//g'`" | |
push-current-branch = "!git push origin `git rev-parse --abbrev-ref HEAD`" | |
delete-merged-branch = "!git branch --merged | grep -v \\* | grep -v master | xargs -I % git branch -d %" | |
merge-origin = !sh -c 'git checkout $1 && git merge origin/"$1"' - |