- Tab behavior: I want to be able to tab between most recently used tabs (panes?)
- Split behavior: there’s a jump left/right but I want one keybind to go back and forth
- Pane: jump to test file and back
- Folds: I want to be able to fold all levels and unfold one level at a time
- Folds: I want to be able to fold/unfold recursively one function (section?) at a time
- Tasks: must be able to inherit the environment from the shell session from which it was launched
- Terminal: shared terminal is a must. Having to jump (visually or cmd-tab) between screen sharing and the editor is frustrating, especially while TDDing
- Multi-select: need a cmd-g equivalent to go with ctrl-g
- Multi-select: column selection mode key bind (opt-opt-up/down in IntelliJ)
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
{:noreply, | |
socket | |
|> assign_async(:the_data, fn -> | |
case do_work() do | |
{:ok, the_data} -> {:ok, the_data} | |
:error -> {:error, "Whoops!"} | |
end | |
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
# Telegraf Configuration | |
# Configuration for telegraf agent | |
[agent] | |
## Default data collection interval for all inputs | |
interval = "10s" | |
## Rounds collection interval to 'interval' | |
## ie, if interval="10s" then always collect on :00, :10, :20, etc. | |
round_interval = true |
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
def multi_task(functions) do | |
functions | |
|> Task.async_stream(fn function -> function.() end) | |
|> Enum.map(fn {:ok, result} -> result end) | |
end |
- Select the things that are most alike.
- Find the smallest difference between them.
- Make the simplest change that will remove that difference.
- Parse the new code. (e.g. else clause based on a boolean that is always false)
- Parse and execute the new code. (e.g. else clause based on a boolean that is passed in as a parameter)
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
def add(new_item) do | |
Agent.update __MODULE__, fn items -> | |
items | |
|> add_or_merge_item(new_item) | |
end | |
end | |
def add_or_merge_item(items, new_item) do | |
if item_exists(items, new_item) do | |
merge_item(items, new_item) |
I hereby claim:
- I am marcdel on github.
- I am marcdel (https://keybase.io/marcdel) on keybase.
- I have a public key ASCfUn6t0rq65lUDCV2fMv63BNb70KdX9lHRaw_yHjFvcgo
To claim this, I am signing this object:
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
class Clienttest < MiniTest::Unit::TestCase | |
def test_marcdel | |
sample_data = File.read 'test/assets/marcdel.json' | |
tc = self | |
# Redefine private get method to use sample data instead of doing http get | |
klass = Class.new(Client) do | |
define_method(:get) do |username| | |
tc.assert_equal 'marcdel', username |
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
set = [] | |
array.each do |item| | |
set.push item | |
if item % 4 == 0 | |
puts set.inspect | |
set = [] | |
end | |
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
Creating Sessions | |
tmux new - new unnamed session | |
tmux new -s session_name - new named session | |
tmux new -s session_name -n window_name - new named session with named window | |
tmux ls - list all running sessions | |
tmux attach -t session_name - reattaches to named session | |
tmux kill-session -t session_name - kills a named session | |
Ctrl+a d - detaches from current session | |
Ctrl+a : - command mode |
NewerOlder