Skip to content

Instantly share code, notes, and snippets.

View jieunjeon's full-sized avatar
🧡

Jieun Jeon (Jamie) jieunjeon

🧡
  • Santa Clara, CA
View GitHub Profile
@jieunjeon
jieunjeon / ch08.ipynb
Created August 10, 2021 14:43
ch08.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jieunjeon
jieunjeon / RN_fill-in_pagination.tsx
Created October 1, 2019 00:51
React-Native swiping with fill-in toggle pagination
import React from "react";
import { Text, View, StatusBar, Image } from "react-native";
import styled from "styled-components";
import { NavigationScreenProp, NavigationState } from 'react-navigation';
import Swiper from 'react-native-swiper';
import ProfileInputContainer from "../components/profile/ProfileInputContainer";
import AvailableProgram from "../components/profile/AvailableProgram";
import ConnectUtility from "../components/profile/ConnectUtility";
interface NavigationParams {
text: string;
@jieunjeon
jieunjeon / example 8-18
Created August 18, 2019 07:45
2019-8-18 gist example
_toggleComplete = () => {
this.setState(prevState => {
return {
isCompleted: !prevState.isCompleted
};
});
};
_startEditing = () => {
const { text } = this.props;
this.setState({ isEditing: true, toDoValue: text });
@jieunjeon
jieunjeon / run_adjacency_matrix.java
Created June 1, 2018 20:54
run adjacency matrix
$ java Represent_Graph_Adjacency_Matrix
Enter the number of vertices:
4
Enter the number of edges:
6
Enter the edges:
11
34
23
14
@jieunjeon
jieunjeon / adjacency matrix.java
Last active June 1, 2018 20:52
Adjacency Matrix
import java.util.Scanner;
public class Represent_Graph_Adjacency_Matrix {
private final int vertices;
private int[][] adjacency_matrix;
private int[][] adjacency_matrix;
public Represent_Graph_Adjacency_Matrix(int v) {
vertices = v;
adjacency_matrix = new int[vertices + 1][vertices + 1]; }
public void makeEdge(int to, int from, int edge) {