Skip to content

Instantly share code, notes, and snippets.

View liviaerxin's full-sized avatar

Frank liviaerxin

  • ASTRI
  • Hong Kong
View GitHub Profile
@liviaerxin
liviaerxin / ping.py
Created June 9, 2022 07:45 — forked from pklaus/ping.py
A pure python ping implementation using raw socket.
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping
@liviaerxin
liviaerxin / 1 - Intro---README.md
Last active April 16, 2022 17:29 — forked from lostintangent/1 - Intro---README.md
Learning MobX (Side-Effects)

1: Intro

Welcome to the interactive tutorial on how to use side-effect "operators" in MobX! Over the course of the next three samples, you'll learn (and be able to explore) exactly how autorun, when and reaction work, and when/why you would use them when building reactive applications.

@liviaerxin
liviaerxin / gist:c24bb7b72f76c1069e00fd131322842d
Created June 20, 2021 11:45 — forked from jagregory/gist:710671
How to move to a fork after cloning #Git
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git
/**
* @author knee-cola / https://github.com/knee-cola
* Original file URL: https://gist.github.com/knee-cola/37875bc4359609b96c9f329cd2a68fa1
*
* This is a spinner/loader built for Three.js platform.
* It can be used to notify user that some resources are being loaded.
* I made it to replace pure CSS spinner, which was displayed in the
* overlay above the 3D animation, since it was slowing down WebGL
*
* How to use:
@liviaerxin
liviaerxin / pom.xml
Created November 12, 2018 09:38 — forked from timmolderez/pom.xml
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@liviaerxin
liviaerxin / python-logging.md
Created August 3, 2018 07:53 — forked from mariocj89/python-logging.md
Understanding logging in Python #python

Logging trees

Introduction

When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.

@liviaerxin
liviaerxin / README.md
Created December 15, 2017 02:22 — forked from mariotacke/README.md
Default nginx log format (combined) and grok pattern
@liviaerxin
liviaerxin / rest_quick_reference.md
Created September 29, 2017 03:24 — forked from odan/rest_quick_reference.md
REST, RESTful API Quick Reference #api

REST, RESTful API Quick Reference

Ressources

  • Version your API

    • Path: /v1/users
    • Subdomain: api.v1.example.com/users
  • URI must be nouns, not verbs

  • /cars