There is a simple alternative that does not require any external dependencies:
defmodule MyApp.Periodically do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{})
end
def init(state) do| size: | |
| 13,9,false | |
| landscape: | |
| U,S,Y,Y,Y,S,U,K,R,G,B,R,K, | |
| Y,I,I,Y,Y,I,I,Y,K,I,I,Y,N, | |
| I,I,K,I,U,I,S,I,G,I,S,I,I, | |
| G,B,Y,I,I,S,S,I,R,I,S,U,N, | |
| K,U,R,Y,U,U,S,Y,I,I,S,K,B, | |
| S,G,I,I,Y,Y,I,I,I,U,S,U,N, |
| Well to me bids (at the end VPs) would look like this: | |
| Giants: 0VP | |
| Fakirs: 6VP | |
| Auren: 9VP | |
| Cultists: 12VP | |
| Chaos Magicians: 15VP | |
| Swarmlings: 15VP | |
| Engineers: 18VP | |
| Witches: 21VP |
| size: | |
| 13,9,false | |
| landscape: | |
| U,S,G,B,Y,R,U,K,R,G,G,R,K, | |
| Y,I,I,U,K,I,I,Y,G,I,I,Y,N, | |
| I,I,K,I,S,I,G,I,G,I,S,I,I, | |
| G,B,Y,I,I,Y,G,I,Y,I,R,U,N, | |
| K,U,R,B,K,Y,G,Y,I,I,G,K,B, | |
| S,G,I,I,Y,G,I,I,I,Y,S,Y,N, |
| size: | |
| 13,9,false | |
| landscape: | |
| U,U,U,Y,Y,Y,Y,K,Y,B,B,R,K, | |
| U,I,I,U,U,I,I,Y,B,I,I,Y,N, | |
| I,I,Y,I,S,I,S,I,B,I,S,I,I, | |
| G,B,Y,I,I,U,B,I,R,I,R,U,N, | |
| K,Y,Y,Y,U,U,S,Y,I,I,B,K,B, | |
| S,G,I,I,Y,B,I,I,I,U,S,U,N, |
| defmodule Archiver do | |
| def archive(url, user_id, bookmark_id) do | |
| summary = Readability.summarize(url) | |
| page = summary.article_html | |
| path = "priv/static/archive/#{user_id}" | |
| unless File.exists?(path) do | |
| File.mkdir(path) |
| require 'open-uri' | |
| require 'nokogiri' | |
| require 'mechanize' | |
| div | |
| def get_bill_nums | |
| doc = Nokogiri::HTML(open("http://leg.colorado.gov/bill-search")) | |
| bill_nums = doc.css("div.field-name-field-bill-number div.field-items").text.split("\s") | |
| bill_nums | |
| end |
There is a simple alternative that does not require any external dependencies:
defmodule MyApp.Periodically do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{})
end
def init(state) do| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |
| <?php | |
| $view = new view(); | |
| $view->name = 'ballots'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'Ballots'; | |
| $view->core = 7; | |
| $view->api_version = '3.0'; |