build 1.6.0_24-b07 Oracle Binary Code License Agreement http://www.oracle.com/technetwork/java/javase/terms/license/index.html
v2.7.3
| extern crate clap; | |
| extern crate reqwest; | |
| #[macro_use] | |
| extern crate serde_derive; | |
| #[macro_use] | |
| extern crate serde_json; | |
| use std::env; | |
| use std::fs::File; | |
| use std::io::{self, Read, BufReader}; |
| #!/bin/bash | |
| trim() { | |
| local var="$*" | |
| var="${var#"${var%%[![:space:]]*}"}" | |
| echo -n "${var%"${var##*[![:space:]]}"}" | |
| } | |
| parseprocfile() { | |
| local IFS=":" |
| $ mkdir helloworld | |
| $ cd helloworld | |
| $ git init . | |
| $ virtualenv .venv | |
| $ .venv/bin/pip install Flask | |
| $ echo "*.pyc" > .gitignore | |
| $ cat <<EOF > app.py | |
| from os import getenv | |
| from flask import Flask |
| from itertools import groupby | |
| from operator import attrgetter | |
| from django.db import models | |
| class Item(models.Model): | |
| name = models.CharField(max_length=255) | |
| class ItemCountAggregate(models.Model): | |
| item = models.ForeignKey(Item, related_name="count_aggregates") |
| /* | |
| * Abbreviated version of the yacc grammar used by at(1). | |
| */ | |
| %token <charval> DOTTEDDATE | |
| %token <charval> HYPHENDATE | |
| %token <charval> HOURMIN | |
| %token <charval> INT1DIGIT | |
| %token <charval> INT2DIGIT | |
| %token <charval> INT4DIGIT |
| import av | |
| from av import AV | |
| video_codec_opts = {"moov": "start"} # put the moov header at the front of the file | |
| audio_codec_opts = {'codec': 'libfdk_aac'} # default libfaac | |
| with open("source.mov") as fd: | |
| vid = AV(fd) | |
| vid.resize(720, 480) | |
| vid.transcode_video(av.H264, **video_codec_opts) |
| import os | |
| import struct | |
| from io import BytesIO | |
| from pycoin.block import Block | |
| def read_uint32(fd): | |
| return struct.unpack(b'<I', fd.read(4))[0] | |
| def parse_file(block_file): |
| /* | |
| * Abbreviated version of the yacc grammar used by at(1). | |
| */ | |
| %token <charval> DOTTEDDATE | |
| %token <charval> HYPHENDATE | |
| %token <charval> HOURMIN | |
| %token <charval> INT1DIGIT | |
| %token <charval> INT2DIGIT | |
| %token <charval> INT4DIGIT |
| import cPickle as pickle | |
| class Pager(object): | |
| def __init__(self, sequence, start_index=0): | |
| self.sequence = sequence | |
| self.start_index = start_index | |
| def __iter__(self): |
build 1.6.0_24-b07 Oracle Binary Code License Agreement http://www.oracle.com/technetwork/java/javase/terms/license/index.html
v2.7.3