This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var handler = require("handlers"); | |
handler.main(); | |
handler.onUnload(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-my extension | |
-defaults | |
-preferences | |
-prefs.js | |
-locale | |
-META-INF | |
-meta stuff | |
-resources | |
-addon-sdk | |
-cashbackjournal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'John' | |
import random | |
CELLS = [(0,0),(0,1),(0,2), | |
(1,0),(1,1),(1,2), | |
(2,0),(2,1),(2,2)] | |
directions = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APawn* myCobraDude = Cast<MyCobraClass>(GetWorld()->GetFirstPlayerController()->GetPawn()); | |
if (myCobraDude){ | |
// get the bool here | |
myCobradude->myBool = whatever I wish; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
OlderNewer