Skip to content

Instantly share code, notes, and snippets.

Avatar
😴
☕️⚛️🏃‍♂️🐶

Brent Vatne brentvatne

😴
☕️⚛️🏃‍♂️🐶
View GitHub Profile
@brentvatne
brentvatne / ViewabilityHelper.js
Created Feb 9, 2016 — forked from sahrens/ViewabilityHelper.js
Helper class for WindowedListView
View ViewabilityHelper.js
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule ViewabilityHelper
* @flow
*/
'use strict';
const ViewabilityConsts = {
VIEWABLE_PERCENT_THRESHOLD: 50,
View WIP - WindowedListView.js
/**
* 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 Feb 1, 2016 — forked from deanmcpherson/SortableListView.js
React native drag and drop list view in progress
View SortableListView.js
var React = require('react-native');
var {
ListView,
LayoutAnimation,
View,
Animated,
PanResponder,
TouchableWithoutFeedback
} = React;
@brentvatne
brentvatne / RecyclingListView.js
Created Oct 15, 2015 — forked from sahrens/RecyclingListView.js
Early RecyclingListView prototype
View RecyclingListView.js
/**
* 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 Jun 21, 2012 — forked from yeeguy/quickerclip.rb
Faster rspec tests with Paperclip
View quickerclip.rb
# 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 Mar 31, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/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
#
View mail_server.rb
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 Nov 28, 2011 — forked from netzpirat/0_README.md
Continuous CoffeeScript testing with Guard and Jasmine
View 0_README.md

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