Skip to content

Instantly share code, notes, and snippets.

What are the foundational documents for a city in california?

The foundational documents for a city in California, typically involve a set of core legal and organizational documents that define the governance, responsibilities, and operations of the city. These documents often include:

  • City Charter: Not all cities have a charter, but for those that do, the charter acts as the "Constitution" for the city. It outlines the organizational structure, powers, and functions of the city government. Charters are approved by the voters of a city.
  • Municipal Code: This is a comprehensive collection of the laws and ordinances adopted by the city council. It covers a wide range of regulations, including zoning, public safety, and building codes.
  • General Plan: A long-range planning document that serves as a blueprint for the city's future growth and development. It addresses various elements such as land use, housing, transportation, and environmental quality.
  • Annual Budget: This document details the city's fi
# script.rb
require 'yaml'
# Load the existing configuration
config = YAML.load_file('_config.yml')
# Modify the configuration using ENV variables
config['some_setting'] = ENV['MY_ENV_VARIABLE'] || 'default_value'
# Write the modified configuration to a new file
require 'csv'
# Define the file name
file_name = "sample_data.csv"
# Define the number of rows and columns
num_rows = 10000
num_columns = 12
# Open a CSV file for writing
@afomi
afomi / .md
Created January 9, 2023 04:01 — forked from mbajur/.md
How to create small, unique tokens in Ruby

How to create small, unique tokens in Ruby

That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:

My choice: Dave Bass’s rand().to_s() trick

Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):

@afomi
afomi / gist:5e8598cb55f1311e9d5f
Last active August 18, 2022 17:20
Tahi Components - 2015-06-29
# Component Usage Report
Total Defined in Core : 70
Used in core : 60
### Externally defined
liquid-outlet
add-author-form
author-view
@afomi
afomi / vimeo-speed.txt
Last active August 1, 2020 15:31
Create a Chrome bookmark with this code to make a Bookmarklet to change the playback speed of Vimeo videos
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate - ie: 2.0'); v.playbackRate = parseFloat(t)
@afomi
afomi / Blockchain Working Group Decision Making Process.md
Last active February 3, 2020 20:51
Blockchain Working Group Decision Making Process
@afomi
afomi / growing-an-idea-into-a-business.md
Created August 17, 2019 23:16
Growing an Idea into a Business

From idea to business

  • idea
  • flesh out the idea: requires a business model.
  • the business model needs to be validated.
    • is there a market? who?
    • can access/address the market? (eg: sale a real thing)
  • is there enough to offer? what is the minimum viable product or service?
@afomi
afomi / dev-walkthrough.html
Created August 6, 2019 23:16
setting up a dev environment
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
"select a language" -> "language"
"language" -> "ruby"
"language" -> "python"
"language" -> "javascript"
"language" -> "language selected"
"language selected" ->
"setup local dev environment"
}
@afomi
afomi / bsv.html
Last active July 13, 2019 05:50
bsv
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
"bitcoin" -> "btc"
"bitcoin" -> "bch"
"bitcoin" -> "bsv"
"btc" -> "bch"
"bch" -> "bsv"
"blockchain" -> "bitcoin"