<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Claire Lu</title>
    <description>The latest articles on DEV Community by Claire Lu (@cxl3).</description>
    <link>https://dev.to/cxl3</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F503333%2F4130a774-59ba-414e-ba1e-5db59a2075a9.png</url>
      <title>DEV Community: Claire Lu</title>
      <link>https://dev.to/cxl3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cxl3"/>
    <language>en</language>
    <item>
      <title>Update next button'react-native-swiper'</title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Fri, 10 Dec 2021 00:42:23 +0000</pubDate>
      <link>https://dev.to/cxl3/update-next-buttonreact-native-swiper-2891</link>
      <guid>https://dev.to/cxl3/update-next-buttonreact-native-swiper-2891</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import {  Icon } from 'react-native-elements'
import Swiper from 'react-native-swiper'
import FormComponent from '../Forms/FormComponent'

const Quiz = () =&amp;gt; {
  return (
    &amp;lt;Swiper
      style={styles.wrapper}
      showsButtons={true}
      autoplay={false}
      loop={false}
      buttonWrapperStyle={{ color: 'purple' }}
      nextButton={
        &amp;lt;Icon
        //   style={styles.arrowRight}
          name='arrow-right'
          type='font-awesome'
          raised
          reverse
          size={18}

        /&amp;gt;
      }
      prevButton={
        &amp;lt;Icon
        //   style={styles.arrowRight}
          name='arrow-left'
          type='font-awesome'
          raised
          reverse
          size={18}

        /&amp;gt;
      }


    &amp;gt;
      &amp;lt;View style={styles.slide1}&amp;gt;
        &amp;lt;FormComponent /&amp;gt;
      &amp;lt;/View&amp;gt;
      &amp;lt;View style={styles.slide2}&amp;gt;
        &amp;lt;Text style={styles.text}&amp;gt;Beautiful&amp;lt;/Text&amp;gt;
      &amp;lt;/View&amp;gt;
      &amp;lt;View style={styles.slide3}&amp;gt;
        &amp;lt;Text style={styles.text}&amp;gt;And simple&amp;lt;/Text&amp;gt;
      &amp;lt;/View&amp;gt;
    &amp;lt;/Swiper&amp;gt;
  )
}

const styles = StyleSheet.create({
  wrapper: {},
  slide1: {
    flex: 1,
  },
  slide2: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#97CAE5',
  },
  slide3: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#92BB',
  },
  text: {
    color: '#fff',
    fontSize: 30,
    fontWeight: 'bold',
  },
})

export default Quiz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The prop nextButton do the trick.&lt;br&gt;
&lt;a href="https://github.com/leecade/react-native-swiper#control-buttons"&gt;https://github.com/leecade/react-native-swiper#control-buttons&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Please check out my Meme app by React Native</title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Wed, 17 Nov 2021 07:56:25 +0000</pubDate>
      <link>https://dev.to/cxl3/please-check-out-my-meme-app-by-react-native-2023</link>
      <guid>https://dev.to/cxl3/please-check-out-my-meme-app-by-react-native-2023</guid>
      <description>&lt;p&gt;A social media platform that allows users to post, view memes and chat with one another.&lt;/p&gt;

&lt;p&gt;frontend:&lt;a href="https://github.com/CXL3/React-Native-Mobile-Project-Meme-Machine"&gt;https://github.com/CXL3/React-Native-Mobile-Project-Meme-Machine&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;backend:&lt;a href="https://github.com/CXL3/MongoDB-Nodejs-portfolio-backend-for-Meme-Machine-app"&gt;https://github.com/CXL3/MongoDB-Nodejs-portfolio-backend-for-Meme-Machine-app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Youtube:&lt;a href="https://www.youtube.com/watch?v=xurBnVRslns"&gt;https://www.youtube.com/watch?v=xurBnVRslns&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you know anyone hiring frontend or full stack engineer. Please let me know. :) Thank you.&lt;/p&gt;

&lt;p&gt;Here is my LinkedIn.&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/awslu/"&gt;https://www.linkedin.com/in/awslu/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Upgrading React Navigation 4 to 5. </title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Tue, 02 Nov 2021 06:07:43 +0000</pubDate>
      <link>https://dev.to/cxl3/upgrading-react-navigation-4-to-5-pl6</link>
      <guid>https://dev.to/cxl3/upgrading-react-navigation-4-to-5-pl6</guid>
      <description>&lt;p&gt;Creating stack Navigation is easy, I will skip that. &lt;br&gt;
I just want to mention when you are passing item id to the next detail page. navigation.getParam won't work in Nav 4.&lt;/p&gt;

