This file contains hidden or 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
#pragma strict | |
var damage = 20; | |
var vel = Vector2(0,10); | |
var boom : AudioClip; | |
function Start () { | |
rigidbody2D.velocity = vel; | |
} |
This file contains hidden or 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 ChangeOnCollision : MonoBehaviour { | |
private Material myMaterial; | |
void Start () { | |
myMaterial = GetComponent<Renderer>().material; | |
} |
This file contains hidden or 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 ChangeOnCollision : MonoBehaviour { | |
private Material myMaterial; | |
// Use this for initialization | |
void Start () { | |
myMaterial = GetComponent<Renderer>().material; |
This file contains hidden or 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 FormationController : MonoBehaviour { | |
public GameObject enemyPrefab; | |
public float width = 10; | |
public float height = 5; | |
public float speed; | |
public float padding; | |
This file contains hidden or 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
//#load "Spirograph.fs" | |
open System.Drawing | |
//open FSharp.TV.Spirograph | |
let round (x:float) = int (System.Math.Round (x)) | |
module Seq = | |
let repeat items = | |
seq { while true do for item in items do yield item } |
This file contains hidden or 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
open System.IO | |
open System | |
type Label = Ham | Spam | |
let classify msg : Label = Spam | |
type Corpus = Map<Label, Map<string, float>> | |
type LabeledData = seq<Label*string> |
This file contains hidden or 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
// Learn more about F# at http://fsharp.net | |
// See the 'F# Tutorial' project for more help. | |
open System.IO | |
open System | |
// 01 - Defining the problem | |
type Label = Ham | Spam | |
let classify msg : Label = | |
Spam |
This file contains hidden or 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
// Learn more about F# at http://fsharp.net | |
// See the 'F# Tutorial' project for more help. | |
open Argu | |
type Label = Spam | Ham | |
type Corpus = { | |
spamFreqs:Map<string, int>; | |
hamFreqs:Map<string, int>; |
This file contains hidden or 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
export default { | |
uid:"uid-00-begin-fsharp", | |
title: "First steps with F#", | |
level:0, | |
description:"Let's build stuff with F#...", | |
url_img:"https://placehold.it/250x250?text=First+Steps", | |
available:"available", | |
access:true, | |
content: [ | |
{ |
This file contains hidden or 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
ham Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat... | |
ham Ok lar... Joking wif u oni... | |
spam Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's | |
ham U dun say so early hor... U c already then say... | |
ham Nah I don't think he goes to usf, he lives around here though | |
spam FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv | |
ham Even my brother is not like to speak with me. They treat me like aids patent. | |
ham As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune | |
spam WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only. | |
spam Had your mobile 11 months |