I hereby claim:
- I am drewdeponte on github.
- I am cyphactor (https://keybase.io/cyphactor) on keybase.
- I have a public key ASAoIB5Zt8ea9NUiFxVewjRNdMKv3uytqIDZy12KPoBSGAo
To claim this, I am signing this object:
public struct TextWithAttributedString: NSViewRepresentable { | |
public typealias NSViewType = NSTextField | |
public class Coordinator: NSObject, NSGestureRecognizerDelegate { | |
let doubleTapCallback: () -> () | |
public init(doubleTapCallback: @escaping () -> ()) { | |
self.doubleTapCallback = doubleTapCallback | |
} | |
I hereby claim:
To claim this, I am signing this object:
################### BAD ######################## | |
class MembershipsControllerBad < ApplicationController | |
def create # the actual controller action | |
... | |
... | |
create_invite(@org, current_user, email, existing_user) | |
... | |
... |
fn get_possible_files_from_glob<T: Iterator<Item=Option<String>>>() -> Result<T, glob::PatternError> { | |
glob("**/*").map(|paths| paths.flat_map(identity).filter(|path| path.is_file()).map(|path_buf| path_buf.to_str())) | |
} |
I hereby claim:
To claim this, I am signing this object:
struct PossibleAlternatePath { | |
path: std::path::Path | |
} | |
impl From<std::path::Path> for PossibleAlternatePath { | |
fn from(path: std::path::Path) -> Self { | |
PossibleAlternatePath { path: path } | |
} | |
} |
#!/usr/bin/env ruby | |
stats_hash = {} | |
stats_lines = $stdin.readlines | |
headers = stats_lines[0].gsub(/TcpExt: /, '').split(' ') | |
stats = stats_lines[1].gsub(/TcpExt: /, '').split(' ') |
module ShipmunkApi::Views::Users | |
class Create | |
include Lotus::View | |
format :v1 | |
def render | |
_raw(JSON.generate({foo:'hello'})) | |
end | |
end | |
end |
module ShipmunkApi::Views::Users | |
class Create | |
include Lotus::View | |
format :v1 | |
def render | |
JSON.generate({foo:'hello'}) | |
end | |
end | |
end |
function! SelectaCommand(choice_command, selecta_args, vim_command) | |
let dict = { 'vim_command': a:vim_command, 'temps': { 'result': tempname() }, 'name': 'SelectaCommand' } | |
function! dict.on_exit(id, code) | |
bd! " close terminal buffer | |
if a:code == 0 " success | |
if filereadable(self.temps.result) | |
let l:selection = readfile(self.temps.result)[0] | |
echom "selecta: selected: ".selection |