Skip to content

Instantly share code, notes, and snippets.

Chau Thai chauthai

Block or report user

Report or block chauthai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mpaleo
mpaleo / rndriver.js
Created Jan 2, 2017
Lowdb react native driver based on RNFS
View rndriver.js
import RNFS from 'react-native-fs';
module.exports = {
read: (source) =>
{
return RNFS.exists(source).then((fileExists) =>
{
if (fileExists)
{
return RNFS.readFile(source).then((data) => JSON.parse(data));
View gist:598fa75e22bdfa44cf47

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@chaitanyagupta
chaitanyagupta / re-sign-ios-app.md
Last active May 11, 2019
How to re-sign an iOS app with another developer account
View re-sign-ios-app.md

WARNING These steps are probably out dated and will not work.

To re-sign an iOS app with another developer account, ensure that the following are in place first.

  1. Distribution certificate of the other developer account
  2. A provisioning profile from the other developer account

Note that the Apple requires bundle IDs to be globally unique, even across accounts. So a bundle ID i.e. CFBundleIdentifier from one account can't be used in a different account, even though the team id/prefix would be different.

Ensure that the new distribution certificate is in your keychain and the new provisioning profile on your disk.

View SMTest.h
#import "BAAObject.h"
#import <CoreLocation/CoreLocation.h>
@interface SMTest : BAAObject
@property (nonatomic, assign) NSInteger myInteger;
@property (nonatomic, assign) double latitude;
@property (nonatomic, assign) double longitude;
- (CLLocationCoordinate2D)coordinate;
View google_text2speech.md

Google Text to Speech API

Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.

GET

q
The query string to convert to audio

tl
Translation language, for example, ar for Arabic, or en-us for English

@JohannesRudolph
JohannesRudolph / TestflihtappDeployTeamcity.sh
Created Jan 26, 2012
Builds and deploys an App to testflightapp.com. Integrates with Teamcity.
View TestflihtappDeployTeamcity.sh
#!/bin/bash
#
# testflightapp.com tokens
API_TOKEN="YOUR_API_TOKEN"
TEAM_TOKEN="YOUR_TEAM_TOKEN"
PRODUCT_NAME="RowMotion"
ARTEFACTS="$PWD/Artefacts"
@boxingsquirrel
boxingsquirrel / libimobiledevice-build-without-root.sh
Created Feb 27, 2011
Build libimobiledevice from source easily...
View libimobiledevice-build-without-root.sh
echo "Building libplist..."
git clone http://cgit.sukimashita.com/libplist.git/ > /dev/null
cd libplist
mkdir build
cd build
cmake --prefix=/usr ..
make
sudo make install
cd ../../
You can’t perform that action at this time.