- 鞄
- MacBook
- USB-C ケーブル
- AC アダプター
- USB-C アダプター
- iPhone
This file contains hidden or 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
| name: main | |
| on: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| $files = []; // glob か何かでファイルのリストを取得 | |
| foreach ($files as $file) { | |
| $source = file_get_contents($file); | |
| $refactoring = new Refactoring($source); | |
| $refactoring->addDeclare(); | |
| file_put_contents($file, $refactoring->toString()); | |
| } |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| $debug = true; | |
| $save_columns = [ | |
| 'Adventurers' => [ | |
| 'Id', | |
| 'Name', | |
| 'NameJP', |
This file contains hidden or 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
| { | |
| "errorType": "Error", | |
| "errorMessage": "Client network socket disconnected before secure TLS connection was established", | |
| "code": "ECONNRESET", | |
| "stack": [ | |
| "Error: Client network socket disconnected before secure TLS connection was established", | |
| " at TLSSocket.onConnectEnd (_tls_wrap.js:1092:19)", | |
| " at Object.onceWrapper (events.js:286:20)", | |
| " at TLSSocket.emit (events.js:203:15)", | |
| " at endReadableNT (_stream_readable.js:1129:12)", |
This file contains hidden or 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
| // Twitter API over .NET Standard | |
| // | |
| // using OAuthStandard https://github.com/cjhoward92/OAuthStandard | |
| // using HttpClient https://docs.microsoft.com/ja-jp/dotnet/api/system.net.http.httpclient?view=netstandard-2.0 | |
| // using .NET Core 3.0 | |
| // using C# 8.0 | |
| // | |
| // NuGet | |
| // PM> Install-Package OAuthStandard -Version 1.0.0 |
This file contains hidden or 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
| <!DOCTYPE slide> | |
| <slide lang="ja"> | |
| <head> | |
| <page> | |
| <title></title> | |
| <date></date> | |
| <author> | |
| <name>雪猫</name> | |
| <account platform="twitter" href="https://twitter.com/snow_cait">@snow_cait</account> | |
| </author> |
This file contains hidden or 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
| class Main | |
| { | |
| public void async AuthorizedUser() | |
| { | |
| var client = new TwitterClient("CK", "CS"); | |
| client.Authorize("AT", "ATS"); | |
| await CallApiAsync(); | |
| } | |
| public void async AuthorizePinCode() |
This file contains hidden or 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
| <?php | |
| $path = '/path/to/example.csv'; | |
| $name = basename($path, '.csv'); | |
| // https://www.php.net/manual/ja/function.str-getcsv.php#114764 | |
| $csv = array_map('str_getcsv', file($path)); | |
| $header = array_shift($csv); | |
| $data = array_map(function ($row) use ($header) { | |
| return array_combine($header, array_map(function ($value) { | |
| if ($value === 'TRUE') { return true; } |