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 <array> | |
#include <stdexcept> | |
#include <algorithm> | |
#include <vector> | |
#include <iostream> | |
#include <initializer_list> | |
template <typename T, size_t N = 10> | |
class SmallVec | |
{ |
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
class Calculator { | |
constructor() { | |
} | |
add(a, b) { | |
return a + b; | |
} | |
sub(a, b) { |
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 python | |
# coding: utf-8 | |
import numpy as np | |
import cv2 | |
import os | |
import math | |
from cyvlfeat.kmeans import kmeans | |
from scipy import ndimage | |
from scipy.spatial import distance |
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
{ | |
"bin": { | |
"sh": null | |
}, | |
"boot": { | |
"kernel.js": null | |
}, | |
"index.json": null, | |
"spec": { | |
"cpu2006_asmjs": { |
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
[ 0%] Built target LLVMDemangle | |
[ 0%] Built target LLVMTableGen | |
[ 2%] Built target obj.llvm-tblgen | |
[ 2%] Built target LLVMHello_exports | |
[ 6%] Built target LLVMSupport | |
[ 7%] Built target LLVMMCParser | |
[ 7%] Built target LLVMMCDisassembler | |
[ 9%] Built target LLVMMC | |
[ 10%] Built target LLVMObjectYAML | |
[ 11%] Built target LLVMDebugInfoDWARF |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# ------------------------------------------------------------------------------- | |
# Agent-based SIR Model | |
# Author: Liu An Chi @tigercosmos | |
# ------------------------------------------------------------------------------- | |
from pylab import * | |
from scipy import interpolate | |
from random import random | |
from math import log | |
from enum import Enum |
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
# ------------------------------------------------------------------------------- | |
# SIR Model | |
# Author: Liu An Chi @tigercosmos | |
# ------------------------------------------------------------------------------- | |
from pylab import * | |
from scipy import interpolate | |
# Parameters | |
Beta = 1 | |
Gamma = 0.5 |
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
/// Make CPUs usage as a sin wave | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
const float PI = 3.1415926; | |
const int TIME_SLICE = 40000; // 40 ms |
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
// ..... | |
} else if (match[DAY_GROUP_1]) { // 處理中文字有關於「天」的部分 | |
var day1 = match[DAY_GROUP_1]; | |
var time1 = match[TIME_GROUP_1]; | |
if (day1 == '明' || day1 == '聽') { | |
// 如果半夜說明天,通常是今天的概念 | |
if(refMoment.hour() > 1) { | |
startMoment.add(1, 'day'); | |
} |
NewerOlder