Skip to content

Instantly share code, notes, and snippets.

View siisee11's full-sized avatar
🔴
The Climb

Jaeyoun Nam siisee11

🔴
The Climb
View GitHub Profile

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

🌞 Morning 49 commits ██░░░░░░░░░░░░░░░░░░░ 9.6%
🌆 Daytime 200 commits ████████▎░░░░░░░░░░░░ 39.4%
🌃 Evening 163 commits ██████▋░░░░░░░░░░░░░░ 32.1%
🌙 Night 96 commits ███▉░░░░░░░░░░░░░░░░░ 18.9%
@siisee11
siisee11 / global.d.ts
Created March 30, 2021 08:03
global type
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;
"================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'
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'
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) {
<?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"
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 06:03
Main activity google login
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);
#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 */