Skip to content

Instantly share code, notes, and snippets.

View Azhng's full-sized avatar
🍎

Archer Zhang Azhng

🍎
View GitHub Profile
@Azhng
Azhng / tmp.sql
Last active April 24, 2021 05:32
--- Welford's method with CTE
WITH RECURSIVE t3iter AS (
SELECT
LEAD(ts, 1)
OVER (ORDER BY (ts, fingerprint)) AS next_ts,
LEAD(fingerprint, 1)
OVER (ORDER BY (ts, fingerprint)) AS next_fingerprint,
t3.ts,
t3.fingerprint,
Listing... Done
accountsservice/bionic,now 0.6.45-1ubuntu1 amd64 [installed,automatic]
acl/bionic,now 2.2.52-3build1 amd64 [installed,automatic]
acpi-support/bionic,now 0.142 amd64 [installed,automatic]
acpid/bionic,now 1:2.0.28-1ubuntu1 amd64 [installed,automatic]
adduser/bionic,now 3.116ubuntu1 all [installed,automatic]
adium-theme-ubuntu/bionic,now 0.3.4-0ubuntu4 all [installed,automatic]
adwaita-icon-theme/bionic,now 3.28.0-1ubuntu1 all [installed,automatic]
aisleriot/bionic,now 1:3.22.5-1 amd64 [installed,automatic]
alien/bionic,now 8.95 all [installed,automatic]
rm -f Release/obj.target/src/sass.a && ar crs Release/obj.target/src/sass.a Release/obj.target/libsass/src/libsass/src/ast.o Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o Release/obj.target/libsass/src/libsass/src/backtrace.o Release/obj.target/libsass/src/libsass/src/base64vlq.o Release/obj.target/libsass/src/libsass/src/bind.o Release/obj.target/libsass/src/libsass/src/cencode.o Release/obj.target/libsass/src/libsass/src/check_nesting.o Release/obj.target/libsass/src/libsass/src/color_maps.o Release/obj.target/libsass/src/libsass/src/constants.o Release/obj.target/libsass/src/libsass/src/context.o Release/obj.target/libsass/src/libsass/src/cssize.o Release/obj.target/libsass/src/libsass/src/emitter.o Release/obj.target/libsass/src/libsass/src/environment.o Release/obj.target/libsass/src/libsass/src/error_handling.o Release/obj.target/libsass/src/libsass/src/eval.o Release/obj.target/libsass/src/libsass/src/expand.o Release/obj.target/libsass/src/libsass/src/extend.o Release/obj.target/libsass/
### Keybase proof
I hereby claim:
* I am azhng on github.
* I am azhng (https://keybase.io/azhng) on keybase.
* I have a public key ASA7Gb0q4UTj-rv0L-sg2BAoYmLaSFdaB1iWgbbOx6a1qwo
To claim this, I am signing this object:
signature STREAM = sig
type 'a stream
val mkseq: 'a -> ('a -> 'a) -> 'a stream
val car: 'a stream -> 'a
val cdr: 'a stream -> 'a stream
val nth: 'a stream -> int -> 'a
val toList: 'a stream -> int -> 'a list
end
structure Seq :> STREAM = struct
# shit <assignment nubmer> == build
# fuck == run
# fuckw == run with debugging enabled
# ahh <assignment number> == run gdb and directly attach to the os161 instance
shit()
{
cd /home/az/cs350-os161/os161-1.99/kern/conf
./config "ASST$1"
#!/usr/bin/env ruby
HOME = ENV['HOME']
repeat = ARGV[0].to_i
assignment = ARGV[1]
cmd = ARGV[2]
verbose = ARGV[3]
Dir.chdir("#{HOME}/cs350-os161/os161-1.99/kern/conf") {
@Azhng
Azhng / init.vim
Last active November 27, 2018 20:15
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'scrooloose/syntastic'

Scope

A very specific narrow topic within GPGPU computing (implemented using OpenCL / CUDA)

Potential topics

  • OpenCL: Introduction
    • Command Queue model
    • Host memory model
      • opencl native memory types
  • shared virtual memory
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"