日時: | 2016-12-10 |
---|---|
作: | @voluntas |
バージョン: | 0.1.1 |
url: | https://voluntas.github.io/ |
概要
import 'package:flutter/material.dart'; | |
void main() => runApp(TestApp()); | |
class TestApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData( | |
primaryColor: Colors.green[900], |
日時: | 2016-12-10 |
---|---|
作: | @voluntas |
バージョン: | 0.1.1 |
url: | https://voluntas.github.io/ |
概要
extension PHPhotoLibrary { | |
typealias PhotoAsset = PHAsset | |
typealias PhotoAlbum = PHAssetCollection | |
static func saveImage(image: UIImage, albumName: String, completion: (PHAsset?)->()) { | |
if let album = self.findAlbum(albumName) { | |
saveImage(image, album: album, completion: completion) | |
return | |
} |
/* | |
ofxFaceTracker provides an interface to Jason Saragih's FaceTracker library. | |
getImagePoint()/getImageMesh() are in image space. This means that all the | |
points will line up with the pixel coordinates of the image you fed into | |
ofxFaceTracker. | |
getObjectPoint()/getObjectMesh() are in 3d object space. This is a product of | |
the mean mesh with only the expression applied. There is no rotation or | |
translation applied to the object space. |
// | |
// FileUploader.swift | |
// | |
// Copyright (c) 2015 Narciso Cerezo Jiménez. All rights reserved. | |
// Largely based on this stackoverflow question: http://stackoverflow.com/questions/26121827/uploading-file-with-parameters-using-alamofire/28467829// | |
import Foundation | |
import Alamofire | |
private struct FileUploadInfo { |
#!/usr/bin/env bash | |
# Check that terminfo exists before changing TERM var to xterm-256color | |
# Prevents prompt flashing in Mac OS X 10.6 Terminal.app | |
if [ -e /usr/share/terminfo/x/xterm-256color ]; then | |
export TERM='xterm-256color' | |
fi | |
# Turn off standout; turn off underline | |
tput sgr 0 0 |
<div id="prefetch"> | |
<input class="typeahead" type="text" placeholder="Countries"> | |
</div> |
// | |
// AVAsset+VideoOrientation.h | |
// | |
// Created by Luca Bernardi on 19/09/12. | |
// Copyright (c) 2012 Luca Bernardi. All rights reserved. | |
// | |
#import <AVFoundation/AVFoundation.h> | |
typedef enum { | |
LBVideoOrientationUp, //Device starts recording in Portrait |