Skip to content

Instantly share code, notes, and snippets.

View temisrei's full-sized avatar

Rei Lin temisrei

View GitHub Profile
@temisrei
temisrei / google-search-cse-style.css
Created December 30, 2024 08:00 — forked from RebeccaWhit3/google-search-cse-style.css
CSS to make CSE look like the official Google Search engine
/** Copyright 2005 Google Inc. All rights reserved. */
/* the GSearchControl CSS Classes
* .gsc-control : the primary class of the control
*/
.gsc-control {
width: 300px;
}
import pandas as pd
import sys, csv, re
import argparse
parser = argparse.ArgumentParser(prog="python parseTXT.py")
parser.add_argument("-n", "--name", type=str, help="Units abbr name")
args = parser.parse_args()
print('重新架構: ', args.name)
path_file = 'mailto/' + 'mail_list_' + args.name + '.txt'
@temisrei
temisrei / Angular 8 開發環境說明.md
Created July 2, 2019 09:08 — forked from doggy8088/Angular 18 Dev Setup.md
Angular 8 開發環境說明

Angular 8 開發環境說明

為了能讓大家能夠順利的建立起 Angular 8 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

  • Windows 7 以上版本 (更新到最新 Service Pack 版本)
  • Mac OS X 10.6 以上版本

[ 套件管理器 ( Mac OS X Only ) ]

@temisrei
temisrei / db.json
Last active October 25, 2018 08:13
{
"todos": [
]
}
@temisrei
temisrei / gist:e27f05df7e9184ec5c136f71c337d893
Last active June 25, 2018 15:38
ASK: ZeroJudge_Python_A042
import sys
sInput = sys.stdin.readline()
while (sInput != ""):
sInput = sInput.replace("\r", "").replace("\n", "")
sInput = sInput.strip()
n = int(sInput)
print(n*(n-1)+2) # main
@temisrei
temisrei / modernizr_promises.js
Last active August 14, 2017 09:49
使用 Modernizr 驗證 瀏覽器是否支援 ES6 Promise
if (Modernizr.promises) {
console.log("ES6 Promises supported");
} else {
console.log("ES6 Promises not supported");
}
if(typeof Promise !== "undefined" && Promise.toString().indexOf("[native code]") !== -1){
console.log('support Promise');
}
{
// Place your snippets for Laravel Blade here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"LaravelCollective Form::submit": {
"prefix": "lcBtnSubmit",
"body": [
"{!! Form::submit('${1:存檔}', ['class'=>'${2:btn btn-primary}']) !!}"
<form action="">
<div class="form-group">
<label for="title">文章標題</label>
<input type="text" class="form-control" name="title" id="title" placeholder="請輸入標題"/>
</div>
<div class="form-group">
<label for="fulltext">文章內容</label>
<textarea class="form-control" name="fulltext" id="fulltext" placeholder="請輸入內容"/></textarea>
</div>
{slider title="我是標題" open="false" class="icem-sfbms-slider"}
我是內容
{/sliders}
{slider title="Abstract" open="false" class="icem-sfbms-slider"}
Global warming is caused by infrared (IR) radiation and related heat trapped in the atmosphere. However, little is known about the impact of global warming on human health. In this study, we investigated the effects of near-IR (NIR) on macrophages. Proteomic analysis revealed that NIR radiation enhanced the expression of citrate synthase (CS) in THP-1 cell line. The increased CS protein expression was triggered by NIR-induced histone-3-lysine-4 (H3K4) hypermethylation on the CS gene promoter, but not by heat. NIR-induced CS expression promoted macrophage M2 polarization. These M2-like macrophages induced TGF-β1 which was released from CD4+ cells. These mechanistic regulations were validated in mouse models. Furthermore, NIR irradiation showed significant anti-inflammatory effects, including decreased redness and swelling, with a higher TGF-β1 and lower pro-inflammator