シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ
- C製
- Doxygen, Moinmoinなどと連携可能
- ブロック図、クラス図、ネットワーク図など
| // DeleteCreatedEntities sets up GORM `onCreate` hook and return a function that can be deferred to | |
| // remove all the entities created after the hook was set up | |
| // You can use it as | |
| // | |
| // func TestSomething(t *testing.T){ | |
| // db, _ := gorm.Open(...) | |
| // | |
| // cleaner := DeleteCreatedEntities(db) | |
| // defer cleaner() | |
| // |
| # An example to get the remaining rate limit using the Github GraphQL API. | |
| import requests | |
| headers = {"Authorization": "Bearer YOUR API KEY"} | |
| def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
| request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
| if request.status_code == 200: |
| #! /usr/bin/env python3 | |
| """ | |
| This utility will execute the given command (by default, your shell) | |
| in a subshell, with an ssh-agent process running and your | |
| private key added to it. When the subshell exits, the ssh-agent | |
| process is killed. | |
| """ | |
| # This code was written by Atul Varma in February 2017. It requires |
シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ
Markdownドキュメントの目次を自動的に作るツールです。
main.jsのJavaScriptをコピーして、ここにペストしてください。Bookmarklet nameに MD Contentsを入力してください。Compressボッタンを押してください。MD Contentsの__リンク__を __ドロップ__して、ブラウザのBookmark Tools Barに移動してください。Bookmark Tools BarのMD Contentsをクリックしてください。
WebRTC スタックについて
| 作: | @voluntas |
|---|---|
| バージョン: | 0.0.3 |
| url: | https://voluntas.github.io/ |
| <?php | |
| interface SayInterface | |
| { | |
| public function say(); | |
| } | |
| class Ore implements SayInterface | |
| { | |
| public function say() | |
| { |
CURLOPT_DNS_CACHE_TIMEOUT: controls the TTL of a DNS cache entry. The default is 60s. Use -1 to keep the entry forever.CURLOPT_RESOLVE: pre-populate the DNS cache manually.CURLOPT_DNS_SERVERS: use alternate DNS servers (instead of system default ones). Warning: works only with c-ares (and it requires c-ares version >= 1.7.4),CURLOPT_DNS_USE_GLOBAL_CACHE: cache DNS queries between easy handles. Warning: this is not thread-safe and documented as deprecated. Use the share interface instead (see below).| %lex | |
| %s l_comment req | |
| %% | |
| "/*" { this.begin('l_comment'); return 'L_COMMENT_START'; } | |
| <l_comment>"*/" { this.popState(); return 'L_COMMENT_END'; } | |
| <l_comment>(.|\n) { return 'L_COMMENT_CHR'; } |
| package main | |
| import "fmt" | |
| // fibonacci is a function that returns | |
| // a function that returns an int. | |
| func fibonacci() func() int { | |
| x, y := 0, 1 | |
| return func() int { | |
| x, y = y, x + y |