Skip to content

Instantly share code, notes, and snippets.

View panicdragon's full-sized avatar

daisuke.takayama panicdragon

View GitHub Profile
@panicdragon
panicdragon / nginx.conf
Created June 15, 2019 18:12 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@include background(linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8)));
@include background(linear-gradient(left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8)));
@include background(linear-gradient(#acac00, #969100 16.7%, #887e00 33.4%, #887600 50.1%, #887600 66.8%, #977b00 84.5%, #b68c00));
@panicdragon
panicdragon / gist:85c001d0176cef648a76
Created December 23, 2014 02:26
Star Class html ng
<ul class="favoriteList">
<li ng-repeat="c in star.getStarIconList() track by $index" ng-class="c"></li>
</ul>
"star":{
"star_num": 1,
"star_all": {
"5": 10,
"4": 26,
"3": 4,
"2": 4,
"1": 9
}
}
$scope.star = Star.fromData(data.star);
/**
* スタークラス
*/
export class Star {
/**
* コンストラクタ
* @param starNum スターの数
* @param starTotalLength スター総数
* @param starAll スター詳細
* @param starAverage スター総合の平均値