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
// Name: Focus Code | |
// Description: Focus a specific VS Code Window | |
// Author: Nate Drake | |
import "@johnlindquist/kit" | |
if (!isMac) { | |
await div(md('## Sorry. I only work on Mac at the moment.')) | |
exit() | |
} |
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
/* | |
## Switch audio output device | |
*/ | |
// Name: Switch Audio | |
// Description: Switch audio output device (Mac only) | |
// Author: Nate Drake | |
// Install SwitchAudioSource with `brew install switchaudio-osx` |
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
<ion-header> | |
<ion-toolbar> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title>About</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content padding> |
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
import java.io.PrintStream; | |
import java.text.CharacterIterator; | |
import java.text.StringCharacterIterator; | |
import java.util.Map; | |
import java.util.HashMap; | |
/** | |
* Java version of flip.pl/flip.js | |
* | |
*/ |
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
import java.util.List; | |
import java.util.ArrayList; | |
import java.io.IOException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.client.CredentialsProvider; | |
import org.apache.http.impl.client.BasicCredentialsProvider; | |
import org.apache.http.message.BasicNameValuePair; |