Skip to content

Instantly share code, notes, and snippets.

View squirrel532's full-sized avatar

Squirrel squirrel532

  • Taipei, Taiwan
View GitHub Profile
for i in range(1001):
for j in range(i, 1001):
for k in range(1001):
tmp1 = i ** 2 + j ** 2
tmp2 = k ** 2
if tmp1 == tmp2:
print(i, j, k)
elif tmp2 > tmp1:
break
@squirrel532
squirrel532 / ptt.sh
Last active February 29, 2016 08:52
#!/bin/bash
# tty_pipe=$(tty)
# echo "\$tty_pipe = $tty_pipe"
[ -z "$USER" ] && echo -ne "User: " && read USER
[ -z "$PASS" ] && echo -ne "Password: " && read -s PASS
function autoptt()
{

##Python 3.5

  • ASYNC, AWAIT
  • single thread
  • event loop
  • taskqueue celery == asyncio

Type Hit

  • It's just a hint, a comment, let your code be self-documenting.

B10315002 四資工二 黃昱豪

計算機網路概論 作業二

R24

  • 需要經由傳輸層傳輸的資料
  • 由傳輸層生成的資料,包括應用層的資料以及傳輸層的標頭
  • 使用網路層的標頭封裝傳輸層的資料
  • 經由連結層封裝的資料
2015-09-23 14:11:18 +0800
../configure
--build=x86_64-apple-darwin14.5.0
--prefix=/usr/local/Cellar/gcc/5.2.0
--libdir=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5
--enable-languages=c,c++,objc,obj-c++,fortran
--program-suffix=-5
--with-gmp=/usr/local/opt/gmp
--with-mpfr=/usr/local/opt/mpfr