2023年12月14日 星期四
2023年12月4日 星期一
2023年12月1日 星期五
javascript, python
package的入口>>
js:
index.js
py:
__init__.py
-------------------------------------------
import 的差異>>
js:
impot {...} from '...'
import XX as XX from '...'
py:
import package as nickName
import dir.package
from package import component
-------------------------------------------
檔案當前路徑>>
py:
os.getcwd()
php:
$_SERVER['PHP_SELF'], __FILE__
-------------------------------------------
專案當前路徑>>
-------------------------------------------
數值類型>>
js:
typeof(...)
py:
type(...)
php:
gettype()
-------------------------------------------
undefined, null>>
js:
... == null
typeof(...) == 'undefined'
py:
... is None
php:
isset(...), empty(...), is_null(...)
-------------------------------------------
2023年11月4日 星期六
game
2023年10月20日 星期五
atom keybind
# Your keymap
#
# Pulsar keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Pulsar keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Pulsar's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://pulsar-edit.dev/docs/launch-manual/sections/using-pulsar/#customizing-keybindings
# * https://pulsar-edit.dev/docs/launch-manual/sections/behind-pulsar#keymaps-in-depth
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * https://pulsar-edit.dev/docs/launch-manual/sections/core-hacking/#check-your-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Pulsar Launch Manual:
# https://pulsar-edit.dev/docs/launch-manual/sections/using-pulsar/#configuring-with-cson
'atom-text-editor':
"ctrl-space": "unset!"
'alt-/': 'autocomplete-plus:activate'