Skip to content

Instantly share code, notes, and snippets.

View yoamomonstruos's full-sized avatar

Tom Bates yoamomonstruos

View GitHub Profile
@yoamomonstruos
yoamomonstruos / gist:1299529
Created October 19, 2011 20:14
CSM: Processing
/**
* Minor modifications (by Rebecca, Angus, Ben) to
* Shared Drawing Canvas (Client)
* by Alexander R. Galloway.
*
* The Processing Client class is instantiated by specifying a remote
* address and port number to which the socket connection should be made.
* Once the connection is made, the client may read (or write) data to the server.
* Before running this program, start the Shared Drawing Canvas (Server) program.
*/
@yoamomonstruos
yoamomonstruos / Toms Numbers
Created March 14, 2012 17:39
Drawing random numbers like robot
void setup() {
size(600, 600);
background(255, 255, 255);
frameRate(10);
}
void draw() {
// Random Colour Generator
float r = random(0, 255);
float g = random(0, 255);
@yoamomonstruos
yoamomonstruos / api.rb
Created March 23, 2012 15:00
Idea API
require "sinatra"
require "sinatra/reloader"
require "json"
require "mongoid"
set :sessions, true
# ===================================
# = Let's define our configurations =
(function(){
_.templateSettings = {
interpolate : /\{\{(.+?)\}\}/g, // print value: {{ value_name }}
evaluate : /\{%([\s\S]+?)%\}/g, // excute code: {% code_to_execute %}
escape : /\{%-([\s\S]+?)%\}/g // excape HTML: {%- <script> %} prints &lt;script&gt;
};
// Setting up some shit.
// Using our own namespace.
@yoamomonstruos
yoamomonstruos / Pretty != Functional
Created August 20, 2012 21:20
A rant on the current state of digital design.
Trends seem to be becoming more and more of a plague within design. With the rise of sites such as Dribbble, Forsst and the likes, these trends are increasingly being reinforced by talented but narrow minded "designers". Why the quotations? Because I'm becoming more and more skeptical about where we draw the line between design and simply making something look pretty.
Lately, I've been not only thinking about how artificial intelligence and computer learning play a roll in todays society, but also how it will affect our future. What stops a machine from knowing what is trendy and aesthetically pleasing to us and then apply that style to a predefined template or wireframe? Would that still be classed as design? And that in turn leads me to question whether a lot of the design we see online today is actually design or just "designers" applying a trending style without thinking about a greater picture. If I have a wireframe and then download a bunch of freebies and apply those styles to that wireframe, is that
@yoamomonstruos
yoamomonstruos / modules.rb
Created October 27, 2012 12:07
Playing with modules. Is it correct?
require "sinatra/base"
module BoldTypes
module Authentication
def self.registered(app)
app.helpers BoldTypes::Helpers::Authentication
app.get "/" do
"#{testing}"
end
end
var DSB = {};
DSB.buildBoxes = function( count ) {
for( var _i = 0; _i < count; _i++ ) {
var el = document.getElementById("content");
var box = document.createElement("div");
box.classList.add("box");
el.appendChild(box);
@yoamomonstruos
yoamomonstruos / ants.md
Created November 22, 2012 22:34
A queen ant, a hacker and a sci-fi writer walk into a bar.

Humankind has always had a bit of an obsession with creating a utopian society, not that any have yet come to fruition. A fair number of ideas on how a utopian society could be achieved appear in the form of science fiction novels and other mainstream media. It fascinates me that an apparent trend is forming that links science to the forming of a perfect society, which could imply that it is not in human nature to live harmoniously and prosperously. More importantly perhaps this states that we require some kind of higher being to keep us in balance, whether it be biological or technological. It is interesting to think that there may have been some point where we stopped believing that a philosophical solution was the answer and instead chose to adopt technology to fix flaws in our nature. Is the solution to a utopian society based in creating a technological solution that will keep us on the right path and solve all the problems we have today, or should we listen to the warnings of science fiction and steer c

➜ goCardless git:(dev) rake db:create db:schema:load db:seed
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
=> Starting GoCardless in live-development
gc-live already exists
grapi_test already exists
rake aborted!
Address family not supported by protocol family - bind(2)
/Users/hola/Dropbox/Github/gocardless/config/initializers/feature.rb:34:in `block in <top (required)>'
/Users/hola/Dropbox/Github/gocardless/config/initializers/feature.rb:31:in `<top (required)>'
/Users/hola/Dropbox/Github/gocardless/config/environment.rb:5:in `<top (required)>'
@yoamomonstruos
yoamomonstruos / rant.md
Last active December 12, 2015 02:49
A rant on the current state of design

Trends seem to be becoming more and more of a plague within design. With the rise of sites such as Dribbble, Forsst and the likes, these trends are increasingly being reinforced by talented but narrow minded "designers". Why the quotations? Because I'm becoming more and more skeptical about where we draw the line between design and simply making something look pretty.

Lately, I've been not only thinking about how artificial intelligence and computer learning play a roll in todays society, but also how it will affect our future. What stops a machine from knowing what is trendy and aesthetically pleasing to us and then apply that style to a predefined template or wireframe? Would that still be classed as design? And that in turn leads me to question whether a lot of the design we see online today is actually design or just "designers" applying a trending style without thinking about a greater picture. If I have a wireframe and then download a bunch of freebies and apply those styles to that wireframe, is that