Skip to content

Instantly share code, notes, and snippets.

View christopherdro's full-sized avatar

Chris Dro christopherdro

View GitHub Profile
def find_restaurants
restaurants = Restaurant.order(:name)
restaurants = restaurants.where("name like ?", "%#{keywords}%") if keywords.present?
restaurants = restaurants.tagged_with("#{cuisine_id}") if cuisine_id.present?
restaurants = restaurants.tagged_with("241") if offer_241.blank?
restaurants = restaurants.tagged_with("50") if offer_50.blank?
restaurants
end
var maxSlides = 7;
var mySwiper = new Swiper('.swiper-container',{
slidesPerView: maxSlides,
slidesPerGroup: maxSlides,
watchActiveIndex: false,
initialSlide: 7,
onSlideClick : function () {
console.log(mySwiper.clickedSlideIndex);
$(document).ready(function(){
var maxSlides = 7; //Define the max number of variables we want
var tscSlideContainer = $('.swiper-wrapper');
/* Responsive query for swiper on load */
function query() {
if(Modernizr.mq('screen and (min-width: 768px) and (max-width: 998px)')) {
//
// NTRCTProfileTable.h
// Nametag
//
// Created by Christopher on 7/20/15.
// Copyright (c) 2015 650 Industries. All rights reserved.
//
#import "RCTViewManager.h"

I would like to propose a lightning talk for the Reactive Conference demonstrating how you can interact with Arduino and/or Raspberry Pi GPIO's using React Native.

Here's is an example video where fellow speaker Brent Vatne controls my arduino device remotely using a sample react native app that can be found here

Thank you, @christopherdro

this.props.navigator.push({
id: 'patient-notes',
data: rowData,
sceneConfig: Navigator.SceneConfigs.FloatFromRight,
navigationBar: (
<NavigationBar
title={`${rowData.lastName}, ${rowData.firstName.charAt(0)}.`}
buttonsColor="#48D1CC"
customNext={<NavigationButtons.AddNote patient={rowData} NavigationEmitter={this.props.NavigationEmitter}/>}
style={{flex: 1}}
<Navigator
ref="navigator"
renderScene={::this._renderScene}
initialRoute={{
navigationBar: (
<NavigationBar
title="Test APP"
customPrev={<NavigationButtons.Settings/>}
customNext={<NavigationButtons.AddPatient NavigationEmitter={NavigationEmitter} />}
style={{flex: 1}}
/**
* @providesModule PatientList
*/
import NavigationBar from 'react-native-navbar';
import NavigationButtons from 'NavigationButtons';
import React, { ListView, Navigator, StyleSheet, Text, TextInput, TouchableHighlight, View } from 'react-native';
import { connect } from 'react-redux/native'
@connect(state => ({
patients: state.patients
'use strict';
let React = require('react-native');
let Home = require('./entry');
let FeedbackModal = require('FeedbackModal');
let {
AppRegistry,
NativeAppEventEmitter,
View,
} = React;
#import "ViewSnapshotter.h"
#import "RCTConvert.h"
#import "RCTBridge.h"
#import "RCTUIManager.h"
@implementation ViewSnapshotter
RCT_EXPORT_MODULE()
@synthesize bridge = _bridge;