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: |