Skip to content

Instantly share code, notes, and snippets.

View Albert-Gao's full-sized avatar
😊
Can't stop programming! So happy!

AlbertGao Albert-Gao

😊
Can't stop programming! So happy!
View GitHub Profile
@Albert-Gao
Albert-Gao / defaultExpoWebpack.js
Created August 19, 2022 14:28
defaultExpoWebpack
const defaultExpoWebpack = {
mode: 'development',
entry: {
app: [
'/Users/albertgao/codes/self/teaming-cloud/tc-app/node_modules/react-dev-utils/webpackHotDevClient.js',
'/Users/albertgao/codes/self/teaming-cloud/tc-app/node_modules/expo/AppEntry.js',
],
},
stats: 'none',
bail: false,
// classes.kt
class Person(
var name:String
) {
fun getRealName():String {
return "Real:" + this.name
}
}
class Team {
// package: my.group.http
// file: http.kt
fun get(url):Map<*,*> {
// do http get
// and return the json as a kotlin Map
}
// package: my.group.user
// file: user.kt
import my.group.http.get
buildscript {
ext.kotlin_native_version = '0.5'
ext.kotlin_version = '1.2.21'
repositories {
mavenCentral()
maven {
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
}
}
@Albert-Gao
Albert-Gao / gist:d7e0e25b6f90aef6df6194343adde537
Created December 6, 2016 22:24
Build result via buildozer, no errors seems
albert:handset albertgao$ buildozer android_new debug deploy
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/local/Cellar/git/2.10.2/bin/git
# Search for Cython (cython)
# -> found at /Users/albertgao/.pyenv/versions/3.5.2/bin/cython
@Albert-Gao
Albert-Gao / The Technical Interview Cheat Sheet.md
Created October 16, 2016 23:05 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.