Category: Blog

  • news-app

    News App

    A news app to show and search news of different categories. Made with React Native, Typescript and News Api.

    ⭐ Features

    • Bare React Native
    • React Native Typescript Template
    • Tab Navigation installed
    • Tab Screens
    • See treding news categories
    • Search news by categories and topic
    • Search news by input term

    ⚒️ Tech stack

    ⭐ Get Started

    React Native Setup

    make sure to have setup development environment

    📍 Setting up the development environment

    # clone
    git clone https://github.com/sketchomania/news-app.git
    # install dependencies
    npm install
    
    # Or use `yarn`
    yarn install

    Add config file at src/config/config.ts and paste the following

    export const CONFIG = {
      API_KEY: 'your_api_key',
      ENDPOINT: 'https://newsapi.org/v2/',
      COUNTRY: 'your_country',
    };

    Run project

    # run project
    npx react-native run-android

    Screenshot

    home screen health screen business screen
    search screen search screen search screen

    🚀 Contribute

    Contributions are most welcome in this project be it reporting an issue or sending a pull request.

    Some of the things you could help with currently are –

    1. Improvements
    2. Adding features
      • You can add useThemes()
      • Splash Screen can added
      • Dark mode can be added
    Visit original content creator repository https://github.com/sketchomania/news-app
  • social-links-profile

    Frontend Mentor – Social links profile

    Design preview for the Social links profile coding challenge

    Welcome! 👋

    Thanks for checking out this front-end coding challenge.

    Frontend Mentor challenges help you improve your coding skills by building realistic projects.

    To do this challenge, you need a basic understanding of HTML and CSS.

    The challenge

    Your challenge is to build out this social links profile and get it looking as close to the design as possible.

    You can use any tools you like to help you complete the challenge. So if you’ve got something you’d like to practice, feel free to give it a go.

    Your users should be able to:

    • See hover and focus states for all interactive elements on the page

    Want some support on the challenge? Join our community and ask questions in the #help channel.

    Where to find everything

    Your task is to build out the project to the designs inside the /design folder. You will find both a mobile and a desktop version of the design.

    The designs are in JPG static format. Using JPGs will mean that you’ll need to use your best judgment for styles such as font-size, padding and margin.

    If you would like the design files (we provide Sketch & Figma versions) to inspect the design in more detail, you can subscribe as a PRO member.

    All the required assets for this project are in the /assets folder. The images are already exported for the correct screen size and optimized.

    We also include variable and static font files for the required fonts for this project. You can choose to either link to Google Fonts or use the local font files to host the fonts yourself. Note that we’ve removed the static font files for the font weights that aren’t needed for this project.

    There is also a style-guide.md file containing the information you’ll need, such as color palette and fonts.

    Building your project

    Feel free to use any workflow that you feel comfortable with. Below is a suggested process, but do not feel like you need to follow these steps:

    1. Initialize your project as a public repository on GitHub. Creating a repo will make it easier to share your code with the community if you need help. If you’re not sure how to do this, have a read-through of this Try Git resource.
    2. Configure your repository to publish your code to a web address. This will also be useful if you need some help during a challenge as you can share the URL for your project with your repo URL. There are a number of ways to do this, and we provide some recommendations below.
    3. Look through the designs to start planning out how you’ll tackle the project. This step is crucial to help you think ahead for CSS classes to create reusable styles.
    4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content.
    5. Write out the base styles for your project, including general content styles, such as font-family and font-size.
    6. Start adding styles to the top of the page and work down. Only move on to the next section once you’re happy you’ve completed the area you’re working on.

    Deploying your project

    As mentioned above, there are many ways to host your project for free. Our recommend hosts are:

    You can host your site using one of these solutions or any of our other trusted providers. Read more about our recommended and trusted hosts.

    Create a custom README.md

    We strongly recommend overwriting this README.md with a custom one. We’ve provided a template inside the README-template.md file in this starter code.

    The template provides a guide for what to add. A custom README will help you explain your project and reflect on your learnings. Please feel free to edit our template as much as you like.

    Once you’ve added your information to the template, delete this file and rename the README-template.md file to README.md. That will make it show up as your repository’s README file.

    Submitting your solution

    Submit your solution on the platform for the rest of the community to see. Follow our “Complete guide to submitting solutions” for tips on how to do this.

    Remember, if you’re looking for feedback on your solution, be sure to ask questions when submitting it. The more specific and detailed you are with your questions, the higher the chance you’ll get valuable feedback from the community.

    Sharing your solution

    There are multiple places you can share your solution:

    1. Share your solution page in the #finished-projects channel of our community.
    2. Tweet @frontendmentor and mention @frontendmentor, including the repo and live URLs in the tweet. We’d love to take a look at what you’ve built and help share it around.
    3. Share your solution on other social channels like LinkedIn.
    4. Blog about your experience building your project. Writing about your workflow, technical choices, and talking through your code is a brilliant way to reinforce what you’ve learned. Great platforms to write on are dev.to, Hashnode, and CodeNewbie.

    We provide templates to help you share your solution once you’ve submitted it on the platform. Please do edit them and include specific questions when you’re looking for feedback.

    The more specific you are with your questions the more likely it is that another member of the community will give you feedback.

    Got feedback for us?

    We love receiving feedback! We’re always looking to improve our challenges and our platform. So if you have anything you’d like to mention, please email hi[at]frontendmentor[dot]io.

    This challenge is completely free. Please share it with anyone who will find it useful for practice.

    Have fun building! 🚀

    Visit original content creator repository https://github.com/LuisDomiciano/social-links-profile
  • homebrew-sumo

    brew test-bot brew publish example tests

    Homebrew Tap for SUMO

    This tap allows you to install SUMO with Homebrew on macOS. For more information on Brew Taps, see https://docs.brew.sh/Taps.

    For a step-by-step Formula update Guide, refer to: https://sumo.dlr.de/docs/Developer/HowToUpdateHomebrewFormula.html

    Requirements

    If you want to use sumo-gui and/or netedit, you need to install XQuartz as a requirement:

    brew install --cask xquartz
    

    Install

    brew tap dlr-ts/sumo
    brew install sumo
    

    Upgrade from older SUMO versions installed with Homebrew

    brew upgrade sumo
    

    Usage

    By default, the above command lines install a bottled SUMO stable version (currently 1.20.0) with minimal requirements (fox, proj, xerces-c). Alternatively, brew can compile SUMO from source with the following command line options:

    brew install [OPTIONS] sumo
    
    ==> Options
    --with-examples
        Install docs/examples and docs/tutorial folder
    --with-ffmpeg
        Build with ffmpeg support
    --with-gdal
        Build with gdal support
    --with-gl2ps
        Build with gl2ps support
    --with-open-scene-graph
        Build with open-scene-graph support
    --with-swig
        Build with swig support
    --HEAD
        Install HEAD version (latest developer version of sumo)
    

    Homebrew Cask for macOS app bundles (optional)

    If you would like to have a little more integration with macOS, you can also install the following app bundles (created with macOS Automator) to the /Applications folder:

    • SUMO GUI.app (sumo-gui)
    • Netedit.app (netedit)
    • OSM Web Wizard.app (osm-web-wizard)

    Install with:

    brew install --cask sumo-gui
    

    Troubleshooting

    If you encounter any problems, please first check your brew installation (also see Homebrew Troubleshooting):

    brew update
    brew update
    brew doctor
    

    Any persisting problems with the SUMO Brew Formula should be reported directly to the eclipse-sumo/sumo issue tracker.

    Some common problems and their fixes have been documented here:

    https://sumo.dlr.de/docs/Installing.html#macos_troubleshooting

    Visit original content creator repository https://github.com/DLR-TS/homebrew-sumo
  • XTabLayout

    XTabLayout

    背景

    XTabLayout主要是基于原生TabLayout的改造,最早的需求是想可以手动调整TabLayout的下划线宽度,由于项目中TabLayout和ViewPager这样的使用方式很多,所以不想改动太多现有代码,在对比了各种改动TabLayout的下划线宽度之后,发现这种基于系统TabLayout改造的XTabLayout这种实现更好,另外可定制性也更高。

    比较

    各种改动 优势 局限
    系统TabLayout 无需代码改动 不够灵活,各种属性不能定制
    基于系统TabLayout反射一 改动小 不够灵活,容易有兼容问题,TabLayout一些属性会失效,比如tabMode设置scrollable会失效
    基于系统TabLayout反射二 改动小 不够灵活,容易有兼容问题,会压缩TabLayout的Tab左右padding,这样tab的可点击区域会变小
    XTabLayout 灵活,定制性高 需要修改不少TabLayout的逻辑

    可以看下面的截图效果比较:

    GIF展示:

    另外

    在支持用x_tabIndicatorWidth属性来动态设置下划线高度的同时,还增加了以下新功能:

    1. 添加x_tabIndicatorAnimation来控制是否支持类似微博的导航条动效,默认false不支持
    2. 添加x_tabIndicatorRoundRect来控制Indicator下划线的圆角效果,默认false没有圆角
    3. 支持在Tab上加入红点和红点数字

    详情请见博客链接:关于TabLayout的indicator宽度的一次探索

    关于

    博客:https://jasongaoh.github.io

    邮箱:jasongaohui@gmail.com

    License

    Copyright 2018 JasonGaoH

    Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions

    Visit original content creator repository https://github.com/JasonGaoH/XTabLayout
  • drops

    Visit original content creator repository
    https://github.com/SOTETO/drops

  • react-boilerplate


    This repository is the stable base upon which we build our React projects at Mirego.
    We want to share it with the world so you can build awesome React applications too.

    Introduction

    To learn more about why we created and maintain this boilerplate project, read our blog post.

    Content

    This boilerplate comes with batteries included, you’ll find:

    Usage

    With GitHub template

    1. Click on the Use this template button to create a new repository
    2. Clone your newly created project (git clone https://github.com/you/repo.git)
    3. Run the boilerplate setup script (./boilerplate-setup.sh YourProjectName)
    4. Commit the changes (git commit -a -m "Rename react-boilerplate parts")

    Without GitHub template

    1. Clone this project (git clone https://github.com/mirego/react-boilerplate.git)
    2. Delete the internal Git directory (rm -rf .git)
    3. Run the boilerplate setup script (./boilerplate-setup.sh YourProjectName)
    4. Create a new Git repository (git init)
    5. Create the initial Git commit (git commit -a -m "Initial commit")

    License

    React Boilerplate is © 2018-2020 Mirego and may be freely distributed under the New BSD license. See the LICENSE.md file.

    The science logo is based on this lovely icon by Igé Maulana, from The Noun Project. Used under a Creative Commons BY 3.0 license.

    About Mirego

    Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We’re a team of talented people who imagine and build beautiful Web and mobile applications. We come together to share ideas and change the world.

    We also love open-source software and we try to give back to the community as much as we can.

    Visit original content creator repository https://github.com/mirego/react-boilerplate
  • language-quantized-autoencoders

    Language Quantized AutoEncoders

    This is a Jax implementation of our work Language Quantized AutoEncoders.

    It contains training and evalutation code.

    This implementation has been tested on multi-GPU and Google Cloud TPU and supports both multi-host training with TPU Pods and multi-GPU training.

    Usage

    Experiments can be launched via the following commands.

    An example script of launching a LQAE training job is:

    export SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
    export PROJECT_DIR="$( cd -- "$( dirname -- "$SCRIPT_DIR" )" &> /dev/null && pwd )"
    cd $PROJECT_DIR
    export PYTHONPATH="$PYTHONPATH:$PROJECT_DIR"
    
    echo $PYTHONPATH
    export WANDB_API_KEY=''
    
    export experiment_name='lqae'
    export project_id='lqae'
    export wu='5'
    export ep='100'
    export model='lqae'
    export experiment_note=""
    export experiment_id="lqae-base"
    
    python3 -m lqae.main.lqae_main \
        --model_type="$model" \
        --lqae.bert_min_ratio=0.5 \
        --lqae.bert_max_ratio=0.5 \
        --lqae.quantizer_loss_commitment=0.005 \
        --lqae.quantizer_loss_entropy=0.0 \
        --lqae.quantizer_loss_perplexity=0.0 \
        --lqae.l2_normalize=True \
        --lqae.top_k_value=1 \
        --lqae.top_k_avg=False \
        --lqae.top_k_rnd=False \
        --lqae.vit_encoder_decoder=True \
        --lqae.vit_model_type='base' \
        --lqae.patch_size=16 \
        --lqae.use_bert_codebook=True \
        --lqae.bert_mask_loss_weight=0.0001 \
        --lqae.bert_channel_image_loss_weight=1.0 \
        --lqae.nochannel_image_loss_weight=0.0 \
        --lqae.quantizer_latent_dim=0 \
        --lqae.strawman_codebook=False \
        --lqae.use_bert_ste=False \
        --seed=42 \
        --epochs="$ep" \
        --lr_warmup_epochs="$wu" \
        --batch_size=512 \
        --dataloader_n_workers=16 \
        --log_freq=500 \
        --plot_freq=2000 \
        --save_model_freq=10000 \
        --lr_peak_value=1.5e-4 \
        --weight_decay=0.0005 \
        --load_checkpoint='' \
        --dataset='imagenet' \
        --imagenet_data.path="YOUR IMAGENET FILE in HDF5" \
        --imagenet_data.random_start=True \
        --log_all_worker=False \
        --logging.online=True \
        --logging.project_id="$project_id" \
        --logging.experiment_id="$experiment_id" \
        --logging.experiment_note="$experiment_note" \
        --logging.output_dir="$HOME/experiment_output/$project_id"
    
    

    Example of running LLM based evaluation using LQAE pretrained model is at this colab.

    To run experiments more conveniently on TPUs, you may want to use the script in jobs folder to manage TPUs jobs.

    Visit original content creator repository
    https://github.com/haoliuhl/language-quantized-autoencoders

  • cash-flow

    Cash Flow Web App

    The Cash Flow Web App is a simple web application that allows users to track their expenses and view analytics related to their cash flow. Users can add their expenses and categorize them for better organization and analysis.

    Features

    • Expense Tracking: Users can add, edit, and delete their expenses, providing information about the account, sum, date, category, and optional comment.
    • Expense Categories: Expenses can be categorized, making it easier to track spending patterns.
    • Analytics: The app provides a user-friendly analytics dashboard that offers insights into the user’s cash flow, such as total expenses, expenses by category, and expenses over time.

    Demo

    You can try the demo of the Cash Flow Web App here.

    Installation

    To run the Cash Flow Web App locally, follow these steps:

    1. Clone the repository to your local machine.
    2. Navigate to the project’s root directory.
    3. Install the required dependencies:

    npm install

    Start the development server:

    npm run dev

    Open your web browser and navigate to http://localhost:5173 to access the app.

    Contributing

    If you would like to contribute to the Cash Flow Web App, follow these steps:

    1. Fork the repository on GitHub.
    2. Create a new branch with a descriptive name for your feature or bug fix.
    3. Make your changes and commit them with clear commit messages.
    4. Push your changes to your fork.
    5. Create a pull request to the main repository’s master branch.

    Contact

    For questions or inquiries, feel free to contact the project maintainers at sales@maxinum.co.

    Thank you for using the Cash Flow Web App! We hope it helps you manage your expenses effectively and gain valuable insights into your cash flow. If you encounter any issues or have suggestions for improvements, please let us know. Happy budgeting!

    Visit original content creator repository
    https://github.com/Maxinum/cash-flow

  • Modeler

    Codacy Badge Build Status Support Server Invite

    Modeler

    Open 3D Modeling Tool

    This tool is written in Kotlin, using LWJGL3 for rendering and Legui to build user interfaces

    Screenshots

    3d view 4 viewports texture editing animations

    How to install/run

    Go to releases in github and download the latest version. In each release there are 3 files, you need to download the file modeler-A.B-beta.jar where A.B is the version of the program.

    Once you get the jar file, create a new folder and move the jar file to that folder. If you have java correclty configurared you can double click the jar file to start the application.

    If this doesn’t work for your, you can start the program by opening a comand line window in the folder and type java -jar modeler-A.B-beta.jar replacing ‘modeler-A.B-beta.jar’ for the name of the jar file.

    If the program starts, a folder called data will be created. This folders stores backups, the main config file and the logs of the program. If the program fails to start you can copy the program logs and open an issue in github.

    Current state

    Currently this is project is not in active development. So don’t expect updates soon, unless I need 3D models for other project, then I will continue updating this 3D editor.

    Formatts

    Valid input formats:

    Valid output formats:

    • OBJ: Wavefront .obj file
    • MCX: Custom model format used in ModeLoader
    • GLTF: mostly support, has animations
    • VS: Vintage Story model format (not all features are supported)

    The formats TCN, TBL and JSON are based on storing objects as cubes with properties, they don’t allow arbitrary kinds of shapes so it’s impossible to export complex models to them.

    Features

    • Free vertex edit capabilities
    • Free UV edit capabilities
    • Translation, rotation and scale
    • Object, face, edge and vertex individual selection
    • Texture import on change
    • Automatic backup creation and removal of old backups
    • Local and global transformation
    • Keyframe based animations
    • Helper grids to align objects
    • Orthographic and projection cameras
    • Multiview up to 4 viewports
    • Skybox background
    • Texture template export
    • Axis Aligned Bounding Box export to text format

    FAQ

    • Q: How to open/enable animation panel?
    • A: Press ALT + B
    • Q: Where can I find the shortcuts of the program?
    • A: Here
    Visit original content creator repository https://github.com/cout970/Modeler
  • Modeler

    Codacy Badge Build Status Support Server Invite

    Modeler

    Open 3D Modeling Tool

    This tool is written in Kotlin, using LWJGL3 for rendering and Legui to build user interfaces

    Screenshots

    3d view 4 viewports texture editing animations

    How to install/run

    Go to releases in github and download the latest version. In each release there are 3 files, you need to download the file modeler-A.B-beta.jar where A.B is the version of the program.

    Once you get the jar file, create a new folder and move the jar file to that folder. If you have java correclty configurared you can double click the jar file to start the application.

    If this doesn’t work for your, you can start the program by opening a comand line window in the folder and type java -jar modeler-A.B-beta.jar replacing ‘modeler-A.B-beta.jar’ for the name of the jar file.

    If the program starts, a folder called data will be created. This folders stores backups, the main config file and the logs of the program. If the program fails to start you can copy the program logs and open an issue in github.

    Current state

    Currently this is project is not in active development. So don’t expect updates soon, unless I need 3D models for other project, then I will continue updating this 3D editor.

    Formatts

    Valid input formats:

    Valid output formats:

    • OBJ: Wavefront .obj file
    • MCX: Custom model format used in ModeLoader
    • GLTF: mostly support, has animations
    • VS: Vintage Story model format (not all features are supported)

    The formats TCN, TBL and JSON are based on storing objects as cubes with properties, they don’t allow arbitrary kinds of shapes so it’s impossible to export complex models to them.

    Features

    • Free vertex edit capabilities
    • Free UV edit capabilities
    • Translation, rotation and scale
    • Object, face, edge and vertex individual selection
    • Texture import on change
    • Automatic backup creation and removal of old backups
    • Local and global transformation
    • Keyframe based animations
    • Helper grids to align objects
    • Orthographic and projection cameras
    • Multiview up to 4 viewports
    • Skybox background
    • Texture template export
    • Axis Aligned Bounding Box export to text format

    FAQ

    • Q: How to open/enable animation panel?
    • A: Press ALT + B
    • Q: Where can I find the shortcuts of the program?
    • A: Here
    Visit original content creator repository https://github.com/cout970/Modeler