brian wickman - @wickman
[TOC]
Pants makes the manipulation and distribution of hermetically sealed Python environments
| # Create background noise profile from mp3 | |
| /usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
| # Remove noise from mp3 using profile | |
| /usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
| # Remove silence from mp3 | |
| /usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
| # Remove noise and silence in a single command |
| # coding: utf-8 | |
| # FILE: | |
| # ----- | |
| # /mnt/Vancouver/apps/Webcam-Face-Detect/webcam_cv3_v2_fps_v3.py | |
| # FUNCTIONALITY: | |
| # -------------- | |
| # * outputs webcam to screen and finds faces, eyes | |
| # * writes webcam video to *.avi file (MJPG codec) via OpenCV/FourCC |
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/python | |
| # import module | |
| import smbus # use I2C | |
| import math # mathmatics | |
| from time import sleep # time module | |
| # | |
| # define |
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/python | |
| # import module | |
| import smbus # use I2C | |
| import math # mathmatics | |
| from time import sleep # time module | |
| # | |
| # define |
| #!/usr/bin/env python | |
| from pygame import camera | |
| import pygame | |
| import time | |
| import cv | |
| import os | |
| # Recognition |
| application: you-app-name-here | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| default_expiration: "30d" | |
| handlers: | |
| - url: /(.*\.(appcache|manifest)) | |
| mime_type: text/cache-manifest |
thanx: AzizLight/moc-on-osx.md
最近升级到 了 MAC OS X 10.9 Mavericks, 一直以来使用 brew 安装的 MOCP 这就不成了,决定折腾清楚,并分享大家
| // email 所在的列,从0开始算。email 作为唯一标示,用于去重。 | |
| var emailColumn = 1; | |
| // 电子表格的 doc key | |
| key = "0AhIp-TG_44qxdHFnTDFUeDNOUEp2LVVpbmVMa25QQVE"; | |
| /** | |
| * 统计报名人数,根据 email 唯一标示去除重复的报名。 | |
| */ | |
| function countUniqueRows() { |