I hereby claim:
- I am mmartinson on github.
- I am mikemartinson (https://keybase.io/mikemartinson) on keybase.
- I have a public key ASDc4J01zZYB3bhj5Hn7JcrT8tPeSqabuXENCyl_hnsWTgo
To claim this, I am signing this object:
| # This demonstrates that, when using async/await, a crash in the task will crash the caller | |
| defmodule Tasker do | |
| def good(message) do | |
| IO.puts message | |
| end | |
| def bad(message) do | |
| IO.puts message | |
| raise "I'm BAD!" | |
| end | 
I hereby claim:
To claim this, I am signing this object:
| t = [1,1,2,2,3] | |
| f = fn(n) -> | |
| IO.puts("starting #{n}") | |
| :timer.sleep(n * 1000) | |
| IO.puts("finishing #{n}") | |
| n | |
| end | |
| tasks = Enum.map(t, fn(n) -> | 
| require 'open-uri' | |
| require 'nokogirl' | |
| url = "http://www.oreilly.com/data/free/archive.html?imm_mid=0e7547&cmp=em-data-free-na-stny16_nem4_end_summer" | |
| page = Nokogiri::HTML(open(url)) | |
| book_links = page.css('a[data-toggle="popover"]').href | |
| download_links = book_links.map { |book_link| get_download_link(book_link) } | 
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory | 
| sv_cheats 1; | |
| mp_limitteams 0; | |
| mp_autoteambalance 0; | |
| mp_roundtime 60; | |
| mp_roundtime_defuse 60; | |
| mp_maxmoney 60000; | |
| mp_startmoney 60000; | |
| mp_freezetime 0; | |
| mp_buytime 9999; | |
| mp_buy_anywhere 1; | 
| class TrainedWarrior | |
| attr_accessor :fledgling | |
| def initialize(warrior) | |
| @fledgling = warrior | |
| end | |
| def method_missing(name, *args) | |
| if fledgling.respond_to?(name) | 
| def _render_with_renderer_json(json, options) | |
| serializer = build_json_serializer(json, options) | |
| if serializer | |
| super(serializer, options) | |
| else | |
| super(json, options) | |
| end | |
| end | 
| [ | |
| {"keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}}, | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" }, | |
| { "keys": ["alt+."], "command": "reveal_in_side_bar" }, | |
| { "keys": ["ctrl+0"], "command": "focus_side_bar" }, | |
| { "keys": ["super+k", "super+f"], "command": "focus_side_bar" } | |
| ] |