Skip to content

Instantly share code, notes, and snippets.

View drobakowski's full-sized avatar

David Robakowski drobakowski

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@drobakowski
drobakowski / keybindings.md
Last active March 2, 2017 17:09 — forked from jimmyhillis/keybindings.md
iTerm 2 Mac-ready key binding additions.

Standard bindings

Action Keys Send Escape Sequence
Move left between words + b
Move right between words + f
Start of the line + [H
End of the line + [F
Delete previous word +delete 0x17
Delete one word to right of the cursor fn+⌥+delete 0x01b 0x64
@drobakowski
drobakowski / RestLeadConvert.cls
Created September 7, 2016 14:18
Apex class for converting a Lead into an Account/Contact/Opportunity through the REST-API
@RestResource(urlMapping='/Lead/*')
global with sharing class RestLeadConvert {
@HttpPost
global static void convertLead() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
res.addHeader('Content-Type', 'application/json');
String leadId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
@drobakowski
drobakowski / .editorconfig
Last active March 3, 2020 12:46
EditorConfig file for Erlang. See http://EditorConfig.org
# EditorConfig file: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
@drobakowski
drobakowski / module_with_compiler_directive.erl
Created January 14, 2014 09:25
Rebar config script to set compiler directives. In this example the directive "have_callback_support" will be set as long as an Erlang release with version 15 or higher is available.
-module(module_with_compiler_directive).
-ifdef(have_callback_support).
-callback start_link(Args) -> {ok, Pid} |
{error, {already_started, Pid}} |
{error, Reason} when
Args :: proplists:proplist(),
Pid :: pid(),
Reason :: term().