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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# Allow utf-8 charactor in config value | |
# For example, APP_NAME=中文字符 | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 | |
# TODO: introduce a parameter which controls how to build relative path | |
def read_dot_env(envs_root) |
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
import R from 'ramda'; | |
const createElement = (tag: String): HTMLElement => | |
document.createElement(tag); | |
const createTextElement = (text: String): HTMLElement => | |
document.createTextNode(text); | |
const setElementText = (text: String, elem: HTMLElement): HTMLElement => { | |
R.compose( |
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 toss = () => Math.random() >= .5; | |
const throws = []; | |
for(let i = 0; i < 10000; ++i) { | |
const isHead1 = toss(), | |
isHead2 = toss(); | |
throws.push( | |
isHead1 && isHead2 ? 'HH' : |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include "../raytracing/helpers.h" | |
#include "../raytracing/vector.h" | |
#include "../raytracing/matrix.h" | |
int main(void) { |
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 <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct PCX_HeaderStruct { | |
uint8_t sig; | |
uint8_t ver; | |
uint8_t isCompress; | |
uint8_t bitsPerPixel; |
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
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/syntastic' | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'kien/rainbow_parentheses.vim' | |
Plug 'bling/vim-bufferline' |
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
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# Globals | |
# Window sizes and visibility | |
if PLAT_WIN | |
position.left=0 |
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
var win = [ [],[],[],[],[] ]; | |
var flags = [ [],[],[],[],[] ]; | |
var winLength = 4; | |
function arand() { | |
return Math.random()/4 - 1/8; | |
} | |
function adapt(x,y, i,j, step) { | |
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
var table = [ | |
[1,2,1], | |
[2,4,2], | |
[1,2,1], | |
]; | |
var tableMaxDim = 3; | |
var tableSum = 16; | |
var filterStart = -1; | |
var filterEnd = 1; |
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
100 | |
AcDbEntity | |
100 | |
AcDbPolyFaceMesh // MESH VERTICES FOLLOWS | |
100 | |
AcDbEntity | |
100 | |
AcDbVertex | |
100 |
NewerOlder