Skip to content

Instantly share code, notes, and snippets.

#include <gtk/gtk.h>
#include <pango/pango.h>
#include <vte/vte.h>
static gboolean delete_event( GtkWidget *widget,
GdkEvent *event,
gpointer data )
{
return FALSE;
}
import Graphics.UI.Gtk
connectAction actg accg id accelerator command =
do action <- actionNew id "Go!" Nothing Nothing
actionGroupAddActionWithAccel actg action (Just accelerator)
actionSetAccelGroup action accg
actionConnectAccelerator action
on action actionActivated command
@thiagoarrais
thiagoarrais / gist:990815
Created May 25, 2011 11:37
XKCD was right!
First try:
http://en.wikipedia.org/wiki/Web_server
http://en.wikipedia.org/wiki/Hardware
http://en.wikipedia.org/wiki/Physical_property
http://en.wikipedia.org/wiki/Measurement
http://en.wikipedia.org/wiki/Units_of_measurement
http://en.wikipedia.org/wiki/Physical_quantity
http://en.wikipedia.org/wiki/Quantity
http://en.wikipedia.org/wiki/Property_(philosophy)

Software Architecture: It is (not) what you think

Original at http://www.ruthmalan.com/Journal/2014/2014JournalOctober.htm#Software_Architecture

In what follows, the caps are only meant to highlight the play on words. :-) It's just one of those ruff riffs, you know. The play is meant to highlight different understandings, not to suggest how the actual you reading here conceives of and delimits architecture. It is merely a thinking tool and rhetorical device. (Aside: "architect" may be a hat developers on the team all wear, or a role; we're setting that discussion aside here.)

“Software Architecture: It IS what you think” -- you already have a working knowledge of what software architecture is. Things like

  • Organizing structure of the system – components and relationships
@thiagoarrais
thiagoarrais / plus.html
Created October 25, 2016 17:02
TIL: Firefox renders this
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>MathML's Hello Square</title>
</head>
<body>
<p> This is a perfect square:</p>
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput, onClick)
-- see https://guide.elm-lang.org/architecture/
-- run with http://elm-lang.org/examples/buttons
main =
Html.beginnerProgram { model = model, view = view, update = update }
@thiagoarrais
thiagoarrais / elm-architecture-timepause.elm
Last active January 11, 2017 17:11
Trying to add a button to pause the clock (first exercise from https://guide.elm-lang.org/architecture/effects/time.html)
-- Read more about this program in the official Elm guide:
-- https://guide.elm-lang.org/architecture/effects/time.html
import Html exposing (Html)
import Svg exposing (..)
import Svg.Attributes exposing (..)
import Svg.Events exposing (onClick)
import Time exposing (Time, second)
@thiagoarrais
thiagoarrais / elm-architecture-websockets.elm
Last active January 13, 2017 17:04
version from the editor
-- Read more about this program in the official Elm guide:
-- https://guide.elm-lang.org/architecture/effects/web_sockets.html
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import WebSocket
{- OVERVIEW ------------------------------------------------------
A "Tree" represents a binary tree. A "Node" in a binary tree
always has two children. A tree can also be "Empty". Below I have
defined "Tree" and a number of useful functions.
This example also includes some challenge problems!
-----------------------------------------------------------------}