This guide assumes a fresh install of Mac OSX 10.7 Lion.
#!/bin/bash | |
# Restore Drupal content from remote server | |
REMOTE_PATH='root@v4324.vps.masterhost.ru:/var/www/vhosts/' | |
REMOTE_HTML='/httpdocs/' | |
HOME_PATH='/home/' | |
HOME_HTML='/public_html/' | |
if [ $1 == '' ] ; then |
def sun_position ( date, hour, longitude, latitude ): | |
""" | |
Calculates the position of the sun given a position and time. | |
Basically, all you need to know is here: | |
http://answers.google.com/answers/threadview/id/782886.html | |
""" | |
import time | |
from math import sin, cos, degrees, radians, acos | |
doy = int ( time.strftime( "%j", time.strptime( date, "%Y-%m-%d" ) ) ) |
$default_rounded_amount: 5px | |
// Round corner at position by amount. | |
@mixin round-corner($position, $amount: $default_rounded_amount) | |
border-#{$position}-radius: $amount | |
-webkit-border-#{$position}-radius: $amount | |
@mixin round-corner-mozilla($position, $amount: $default_rounded_amount) | |
-moz-border-radius-#{$position}: $amount | |
// Round left corners by amount |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
Now available on http://lesscss.org and NPM.
This release opens up the powerful branching capabilities of mixin guards and pattern-matching as an alternative to conditional statements.
In trying to stay as close as possible to the declarative nature of CSS, LESS has opted to implement conditional execution via guarded mixins, in the vein of @media
query feature specifications:
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.