Baihu Qian 钱柏湖
  • Posts
  • Tag Index
  • Search
Navigation bar avatar
✕

    Posts

    • Python Notes: Functions

      Posted on February 11, 2018

      def fun(parameter1, parameter2=1):, all lines of function body are indented. [Read More]
      Tags:
      • Python
    • Python Notes: Lists, Tuples, Sets, and Dicts

      Posted on February 11, 2018

      [Read More]
      Tags:
      • Python
    • Python Notes: Basic Types

      Posted on February 11, 2018

      type() returns the type of a variable. [Read More]
      Tags:
      • Python
    • Create Java List from Individual Objects

      Posted on February 7, 2018

      Problem Sometimes, I need to create a Java List containing only one object. [Read More]
      Tags:
      • Java
    • Python Notes: String

      Posted on February 6, 2018

      Python3’s string is UTF-8 encoded by default, Python2’s is not. To change the encoding, use s.encode('ascii'). It takes optional parameters to keep unsupported characters. [Read More]
      Tags:
      • Python
    • Python Notes: RegEx

      Posted on February 5, 2018

      Regular expressions are a powerful and (mostly) standardized way of searching, replacing, and parsing text with complex patterns of characters. [Read More]
      Tags:
      • Python
    • Python Notes: Iterator

      Posted on February 4, 2018

      An iterator is just a class that defines an __iter__(self) method. __iter__(self) function is automatically called when iter(inst) is called, where inst is an instance of this class. After performing beginning-of-iteration initialization, the __iter__() method returns any object that implements a __next__() method. Sometimes it just return self, because the... [Read More]
      Tags:
      • Python
    • Ruby Notes

      Posted on December 7, 2017

      General Everything in Ruby is an object. [Read More]
      Tags:
      • Ruby
    • Bash Notes

      Posted on December 2, 2017

      Notes ./script.sh and sh script.sh runs the script in a new subshell of current shell, while source script.sh executes it in current shell. [Read More]
    • Akka Notes

      Posted on December 2, 2017

      General Actor Model: OO implementation of large scale concurrent application. It can be hierarchical. [Read More]
      Tags:
      • Scala
      • Akka
    • Learning Scala - Operators and Statements

      Posted on November 30, 2017

      Operators Infix operators: a identifier b, such as 1 to 10, 1-> 10. They’re binary operators. [Read More]
      Tags:
      • Scala
    • Leetcode 274: H-Index

      Posted on November 19, 2017

      Question [Read More]
      Tags:
      • Leetcode
    • Learning Scala - IO

      Posted on November 9, 2017

      Scala provides a few extensions to Java’s IO library. [Read More]
      Tags:
      • Scala
    • Learning Scala - Application

      Posted on November 1, 2017

      An object that extends the App trait becomes the entry point of a Scala application, and the body of the object will be run. Any command-line arguments will be available through the args object of type Array[String], which is inherited from the App trait. [Read More]
      Tags:
      • Scala
    • Learning Scala - Variables and Types

      Posted on October 21, 2017

      Unlike Java, Scala provides both immutable “values” and mutable “variables”, to reflect its functional programming features. [Read More]
      Tags:
      • Scala
    • ← Newer Posts
    • Older Posts →
    • Email me
    • GitHub
    • LinkedIn
    • Instagram

    Baihu Qian  •  2025  •  baihuqian.github.io  •  Edit page

    Powered by Beautiful Jekyll