Simple fibonacci number calculator.
Usage: fib nth Fibonacci number
Functions available in this module:
- reflection.(*)_of_type[foo]() // Extract details from type or struct
- reflection.(*)_of(bar) // Extract details from type instance
(*) can be `methods`, `fields` or `attributes`.Each function returns a map[string]T where T can be FunctionData, FieldData or StructAttribute respectively.
| def is_valid_state(state): | |
| # check if it is a valid solution | |
| return True | |
| def get_candidates(state): | |
| return [] | |
| def search(state, solutions): | |
| if is_valid_state(state): | |
| solutions.append(state.copy()) |
| # Based on the example from https://www.activestate.com/blog/dash-vs-bokeh/ | |
| import dash | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| import pandas as pd | |
| import plotly.graph_objs as obj | |
| import uvicorn as uvicorn | |
| from dash.dependencies import Input, Output | |
| from fastapi import FastAPI | |
| from starlette.middleware.wsgi import WSGIMiddleware |
| const std = @import("std"); | |
| const mem = std.mem; | |
| fn LinkedList(comptime T: type) type { | |
| const Self = struct { | |
| const Node = struct { | |
| next: ?*Node, | |
| data: T, | |
| }; |
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |