https://www.docker.com/docker-mac
Run the following commands
localip=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2)
dburl=postgres://venkat@docker.local:5432/turtle_dev
defmodule Minty do | |
defmodule Response do | |
defstruct [:status, :headers, :data] | |
end | |
def request(method, url, opts \\ []) do | |
%{scheme: scheme, host: host, port: port, path: path} = URI.parse(url) | |
payload = Keyword.get(opts, :payload) | |
headers = Keyword.get(opts, :headers, []) |
import 'dart:io'; | |
Future<void> startPlayServer(int port) async { | |
HttpServer server = await HttpServer.bind( | |
InternetAddress.loopbackIPv4, | |
port, | |
); | |
await for (var request in server) { | |
_handleRequest(request); | |
} |
type linkCollector func(page crawler.Page) []string | |
func crawl(client crawler.Client, startPageURL string, collect linkCollector, maxConcurrency int) { | |
concurrencyLimiter := make(chan struct{}, maxConcurrency) | |
var wg sync.WaitGroup | |
for i := 0; i < maxConcurrency; i++ { | |
concurrencyLimiter <- struct{}{} | |
} | |
wg.Add(1) |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isExpanded: false, | |
isExpandedAtFirst: false, | |
init() { | |
this._super(...arguments) | |
this.set('isExpanded', this.get('isExpandedAtFirst')) | |
}, |
0x1E65F71b024937b988fdba09814d60049e0Fc59d |
https://www.docker.com/docker-mac
Run the following commands
localip=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2)
dburl=postgres://venkat@docker.local:5432/turtle_dev
defmodule Neo.Query do | |
defstruct [ | |
piped_queries: [], | |
optional_queries: [], | |
labels: [], | |
match_clauses: [], | |
merge_clauses: [], | |
where_clauses: [], | |
create_clauses: [], |
defmodule Neo.QueryTest do | |
use ExUnit.Case | |
import Neo.Query | |
test "generates a simple match + return query" do | |
query = new_query | |
|> labels(yo: "yeah/man", dude: "nah") | |
|> return([:yo]) |
import React from 'react' | |
import {Editor as MobileDocEditor} from 'mobiledoc-kit'; | |
const MOBILEDOC_VERSION = '0.3.0'; | |
const EMPTY_MOBILEDOC = { | |
version: MOBILEDOC_VERSION, | |
markups: [], | |
atoms: [], | |
cards: [], |