Skip to content

Instantly share code, notes, and snippets.

View mstifflin's full-sized avatar

Tiffany Lin mstifflin

View GitHub Profile
@mstifflin
mstifflin / dnd.md
Last active April 23, 2021 14:44
dnd party notes

Jun 30 Notes

  • Iarno (Sildar's friend)

    • Missing for 2 months
    • Mid forties
    • Long carved wizard staff branch with a ruby colored orb at top
    • No handshake
    • Favorite food? Unknown
    • Favorite color? Unknown
  • Passphrase: Illefarn

@mstifflin
mstifflin / allow_paste.js
Last active May 4, 2023 04:55
Don't mess with paste
// Open up the console and paste this in to prevent sites
// from blocking your pastes into password fields
// This allows you to continue using your password manager
// without it being incredibly inconvenient.
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('paste', allowPaste, true);
@mstifflin
mstifflin / delbr.sh
Last active May 24, 2019 23:27
Delete remote git branches older than 3 week old, git remote branch clean up
# Deletes all remote branches 3 weeks or older
delbr() {
delbrtest
echo "Continue? (y/n)"
read shouldContinue
if [ $shouldContinue = "n" ]; then
echo "Aborting"
return 0
@mstifflin
mstifflin / HomeScreen.js
Last active April 20, 2017 04:45
Create Local Android Push Notifications in React Native
import React, { Component } from 'react';
import { AppState, View, Button, Text, StyleSheet } from 'react-native';
import PushNotification from 'react-native-push-notification';
import PushController from './PushController.js'; //The push controller created earlier
export default class HomeScreen extends Component {
constructor(props) {
super(props);
this.state = {};
this.handleAppStateChange = this.handleAppStateChange.bind(this);
@mstifflin
mstifflin / PushController.js
Last active April 20, 2017 04:30
Create Local Android Push Notifications in React Native
import React, { Component } from 'react';
import PushNotification from 'react-native-push-notification';
export default class PushController extends Component {
componentDidMount() {
PushNotification.configure({
onNotification: function(notification) {
console.log('NOTIFICATION: ', notification);
},