Skip to content

Instantly share code, notes, and snippets.

#The Problem with Social Media

I think the biggest problem with social-media as it has become is that each person's experience is centered around themself. This creates an unavoidable sensation of being the center of the online universe. It fails to foster any sense of a shared community.

And while there are advantages that come with a consolidated internet identity that is tied to our "real-world" identities it places us at a disadvantage to trolls and causes us to filter our opinions for fear of real world repercussions.

Finally, 140 characters is both a blessing and curse. Feeling free to say something without feeling compelled to write more than a sentence or two is liberating, but the limitation it places all too often strip away all context.

I hate "the internet hate machine", though at the time it often feels like the right thing to do.

@edubkendo
edubkendo / README.md
Last active August 29, 2015 14:08 — forked from rbishop/README.md

Generate a new Elixir project using mix and add cowboy and plug as dependencies in mix.exs:

  defp deps do
    [
      {:cowboy, "~> 1.0.0"},
      {:plug, "~> 0.8.1"}
    ]
  end

Keybase proof

I hereby claim:

  • I am edubkendo on github.
  • I am edubkendo (https://keybase.io/edubkendo) on keybase.
  • I have a public key whose fingerprint is 0947 3BCF 2B39 BC84 5C9F BDF7 7819 AEF0 160E 2BF6

To claim this, I am signing this object:

@edubkendo
edubkendo / gist:549560113cb1ea11d5a4
Created October 26, 2014 10:46
Taken from the tutorial at http://t.co/7rH5lfyAvt and fixing for a few of the changes in Elm since it was filmed.
import Mouse
import Window
import Random
import Text
(width, height) = (400, 400)
(hWidth, hHeight) = (width / 2, height / 2)
relativeMouse : (Int, Int) -> (Int, Int) -> (Int, Int)
relativeMouse (ox, oy) (x, y) = (x - ox, -(y - oy))

Following the examples in Phoenix-Guides:Router/Scoped Routes with the below code:

defmodule HelloPhoenix.Router do
  use Phoenix.Router

  resources "/reviews", ReviewController

  scope path: "/admin", helper: "admin" do
      resources "/reviews", Admin.ReviewController
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'custom-theme-load-path "~/.emacs.d/base16")
(add-to-list 'load-path "~/.emacs.d/powerline")
(load-theme 'base16-eighties t)
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "http://melpa-stable.milkbox.net/packages/") t)
(push '("marmalade" . "http://marmalade-repo.org/packages/")
defmodule Issues.Mixfile do
use Mix.Project
def project do
[app: :issues,
version: "0.0.1",
elixir: "~> 1.0.0-rc2",
escript: escript_config,
deps: deps]
end
require 'spec_helper'
describe Transformer::Core do
let(:instance) { Transformer::Core.new({}) }
describe 'external provider' do
it { expect { instance.external_provider }.to raise_error }
end
end
@edubkendo
edubkendo / server.ex
Created September 26, 2014 03:37
Cooler elixir stack: Now with push
defmodule Stack.Server do
use GenServer
def handle_call(:pop, _from, stack) do
[ head | tail] = stack
{ :reply, head, tail }
end
def handle_cast({:push, data_to_push}, stack) do
{ :noreply, [ data_to_push | stack ] }
@edubkendo
edubkendo / server.ex
Created September 26, 2014 02:59
a stack in elixir
defmodule Stack.Server do
use GenServer
def handle_call(:pop, _from, stack) do
[ head | tail] = stack
{ :reply, head, tail }
end
end