Skip to content

Instantly share code, notes, and snippets.

View yhauxell's full-sized avatar
⌨️
Coding, always!

Yausell Ruiz yhauxell

⌨️
Coding, always!
View GitHub Profile
@efstathiosntonas
efstathiosntonas / index.js
Created January 11, 2018 14:02
Facebook Ads every X posts in React Native Flatlist
import React, {Component} from 'react';
import {ActivityIndicator, AsyncStorage, Dimensions, FlatList, LayoutAnimation, StyleSheet, Text, TouchableHighlight, TouchableOpacity, View, Alert, Platform} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import {Card, CardImage, CardTitle} from 'react-native-material-cards';
import ActionButton from 'react-native-circular-action-menu';
import ImagePicker from 'react-native-image-crop-picker';
import {MaterialIndicator} from 'react-native-indicators';
import Storage from 'react-native-storage';
import {EventRegister} from 'react-native-event-listeners';
import shortid from 'shortid';
@bryanstedman
bryanstedman / detect_retina.js
Created January 11, 2013 05:25
Detect retina display with javascript
var retina = window.devicePixelRatio > 1;
if (retina) {
// the user has a retina display
}
else {
// the user has a non-retina display
}