Name | Author |
---|---|
Wouldn't It Be Nice | The Beach Boys |
A Good Man is Hard to Find | Cass Daley |
Ain't Misbehavin' | Fats Waller |
Answer to Drivin' Nails in My Coffin | Jerry Irby |
Anything Goes | Cole Porter |
Atom Bomb Baby | The Five Stars |
Bubbles in My Beer | Bob Wills |
Butcher Pete (Part 1) | Roy Brown |
This file contains 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
// line intersection with WGS84 ellipsoid | |
FVector IntersectWGS84(FVector p0, FVector p1) | |
{ | |
FVector result(0, 0, 0); | |
FVector center(0, 0, 0); | |
double a = 6378137.0; | |
double b = 6356752.314245; | |
double x0 = p0.X, y0 = p0.Y, z0 = p0.Z; | |
double x1 = p1.X, y1 = p1.Y, z1 = p1.Z; | |
double cx = center.X, cy = center.Y, cz = center.Z; |
This file contains 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
git log --after="YYYY-MM-DD" --author=A --pretty=format:%h,%an,%ae,%s > log.csv |
This file contains 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
#include<iostream> | |
#include <fstream> | |
#include <map> | |
#include<vector> | |
#include <stb_image.h> | |
#include <stb_image_write.h> | |
#define IMGP_SIZE 1024 * 1024 |
This file contains 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
set path+=** | |
set relativenumber | |
set nu | |
set hidden | |
set nowrap | |
set smartindent | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set incsearch |
This file contains 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 path = require('path') | |
const fs = require('fs') | |
const parser = require('@babel/parser') | |
const traverse = require('@babel/traverse').default | |
const root = path.resolve(__dirname, 'src') | |
const res = [] | |
const impl = (asbPath, fn) => { | |
const stats = fs.statSync(asbPath) |
This file contains 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
function MinPQ() { | |
this.size = 0; | |
this.data = Array.from({ length: 10 }); | |
} | |
MinPQ.prototype.swap = function (i, j) { | |
const tmp = this.data[i]; | |
this.data[i] = this.data[j]; | |
this.data[j] = tmp; | |
} | |
MinPQ.prototype.up = function (k) { |
- open your
.zshrc
or.bashrc
file
I'm using
zsh
so the command isvim ~/.zsh
- add an alias for edge
alias edge="/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge"
- open a new session, or run
source ~/.zshrc
(`source ~/.bashrc if you are using bash) to make the alias work - type
edge
in the new session and press enter
This file contains 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 fs = require("fs"); | |
const path = require("path"); | |
function traverse(current, cb) { | |
const stat = fs.statSync(current); | |
if (stat.isDirectory()) { | |
const files = fs.readdirSync(current); | |
files.forEach(file => { | |
const absPath = path.resolve(current, file); | |
traverse(absPath, cb); |
This file contains 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
# --unsafe-perm | |
RUN npm i -g --unsafe-perm some-package |
NewerOlder