Skip to content

Instantly share code, notes, and snippets.

Franzé Jr. franzejr

Block or report user

Report or block franzejr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@franzejr
franzejr / introspection_query.graphql
Created Oct 18, 2018
GraphQL full Introspection query
View introspection_query.graphql
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
@franzejr
franzejr / .rubocop.yml
Last active Aug 24, 2017
Rubocop config file
View .rubocop.yml
# see https://github.com/bbatsov/rubocop#configuration
# for info on how to configure rubocop
# see https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# for default configuration
AllCops:
TargetRubyVersion: 2.3
Exclude:
- vendor/**/*
- notes.*
@franzejr
franzejr / package.json
Created Aug 30, 2016
Add eslint to your React Native Project
View package.json
{
"name": "My Application",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"lint": "eslint --fix *.js"
},
"dependencies": {
"react": "15.3.1",
View gist:c2f59f7da7847b995ab1cb4e26dcdfab
- Something like rails_admin
- List Meetups from Bigmarker (http://docs.bigmarker.com/)
- List Meetups from Anywhere
- Add a meetup manually
- Run a job every night and get all the meetups from bigmarker
- Upcoming remote meetups
- Featured remote meetups(it has a priority related to the others)
View FakeApi.js
import axios from 'axios';
const BASE_URL = 'https://fakeApi/api';
const loginUrl = `${BASE_URL}/request_token`;
const instance = axios.create({
baseURL: `${BASE_URL}`,
});
View MainScreen.js
import React from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
View TabView.js
import React, { PropTypes } from 'react';
import { StyleSheet, View } from 'react-native';
import Button from 'react-native-button';
import { Actions } from 'react-native-router-flux';
const contextTypes = {
drawer: React.PropTypes.object,
};
const propTypes = {
@franzejr
franzejr / SimpleDrawer.js
Created Jul 7, 2016
SimpleDrawer using Drawer React Native
View SimpleDrawer.js
import React, { Component } from 'react';
import Drawer from 'react-native-drawer';
import { DefaultRenderer } from 'react-native-router-flux';
import TabView from '../TabView/TabView';
export default class SimpleDrawer extends Component {
static propTypes = {
navigationState: React.PropTypes.object,
onNavigate: React.PropTypes.function,
}
@franzejr
franzejr / App.js
Created Jul 7, 2016
App JS using react-native-router-flux
View App.js
import React, { Component } from 'react';
import { Router, Scene } from 'react-native-router-flux';
import MainScreen from './MainScreen/MainScreen';
import SettingsScreen from './SettingsScreen/SettingsScreen';
import LoginScreen from './LoginScreen/LoginScreen';
import SimpleDrawer from './SimpleDrawer/SimpleDrawer';
class App extends Component {
@franzejr
franzejr / index.ios.js
Created Jul 7, 2016
Index iOS - React Native Starter App
View index.ios.js
import React from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './src/components/App';
const starterApp = () => {
return (
<App />
);
You can’t perform that action at this time.