Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View levibuzolic's full-sized avatar
🐈
Furiously typing

Levi Buzolic levibuzolic

🐈
Furiously typing
View GitHub Profile
@levibuzolic
levibuzolic / BrokenScrollable.js
Created May 12, 2021 17:35
Experiements with gesture handlers and scroll views
// @flow
import * as React from 'react';
import {Text, View, StyleSheet, ScrollView as RNScrollView, TouchableOpacity, Platform, PixelRatio} from 'react-native';
import {
PanGestureHandler,
NativeViewGestureHandler,
TapGestureHandler,
State,
ScrollView as RNGHScrollView,
@levibuzolic
levibuzolic / gradient.js
Created January 29, 2018 03:29
Better linear gradients for React Native
// @flow
import React from 'react';
import {StyleSheet, View, Easing} from 'react-native';
import {LinearGradient} from 'expo';
import * as COLORS from './constants/colors';
import color from 'color';
export default class App extends React.Component<{}> {
render() {
@levibuzolic
levibuzolic / validation.md
Last active August 29, 2015 14:25
Thoughts on advanced client side validation

Validation Creation

Instant (onChange)

Validations that will run on every keystroke, most of these validations should ideally be prevented by input restrictions or sanitization of data.

  • Maximum length
  • Invalid characters
@levibuzolic
levibuzolic / readme.md
Created March 13, 2014 16:01
rsub - Remote SSH Sublime Text

On the local machine install the rsub package in Sublime.

Then add host entries in ~/.ssh/config for each server you'll be using rsub on.

Host your_remote_server.com
  RemoteForward 52698 127.0.0.1:52698

On the server:

@levibuzolic
levibuzolic / sshd_config.sh
Created January 28, 2014 03:45
Speed up SSH logins by turning off reverse DNS lookups on logins
# /etc/ssh/sshd_config
UseDNS no