Skip to content

Instantly share code, notes, and snippets.

View tomires's full-sized avatar

Tomáš Havlík tomires

View GitHub Profile
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)
@tomires
tomires / SI2.md
Last active January 18, 2017 22:39
SI2 - výpisky ke zkoušce

2

SDLC (sw dev lifecycle)

  • zkoumání potřeb
  • specifikace požadavků
  • design, vývoj, testování
  • nasazení, integrace
  • support
  • vyhodnocení
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}
@tomires
tomires / messages.py
Last active July 20, 2017 11:38
FB messages
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
@tomires
tomires / pur.md
Last active January 4, 2018 21:50
PUR

1

  • user's needs - comfort, efficiency, satisfaction, NOT stupidness, NOT shame, in control, fun
  • maslow's hierarchy (bottom-up)
    • physiological - food, water, shelter, sex (wtf?)
    • safety - security, stability
    • belonging - family, friends, lover
    • self-esteem - respect, mastery, recognition
    • self-actualization - creativity, pursuing inner talents
  • parallel to HCI design - basic needs (functions) of our product are typically met, but additional (pleasurable) stuff is missing
  • F-shape pattern, prominence of upper left area of the screen
@tomires
tomires / nur.md
Last active January 23, 2018 21:41
NUR

1

  • human-computer interaction - the process of design, implementation and evaluation of interactive systems from a PoV of the user
    • interaction meaning two-way communication
  • user centered design (UCD)
    • design over user needs
    • involvement of users in the design process
      • preparation stage
        • user research - process of gathering tidbits of data about the users, domain, etc.
        • user modeling - creation of context
  • design phase
@tomires
tomires / query_kanji.font
Created January 31, 2018 13:17
query_kanji.font
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