Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
public class Position : MonoBehaviour
{
public LayerMask Layer;
public float Padding = 1f;
private float _xMin, _xMax, _yMin, _yMax;
private FormationController _formationController;
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Random = UnityEngine.Random;
public class FormationController : MonoBehaviour
{
public static GameObject Formation = null;
var handler = require("handlers");
handler.main();
handler.onUnload();
-my extension
-defaults
-preferences
-prefs.js
-locale
-META-INF
-meta stuff
-resources
-addon-sdk
-cashbackjournal
@JCaraballo113
JCaraballo113 / dungeon_game.py
Last active September 25, 2015 04:52
Dungeon Game!
__author__ = 'John'
import random
CELLS = [(0,0),(0,1),(0,2),
(1,0),(1,1),(1,2),
(2,0),(2,1),(2,2)]
directions = {}
APawn* myCobraDude = Cast<MyCobraClass>(GetWorld()->GetFirstPlayerController()->GetPawn());
if (myCobraDude){
// get the bool here
myCobradude->myBool = whatever I wish;
}
import React, { Component } from 'react';
import { View, Text, TextInput, ListView } from 'react-native';
import CommentBox from './CommentBox';
import Comment from './Comment';
export default class CommentingSystem extends Component {
constructor(props) {
super(props);
this.state = {
newComment: '',
import React, { Component } from 'react';
import { View, Text, TextInput } from 'react-native';
import {Button, Card, CardSection } from './common';
export default class CommentBox extends Component {
constructor(props) {
super(props);
}
render() {
import React from 'react';
import { View, Text } from 'react-native';
import { Card, CardSection } from './common';
const Comment = (props) => {
return (
<Card>
<CardSection>
<Text>{props.comment.author}</Text>
</CardSection>
import React, { Component } from 'react';
import { View, Text, TextInput } from 'react-native';
import {Button, Card, CardSection } from './common';
export default class CardDeck extends Component {
constructor(props) {
super(props);
this.state = {
remainingCards: 52,
numberOfAces: 4,