Glance through a few of the examples, maybe 5 or so, to see what kinds of things Elm is doing, what domains they're in, what the code looks like, what other people think Elm is.
This file contains 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
# Docker compose to set up containers for all services you need: | |
# VPN | |
# Sonarr, Radarr, Lidarr, Qbittorrent | |
# Non-VPN | |
# Plex, get_iplayer | |
# Before running docker-compose, you should pre-create all of the following folders. | |
# Folders for Docker State: | |
# /volume1/dockerdata. - root where this docker-compose.yml should live | |
# /volume1/dockerdata/plex - Plex config and DB | |
# /volume1/dockerdata/sonarr - Sonarr config and DB |
This file contains 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 WordCount do | |
def run do | |
System.argv | |
|> path | |
|> file | |
|> size | |
|> count | |
|> IO.puts | |
end | |
This file contains 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 Koncur.AuthenticationPlug do | |
alias Plug.Conn | |
alias Phoenix.Status | |
alias Phoenix.Controller.Errors | |
alias Poison, as: JSON | |
import Phoenix.Controller.Connection | |
import Plug.Conn | |
import Ecto.Query, only: [from: 2] | |
def init(opts), do: opts |
This file contains 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
# Threw together these two functions to demonstrate adding some immutable modification | |
# functions to Ruby's Array class. "update" takes a hash of indices to values and | |
# returns a new array with the appropriate indices replaced by the supplied values. | |
# "modify" takes a list of indices and runs the block on those indices that match; | |
# like a version of "map" where you can specify the indices. | |
# Maybe you can already do this in Ruby, but I couldn't see anything in the docs so | |
# here's my hacky little monkey patch... | |
class Array |
This file contains 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
#!/usr/bin/env jruby | |
require 'rubygems' | |
require 'spoon' | |
APPNAME = 'fileserver' | |
WORK_PATH = Dir.pwd | |
EXEC = "#{ENV['HOME']}/.rbenv/shims/puma" | |
PID_PATH = "#{WORK_PATH}/log/#{APPNAME}.pid" | |
OUT_PATH = "#{WORK_PATH}/log/#{APPNAME}.out.log" |
conversation of the cutting-edge techs
link to subscribe feed
This file contains 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
#!/bin/bash | |
defaults delete com.apple.finder AppleShowAllFiles | |
killall Finder | |
This file contains 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
#!/bin/bash | |
defaults write com.apple.finder AppleShowAllFiles -boolean true | |
killall Finder |
NewerOlder