Skip to content

Instantly share code, notes, and snippets.

@dialtone
Created January 26, 2012 17:09
Show Gist options
  • Save dialtone/1683837 to your computer and use it in GitHub Desktop.
Save dialtone/1683837 to your computer and use it in GitHub Desktop.
Vim
UpdateList0 = [{update, [
{<<"AdGroupId">>, [{value, [{<<"S">>, AdGroupId}]},
{action, put}]},
{<<"AdId">>, [{value, [{<<"S">>, AdId}]},
{action, put}]},
{<<"Kind">>, [{value, [{<<"S">>, ?IMP}]},
{action, put}]},
{<<"Updated">>, [{value, [{<<"S">>,
list_to_binary(integer_to_list(Now))}]},
{action, put}]},
{<<"TTL">>, [{value, [{<<"S">>,
list_to_binary(integer_to_list(TTL))}]},
{action, put}]}]}],
Emacs
UpdateList0 = [{update, [
{<<"AdGroupId">>, [{value, [{<<"S">>, AdGroupId}]},
{action, put}]},
{<<"AdId">>, [{value, [{<<"S">>, AdId}]},
{action, put}]},
{<<"Kind">>, [{value, [{<<"S">>, ?IMP}]},
{action, put}]},
{<<"Updated">>, [{value, [{<<"S">>,
list_to_binary(integer_to_list(Now))}]},
{action, put}]},
{<<"TTL">>, [{value, [{<<"S">>,
list_to_binary(integer_to_list(TTL))}]},
{action, put}]}]}],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment