run
npx https://gist.github.com/samrose/eb703dcf5c5eaf2df1575e3b01152cbf
defmodule MyApp.Integrations.Skubana do | |
@host "..." | |
@headers [ ... ] | |
# returns a stream of shipments | |
def get_shipments do | |
# start with page 1 | |
start = fn -> 1 end | |
# create a stream, it will make HTTP requests until the page returned is empty |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
def add_check_digit(upc_str): | |
""" | |
Returns a 12 digit upc-a string from an 11-digit upc-a string by adding | |
a check digit | |
>>> add_check_digit('02345600007') | |
'023456000073' | |
>>> add_check_digit('21234567899') | |
'212345678992' | |
>>> add_check_digit('04210000526') |
# frozen_string_literal: true | |
source 'https://rubygems.org' | |
git_source(:github) do |repo_name| | |
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
"https://github.com/#{repo_name}.git" | |
end | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' |
(ns switch | |
(:require [clojure.pprint :as pprint])) | |
(defn project-clj-map [filename] | |
(->> (slurp filename) | |
(read-string) | |
(drop 1) | |
(partition 2) | |
(map vec) | |
(into {}))) |
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "cloudi-${version}"; | |
version = "1.7.5"; | |
src = fetchzip { | |
url = "https://osdn.net/dl/cloudi/${name}.tar.gz"; | |
sha256 = "0aj0rwzfyad99gnm27km705ba46nsdy1ww87qgk3cfpi0017wx86"; | |
}; |