序號 | 日期 | 版本 | 說明 | 修訂人員 | 審核人員 |
---|---|---|---|---|---|
1 | 2024/07/12 | v1.0 | 初版 | Den | Madeline/Nancy |
🕵️♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LineReminder.Line do | |
@moduledoc """ | |
Line http client wrapper | |
""" | |
import OK, only: [~>: 2] | |
@doc """ | |
Send passing message to particular line group | |
## Examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LineReminder.Line do | |
@moduledoc """ | |
Line http client wrapper | |
""" | |
@doc """ | |
Send passing message to particular line group | |
## Examples | |
iex> send_to_group("abc") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@spec send_to_group(String.t()) :: {:ok, String.t()} | {:error, String.t()} | |
def send_to_group(msg) do | |
Req.new(url: "https://notify-api.line.me/api/notify",) | |
|> Req.Request.put_header("Content-Type", "application/x-www-form-urlencoded") | |
|> Req.post( | |
auth: {:bearer, Application.fetch_env!(:line_reminder, :line_token)}, | |
form: [message: msg] | |
) | |
|> case do | |
{:ok, %Req.Response{status: 200}} -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LineReminder.Line do | |
@moduledoc """ | |
Line http client wrapper | |
""" | |
@spec init() :: Req.Request.t() | |
defp init() do | |
Req.new( | |
url: "https://notify-api.line.me/api/notify", | |
headers: [{"Content-Type", "application/x-www-form-urlencoded"}], | |
auth: {:bearer, Application.fetch_env!(:line_reminder, :line_token)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div> | |
<h2>前端技術</h2> | |
<h2>Vue</h2> | |
<h3>React</h3> | |
<h3>Angular</h3> | |
</div> | |
<div> | |
<h2>後端技術</h2> | |
<h3>Laravel</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "graphiql", | |
"lastId": 4, | |
"tabIds": [ | |
"tab1", | |
"tab2", | |
"tab3", | |
"tab4" | |
], | |
"closedTabs": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Uploaders = {} | |
Uploaders.S3 = function (entries, onViewError) { | |
entries.forEach(entry => { | |
let xhr = new XMLHttpRequest() | |
onViewError(() => xhr.abort()) | |
xhr.onload = () => (xhr.status === 200 ? entry.done() : entry.error()) | |
xhr.onerror = () => entry.error() | |
xhr.upload.addEventListener("progress", event => { | |
if (event.lengthComputable) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Develops/elixir/batli on master ⇡1 df -h ✔ | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk2s5 957Gi 10Gi 299Gi 4% 488607 10034143193 0% / | |
devfs 194Ki 194Ki 0Bi 100% 670 0 100% /dev | |
/dev/disk2s1 957Gi 630Gi 299Gi 68% 2480872 10032150928 0% /System/Volumes/Data | |
/dev/disk2s4 957Gi 12Gi 299Gi 4% 13 10034631787 0% /private/var/vm | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home | |
~/Develops/elixir/dockerize on 4_deploy_dig…_with_docker docker build -t dockerize:0.1.1 . ✔ | |
Sending build context to Docker daemon 42.78MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | |
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | |
*/ | |
'use strict'; | |
/* eslint-env node */ | |
const path = require( 'path' ); |
NewerOlder