Skip to content

Instantly share code, notes, and snippets.

View moduscreate's full-sized avatar

Modus Create moduscreate

View GitHub Profile
@moduscreate
moduscreate / gist:edccc51a2c95ad73c6e33da512b6eb6c
Last active April 6, 2016 15:24
GiphyList transformed with Babel
var GiphyList = function(_Component) {
babelHelpers.inherits(GiphyList, _Component);
function GiphyList() {
var _Object$getPrototypeO;
var _temp, _this, _ret;
babelHelpers.classCallCheck(this, GiphyList);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
@moduscreate
moduscreate / gist:d115bdc5db1ccd6252fffadfab8fec65
Created April 6, 2016 15:21
GiphyList transformed with Babel
var GiphyList = function(_Component) {
babelHelpers.inherits(GiphyList, _Component);
function GiphyList() {
var _Object$getPrototypeO;
var _temp, _this, _ret;
babelHelpers.classCallCheck(this, GiphyList);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file relies on the fact that the following declarations have been made
// in runtime.js:
// var $Object = global.Object;
// var $Boolean = global.Boolean;
// var $Number = global.Number;
// var $Function = global.Function;
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
Image,
Dimensions,
TouchableOpacity,
StatusBar,
@moduscreate
moduscreate / using_placeholder_images_with_react_native.js
Last active July 24, 2017 09:50
Using placeholder images with react native
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
Image,
Dimensions,
StatusBar,
ScrollView
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"KGMP"
initialProperties:nil
launchOptions:launchOptions];
var React = require('react-native'),
windowDims = require('Dimensions').get('window'),
multiplier = 1000000000000000,
Icon = require('react-native-vector-icons/Entypo')
var {
StyleSheet,
Text,
View,
ScrollView,
var methods = {
get : 'GET',
post : 'POST',
put : 'PUT',
'delete' : 'DELETE',
patch : 'PATCH'
},
defaultHeaders = {
};
/**
* @author Alex Lazar
* REST-API definition for Kickstart actions ()
* */
/*global req, res, require, SQL */
var KickstartStore = require('store/KickstartStore').KickstartStore,
ActivityStore = require('store/ActivityStore').ActivityStore,
GoalStore = require('store/GoalStore').GoalStore,
Incident Identifier: 3EA0ECF9-63E7-418B-BE75-FF182D189DA1
CrashReporter Key: 6ce80b42c44c2efed66e4a55a15aedf408567960
Hardware Model: iPhone7,2
OS Version: iPhone OS 8.3 (12F70)
Kernel version: Darwin Kernel Version 14.0.0: Sun Mar 29 19:42:54 PDT 2015; root:xnu-2784.20.34~2/RELEASE_ARM64_T7000
Date: 2015-06-10 03:56:31 -0400
Exception Code: 0xd1510c8d
Reason: Step count has rolled back!!
Thermal data unavailable