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
| module VersesParser | |
| def split_refs(query, bibles) | |
| result = [] | |
| bibles.each do |bible| | |
| query.split(/\s*[;\|]\s*/).each do |token| | |
| if token =~ /^([\d\w]\w\w)\s*(.+)/ | |
| name, ref = $1, $2 | |
| elsif token =~ /^(\d?\w+)\s*(.+)/ | |
| name, ref = $1, $2 |
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 Biblia.VersesParser do | |
| @moduledoc """ | |
| Documentation for Biblia.VersesParser | |
| """ | |
| def extract_verses(query, bibles) do | |
| refs_with_chapter(query, bibles) | |
| |> Enum.map(fn item -> | |
| verses = | |
| case Regex.split(~r"\s*:\s*", item[:ref]) do |
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
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: Create started inventory containers | |
| lxd_container: | |
| name: "{{ item }}" | |
| state: started | |
| source: | |
| type: image |
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
| ✗ gem install mysql2 | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing mysql2: | |
| ERROR: Failed to build gem native extension. | |
| current directory: /Users/hipertracker/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mysql2-0.4.9/ext/mysql2 | |
| /Users/hipertracker/.rbenv/versions/2.4.2/bin/ruby -r ./siteconf20171025-59222-tjn9d3.rb extconf.rb | |
| checking for rb_absint_size()... yes | |
| checking for rb_absint_singlebit_p()... yes | |
| checking for ruby/thread.h... yes |
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
| import moment from 'moment' | |
| import React from 'react' | |
| export default function Content ({data, type}) { | |
| const { | |
| fields: { | |
| // background_style, | |
| [`upload_${type}`]: { | |
| modified, | |
| title, |
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
| module FilterBar exposing (..) | |
| import Html exposing (..) | |
| import Html.Attributes exposing (alt, class, href, id, src, style) | |
| import Html.Attributes.Aria exposing (ariaHidden, role) | |
| import Html.Events exposing (onClick) | |
| ---- PROGRAM ---- |
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
| module ShiftYears exposing (Msg(ShiftLeft, ShiftRight), shiftYears) | |
| type alias Year = | |
| String | |
| noYear : Year | |
| noYear = | |
| "" |
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
| import { Controller } from 'cerebral' | |
| import uniqueStateUpdate from './providers/uniqueStateUpdate' | |
| export default Controller({ | |
| providers: [ | |
| uniqueStateUpdate, | |
| ], | |
| //... | |
| }) |
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
| import { connect } from 'cerebral/react' | |
| import { state } from 'cerebral/tags' | |
| import React, { Component } from 'react' | |
| import { HeaderModule } from '../../elm/dist/elm' | |
| import Elm from './react-elm-components' | |
| export default connect({ | |
| themeUri: state`app.theme_uri`, | |
| headers: state`app.header`, | |
| }, |
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
| import { sequence } from 'cerebral' | |
| import { set, when } from 'cerebral/operators' | |
| import { state, props } from 'cerebral/tags' | |
| import { httpGet } from '@cerebral/http/operators' | |
| import loadEmbedData from '../actions/loadEmbedData' | |
| import updateHome from './updateHome' | |
| import injectToBranches from './injectToBranches' | |
| export default function changePage (page, continueSequence = []) { |