&lt;p&gt;You can change it to route.params.itemId.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to create different SSH for Gitlab and Github at the same time. </title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Tue, 02 Nov 2021 06:03:00 +0000</pubDate>
      <link>https://dev.to/cxl3/how-to-create-different-ssh-for-gitlab-and-github-at-the-same-time-56cl</link>
      <guid>https://dev.to/cxl3/how-to-create-different-ssh-for-gitlab-and-github-at-the-same-time-56cl</guid>
      <description>&lt;p&gt;I would recommend this article &lt;a href="https://dev.to/yashsway/setting-up-multiple-ssh-profiles-to-manage-multiple-git-accounts-macos-3m7m"&gt;https://dev.to/yashsway/setting-up-multiple-ssh-profiles-to-manage-multiple-git-accounts-macos-3m7m&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You just need to edit the config file to gitlab.com&lt;/p&gt;

</description>
    </item>
    <item>
      <title>May I Please find a job hunting partner for a basic AWS job here?</title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Wed, 03 Mar 2021 21:46:16 +0000</pubDate>
      <link>https://dev.to/cxl3/may-i-please-find-a-job-hunting-partner-for-a-basic-aws-job-here-4h3p</link>
      <guid>https://dev.to/cxl3/may-i-please-find-a-job-hunting-partner-for-a-basic-aws-job-here-4h3p</guid>
      <description>&lt;p&gt;I passed AWS solution Architect associate on Oct 2020. In order to get a job, we need learn Python, Linux, Network. I just want to have a basic AWS job to start with like Cloud operation engineer ( I can't find any offer). I think I need to pass more certificates as well. Could someone join my job hunting journey and help each other? Thank you.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python Project-Story generator</title>
      <dc:creator>Claire Lu</dc:creator>
      <pubDate>Tue, 08 Dec 2020 08:01:05 +0000</pubDate>
      <link>https://dev.to/cxl3/python-project-story-generator-n1g</link>
      <guid>https://dev.to/cxl3/python-project-story-generator-n1g</guid>
      <description>&lt;p&gt;This is a simple Python Project that creates a story generator. We will randomly fill phrases in the sentence template and generate three stories at a time.&lt;/p&gt;

&lt;p&gt;Sentence template is "Scene", "who1" + "action" + "who2". &lt;/p&gt;

&lt;p&gt;First step, I want to create four lists.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lzkekfDc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6oo8l82712ioxu2l125l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lzkekfDc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6oo8l82712ioxu2l125l.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second step, in order to randomly select items from the list, I will use built in library random.  random.choice()&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AUfFjfMb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4yj0pgd3wct7h4xbkxec.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AUfFjfMb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4yj0pgd3wct7h4xbkxec.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Third step, I will print out the sentence.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YZyVolqL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8xmy5oofolk2f92ebnqz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YZyVolqL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8xmy5oofolk2f92ebnqz.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last, we need to generate 3 stories at a time. Calling the same print statement three more time only gives the same stories three more times, so I am going to use a while loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--luslIfcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/r39lc0ea5v5e6blqlhq2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--luslIfcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/r39lc0ea5v5e6blqlhq2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the sample result I got.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random

stories_times = 0
while stories_times &amp;lt; 3:

    scene = random.choice(["In an abandoned amusement park", "At a human zoo of the aliens", "In a city on Mars", "In a dream",
                       "In a hospital fulled with zombies", " In the magical world of Happy Porter",
                       "In the desert of Planet X", "On the edge of a cliff", " In a magical kingdom"])

    who1 = random.choice(["a talking rabbit that can't lie", "a goblin who wants to be human",
                      "a women who remembers her past life", "a bounty hunter who is also a serial killer",
                      "a time traveler who love eat zombies",
                      "a young witch who accidentally turn herself into a giant pig forever", "an alcoholic detective",
                      "an escaped criminal and a dangerous mental patient", "A snake demon"])

    who2 = random.choice(["a cult leader", "an astronaut who lost his memory ", "a dog who wanted world domination",
                      "a young couple who ran into the path of a psychopath", "baby Yoda",
                      "a bored vampire", " a mad scientist ", "the last chinese emperor", "an evil princess"])

    action = random.choice(["fall in love with", "fights against", "hunt for gold with",
                        "befriend", "revenge the death of", "robbed", " ate ", "forced to kill", "made clothe out of"])

    print(scene + ", " + who1 + " " + action + " " + who2 + ".")

    stories_times = stories_times + 1

else:
    print("The end.")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Here are some final results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w1aLS1x7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/eo133z2hupk68y7bzork.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w1aLS1x7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/eo133z2hupk68y7bzork.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope you liked it.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
