Skip to content

Instantly share code, notes, and snippets.

View weihanchen's full-sized avatar
🏁

weihanchen weihanchen

🏁
  • Taiwan
View GitHub Profile
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@jmsevold
jmsevold / list_reverse.exs
Created February 6, 2016 05:04
reverse a list in elixir
defmodule ListReverse do
def reverse(list) do
reverse(list,[])
end
defp reverse([h|t],result) do
reversed = [h] ++ result
reverse(t,reversed)
end
// 安永金融科技
// 公司地址 : 中山北路三段22號
// 聯絡電話 : 0983-010-978 (丁先生)
// 10:00 - 19:00
function AnyongFindFrontEndEngineer (peoples){
let SPA = "Single Page Application";
let skillWeights = [
["ChatBot", 1],
["AngulerJS", 1],
["ng2", 2],
@posener
posener / go-shebang-story.md
Last active June 6, 2025 17:44
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@miladhzzzz
miladhzzzz / application.py
Created December 30, 2022 20:06 — forked from tafaust/application.py
FastAPI singleton service dependency injection across multiple requests
import random
import click
import uvicorn
from fastapi import FastAPI, APIRouter, Depends, Request
# Service
class MySingletonService:
def __init__(self):