| Copy entire buffer to clipboard | :%y + | https://vim.fandom.com/wiki/Accessing_the_system_clipboard |
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
| [dance_card_test] pwd 11:41:55 ☁ master ☂ ✖ ⚡ ✭ | |
| /Users/tyler/src/dev/dance_card_test | |
| [dance_card_test] open github-mac://openrepo//`pwd` 11:41:57 ☁ master ☂ ✖ ⚡ ✭ | |
| The file /Users/tyler/src/dev/dance_card_test/github-mac:/openrepo/Users/tyler/src/dev/dance_card_test does not exist. | |
| [dance_card_test] open github-mac://openrepo//Users/tyler/src/dev/dance_card_test 11:42:30 ☁ master ☂ ✖ ⚡ ✭ | |
| The file /Users/tyler/src/dev/dance_card_test/github-mac:/openrepo/Users/tyler/src/dev/dance_card_test does not exist. | |
| [dance_card_test] open github-mac://openRepo/Users/tyler/src/dev/dance_card_test 11:43:02 ☁ master ☂ ✖ ⚡ ✭ | |
| The file /Users/tyler/src/dev/dance_card_test/github-mac:/openRepo/Users/tyler/src/dev/dance_card_test does not exist. | |
| [dance_card_test] open github-mac://openRepo//Users/tyler/src/dev/dance_card_test 11:43:24 ☁ master ☂ ✖ ⚡ ✭ |
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
| ########################################################### | |
| # net/socket_http.rb | |
| ########################################################### | |
| module Net | |
| # Overrides the connect method to simply connect to a unix domain socket. | |
| class SocketHttp < HTTP | |
| attr_reader :socket_path | |
| # URI should be a relative URI giving the path on the HTTP server. |
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
| module Stylesheet | |
| extend ActiveSupport::Concern | |
| include PdfStylesheet | |
| PAGE_BREAK_RULES = [nil, 600, 200, 200, 100, 100].freeze | |
| MARGIN_TOP_MM = 25 | |
| MARGIN_BOTTOM_MM = 30 | |
| MARGIN_LEFT_MM = 25 | |
| MARGIN_RIGHT_MM = 25 |
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
| """ | |
| module: config | |
| Note that this module defines three classes for three different applications. | |
| You are free in your own configurations, to define separate files. | |
| # The Restfful SGE app only listens to the RestfulSgeConfig class. | |
| Loads the application configuration file, checking the following places: |
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
| # Command to run: | |
| # $file = [System.IO.Path]::GetTempFileName(); (New-Object System.Net.WebClient).DownloadString('https://kubobuild.page.link/rniX') | Out-File -FilePath "${file}.ps1"; . "${file}.ps1" | |
| & { | |
| $wid=[System.Security.Principal.WindowsIdentity]::GetCurrent() | |
| $prp=new-object System.Security.Principal.WindowsPrincipal($wid) | |
| $adm=[System.Security.Principal.WindowsBuiltInRole]::Administrator | |
| $IsAdmin=$prp.IsInRole($adm) | |
| if ($IsAdmin) | |
| { | |
| Write-Host -ForegroundColor Yellow "This should not be run as administrator." |
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
| & { | |
| $wid=[System.Security.Principal.WindowsIdentity]::GetCurrent() | |
| $prp=new-object System.Security.Principal.WindowsPrincipal($wid) | |
| $adm=[System.Security.Principal.WindowsBuiltInRole]::Administrator | |
| $IsAdmin=$prp.IsInRole($adm) | |
| if (-not $IsAdmin) | |
| { | |
| Write-Host -ForegroundColor Yellow "This needs to be run as administrator." | |
| Write-Host -ForegroundColor Yellow "Please open a new powershell as administrator, and try again." | |
| exit 2 |
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 GreaterThanBST { | |
| private var root : Node? = null | |
| fun add(key : Int) { | |
| root = put(root, key) | |
| } | |
| operator fun get(key : Int) : Int = get(root, key) |
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
| #![allow(dead_code)] | |
| extern crate rand; | |
| use std::cmp::Ord; | |
| use std::cmp::Ordering; | |
| use std::fmt::Debug; | |
| use std::iter::Iterator; | |
| use std::iter::IntoIterator; | |
| use rand::Rng; |
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 ModelContainerHostTest { | |
| @get:Rule | |
| val composeTestRule = createComposeRule() | |
| @Test fun firstTest() = runBlocking { | |
| composeTestRule.setContent { | |
| @Composable fun doAThing() = 1 | |
| doAThing() shouldBeExactly 2 | |
| } |