class MainActivity : FlutterActivity() }
private val CHANNEL = "dropnet/files"
override fun configureChannel() {
// native socket bind
}
}
const [data, setData] = useState(null);
useEffect(() => {
let active = true;
fetchData().then(d => {
if (active) setData(d);
});
return () => { active = false; };
}, []);
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
CMD ["npm", "start"]
template<typename T>
class UniquePtr {
T* ptr = nullptr;
public:
explicit UniquePtr(T* p) : ptr(p) {}
~UniquePtr() { delete ptr; }
};
- • Socket bind on port :45455
- • UDP Multicast discovery
- • Fallback Dual-channel DNS
- • TLS fingerprint pin
Widget build(BuildContext context) {
return StreamBuilder<TransferState>(
stream: _controller.stream,
builder: (ctx, snap) =>
TransferProgress(snap.data)
);
}
def gd_step(w, b, X, y, lr):
y_hat = np.dot(X, w) + b
dw = (1/m) * np.dot(X.T, (y_hat - y))
w -= lr * dw
b -= lr * db
return w, b
mov eax, 4 ; sys_write
mov ebx, 1 ; stdout
mov ecx, msg
mov edx, len
int 0x80 ; syscall
type ApiResp<T> = {
data: T;
status: number;
error?: string;
};
const fetch = <T,>(url: string):
Promise<ApiResp<T>> => {...}
viewModelScope.launch {
val f = async { fetchFiles() }
val p = async { getPerms() }
combine(f.await(), p.await())
.collect { emit(it) }
}
INNER JOIN → A ∩ B
LEFT JOIN → A + (A∩B)
FULL OUTER → A ∪ B
CROSS JOIN → A × B
insert(node, idx): O(n)
delete(node): O(n)
traverse: O(n)
↳ no random access!
[8]
/ \
[3] [10]
\ \
[6] [14]
- • git checkout -b feature/dropnet
- • git commit -am "feat: stack"
- • git merge --no-ff dev
- • git stash pop // restore
class TunnelDaemon implements Runnable {
public void run() {
ServerSocket s = new ServerSocket(45455);
Socket c = s.accept();
}
}
ARIJEET'S
PROJECT
JOURNAL
"Building. Breaking. Learning. Repeating."
Property of
Arijeet Das
ARIJEET'S
PROJECT JOURNAL
"Building. Breaking. Learning. Repeating."
Property of
Arijeet Das
CSE Student