使用 Python 内置的 defaultdict
,我们可以很容易的定义一个树形数据结构:
def tree(): return defaultdict(tree)
就是这样!
使用 Python 内置的 defaultdict
,我们可以很容易的定义一个树形数据结构:
def tree(): return defaultdict(tree)
就是这样!
map <c-n> scrollDown | |
map <c-p> scrollUp | |
map <c-b> scrollLeft | |
map <c-f> scrollFullPageDown | |
map <c-b> scrollFullPageUp | |
map <c-v> scrollFullPageDown | |
map <a-v> scrollFullPageUp | |
map <c-w> copyCurrentUrl | |
map <a-w> copyCurrentUrl | |
map <c-k> copyCurrentUrl |
#lang racket | |
;; Code for the little schemer | |
(define (atom? x) | |
(and (not (pair? x)) | |
(not (null? x)))) | |
(define (lat? l) | |
(cond ((null? l) #t) |
defmodule Constants do | |
@moduledoc """ | |
An alternative to use @constant_name value approach to defined reusable | |
constants in elixir. | |
This module offers an approach to define these in a | |
module that can be shared with other modules. They are implemented with | |
macros so they can be used in guards and matches | |
## Examples: |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"fmt" | |
) | |
func main() { |
Author: Chris Lattner
First of all, please note that token expiration and revoking are two different things.
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.
Quoted from JWT RFC:
import AppKit | |
import SwiftUI | |
// Delete this line if not using a playground | |
import PlaygroundSupport | |
struct ContentView: View { | |
var body: some View { | |
// if spacing is not set to zero, there will be a gap after the first row |