Skip to content

Instantly share code, notes, and snippets.

server {
listen 80;
listen [::]:80;
server_name www.bbb.com;
location / {
proxy_pass http://www.aaa.com;
}
}
#!/usr/bin/python
import sys
import string
import re
word_separator = re.compile('(?:,|\n)')
filename = sys.argv[1]
filedata = open(filename).read()
//
// UIImageView+RatingStar.h
// RatingImageDemo
//
// Created by Alex Rezit on 25/01/2013.
// Copyright (c) 2013 Seymour Dev. All rights reserved.
//
#import <UIKit/UIKit.h>
#!/bin/bash
echo Processing file: $1;
sips -Z $(($(sips -g pixelHeight "$1" | cut -s -d ':' -f 2 | cut -c 2-) / 2)) "$1" --out "resized_$1" &> /dev/null
//
// MainViewController.m
// VMovier
//
// Created by Alex Rezit on 17/12/2012.
// Copyright (c) 2012 Seymour Dev. All rights reserved.
//
#pragma mark - View control

V 电影招募 Python / PHP 攻城师和前端攻城师

简介

V 电影 (http://www.vmovier.com/) 是国内最大的微电影平台. 我们是一家初创公司, 由一群经验丰富, 富有激情的年轻人组成. 现招募 Python 和 PHP 攻城狮. 人生总有一段无缘无故想要飞翔的岁月, 我们称之为青春. 加入 V 电影, 我们一起飞翔. 或许你受够了在一家大公司做一颗普通的螺丝钉, 面对那些 "bullshit” 产品经理; 或许你是刚刚毕业不想循规蹈矩的有志青年. 那么, 加入一家注定伟大的公司初始核心团队, 与最文艺的 geek 一起奋斗, 或许这一次你离梦想真的很近.

职位要求

Python / PHP 攻城师

//
// RAPIUtils.h
// RKit
//
// Created by Alex Rezit on 08/11/2012.
// Copyright (c) 2012 Seymour Dev. All rights reserved.
//
#import <Foundation/Foundation.h>
@AlexRezit
AlexRezit / gist:4073473
Created November 14, 2012 17:23
my sudo alias
echo 'from sys import argv
try:
command = argv[1]
print "sudo: %s: command not found" % command
except:
print """usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ..."""' > ~/.sudo.py
static NSOperationQueue *__updateUIQueue;
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
if (!__updateUIQueue) {
__updateUIQueue = [[NSOperationQueue alloc] init];
}
[__updateUIQueue addOperationWithBlock:^{
while (TRUE) {