Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
import React, { useEffect } from "react"; | |
import Animated, { FadeOut, withDelay, withTiming, useSharedValue, useAnimatedStyle, cancelAnimation } from "react-native-reanimated"; | |
import PropTypes from "prop-types"; | |
import { Dimensions, StyleSheet } from "react-native"; | |
import FastImage from "react-native-fast-image"; | |
import ConfettiImage from "../../../assets/img/confetti.png"; | |
const NUM_CONFETTI = 100; | |
const COLORS = ["#31ECBC", "#E0DAFE", "#6345F9"]; | |
const CONFETTI_SIZE = 16; |
export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);
type DeepPartial = {
declare module "react-native-fbsdk" { | |
export interface LoginResult { | |
isCancelled: boolean, | |
grantedPermissions?: Array<string>, | |
declinedPermissions?: Array<string>, | |
} | |
export type DefaultAudience = 'friends' | 'everyone' | 'only_me'; | |
export type LoginBehaviorIOS = 'native' | 'browser' | 'system_account' | 'web'; |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
struct Drag { | |
static var placeholderView: UIView! | |
static var sourceIndexPath: NSIndexPath! | |
} | |
func handleLongPress(gesture: UILongPressGestureRecognizer) { | |
let point = gesture.locationInView(tableView) | |
let indexPath = tableView.indexPathForRowAtPoint(point) | |
switch gesture.state { |
// Run this in the F12 javascript console in chrome | |
// if a redirect happens, the page will pause | |
// this helps because chrome's network tab's | |
// "preserve log" seems to technically preserve the log | |
// but you can't actually LOOK at it... | |
// also the "replay xhr" feature does not work after reload | |
// even if you "preserve log". | |
window.addEventListener("beforeunload", function() { debugger; }, false) |
protocol Monad { | |
typealias F | |
typealias U | |
class func bind<M : Monad where M.U == U>(Self, F -> M) -> M | |
class func `return`(F) -> Self | |
} | |
extension Array : Monad { | |
typealias F = T |
sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include |