- AGB-001
- ASS101 screen
A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
-
The code will get better. Linus' Law: "given enough eyeballs, all bugs are shallow": we'll be able to get community contributions and bug reports, and thus the code will grow better faster than we can grow it ourselves. Also, Joy's Law - "No matter who you are, most of the smartest people work for someone else": we'll get better code from people who don't work for us than from people who do.
-
We'll write better code. Wall's 3rd great virtual of a programmer, Hubris: we'll write better code people we don't want other people to say bad things about us. We'll do better with the world watching than with just us.
-
Increased ability to hire. We're a 19k circ newspaper in a town most people have never heard of. Open source will help put us on the map, make us a place people actually might be interested in working.
-
When we do hire, we'll be able to hire pe
{%- macro form_field_label(field) -%} | |
<label for="{{ field.id }}">{{ field.label.text }} | |
{%- if field.flags.required -%} | |
<abbr title="Diese Feld muss angegeben werden">*</abbr> | |
{%- endif %}</label> | |
{% endmacro %} | |
{%- macro form_field_description(field) -%} | |
{% if field.description %} | |
<span class="descr">{{ field.description }}</span> |
from geventwebsocket.handler import WebSocketHandler | |
from gevent.pywsgi import WSGIServer | |
from flask import Flask, request, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return render_template('index.html') |
import Image | |
def is_the_same(base, test_image): | |
for i in range(len(base)): | |
if (base[i] - test_image[i]) != 0: | |
return False | |
return True | |
base = Image.open('base.png').getdata() | |
bad = Image.open('bad.png').getdata() |
" Vim syntax file | |
" Language: LESS Cascading Style Sheets | |
" Maintainer: Leaf Corcoran <[email protected]> | |
" Modifier: Bryan J Swift <[email protected]> | |
" URL: http://leafo.net/lessphp/vim/less.vim | |
" URL: http://gist.github.com/161047 | |
" Last Change: 2009 August 4 | |
" LESS by Leaf Corcoran | |
" CSS2 by Nikolai Weibull | |
" Full CSS2, HTML4 support by Yeti |