- normalize.css is cooler than a reset
- Everyone is using a preprocessor -- SASS or LESS
- Shinier image replacement technique
- border-box will change your life
- Nice media query cheatsheet
- The book on CSS3
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"time" | |
) | |
const numWorkers = 3 |
# username = "my_username" | |
# pwd = "my_password" | |
# target_path = "my_target_path" | |
# saving auth cookie | |
system %Q{wget --save-cookies /tmp/cookie.txt --keep-session-cookies --post-data "username=#{username}&password=#{pwd}" -O - \ | |
https://rubytapas.dpdcart.com/subscriber/login?__dpd_cart=d08391e6-5fe2-4400-8b27-2dc17b413027} | |
(25..600).each do |i| |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<?php | |
namespace DomainObjects; | |
class Account | |
{ | |
protected $balance = 0; | |
function __construct($initialBalance) { | |
$this->balance = $initialBalance; | |
} |
class Babby < PragnentGirl::GetPragnent | |
attr_accessible :name, :mother, :location, :pragnent_girl_id | |
belongs_to :pragnent_girl | |
before_save :destroy_instain_mothers | |
after_save :pary_for_father | |
#How is babby formed? |
class Rort1 < RTanque::Bot::Brain | |
include RTanque::Bot::BrainHelper | |
NAME = self.to_s | |
TURRET_FIRE_RANGE = RTanque::Heading::ONE_DEGREE * 15.0 | |
WALL_DETECTION_DISTANCE = 50 | |
def tick! | |
check_hit! | |
@friendly_fire = true if sensors.button_down?('f') |
A slightly updated version of this doc is here on my website.
I visited with PagerDuty yesterday for a little Friday beer and pizza. While there I got started talking about Go. I was asked by Alex, their CEO, why I liked it. Several other people have asked me the same question recently, so I figured it was worth posting.
The first 1/2 of Go's concurrency story. Lightweight, concurrent function execution. You can spawn tons of these if needed and the Go runtime multiplexes them onto the configured number of CPUs/Threads as needed. They start with a super small stack that can grow (and shrink) via dynamic allocation (and freeing). They are as simple as go f(x)
, where f()
is a function.
ut4_casa | |
ut4_bohemia | |
ut4_kingdom | |
ut4_turnpike | |
ut4_abbey | |
ut4_cascade | |
ut4_prague | |
ut4_mandolin | |
ut4_uptown | |
ut4_algiers |