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
#!/usr/bin/env elixir | |
for path <- Path.wildcard("_build/test/lib/*/.mix/.mix_test_failures", match_dot: true), | |
{{mod, name}, path} <- | |
path | |
|> File.read!() | |
|> :erlang.binary_to_term() | |
|> elem(1) | |
|> Map.to_list(), | |
grep_match <- | |
name |
This file has been truncated, but you can view the full file.
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
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 15.3 | |
-- Dumped by pg_dump version 15.5 | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; | |
SET idle_in_transaction_session_timeout = 0; |
This file has been truncated, but you can view the full file.
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
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 15.3 | |
-- Dumped by pg_dump version 15.5 | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; | |
SET idle_in_transaction_session_timeout = 0; |
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
#!/usr/bin/env elixir | |
for path <- Path.wildcard("_build/test/lib/*/.mix/.mix_test_failures", match_dot: true), | |
{{mod, name}, path} <- | |
path | |
|> File.read!() | |
|> :erlang.binary_to_term() | |
|> elem(1) | |
|> Map.to_list(), | |
grep_match <- | |
name |
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
function gzf -a file | |
function help | |
echo "usage: gzf <file>" | |
end | |
# echo $file | |
if ! string match '^\.\/' | |
set file "./$file" | |
end |
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
javascript:(function() { | |
/* https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript */ | |
function hashCode(str) { | |
let hash = 0; | |
let i = 0; | |
const len = str.length; | |
while ( i < len ) { | |
hash = ((hash << 5) - hash + str.charCodeAt(i++)) << 0; | |
} | |
return hash; |
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
defmodule Debug do | |
alias Rexbug.Printing | |
alias Rexbug.Printing.Call | |
alias Rexbug.Printing.MFA | |
alias Rexbug.Printing.Return | |
import Inspect.Algebra | |
import Kernel, except: [inspect: 1, inspect: 2] |
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
defmodule Core.Github do | |
@behaviour Core.Github.Adapter | |
for {fun, arity} <- Core.Github.Adapter.behaviour_info(:callbacks) do | |
args = Macro.generate_arguments(arity, __MODULE__) | |
@impl true | |
def unquote(fun)(unquote_splicing(args)) do | |
apply(adapter(), unquote(fun), unquote(args)) | |
end |
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
'use strict'; | |
const fs = require('fs'); | |
const pwd = process.cwd(); | |
const pkg = require(`${pwd}/package.json`); | |
for (const key of [ | |
'devDependencies', | |
'dependencies', |
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
" cd to the folder where you have xterm-256color.terminfo, run | |
" $ tic xterm-256color.terminfo | |
" and add the following to your vimrc. | |
set t_ZH=[3m | |
set t_ZR=[23m |
NewerOlder