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
| op item list | tail -n +2 | sort -k2 | fzf --query="$argv" | awk '{print $1}' | xargs op item get --reveal | |
| # $argv is the arguments passed, I'm using this in a fish shell function, hence $argv. |
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
| ├── OpenXmlPowerTools.Tests.OA | |
| ├── HtmlToWmlConverterTests2.cs | |
| ├── ListItemRetrieverTests.cs | |
| └── WordAutomationUtilities.cs | |
| ├── OpenXmlPowerTools.Tests | |
| ├── ChartUpdaterTests.cs | |
| ├── DocumentAssemblerTests.cs | |
| ├── DocumentBuilderTests.cs | |
| ├── FormattingAssemblerTests.cs | |
| ├── HtmlConverterTests.cs |
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
| open System | |
| type Suit = | |
| | Spades | |
| | Clubs | |
| | Diamonds | |
| | Hearts | |
| type Rank = int | |
| type Card = | |
| | Card of Rank * Suit |
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
| .var : Introduce variable | |
| ANY → $var:suggestVariableName()$$END$ = $expr$ |
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
| from lxml import etree | |
| import pandas as pd | |
| def get_hsa_attribute_value(attribute_name, child_element): | |
| local_child_tag_name = etree.QName(child_element).localname | |
| if local_child_tag_name == 'S': | |
| yield attribute_name, child_element.text | |
| elif local_child_tag_name == 'Address': | |
| yield from [(f'{attribute_name}_{ix}', al.text) for ix, al in enumerate(child_element.iterchildren())] |
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
| // ==UserScript== | |
| // @name Cleanup AWS SSO username | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Fix long and ugly SSO username | |
| // @author Richard Ginzburg | |
| // @match https://*.console.aws.amazon.com/* | |
| // @grant none | |
| // @run-at document-end | |
| // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
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
| #include <sys/time.h> | |
| #include <sys/types.h> | |
| #include <sys/resource.h> | |
| #include <sys/wait.h> | |
| #include <spawn.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> |
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
| 0x9C6a25000B341c0ebE8e51c19108136D93079Ba6 |
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
| 0x2EA39e2a321d1Dc31C9051E2Aa35958B5F9f20C9 |
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
| type Rank = int | |
| type Suit = | Spades | Hearts | Diamonds | Clubs | |
| type Card = Rank * Suit | |
| let value = fst | |
| let suit = snd | |
| let A,K,Q,J,T = 14,13,12,11,10 | |
| let allRanksInSuit suit = [2..A] |> List.map (fun rank -> rank,suit) | |
| let completeDeck = |