.
├── /build/ # Compiled output
├── /docs/ # Documentation
├── /node_modules/ # 3rd-party libraries and utilities
├── /src/ # The source code of the application
│ ├── /api/ # REST API / Relay endpoints
│ ├── /actions/ # Action creators that allow to trigger a dispatch to stores
from PIL import Image,ImageOps | |
import os | |
dir = os.listdir('./') | |
size = (300,300) # To the size 300 | |
for i in dir: | |
image = Image.open(i) | |
thumb = ImageOps.fit(image, size, Image.ANTIALIAS) | |
thumb.save(i) |
<link rel="stylesheet" href="http://goratchet.com/dist/ratchet.css" /> | |
<nav class="bar bar-tab"> | |
<a class="tab-item active" href="#"> | |
<span class="icon icon-home"></span> | |
<span class="tab-label">Home</span> | |
</a> | |
<a class="tab-item" href="#"> | |
<span class="icon icon-person"></span> | |
<span class="tab-label">Profile</span> | |
</a> |
// | |
// @functions | |
// | |
// RANGES | |
// We use these functions to define ranges for various things, like media queries. | |
@function lower-bound($range){ | |
@if length($range) <= 0 { | |
@return 0; |
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,900|Ubuntu:400' rel='stylesheet' type='text/css'> | |
<div class="plans"> | |
<div class="free personal"> | |
<div class="title">Free</div> | |
<div class="price">$0/month</div> | |
<div class="table"> | |
<table> | |
<tr> | |
<td>∞ Public Blocks</td> |
A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.
I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.
I'd love comments and suggestions about any of these.
I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.
I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".
description "Upstart script to run a nodejs app as a service" | |
author "Louis Chatriot" | |
env NODE_BIN=/usr/local/bin/node | |
env APP_DIR=/path/to/app/dir | |
env SCRIPT_FILE="scriptfile.js" # Entry point for the nodejs app | |
env LOG_FILE=/path/to/logfile.log | |
env RUN_AS="anyuser" # Upstart can only be run nicely as root, need to drop privileges | |
env SERVER_ENV="anything" # Usual apps can be run in different environments (development, test, production ...) | |
# I typically use the environment variable NODE_ENV (see below) |
Verifying that +iraycd is my Bitcoin username. You can send me #bitcoin here: https://onename.io/iraycd |
<?php if ( is_home() ) { // If on the homepage ?> | |
<!--/ Open Graph for Homepage /--> | |
<meta property="og:title" content="<?php echo get_bloginfo(strip_tags('name')) ?>" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="<?php echo home_url() ?>" /> | |
<meta property="og:description" content="<?php echo get_bloginfo (strip_tags('description')) ?>" /> | |
<meta property="og:site_name" content="<?php echo get_bloginfo(strip_tags('name')) ?>" /> | |
<meta property="og:image" content="http://unglove.me/path-to-thumbnail-image.jpg" /> | |
<?php } ?> |
from wheezy.web.authorization import authorize | |
from wheezy.web.handlers import BaseHandler | |
class AdminHandler(BaseHandler): | |
@authorize(roles=('admin',)) | |
def __call__(self): | |
method = self.request.method | |
if method == 'GET': |