This file contains hidden or 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
| source "https://rubygems.org" | |
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
| # Specify your gem's dependencies in rejectkaigi2019lt.gemspec | |
| gemspec |
This file contains hidden or 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
| require "securerandom" | |
| require "pg" | |
| require "org-ruby" | |
| require "unf" | |
| module SaveLegacy | |
| class Error < StandardError; end | |
| db_setting = { | |
| connect_timeout: 300, |
This file contains hidden or 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
| 9a10 | |
| > Agent.start_link(fn -> 0 end, name: Result) | |
| 11,15c12,13 | |
| < try do | |
| < walk(maze, x, y, %{}, 0) | |
| < catch | |
| < pt -> pt | |
| < end | |
| --- | |
| > walk(maze, x, y, %{}, 0) |
You can test this example easily.
git clone https://gist.github.com/niku/7bee3d72fd1fd442e6d115330bbd963b slack_rtm_api_sandbox
cd slack_rtm_api_sandbox
mix deps.get
mix run --no-halt -e 'Supervisor.start_link([SlackRtmApiSandbox.child_spec({"YOUR_BOT_API_TOKEN", ""})], strategy: :one_for_one)'
This file contains hidden or 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
| language: elixir | |
| sudo: false | |
| otp_release: | |
| - 19.3 | |
| elixir: | |
| - 1.4.2 | |
| env: | |
| global: | |
| - HEX_USERNAME=niku | |
| # Follow other language's environment |
This file contains hidden or 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 EctoSandbox.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [app: :ecto_sandbox, | |
| version: "0.1.0", | |
| elixir: "~> 1.4", | |
| build_embedded: Mix.env == :prod, | |
| start_permanent: Mix.env == :prod, | |
| elixirc_paths: ["."], |
This file contains hidden or 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 DialyxirSandbox do | |
| # @spec hello() :: atom | |
| @spec hello() :: String.t | |
| def hello do | |
| :world | |
| end | |
| end |