Skip to content

Instantly share code, notes, and snippets.

View kenwheeler's full-sized avatar
🌭
PRs Welcome

Ken Wheeler kenwheeler

🌭
PRs Welcome
View GitHub Profile
import React, { Component } from 'react';
import {
FlatList,
StyleSheet,
Text,
View,
Platform,
ActivityIndicator,
} from 'react-native';
class Whatever extends React.Component {
constructor(props) {
super(props);
this.state = {
a: 5 + props.b;
};
this.offset = 0;
this.someEvent = this.someEvent.bind(this);
}
componentWillReceiveProps(nextProps) {
open ReactNative;
/* Types */
type sourceItemDimensions = {
x: float,
y: float,
width: float,
height: float
};

Ken Wheeler Music Production Gist

DAWs

  • Ableton (Currently using)
  • Bitwig (Comes highly recommended)
  • Logic Pro (What I traditionally used)

Recording

<html>
<head>
<title>Bluetooth Demo</title>
</head>
<body>
<button type="button" id="connect">Connect</button>
<button type="button" id="fire">FIRE</button>
<input type="range" max="1023" min="0" value="512" id="pan" />
open ReactNative;
/* Variables */
let windowWidth = (Dimensions.get `window)##width;
let initialRegion = {
"latitude": 47.651857,
"longitude": (-122.3552919),
"latitudeDelta": 0.001,
"longitudeDelta": 0.001
let scheduleItemPress args self => {
let (x, y, width, height, item, index) = args;
/* Handle target dimensions */
let fx = float_of_int x;
let fy = float_of_int y;
let fw = float_of_int width;
let fh = float_of_int height;
let targetDimensions = {x: fx, y: fy, width: fw, height: fh};
self.ReasonReact.update handleTargetDimensions targetDimensions;
/* Set modal coords based upon clicked item */
open ReactNative;
type _state = {mutable elementRef: option ReasonReact.reactRef};
let setRef theRef {ReasonReact.state: state} => state.elementRef = Js.Null.to_opt theRef;
type item =
Js.t {
.
id : string,
open ReactNative;
type targetDimensions = {
x: float,
y: float,
width: float,
height: float
};
type _state = {