Skip to content

Instantly share code, notes, and snippets.

View MutableLoss's full-sized avatar

Dennis Brown MutableLoss

View GitHub Profile
@MutableLoss
MutableLoss / RCTUIImageViewAnimated.m
Last active December 18, 2020 01:49
React-Native 0.62.2 Image Background Patch
/*
* react-native/Libraries/Image/RCTUIImageViewAnimated.m
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTUIImageViewAnimated.h>
### Keybase proof
I hereby claim:
* I am mutableloss on github.
* I am vilesyn (https://keybase.io/vilesyn) on keybase.
* I have a public key ASC8I5027YSn-8ZbrVrAopuk_CYiw8oNL6hyZOLAINKZOQo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am 3desprit on github.
  • I am vilesyn (https://keybase.io/vilesyn) on keybase.
  • I have a public key ASC8I5027YSn-8ZbrVrAopuk_CYiw8oNL6hyZOLAINKZOQo

To claim this, I am signing this object:

@MutableLoss
MutableLoss / event.js
Last active July 30, 2017 00:45
react-native-calendar-events event create
RNCalendarEvents.saveEvent(`Example Event`, {
location:'Our Awesome Place City, State',
notes: `${this.props.title}`,
description: `${this.props.title}`,
startDate: firstTime.toISOString(),
endDate: lastTime.toISOString(),
calendar: ['Calendar'],
alarm: [{
date:-1
}],
@MutableLoss
MutableLoss / info.plist
Created July 30, 2017 00:36
iOS 10 Calendar Access
<key>NSCalendarsUsageDescription</key>
<string>schedules</string>
@MutableLoss
MutableLoss / app.js
Last active June 6, 2018 18:07
react-native-calendar-events authorization setup
import RNCalendarEvents from 'react-native-calendar-events'
export default App extends Componemnt {
constructor() {
super();
this.state = {
cal_auth: ''
}
}
// Proper Tail Calls
// direct recursion
function() {
'use strict';
return (function f(n) {
if (n <= 0) {
return 'foo';
}
@MutableLoss
MutableLoss / app.jsx
Created September 18, 2016 06:07
Treehouse React Basics in ES6
// even though we change this data, the array of objects
// will always be exactly that
const players = [
{ key: 1, name: 'D', score: 21 },
{ key: 2, name: 'B', score: 23 },
{ key: 3, name: 'P', score: 13 }
];
class Stopwatch extends React.Component {
constructor() {