Author: Chris
Date: 2017-02-17
線上MarkDown編輯器
%Categorias | |
categoria(fantasia). | |
categoria(novela). | |
categoria(ciencia_ficcion). | |
categoria(misterio). | |
categoria(poemas). | |
categoria(historia). | |
categoria(autoayuda). | |
categoria(romance). | |
categoria(aventura). |
Author: Chris
Date: 2017-02-17
線上MarkDown編輯器
/* | |
d3.phylogram.js | |
Wrapper around a d3-based phylogram (tree where branch lengths are scaled) | |
Also includes a radial dendrogram visualization (branch lengths not scaled) | |
along with some helper methods for building angled-branch trees. | |
Copyright (c) 2013, Ken-ichi Ueda | |
All rights reserved. |
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.
wsl --update
to make sure you are running the latest WSLsudo apt-get install openssh-server
sudo systemctl enable --now ssh
to automatically start ssh when WSL starts.# YAML cheat sheet | |
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# object | |
person: | |
# string value. single/double quotes | |
# anchoring | |
name: &name "daniel" # anchor name doesn't have to be the same as key name | |
occupation: 'student' |
# As of SQL 2017 | |
/Record @id @type @time | |
/Record/ConnectivityTraceRecord/ClientConnectionId | |
/Record/ConnectivityTraceRecord/IsClient | |
/Record/ConnectivityTraceRecord/LocalHost | |
/Record/ConnectivityTraceRecord/LocalPort | |
/Record/ConnectivityTraceRecord/OSError | |
/Record/ConnectivityTraceRecord/RecordSource | |
/Record/ConnectivityTraceRecord/RecordTime |
// To compile with gcc: (tested on Ubuntu 14.04 64bit): | |
// g++ sdl2_opengl.cpp -lSDL2 -lGL | |
// To compile with msvc: (tested on Windows 7 64bit) | |
// cl sdl2_opengl.cpp /I C:\sdl2path\include /link C:\path\SDL2.lib C:\path\SDL2main.lib /SUBSYSTEM:CONSOLE /NODEFAULTLIB:libcmtd.lib opengl32.lib | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <assert.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> |
/* | |
* | |
* / --------------------------------[ NUIM CS141 Java Revision ]------------------------------- \ | |
* || Designed to easily revise everything covered in CS141 by just reading through this code. || | |
* || Comments accompany almost every line of code to explain its purpose. || | |
* || Some theory we need to know are included in the bottom... || | |
* \ ------------------------------------------------------------------------------------------- / | |
* | |
* | |
* ____ _ __ ____ __ |