I hereby claim:
- I am getnashty on github.
- I am getnashty (https://keybase.io/getnashty) on keybase.
- I have a public key ASBF4LtnAPZc4lcehfANOaLCqnmbUGE3RXHphjm6_YJ-bwo
To claim this, I am signing this object:
| import * as React from "react"; | |
| import { useMousePosition } from "~/hooks/useMousePosition"; | |
| /** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
| export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
| const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
| const [mouseX, mouseY] = useMousePosition(); | |
| const positions = { x, y, h, w, mouseX, mouseY }; | |
| return ( | |
| <div |
| import Typist from 'react-typist'; | |
| <Typist | |
| avgTypingDelay={55} | |
| onTypingDone={typingComplete} | |
| startDelay={1500} | |
| cursor={{ hideWhenDone: true, show: true, blink: true }} | |
| > | |
| Work faster. | |
| <Typist.Backspace count={7} delay={750} /> |
| #/bin/bash | |
| JS_FILES=$(find "$1" -name "*.js") | |
| for FILE in $JS_FILES; do | |
| short_name=`basename $FILE` | |
| filename="${short_name%.*}" | |
| git grep --quiet $filename 1>/dev/null | |
| if [ "$?" == "1" ]; then | |
| echo "Should delete: $FILE" |
I hereby claim:
To claim this, I am signing this object:
| 'use strict'; | |
| import React, { | |
| AppRegistry, | |
| Component, | |
| Dimensions, | |
| StyleSheet, | |
| Text, | |
| TouchableHighlight, | |
| View | |
| } from 'react-native'; |
| var request = new Request('http://burnmob-server.herokuapp.com/reg', { | |
| method: 'POST', | |
| headers: { | |
| 'Accept' : 'application/json', | |
| 'Content-Type' : 'application/json', | |
| 'Origin': '' | |
| }, | |
| body: JSON.stringify({ | |
| 'phone': num, | |
| 'tokpriv': privateToken |
| def create | |
| if params[:tags] | |
| params[:tags].each do |tag| | |
| @discussion.discussion_tags.create!( | |
| taggable_id: tag['taggable_id'], | |
| taggable_type: tag['taggable_type'].singularize.capitalize, | |
| position: @discussion.discussion_tags.count + 1 | |
| ) | |
| end |
| def create | |
| if @discussion.save | |
| if params[:tags] | |
| first_tag = '' | |
| params[:tags].each do |tag| | |
| if first_tag != tag | |
| first_tag = tag | |
| @discussion.discussion_tags.create!( | |
| taggable_id: tag['taggable_id'], |
| #gem 'capybara' | |
| #gem 'poltergeist', '>= 1.6.0' | |
| require 'capybara' | |
| require 'capybara/poltergeist' | |
| include Capybara::DSL | |
| Capybara.default_driver = :poltergeist |
| { | |
| 1: { | |
| m1: "6.19", | |
| m2: "5.27", | |
| m3: "5.19", | |
| m4: "4.68", | |
| m5: "3.35", | |
| u1: "6.94", | |
| u2: "5.14", | |
| u3: "6.13", |