Skip to content

Instantly share code, notes, and snippets.

@akinadebowale
akinadebowale / react_components_talking_child_to_parent.js
Last active February 14, 2019 13:54
React components talking / child to parent.
import React from "react";
import { TouchableHighlight } from "react-native";
export class Parent extends React.Component {
constructor(props) {
super(props);
this.state = {
value: null
};
// Remember to bind methods.
@akinadebowale
akinadebowale / react_components_talking_grandchild_to_child_to_parent.js
Last active February 14, 2019 13:54
React components talking / grandchild to child to parent.
import React from "react";
import { TouchableHighlight } from "react-native";
export class Parent extends React.Component {
constructor(props) {
super(props);
this.state = {
value: null
};
// Remember to bind methods.

Homebrew Permissions Denied Issues Solution

Installing and fixing node.JS


brew install node

from django.conf import settings
import requests
import base64
def get_mp_segmentation_event_view_product_curl_conversion_example():
"""
curl https://mixpanel.com/api/2.0/segmentation/ \
-u YOUR_API_SECRET: \
-d from_date="2017-01-01" -d to_date="2017-01-28" -d event="view_product"