Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
O-ing

Jaeyoun Nam siisee11

😇
O-ing
View GitHub Profile
View medium-stat.md

@siisee111 20 Followers 🕴 Latest Articles 👇 React Navigation Theme Ty... 👏 0 GRUB 엔트리 삭제 👏 0 SR-IOV infiniband Connect... 👏 0

View I'm an early 🐤
🌞 Morning 58 commits ██▏░░░░░░░░░░░░░░░░░░ 10.6%
🌆 Daytime 234 commits ████████▉░░░░░░░░░░░░ 42.7%
🌃 Evening 169 commits ██████▍░░░░░░░░░░░░░░ 30.8%
🌙 Night 87 commits ███▎░░░░░░░░░░░░░░░░░ 15.9%
View global.d.ts
import '@react-navigation/native';
// Override the theme in react native navigation to accept our custom theme props.
declare module '@react-navigation/native' {
export type ExtendedTheme = {
dark: boolean;
colors: {
primary: string;
secondary: string;
tertiary: string;
View vimrc
"================vim-plug======================
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'morhetz/gruvbox'
Plug 'git://git.wincent.com/command-t.git'
Plug 'rstacruz/sparkup', {'rtp': 'vim/'}
Plug 'scrooloose/nerdtree'
Plug 'bling/vim-airline'
View dependencies
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0'
View ProfileActivity.java
public class ProfileActivity extends AppCompatActivity implements View.OnClickListener{
public static final String GOOGLE_ACCOUNT = "google_account";
private TextView profileName, profileEmail;
private ImageView profileImage;
private GoogleSignInAccount mGoogleSignInAccount;
private GoogleSignInClient mGoogleSignInClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
View profile.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ProfileActivity">
<ImageView
android:id="@+id/profile_image"
View updateUI.java
private void updateUI(GoogleSignInAccount account) {
Intent intent = new Intent(getApplicationContext(), ProfileActivity.class);
intent.putExtra(ProfileActivity.GOOGLE_ACCOUNT, account);
startActivityForResult(intent,1001);
finish();
}
@siisee11
siisee11 / gl.java
Created May 23, 2020
Main activity google login
View gl.java
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private static final int RC_SIGN_IN = 9001;
private static final String TAG = "Oauth2Google";
GoogleSignInClient mGoogleSignInClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View errno
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Arg list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9 /* Bad file number */
#define ECHILD 10 /* No child processes */