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
# https://www.atlassian.com/git/tutorials/dotfiles | |
git clone --bare [email protected]:themusicman/conf.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; |
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 Help do | |
@moduledoc false | |
defmacro __using__(_opts) do | |
quote do | |
import Ecto.Changeset | |
import Ecto.Query | |
# other import, alais, and code ... | |
:ok |
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
[debug] Elixir.ER.Destinations.Manager.Server.start_destination_pipeline(%ER.Destinations.Destination{__meta__: #Ecto.Schema.Metadata<:loaded, "destinations">, id: "a23e555e-460d-4e32-9eb6-13da92897a22", name: "s3_users", offset: nil, ordered: false, destination_type: :s3, paused: false, config: %{"s3_bucket" => "eventrelay-dev", "s3_region" => "us-east-2"}, config_json: nil, topic_identifier: nil, group_key: nil, signing_secret: "X1KFbu42hJ2GOf6jcbKrRHIBGWjJ0djHMiffeD4X3fr5cWsxYP_bH7cF6wr464vs", query: nil, topic_name: "users", topic: #Ecto.Association.NotLoaded<association :topic is not loaded>, inserted_at: ~U[2024-01-02 21:14:01Z], updated_at: ~U[2024-01-02 21:14:01Z]} starting pipeline. pipeline=ER.Destinations.Pipeline.S3 | |
[debug] Elixir.ER.Destinations.Pipeline.S3.child_spec with child_spec=%{id: "Elixir.ER.Destinations.Pipeline.S3:base:destination:pipeline:s3:a23e555e-460d-4e32-9eb6-13da92897a22", shutdown: :infinity, start: {ER.Destinations.Pipeline.S3, :start_link, [[destination: %ER.Destinations.Des |
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
{ | |
"type": "streamDestroyed", | |
"cancelable": true, | |
"_defaultPrevented": false, | |
"stream": { | |
"id": "7e24f084-d971-46d6-936d-ced2ba4e2817", | |
"streamId": "7e24f084-d971-46d6-936d-ced2ba4e2817", | |
"name": "", | |
"creationTime": 1643809018166, | |
"connection": { |
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
# A map in Elixir is a key => value data structure | |
thomas = %{first_name: "Thomas", age: 38, job_title: "Director of Awesome"} | |
# There are multiple ways to update a Map in Elixir like | |
# put/3 - https://hexdocs.pm/elixir/Map.html#put/3 | |
thomas = Map.put(thomas, :age, 39) | |
%{first_name: "Thomas", age: 39, job_title: "Director of Awesome"} | |
# merge/2 - https://hexdocs.pm/elixir/Map.html#merge/2 |
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
<a href="http://spammer-site.com" rel="nofollow">Look at me</a> |
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
Legislator.search(params[:q], size: 10000).records.where(chamber: params[:chamber]).order('voting_sessions.score asc, last_name asc') |
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
PADRINO_ENV = 'test' unless defined?(PADRINO_ENV) | |
require File.expand_path(File.dirname(__FILE__) + "/../config/boot") | |
module Padrino | |
module RspecHelpers | |
def self.registered(app) | |
app.set :delivery_method, :test |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.com |
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
<?php | |
$category_group = 9; | |
$site_id = 1; | |
$state_list = array( | |
'AL'=>"Alabama", | |
'AK'=>"Alaska", | |
'AZ'=>"Arizona", | |
'AR'=>"Arkansas", |
NewerOlder