- Spectre.css notes
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
| #!/bin/zsh | |
| ls -d */ |
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
| #!/bin/zsh | |
| print -rl -- *(D/) |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/user" | |
| "path/filepath" | |
| "runtime" | |
| ) |
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
| package main | |
| /* Golang command-line flag tutorial example for boolean flag | |
| Go Playground example at: | |
| https://play.golang.org/p/fEaMQCjxQUT | |
| Assuming the program is named ./t here's example usage and output: | |
| $ ./t | |
| Verbose mode set? false | |
| $ ./t -v | |
| Verbose mode set? true |
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
| package main | |
| // Goal is to obtain user consent token: | |
| // https://developer.ebay.com/api-docs/static/oauth-consent-request.html | |
| import ( | |
| "fmt" | |
| "golang.org/x/oauth2" | |
| "log" | |
| "net/http" | |
| "os" |
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 html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Auth Accepted</title> | |
| </head> | |
| <body> | |
| <h1>User signed in and Granted Authorization</h1> | |
| </body> | |
| </html> |
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
| .vimrc equivalent is $HOME/.config/nvim/init.vim | |
| MacOS location of init.vim | |
| $HOME/.config/nvim/ | |
| So: | |
| # Create the directory | |
| mkdir -p $HOME/.config/nvim/ | |
| # Edit or create the file | |
| nvim $HOME/.config/nvim/init.vim |
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 html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Center test 1 | Spectre.css</title> | |
| <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css"> | |
| <style> | |
| <!-- NOT NECESSARY! JUST USE .flex-centered. See comment by @Prid13 at https://gist.github.com/tomcam/4dd6dfb90abdc504daccd9a8003329a3?permalink_comment_id=4815360#gistcomment-4815360 --> | |
| .vcenter { |
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 html> | |
| <html lang="en"> | |
| <head> | |
| <title>Update1 template--Spectre.css</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/spectre.css/0.2.10/spectre.min.css" /> | |
| </head> | |
| <body> | |
| <div class="container"> |