Skip to content

Instantly share code, notes, and snippets.

@liyonghelpme
liyonghelpme / gist:5567114
Created May 13, 2013 09:12
生成字体描边的一些问题
描边和字体大小的关系
普通黑体:
13号大小: 普通细黑体 0.1 个阴影宽度就可以了 45 角度旋转一下
大粗体问题 :
13号大小: 0.2 字体大小 阴影宽度 角度增加一些 减少锯齿 每30角度 颜色 5 5 5 使用更深的阴影颜色可以 减少颜色外漏
#coding:utf8
f = open('nk.txt').readlines()
words = []
for l in f:
words.append(l[:-1])
#print l[:-1]
#words = [
#'fuck',
#'干你妹啊',
#]
# -*- coding: utf-8 -*-
import os
import Image
import sys
import ImageOps
import MySQLdb
import codecs
#得到最小 2次幂值
def getMin2(v):
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
AF_DCMotor Motor1(1);
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HMC5883L.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HMC5883L.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HMC5883L.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HMC5883L.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
#include <NewPing.h>
#include <AFMotor.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HMC5883L.h>
#define TRIGGER_PIN 14
#define ECHO_PIN 15
#define MAX_DISTANCE 200
#!/usr/bin/env bash
if [[ ! ( # any of the following are not true
# 1st arg is an existing regular file
-f "$1" &&
# ...and it has a .ipa extension
"${1##*.}" == "ipa" &&
# 2nd arg is an existing regular file
-f "$2" &&
# ...and it has an .mobileprovision extension