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
<form action="phpskra.php" method="POST"> | |
<input type="text" name="titill" /> | |
<textarea name="uppskrift"> | |
</textarea> | |
<input type="submit" /> | |
</form> | |
Þetta myndi þá skila POST requesti á phpskra.php þegar ýtt er á Submit takkann | |
og breyturnar myndu vera aðgengilegar í PHP-inu í $_POST['titill'] og $_POST['uppskrift'] |
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
1: Add R2, R3, #100 | |
2: Sub R9, R2, #30 | |
1 2 3 4 5 6 7 8 9 | |
1: F D C M W | |
2: F / / / D C M W |
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
git status til að tékka hvort eitthvað hafi breyst | |
git pull origin master sækir nýjustu breytingar af github server | |
þegar þú ert búinn að breyta e-u | |
git commit -am "Skilaboð um hverju þú breyttir" | |
til öryggis gera | |
git pull origin master, gæti verið að einhver hafi breytt einhverju í millitíðinni | |
git push origin master |
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
# UI state tests | |
def testTopCardIsDraggable(self): | |
game = deck.GameState() | |
game.draw() | |
game.draw() | |
is_draggable = game.table[0].top().draggable | |
self.assertTrue(is_draggable) | |
def testCardBelowIsNotDraggable(self): | |
game = deck.GameState() |
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 users = []; | |
io.sockets.on('connection', function(socket) | |
{ | |
users.push(socket); | |
socket.on('setUsername', function(data) | |
{ | |
socket.username = data; | |
}); |
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
BassDrum() | |
{ | |
SineWave osc1 = SineWave().freq(50); | |
ControlGenerator speed = addParameter("speed", 0.5); | |
ControlGenerator pitch = addParameter("pitch", 0.5); | |
ControlMetro metro = ControlMetro().bpm(100 + 80 * speed); | |
ADSR envelope = ADSR(0.01, 0.25, 0.0, 0.1).trigger(metro).doesSustain(true).legato(false); | |
ADSR pitchEnvelope = ADSR(0.01, 0.06, 0, 0.0).trigger(metro).doesSustain(false).legato(false); |
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
draw = function (self) | |
for rows = 0, self.rows, 1 do | |
for cols = 0, self.bPR, 1 do | |
love.graphics.setColor(0,0,0) | |
x = cols * (self.blockW + self.p) | |
y = rows * (self.blockH + self.p) | |
love.graphics.rectangle("fill", x, y, self.blockW, self.blockH) | |
end | |
end | |
end |
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
DEBUG = true | |
ball = { | |
x = love.window.getWidth() / 2, | |
y = love.window.getHeight() / 2, | |
r = 10, | |
s = 32, | |
aX = 4, | |
aY = 3, | |
update = function (self, dt) |
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
const int PIN = 7; | |
void setup() | |
{ | |
pinMode(PIN, OUTPUT); | |
digitalWrite(PIN, LOW); | |
} | |
const int MAX = 400; | |
const int MIN = 5; |
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
Navstar GPS kerfið er það sem við í daglegu tali köllum GPS. Notandi þess getur, með hjálp fjöldamargra GPS gervitungla notað það til að staðsetja sig á jarðkringlunni, með nákvæmni upp á nokkra metra. Þróun þess hófst af fullri alvöru í kringum 1973, þegar varnamála-menn þar í landi hófu að þróa slíkt kerfi fyrir herinn. Síðar meir var kerfið einnig opnað fyrir almenningi og það er það kerfi sem við þekkjum í dag. | |
Á þessum tíma hafði myndast sá tæknilegi grundvöllur sem nauðsynlegur var til að hleypa því af stokkunum. Árin áður höfðu verið miklar framfarir í geimrannsóknamálum og orðið lítið mál að skjóta svosem eins og einum gervihnetti upp í 20.000 km hæð. Einnig voru miklar framfarir á öðrum sviðum og ýmsar tækninýjungar og uppgötvanir kynntar til sögunnar sem áttu eftir að gagnast í þróun kerfisins. | |
Grunnhugmyndin er sú að GPS-tækið hlusti eftir merkjum frá gervihnöttunum. Þeir senda stöðugt frá sér hvað klukkan þeirra er og staðsetningu sína. | |
GPS gervihnettirnir ferðast á 14.000 km/klst hraða. Þeir |
OlderNewer