(for booting on MacBookAir)
- My card: Transcend 32GB SDHC Class10
- a USB stick (for Archlinux bootable USB)
- A MacBook Air, of course
(for booting on MacBookAir)
; move $t0, 0 ; change to the real memory address | |
lui $t1, 4 ; $t0[0] = 4 | |
sw $t1, 0($t0) | |
lui $t1, 5 ; $t0[1] = 5 | |
sw $t1, 4($t0) | |
lui $t1, 3 ; $t0[2] = 3 | |
sw $t1, 8($t0) | |
lui $t1, 2 ; $t0[3] = 2 | |
sw $t1, 12($t0) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Meeting II</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<style type="text/css" media="screen"> | |
/* Slideshow styles */ | |
@import url(http://fonts.googleapis.com/css?family=Droid+Serif); | |
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); |
#!/usr/bin/env python3 | |
import operator | |
# build the alphabet frequency table according to the sequence | |
def freq_count(seq): | |
freq = { chr(i+ord('A')) : 0 for i in range(26) } | |
for i in seq: | |
freq[i] += 1 | |
return freq |
descrete log problems
you don't have a easy approach to solve the descrete log problems, so the algorithm is secure. the factorization problem is hard too.
#!/usr/bin/env perl | |
use 5.014; | |
use WWW::Mechanize; | |
use List::MoreUtils qw(uniq); | |
# XXX: change me! | |
my $url = "625301/282f4c93aa/"; |
#!/usr/bin/env perl | |
use 5.014; | |
use WWW::Mechanize; | |
use List::MoreUtils qw(uniq); | |
# iframe printer | |
sub iframe_p { | |
my ($title, $id, $url) = @_; |
# 1 | |
彭文志老師在101學年度總共開了幾門課? | |
SELECT COUNT(C.id) FROM Course C, Professor P WHERE P.name = "彭文志" AND P.id = C.pro_id | |
# 2 | |
資訊工程學系在上學期有幾門不同的課? (課名相同而老師不同視為相同) | |
SELECT COUNT(DISTINCT C.name) FROM Course C, Department D WHERE D.name = "資訊工程學系" AND D.id = C.department AND C.year = '1' |
#!/usr/bin/python | |
import random | |
import time | |
class gol: | |
def __init__(self): | |
self._w = 30 # map width | |
self._prob = 0.5 # probability | |
self._map = [] |