Skip to content

Instantly share code, notes, and snippets.

@stan229
stan229 / index.js
Created March 14, 2017 15:12
React Navigation and Redux example
import React, { Component } from "react";
import { Text } from "react-native";
import { Provider, connect } from "react-redux";
import { StackNavigator, addNavigationHelpers } from "react-navigation";
import Routes from "./config/routes";
import getStore from "./store";
const AppNavigator = StackNavigator(Routes);
@stan229
stan229 / index.js
Created March 14, 2017 04:19
React Navigation sample
import React, { Component } from "react";
import { AppRegistry, View, Text, Button } from "react-native";
import { StackNavigator } from "react-navigation";
const LoginScreen = props => (
<View>
<Button
title="Log In"
onPress={() => {
import React, { Component } from 'react';
import {
View,
Text,
TouchableOpacity
} from 'react-native';
class MyComponent extends Component {
componentWillMount() {
#pragma strict
// Objects to drag in
public var motor : MovementMotor;
public var character : Transform;
public var cursorPrefab : GameObject;
public var joystickPrefab : GameObject;
// Settings
public var cameraSmoothing : float = 0.01;
using UnityEngine;
using System.Collections;
public class PlayerControl : MonoBehaviour
{
[HideInInspector]
public bool facingRight = true; // For determining which way the player is currently facing.
[HideInInspector]
public bool jump = false; // Condition for whether the player should jump.
{
tracks:{
house:[
{
title:"Swimming Pools (Jesse Rose Re-Fix)",
artist:[
"Kendrick Lamar"
],
albumartist:[
var tpl = new Ext.XTemplate(
'<p>Name: {name}</p>',
'<p>Kids: ',
'<tpl for="kids">',
'<tpl if="this.isGirl(name)">',
'<p>Girl: {name} - {age}</p>',
'<tpl else>',
'<p>Boy: {name} - {age}</p>',
'</tpl>',
'<tpl if="this.isBaby(age)">',
@stan229
stan229 / Viewport.js
Last active December 11, 2015 13:58 — forked from dmackerman/Viewport.js
/**
* @class McAfee.view.main.Viewport
* @extends Ext.container.Container
* @author Crysfel Villa <crysfel@moduscreate.com>
*
* Description
*/
Ext.define('McAfee.view.main.Viewport',{
extend : 'Ext.container.Container',
<div class="accordion">
<div class="section">
<div class="header">Header1</div>
<div class="inner">lorem ipsum...</div>
</div>
<div class="section">
<div class="header">Header2</div>
<div class="inner">lorem ipsum 2...</div>
</div>
</div>
@stan229
stan229 / Main.js
Last active December 10, 2015 23:59 — forked from dmackerman/Main.js
Ext.define('Workout.controller.Main', {
extend : 'Ext.app.Controller',
config : {
models: [
'Workout'
],
stores: [
'Workouts'
],
views: [