.vscode
├── settings.json # list referenced libraries for VSCode
└── sync.js # script to sync, run ./sync.js - require node
nbproject
├── build-impl.xml
├── configs
├── genfiles.properties
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
// Playground: https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=39&pc=1#code/MYGwhgzhAEB2D2ATAptA3gWAFDV9C8ATgC4DyhKhAXHAK4C2ARsoQNzZ7QDCAFgJYhEhZLBoIUAbQC67LBzzB4sCMUK1gxIgAoCJcpTENmhAJTp5nXMX4QAdLrIUW0ALz4ijyrMt5rfO7wCQiKu0NIW0AC+2NFyWIrKxNCK9AAOYIRgmoShWmBiSMgANNCMBShmLgB85jh4fABm0Hm2gYLCsNAAZF3QYK387SK2ICIA5tbQNQCMZph1Pv1twbD2Hlop6ZnZJhGxnI3NjANBHd29x8sdI+OTM3MRnJeDK2skG-BpGVlEuwtREWExFohE6-Qc+mcAFpSm9PCxZLFsNgEipki8IOVkNJQtJZA0iM1Rkk+KEAKysaCkmoABkpfChUIe-2AGNsqVoEB4WlgyAA7nBClo+CYTIjkfElGjxMhMYLJFJcTJsASclpiVTQtM6ZrafTGczOKikp03LyBTLhWKIodhdAAKTQABMrjcNMNPjgJyGpvRQQg3jw+zwMrsHK5POtWCRWFDcI+X22vwlqPgoxG8DGPMKED+QA | |
class node { | |
sortOrder: number; | |
Children: node[]; | |
constructor(sortOrder: number) { | |
this.sortOrder = sortOrder; | |
this.Children = [] | |
} |
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
const express = require('express') | |
const multer = require('multer'); | |
const app = express(); | |
const storage = multer.diskStorage({ | |
destination: function (req, file, cb) { | |
cb(null, 'tmp') | |
}, | |
filename: function (req, file, cb) { |
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
{ | |
// common settings | |
"window.zoomLevel": 1, | |
"workbench.statusBar.visible": true, | |
"editor.fontSize": 13, | |
"debug.console.fontSize": 13, | |
"markdown.preview.fontSize": 12, | |
"terminal.integrated.fontSize": 13, | |
"terminal.integrated.fontFamily": "Menlo for Powerline", | |
"workbench.startupEditor": "newUntitledFile", |
For a one-to-many relationship, where the “many” has a small number of known values, relationships can be stored as bitmasks in the parent table as an integer, replacing the need for an additional table.
Say we have a table Person and we’d like to know how many Continents a person has visited. We’d start by assigning each Continent an “orthogonal” bit value. In C#, an enum is a good choice for this:
[Flags]
public enum JobAdvertisingRegion
{
NorthAmerica = 1, // or 1 << 0
SouthAmerica = 2, // 1 << 1
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
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
sudo dpkg -i /tmp/code_latest_amd64.deb |
Tools -> Click to Button More -> Network -> Create new network vboxnet0
:
- Adapter: IP: 192.168.56.1
- DHCP Server: 192.168.56.2, from 192.168.56.3 to 192.168.56.254
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
# Android Emulator | |
➜ ~ cd $ANDROID_HOME | |
➜ sdk cd emulator | |
➜ emulator ./emulator -list-avds | |
Nexus_5X_API_28_x86 | |
Pixel_2_XL_API_28_x86 | |
➜ emulator ./emulator -avd Nexus_5X_API_28_x86 |
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
package main | |
import ( | |
"fmt" | |
"time" | |
jwt "github.com/dgrijalva/jwt-go" | |
) | |
var jwtSecret = []byte("aewihr034v923u04912ujce092u") |
NewerOlder