Skip to content

Instantly share code, notes, and snippets.

@ojas
ojas / trump.py
Created October 25, 2016 20:37
Trump-ify
#!/usr/bin/env python
def trumpify(x):
return '“Nobody %s more than me.” – Donald Trump' % x
if __name__ == "__main__":
things = ['repects women', 'understands the horror of nuclear', 'reads the Bible', ]
for thing in things:
print(trumpify(thing))

Tom Sachs’ 10 Bullets

!?10 Bullets by Tom Sachs on YouTube

1. Work to Code, Creativity Is The Enemy

  • Working to code means, when working at Tom Sachs’ studio, it’s important to remember that there is a system already in place. New ideas will be carefully built on top of those preexisting. Inventions should be conceived out of necessity and not to convenience of the individual.
  • As the video puts it simply, “Work to code.”

2. Sacred Space

How To Work Better

1 DO ONE THING
            AT A TIME
2 KNOW THE PROBLEM
3 LEARN TO LISTEN
4 LEARN TO ASK
         QUESTIONS
5 DISTINGUISH SENSE

Agile Manifesto

We are uncovering better ways of developing software by doing it and helping others do it.

Through this work we have come to value:

  • Individuals and interactions over processes and tools
  • Working software over comprehensive documentation
  • Customer collaboration over contract negotiation
  • Responding to change over following a plan

Dieter Rams’ Ten Principles to Good Design

  1. Good design is innovative - The possibilities for innovation are not, by any means, exhausted. Technological development is always offering new opportunities for innovative design. But innovative design always develops in tandem with innovative technology, and can never be an end in itself.
  2. Good design makes a product useful - A product is bought to be used. It has to satisfy certain criteria, not only functional, but also psychological and aesthetic. Good design emphasises the usefulness of a product whilst disregarding anything that could possibly detract from it.
  3. Good design is aesthetic - The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.
  4. Good design makes a product understandable - It clarifies the product's structure. Better still, it can make the product talk. At best, it is self-explanatory.
  5. Good design is un
@ojas
ojas / _index.md
Last active June 30, 2023 12:28
Rules

Rules

@ojas
ojas / cornify.user.js
Last active August 27, 2022 18:31
User Scripts
// @include http://www.mozu.com/*
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = 'http://www.cornify.com/js/cornify.js';
script.onload = function() {
for(var i=0; i<12; i++) cornify_add();
}
document.head.appendChild(script);
@ojas
ojas / The Path to Freedom.md
Last active June 19, 2022 06:48
The Path to Freedom - by Carl Sagan & Ann Druyan

The Path to Freedom

We must not believe the many, who say that only free people ought to be educated, but we should rather believe the philosophers who say that only the educated are free. – Epictetus, Roman philosopher and former slave, Discourses

Frederick Bailey was a slave. As a boy in Maryland in the 1820s, he had no mother or father to look after him. ('It is a common custom,' he later wrote, 'to part children from their mothers . . . before the child has reached its twelfth month.') He was one of countless millions of slave children whose realistic prospects for a hopeful life were nil.

@ojas
ojas / nginx.txt
Created June 7, 2019 19:44
uwsgi & nginx
server {
listen 80;
server_name tch-activity.apps.sage-iq.com;
root /opt/www/tch-activity;
location / {
return 301 https://$host$request_uri;
}
location /.well-known {
alias /opt/www/tch-activity/.well-known;
}
@ojas
ojas / Truncated.md
Created October 23, 2018 16:32
Election 2018

Partisan Races

U.S. Senate, governor, and other statewide offices, U.S. House of Reps., Texas Legislature, Travis Co. offices, judicial races at all levels

Go ahead and vote straight-ticket Democrat. It's OK. This will be your last chance in any event (straight-ticket voting is going away after this election). Just don't forget to scroll through the ballot to get to the rest of these contests.

Austin City Council

  • Mayor: Steve Adler*
  • District 1: Natasha Harper-Madison and Vincent Harding