Skip to content

Instantly share code, notes, and snippets.

@logkcal
logkcal / 0. android basics.mkd
Created February 15, 2012 01:14
android framework & design guidelines
  • 3 of core application components are activated through messages called intents. an abstraction of an operation to be performed, or something that has happened and is being announced. intent object contains a component, an action, and so forth.
  • begins a new task, when an activity is started.
  • brings an existing instance of the activity forward.
  • clears all activities except the root one when a task goes into the background.
@logkcal
logkcal / 1-sde-iii.mkd
Last active March 14, 2023 17:51
Software Engineering Role Descriptions

Keywords: distributed system architectures, networked services, technical analysis, prototyping(?), high-quality functional specifications, consensus, short-term solutions and long-term implications, and pragmatic solutions.

SDE

Technical

You have industry-leading technical abilities. You demonstrate a breadth and depth of knowledge in the following disciplines:

  • You recognize and adopt best practices in software engineering: design, testing, version control, documentation, build, deployment, and operations.
  • You write high quality, maintainable, and robust code, often in Java or C++.

Summary of Questions

  • Level 100: Write a program that returns a sum of two binary string. e.g. returns b 1011 given b 110, and b 101.
  • Level 100: Write a program that returns a to the power of p efficiently. e.g. returns 81 given 3 to the power of 4.
  • Level 100: Write a program that returns the the k-th smallest number given a list of integers. e.g. returns 7 given k = 4, and a list [3, 5, 1, 7, 9].
  • Level 100: Write a program that given a string of parenthesis tells if it is balanced or not (return true or false) -- this program runs in O(1) space. e.g. balanced (true) for "((()))()", and unbalanced (false) for ")(" and "(()"
  • Level 150: Write a program that given a string of parenthesis '()', angle-brackets '<>', square-brackets '[]', and brace brackets '{}', tells if everything is balanced -- this program runs in O(n) time. e.g. balanced (true) for "[{{()<>}}]<>", not balanced (false) for "[{{(<)>}}]<>"
  • Level 200: Write a progr
pkg install apt-transport-https curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq
mkdir $PREFIX/etc/apt/sources.list.d
echo "deb [trusted=yes] https://its-pointless.github.io/files/ termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
curl -O https://its-pointless.github.io/pointless.gpg
apt-key add pointless.gpg
pkg update
pkg install python python-dev
pip install jupyter
pkg install numpy

刷机方法 首次刷机,开启小米路由的SSH权限( https://d.miwifi.com/rom/ssh ),并登录,使用命令:

mtd -r write openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin OS1

旧版小米固件使用:

mtd -r write openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin firmware

以后每次刷机使用:

기간: 4/14/2020 (Tue) - 4/25/2019 (Sat)
내용: 나이아가라 폭포, 워싱턴 DC, 플로리다, 뉴욕 여행.