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
| object DeepGoal { | |
| implicit val deepGoalCodec = AutomaticJsonCodecBuilder[DeepGoal] | |
| def apply(goal:GoalWithId, prevailingMeasure:Option[MeasureWithId]) = { | |
| new DeepGoal(goal.id.id, | |
| goal.model.status, | |
| goal.model.name, | |
| goal.model.agencies, | |
| goal.model.relatedDatasets, | |
| goal.model.isPublic, |
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
| root@localhost:~/crystal# make | |
| CRYSTAL_CONFIG_PATH=`pwd`/src ./bin/crystal build -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib | |
| Invalid memory access (signal 11) at address 0x7ff5ffeefab8 | |
| [12638893] __crystal_sigfault_handler +61 | |
| [24690684] sigfault_handler +40 |
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
| get "/users/:id{Int32}", do |env, id| | |
| # id here Int32 | |
| # if :id couldn't parsed as Int32 an error thrown or 404 | |
| puts "#{id + 100}" | |
| end |
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
| abstract class Parsec::Parser(T) | |
| getter error_message | |
| def initialize | |
| @is_satisfied = false | |
| @is_failed = false | |
| @cargo = "" | |
| @error_message = "" | |
| end |
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
| macro choice(*parsers) | |
| current_column = @column_number | |
| begin | |
| {% for name, index in parsers %} | |
| {{name}} | |
| {% if index < parsers.size - 1 %} | |
| rescue | |
| {% end %} | |
| end | |
| end |
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 ~/.vim/dwiw-loader.vim | |
| set nocompatible | |
| filetype off | |
| "set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| "Plugins |
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 Feedme.Parsers.RSS2 do | |
| alias Feedme.Feed | |
| alias Feedme.Entry | |
| alias Feedme.MetaData | |
| alias Feedme.Image | |
| alias Feedme.Enclosure | |
| def valid?(document) do | |
| has_version = document | |
| |> XmlNode.first("/rss") |
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
| var Colors = [ | |
| [142, 161, 108], | |
| [194, 207, 48], | |
| [254, 199, 0], | |
| [255, 137, 0], | |
| [211, 67, 43], | |
| [187, 41, 82], | |
| [142, 30, 95], | |
| [222, 74, 182], | |
| [153, 0, 236], |
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 DumbModule do | |
| @type dumb_type :: :a | :b | |
| @spec dumb_function(dumb_type) :: dumb_type | |
| def dumb_function(_data) do | |
| :c | |
| end | |
| end |
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 ChatExperiment.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [ app: :chat_experiment, | |
| version: "0.0.1", | |
| elixir: "~> 0.12.0", | |
| deps: deps ] | |
| end |