This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include "sqlite3.h" | |
#include <ctype.h> | |
#include <stdarg.h> | |
#include <time.h> | |
#include "sqlite3_recover.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
protocol StoredObject { | |
associatedtype Primitive | |
func toPrimitive() -> Primitive? | |
static func from(primitive: Primitive) -> Self? | |
} | |
protocol StoredAsSelf: StoredObject where Primitive == Self { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static byte[] nv12ScaleDown(byte[] bytes, int width, int height) { | |
int newWidth = width >> 1; | |
int newHeight = height >> 1; | |
byte []result = new byte[bytes.length >> 2]; | |
final int sourceOffset = width * height; | |
final int destOffset = newWidth * newHeight; | |
for (int h = 0; h < newHeight; h++) { | |
for (int w = 0; w < newWidth; w++) { | |
// manipulate y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
#define PI 3.1415927 | |
#define PI2 2.0 * PI | |
#define FX_MIN_DURATION 0.1 | |
#define FX_GAP 4.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "RCTLocationObserver.h" |