2
SDLC (sw dev lifecycle)
- zkoumání potřeb
- specifikace požadavků
- design, vývoj, testování
- nasazení, integrace
- support
- vyhodnocení
x <- 0 // assign value | |
help(func) example(func) | |
list.files() source("file.r") | |
c(1,2,3) // combine into vector | |
5:9 // vector 5 to 9 | |
seq(5,9,0.5) | |
// array indexes start at 1 | |
sentence[c(1, 3)] | |
names(ranks) <- c("first", "second", "third") // assign references | |
barplot(vector) |
2
SDLC (sw dev lifecycle)
function init(self) | |
msg.post("#", "main_menu") | |
self.state = "MAIN_MENU" | |
msg.post(".", "acquire_input_focus") -- http://www.defold.com/manuals/input/#anchor-iacp | |
end | |
function on_message(self, message_id, m, sender) | |
if message_id == hash("main_menu") then | |
msg.post("#battle", "unload") | |
self.state = "MAIN_MENU" |
function map(var, min, max) | |
if var < min then | |
return min | |
elseif var > max then | |
return max | |
else | |
return var | |
end | |
end |
\begin{enumerate} | |
\item large\_object contains sprites spanning multiple tiles (e.g. trees), | |
\item object—contains smaller obstacles such as rocks or tile decorations, | |
\item logic—used by the battle logic script to determine whether a cell is accessible, | |
\item terrain—contains base tiles. | |
\end{enumerate} |
from __future__ import division | |
import json | |
import os | |
import datetime | |
import csv | |
#import numpy as np | |
#import pandas as pd | |
#import matplotlib.pyplot as plt | |
from collections import Counter |
font: "/shared/fonts/Yasashi.ttf" | |
material: "/builtins/fonts/font.material" | |
size: 150 | |
outline_width: 20.0 | |
all_chars: true |
import plotly.plotly as py | |
from plotly.graph_objs import * | |
import networkx as nx | |
G=nx.random_geometric_graph(200,0.125) | |
pos=nx.get_node_attributes(G,'pos') | |
dmin=1 | |
ncenter=0 |