git checkout <branch>
git reset $(git merge-base develop $(git branch --show-current))
git add *
git commit -m "Comments ..."
git push --force
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| publicPath: "/", | |
| devServer: { | |
| proxy: { | |
| "^/api": { | |
| target: "https://localhost:5001/", | |
| ws: true, | |
| changeOrigin: true, | |
| }, | |
| }, |
openssl pkcs12 -export -in certificate.crt -inkey private.key -out output.pfx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun combinationSum(candidates: IntArray, target: Int): List<List<Int>> { | |
| val counts = IntArray(candidates.size){0} | |
| val result = mutableListOf<List<Int>>() | |
| fun gen(i: Int, newTarget: Int){ | |
| if(newTarget < 0){ | |
| return | |
| } | |
| if(newTarget == 0){ | |
| result.add((0 until i).flatMap {x -> (0 until counts[x]).map { candidates[x] } }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int sequenceElement(int[] a, int n) | |
| { | |
| int number = a[0] * 10000 + a[1] * 1000 + a[2] * 100 + a[3] * 10 + a[4]; | |
| int beginer = number; | |
| if (n < 5) | |
| { | |
| return a[n]; | |
| } | |
| var list = new List<int>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context | |
| import com.google.gson.Gson | |
| import com.google.gson.reflect.TypeToken | |
| /** | |
| * Created by Hoa Vo on 1/18/19. | |
| */ | |
| fun Context.readAssetAsString(fileName: String): String = this.assets.open(fileName).use { | |
| String(it.readBytes()) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void SaveJson<T>(List<T> data, string directory) | |
| { | |
| if (!Directory.Exists(directory)) | |
| { | |
| Directory.CreateDirectory(directory); | |
| } | |
| var fileName = $"{typeof(T).Name}s.json"; | |
| var filePath = Path.Combine(directory, fileName); | |
| var json = JsonConvert.SerializeObject(data); |
NewerOlder