Source: StackOverflow
Question: Regular Expression to find a string included between two characters while EXCLUDING the delimiters
Answer:
Easy done:
(?<=\[)(.*?)(?=\])
Source: StackOverflow
Question: Regular Expression to find a string included between two characters while EXCLUDING the delimiters
Answer:
Easy done:
(?<=\[)(.*?)(?=\])
Develop
> Hosting
> Connect Domain
.Domain List
> Manage
> Advanced DNS
.Host Records
, add a new record with:Source: StackOverflow
Question: How do I save Bitmap to extrenal storage in Android?
Answer:
Use this function to save your bitmap in SD card:
public void saveTempBitmap(Bitmap bitmap) {
if (isExternalStorageWritable()) {
Source: Me, GitHub, following this for update GitHub
Question: How to fucking add JavaCV to Android Studio so I can use the fucking annoying FFmpeg?
Answer: This tut will use JavaCV 1.1, version 1.2 currently has SIGSEGV issue. JavaCV 1.1 comes with FFmpeg 2.8.1.
Source: StackOverflow, StackOverflow
Question: How to Apply Color LUT to bitmap images for filter effects in Android?
Answer:
final static int X_DEPTH = 64;
final static int Y_DEPTH = 64; //One little square in the LUT has 64x64 pixels in it
final static int ROW_DEPTH = 8;
There are 2 ways to achieve Encapsulation in JS:
_
before a property to notify other developer this property is protected and should not be used directly.// 1) Public fields
// 2) Private fields
// Basically this is a way to link a prototype to any object that we want.
// the prototype
const PersonProto = {
calcAge() {
console.log(2037 - this.birthYear);
// syntactic sugar, behind the scene it's still prototypal inheritance/ delegation
// Class expression
// const PersonCl = class {} // behind the scene class is still a special type of function
// Class declaration