Skip to content

Instantly share code, notes, and snippets.

View brentvatne's full-sized avatar
😴
☕️⚛️🏃‍♂️🐶🎸

Brent Vatne brentvatne

😴
☕️⚛️🏃‍♂️🐶🎸
View GitHub Profile
@brentvatne
brentvatne / Android Privacy Policy Template
Created October 27, 2023 00:41 — forked from alphamu/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described
@brentvatne
brentvatne / ViewabilityHelper.js
Created February 9, 2016 21:52 — forked from sahrens/ViewabilityHelper.js
Helper class for WindowedListView
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule ViewabilityHelper
* @flow
*/
'use strict';
const ViewabilityConsts = {
VIEWABLE_PERCENT_THRESHOLD: 50,
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule WindowedListView
* @flow
*/
'use strict';
var React = require('React');
var ScrollView = require('ScrollView');
@brentvatne
brentvatne / SortableListView.js
Created February 1, 2016 05:31 — forked from deanmcpherson/SortableListView.js
React native drag and drop list view in progress
var React = require('react-native');
var {
ListView,
LayoutAnimation,
View,
Animated,
PanResponder,
TouchableWithoutFeedback
} = React;
@brentvatne
brentvatne / RecyclingListView.js
Created October 15, 2015 17:49 — forked from sahrens/RecyclingListView.js
Early RecyclingListView prototype
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule RecyclingListView
* @flow
*/
'use strict';
var React = require('React');
var ScrollView = require('ScrollView');
@brentvatne
brentvatne / quickerclip.rb
Created June 21, 2012 18:17 — forked from yeeguy/quickerclip.rb
Faster rspec tests with Paperclip
# inspired by https://gist.github.com/406460 and
# http://pivotallabs.com/users/rolson/blog/articles/1249-stubbing-out-paperclip-imagemagick-in-tests
# plus some additional monkeypatching to prevent "too many files open" err's
#
# place this file in <app root>/spec/support
#
RSpec.configure do |config|
$paperclip_stub_size = "800x800"
end
@brentvatne
brentvatne / hack.sh
Created March 31, 2012 23:02 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@brentvatne
brentvatne / mail_server.rb
Created January 31, 2012 22:04 — forked from practicingruby/mail_server.rb
my ideal api
class MailingLst < PostalService::App
config.some_config_var = ".."
filter(:unsubscribed_users) do
!list_members.include?(incoming.from)
end
filter(:subscribed_users) do
list_members.include?(incoming.from)
end
@brentvatne
brentvatne / 0_README.md
Created November 28, 2011 20:12 — forked from netzpirat/0_README.md
Continuous CoffeeScript testing with Guard and Jasmine

Continuous CoffeeScript testing with Guard and Jasmine

This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo

  • Install Gems with Bundler with bundle install
  • Define your guards with mate Guardfile
  • Initialize Jasmine with bundle exec jasmine init
  • Configure Jasmine with mate spec/support/yasmine.yml
  • Start Guard with bundle exec guard