[ Launch: judgey ] dc18fb818d03e0955935 by sherb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(db-utils/reg-obs | |
::obs-for-new-smart-boost | |
[[::routes/route] | |
[::working-boost]] | |
(fn [route working-boost] | |
(cond | |
(and (= (:handler route) :manage/content-two-new-smart-boost) | |
(not working-boost)) | |
(rf/dispatch [::set-working-boost {:smart-boost-id (random-uuid) | |
:name "My SmartBoost" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" --------------- | |
" Searching | |
" --------------- | |
set ignorecase " Case insensitive search | |
set smartcase " Non-case sensitive search | |
set incsearch " Incremental search | |
set hlsearch " Highlight search results | |
" --------------- | |
" Extensions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2.2 | |
import { AppRegistry } from 'react-native' | |
import App from './App.react' | |
AppRegistry.registerComponent('YOUR_PROJECT_NAME', () => App) | |
// 4.2 | |
propTypes = { | |
post: PropTypes.shape({ | |
imageURL: PropTypes.string.isRequired, | |
caption: PropTypes.string.isRequired, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const convertHtmlToPlainText = html => { | |
const dict = { | |
gt: '>', | |
hellip: '...', | |
ldquo: '"', | |
rdquo: '"', | |
lsquo: "'", | |
rsquo: "'", | |
ndash: '-', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { | |
View, | |
ListView, | |
Text, | |
StyleSheet, | |
TextInput, | |
} from 'react-native' | |
import names from './names' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { | |
View, | |
ListView, | |
Text, | |
StyleSheet, | |
} from 'react-native' | |
import names from './names' | |
const styles = StyleSheet.create({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(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; | |
} |
NewerOlder