I hereby claim:
- I am philippeauriach on github.
- I am philippeauriach (https://keybase.io/philippeauriach) on keybase.
- I have a public key ASBhtST5hRBehtb_YiCYrEY0eyUHHCFdD7_c1LvMZz_orQo
To claim this, I am signing this object:
'use strict'; | |
module.exports = function(sequelize, DataTypes) { | |
var Fish = sequelize.define('Fish', { | |
scientificName: DataTypes.STRING, | |
bio: DataTypes.TEXT | |
}, { | |
classMethods: { | |
/*associate: function(models) { | |
// associations can be defined here | |
},*/ |
I hereby claim:
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 17r3ggGyk8N3zggQDyhT48swvYkgm3mNnP https://explorer.blockstack.org/address/17r3ggGyk8N3zggQDyhT48swvYkgm3mNnP |
/* eslint-env browser */ | |
const hasBlobConstructor = | |
typeof Blob !== 'undefined' && | |
(function() { | |
try { | |
return Boolean(new Blob()); | |
} catch (e) { | |
return false; | |
} |
/* | |
Usecase : you want a generic component for a text input with a title, | |
you create a component accepting a title props, returning a TextView along a TextInput. | |
For ease of use, this new component uses React.forwardRef to allow passing a ref to the TextInput. | |
BUT, you want this generic component to handle the case "when I click the title I focus the input), | |
so you need to "intercept" the forward ref | |
*/ | |
interface MyCustomInputProps { |
// when the user actullay uses your app (eg create something, or consults something important) | |
StoreReviewHelper.incrementEventCount() | |
// when the use may have the time to review the app (will not always show the review prompt, only if the event count is matched and Apple decides to show it) | |
StoreReviewHelper.checkAndAskForReview() |
# I add trouble having a successful "Valid cache" using Rome and latest version of Realm. | |
# After (a lot) of trial and errors, here is the ocnfiguration that works (Realm is not rebuilt everytime anymore) | |
repositoryMap: | |
- realm-cocoa: | |
- name: Realm | |
platforms: [iOS] | |
- name: Realm | |
type: static | |
platforms: [iOS] |