Skip to content

Instantly share code, notes, and snippets.

View tonysherbondy's full-sized avatar

Anthony Sherbondy tonysherbondy

  • San Francisco, CA
View GitHub Profile
@tonysherbondy
tonysherbondy / config.json
Created December 1, 2012 20:51
Another Inlet
{"description":"Another Inlet","endpoint":"","display":"svg","public":true,"require":[],"tab":"edit","display_percent":0.539043309631545,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
@tonysherbondy
tonysherbondy / _.md
Created December 1, 2012 20:55
Update Pattern
@tonysherbondy
tonysherbondy / _.md
Created December 1, 2012 21:06
Update Pattern
@tonysherbondy
tonysherbondy / prototypeCellWoes.m
Created March 21, 2014 03:31
How I'm instantiating my prototype cell and causing an infinite loop
-(ResultTableViewCell *)prototypeResultCell
{
// lazily instantiate and hold onto the prototype
if (!_prototypeResultCell) {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
_prototypeResultCell = [self.tableView dequeueReusableCellWithIdentifier:@"ResultTableViewCell" forIndexPath:indexPath];
}
return _prototypeResultCell;
}
@tonysherbondy
tonysherbondy / _.md
Last active August 29, 2015 14:07
judgey
@tonysherbondy
tonysherbondy / SearchBarStart.js
Last active July 24, 2016 03:23
Start of implementing Search Bar in React Native Guide
import React from 'react'
import {
View,
ListView,
Text,
StyleSheet,
} from 'react-native'
import names from './names'
const styles = StyleSheet.create({
@tonysherbondy
tonysherbondy / SearchBarFinish.js
Created July 24, 2016 03:46
Final implementation of simple Search Bar for React Native
import React from 'react'
import {
View,
ListView,
Text,
StyleSheet,
TextInput,
} from 'react-native'
import names from './names'
{
"propositions": [
{
"name": "",
"imageUrl": "https://ballot.fyi/static/img/index/schoolbus.png",
"subTitle": "Fiscally, the biggest measure on the ballot. $9B + $8B interest.",
"url": "https://ballot.fyi/51",
"propCode": "51",
"color": "rgb(238, 138, 50)",
"title": "Prop 51 makes $9B to build and improve schools"
const convertHtmlToPlainText = html => {
const dict = {
gt: '>',
hellip: '...',
ldquo: '"',
rdquo: '"',
lsquo: "'",
rsquo: "'",
ndash: '-',
}