Skip to content

Instantly share code, notes, and snippets.

//
//
// NTSolar.swift
//
// Created by Neil Tiffin on 5/8/19.
// Copyright © 2019 Performance Champions, Inc.
// Copyright © 2019 Neil Tiffin.
//
// Released to the public domain by Neil Tiffin, May 2019
// Released to the public domain by Performance Champions, Inc., May 2019
@mpaleo
mpaleo / rndriver.js
Created January 2, 2017 19:22
Lowdb react native driver based on RNFS
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));

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 October 20, 2023 08:28
How to re-sign an iOS app with another developer account

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.

#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;
@alotaiba
alotaiba / google_text2speech.md
Created February 3, 2012 07:31
Google Text to Speech API

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 January 26, 2012 22:04
Builds and deploys an App to testflightapp.com. Integrates with Teamcity.
#!/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 February 27, 2011 18:25
Build libimobiledevice from source easily...
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 ../../