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
export default { | |
AC: [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", | |
"Capixaba", | |
"Cruzeiro do Sul", | |
"Epitaciolândia", | |
"Feijó", |
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
# https://developer.mixpanel.com/docs/ios-push-notifications#importing-device-tokens | |
MIXPANEL_TOKEN = "" | |
def get_distinct_id(user_id) | |
user_id | |
end | |
def to_hex(s) | |
# s.unpack('U'*s.length).collect{|x| x.to_s 16}.join |
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
// In the project I used zendrive I was using cocoapods. | |
// So I added the following row in the Podfile and ran pod install | |
// pod 'ZendriveWrapper', :path => './../node_modules/react-native-zendrive/ios' | |
// Than I added linsteners to zendrive events: | |
// FOR IOS | |
import ZendriveWrapper from 'react-native-zendrive'; | |
import { NativeEventEmitter } from 'react-native'; | |
const zdEmitter = new NativeEventEmitter(ZendriveWrapper); |
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
const tests = [ | |
{ desc: 'case 1', params: { name: 'name 1' } }, | |
{ desc: 'case 2', params: { name: 'name 2', birthday: '19/02' } }, | |
] | |
tests.forEach((test) => { | |
it(`${test.desc}`, function*() { | |
// run test with test.params | |
}) | |
}) |
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
function CalledMoreThanExpected(meta = {}) { | |
this.name = 'CalledMoreThanExpected' | |
this.message = 'Function called more than the expected times' | |
this.meta = meta | |
this.stack = (new Error()).stack | |
} | |
CalledMoreThanExpected.prototype = Error.prototype | |
CalledMoreThanExpected.prototype.constructor = CalledMoreThanExpected |